/* ============================================
   Hotel Booking Cart Component
   Fully namespaced: every selector uses the
   booking-cart- prefix.
   ============================================ */

   .booking-cart {
    --booking-cart-red: #E53935;
    --booking-cart-red-dark: #C62828;
    --booking-cart-red-soft: #FDECEC;
    --booking-cart-white: #FFFFFF;
    --booking-cart-gray-bg: #F6F7F9;
    --booking-cart-border: #E8EAED;
    --booking-cart-text: #1F2328;
    --booking-cart-text-muted: #6B7280;
    --booking-cart-columns: minmax(88px, 0.9fr) minmax(118px, 1fr) minmax(150px, 1.15fr) 100px 90px 28px;
  
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--booking-cart-text);
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .booking-cart input[type="radio"]{
    visibility: hidden !important;
  }
  
  .booking-cart *,
  .booking-cart *::before,
  .booking-cart *::after {
    box-sizing: border-box;
  }
  
  /* ---------- Cart Heading ---------- */
  
  .booking-cart-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0 4px;
  }
  
  .booking-cart-heading-text {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
  }
  
  .booking-cart-heading-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--booking-cart-red);
    background: var(--booking-cart-red-soft);
    border-radius: 999px;
    padding: 5px 13px;
  }
  
  /* ---------- Panel ---------- */
  
  .booking-cart-panel {
    background: var(--booking-cart-white);
    border: 1px solid var(--booking-cart-border);
    border-radius: 4px;
    /* box-shadow: 0 8px 30px rgba(31, 35, 40, 0.06); */
    overflow: hidden;
  }
  
  /* ---------- Column Headers ---------- */
  
  .booking-cart-table-head {
    display: grid;
    grid-template-columns: var(--booking-cart-columns);
    gap: 10px;
    align-items: center;
    padding: 10px 16px;
    background: var(--booking-cart-gray-bg);
    border-bottom: 1px solid var(--booking-cart-border);
  }
  
  .booking-cart-table-head-cell {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--booking-cart-text-muted);
    white-space: nowrap;
  }
  
  .booking-cart-table-head-center {
    text-align: center;
  }
  
  .booking-cart-table-head-right {
    text-align: right;
  }
  
  /* ---------- Cart Item (one row per hotel) ---------- */
  
  .booking-cart-item {
    display: grid;
    grid-template-columns: var(--booking-cart-columns);
    gap: 10px;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--booking-cart-border);
    transition: background 0.2s ease, opacity 0.25s ease, transform 0.25s ease;
  }
  
  .booking-cart-item:hover {
    background: #FAFBFC;
  }
  
  .booking-cart-item-removing {
    opacity: 0;
    transform: translateX(16px);
  }
  
  .booking-cart-field {
    min-width: 0;
  }
  
  .booking-cart-field-center {
    display: flex;
    justify-content: center;
  }
  
  .booking-cart-field-right {
    text-align: right;
  }
  
  .booking-cart-field-actions {
    display: flex;
    justify-content: flex-end;
  }
  
  /* Mobile-only field labels (hidden on desktop) */
  .booking-cart-field::before {
    content: none;
  }
  
  /* ---------- Hotel Field ---------- */
  
  .booking-cart-field-hotel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .booking-cart-image-frame {
    flex: 0 0 auto;
    width: 135px;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .booking-cart-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
  }
  
  .booking-cart-item:hover .booking-cart-image {
    transform: scale(1.07);
  }
  
  .booking-cart-title {
    margin: 0;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* ---------- Room Select ---------- */
  
  .booking-cart-room-select-frame {
    position: relative;
  }
  
  .booking-cart-room-select {
    margin-bottom: 0;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--booking-cart-gray-bg);
    border: 1px solid var(--booking-cart-border);
    border-radius: 12px;
    padding: 0 32px 0 12px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: var(--booking-cart-text);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  }
  
  .booking-cart-room-select:hover {
    border-color: #D3D7DC;
    background: var(--booking-cart-white);
  }
  
  .booking-cart-room-select:focus {
    outline: none;
    border-color: var(--booking-cart-red);
    background: var(--booking-cart-white);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
  }
  
  .booking-cart-room-select-arrow {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--booking-cart-text-muted);
    border-bottom: 2px solid var(--booking-cart-text-muted);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
  }
  
  /* ---------- Reservation Type (segmented pills) ---------- */
  
  .booking-cart-reservation {
    display: inline-flex;
    width: 100%;
    background: var(--booking-cart-gray-bg);
    border: 1px solid var(--booking-cart-border);
    border-radius: 12px;
    padding: 3px;
    gap: 3px;
  }
  
  .booking-cart-reservation-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    padding: 7px 8px;
    margin-bottom: 0px !important;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
  }
  
  .booking-cart-reservation-option:hover {
    background: rgba(255, 255, 255, 0.7);
  }
  
  .booking-cart-reservation-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .booking-cart-reservation-text {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--booking-cart-text-muted);
    white-space: nowrap;
    transition: color 0.2s ease;
  }
  
  .booking-cart-reservation-option:has(.booking-cart-reservation-input:checked) {
    background: var(--booking-cart-white);
    box-shadow: 0 1px 4px rgba(31, 35, 40, 0.12);
    margin-bottom:0px;
  }
  
  .booking-cart-reservation-input:checked ~ .booking-cart-reservation-text {
    color: var(--booking-cart-red);
  }
  
  .booking-cart-reservation-input:focus-visible ~ .booking-cart-reservation-text {
    text-decoration: underline;
  }
  
  /* ---------- Night Counter ---------- */
  
  .booking-cart-night-counter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--booking-cart-gray-bg);
    border: 1px solid var(--booking-cart-border);
    border-radius: 12px;
    padding: 3px;
  }
  
  .booking-cart-night-minus,
  .booking-cart-night-plus {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 9px;
    background: var(--booking-cart-white);
    color: var(--booking-cart-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(31, 35, 40, 0.08);
    transition: background 0.2s ease, color 0.2s ease,
                transform 0.15s ease, box-shadow 0.2s ease;
  }
  
  .booking-cart-night-minus:hover,
  .booking-cart-night-plus:hover {
    background: var(--booking-cart-red);
    color: var(--booking-cart-white);
    box-shadow: 0 3px 10px rgba(229, 57, 53, 0.3);
  }
  
  .booking-cart-night-minus:active,
  .booking-cart-night-plus:active {
    transform: scale(0.9);
  }
  
  .booking-cart-night-minus:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: var(--booking-cart-white);
    color: var(--booking-cart-text);
    box-shadow: none;
  }
  
  .booking-cart-night-value {
    min-width: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
  }
  
  /* ---------- Prices ---------- */
  
  .booking-cart-subtotal {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--booking-cart-red);
    white-space: nowrap;
  }
  
  .booking-cart-price-line {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--booking-cart-text-muted);
    white-space: nowrap;
  }
  
  .booking-cart-price {
    font-weight: 600;
  }
  
  /* ---------- Remove Button ---------- */
  
  .booking-cart-remove-button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--booking-cart-border);
    border-radius: 9px;
    background: var(--booking-cart-white);
    color: var(--booking-cart-text-muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease,
                border-color 0.2s ease, transform 0.15s ease;
  }
  
  .booking-cart-remove-button:hover {
    background: var(--booking-cart-red);
    border-color: var(--booking-cart-red);
    color: var(--booking-cart-white);
  }
  
  .booking-cart-remove-button:active {
    transform: scale(0.9);
  }
  
  /* ---------- Summary ---------- */
  
  .booking-cart-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 16px;
    background: var(--booking-cart-gray-bg);
  }
  
  .booking-cart-total {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--booking-cart-red), var(--booking-cart-red-dark));
    border-radius: 4px;
    padding: 9px 16px;
    /* box-shadow: 0 6px 18px rgba(229, 57, 53, 0.25); */
  }
  
  .booking-cart-total-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
  }
  
  .booking-cart-total-value {
    font-size: 19px;
    font-weight: 800;
    color: var(--booking-cart-white);
    letter-spacing: -0.01em;
    white-space: nowrap;
  }
  
  /* ---------- Continue Button ---------- */
  
  .booking-cart-continue-button {
    border: none;
    border-radius: 12px;
    background: var(--booking-cart-red);
    color: var(--booking-cart-white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 12px 28px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .booking-cart-continue-button:hover {
    background: var(--booking-cart-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(229, 57, 53, 0.35);
  }
  
  .booking-cart-continue-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.25);
  }
  
  /* ============================================
     Responsive — items collapse into cards
     ============================================ */
  
  @media (max-width: 900px) {
  
    .booking-cart-table-head {
      display: none;
    }
  
    .booking-cart-item {
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      padding: 16px;
      position: relative;
    }
  
    .booking-cart-field-hotel {
      grid-column: 1 / -1;
      flex-direction: row;
      align-items: center;
      gap: 12px;
      padding-right: 40px;
    }
  
    .booking-cart-image-frame {
      width: 84px;
    }
  
    .booking-cart-title {
      font-size: 15px;
    }
  
    /* Show field labels on mobile */
    .booking-cart-field[data-booking-cart-label]::before {
      content: attr(data-booking-cart-label);
      display: block;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--booking-cart-text-muted);
      margin-bottom: 6px;
    }
  
    .booking-cart-field-center {
      display: block;
    }
  
    .booking-cart-field-right {
      text-align: left;
    }
  
    .booking-cart-subtotal {
      font-size: 16px;
    }
  
    .booking-cart-price-line {
      font-size: 12px;
    }
  
    .booking-cart-field-actions {
      position: absolute;
      top: 16px;
      right: 16px;
    }
  
    .booking-cart-summary {
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
    }
  
    .booking-cart-total {
      justify-content: space-between;
    }
  
    .booking-cart-continue-button {
      width: 100%;
    }
  }
  