/* ============================================================
   EaseRoom IBE — Redesign theme
   ------------------------------------------------------------
   Step 1: design tokens + font only. Intentionally applies NO
   visual overrides on its own — later steps (Page 2, Page 1,
   Page 3) add scoped component styles on top of these tokens.

   Rules for this whole file (see REDESIGN-BRIEF.md §2):
   - Never rename/remove existing classes or element IDs; we only
     ADD new presentational classes/wrappers and style those.
   - All price/GST/coupon/FX/availability stays server + Angular
     driven; this file only affects appearance.

   Carlito (metric-identical Calibri clone) is loaded via a <link>
   in _Layout.cshtml, so no @import is needed here.
   ============================================================ */

/* ---------- 2.1 Colour palette + 2.3 shape/depth tokens ---------- */
:root {
    /* Font stack: real Calibri for Windows/Office, Carlito web fallback */
    --rd-font: 'Calibri', 'Carlito', 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* Primary — neutral slate/charcoal (banner-agnostic across all hotels).
       Variable names kept (canopy/moss/sage) so every rule keeps working;
       only the values changed from green → slate. */
    --rd-canopy: #26323F;       /* primary — header / tabs / panels / fills */
    --rd-canopy-deep: #161F29;  /* darker — bands, footer, overlays */
    --rd-moss: #4A5A68;         /* secondary — labels, icon strokes */
    --rd-sage: #E8ECEF;         /* soft surface — chips, tints */
    --rd-sage-line: #D6DDE2;    /* hairlines / card borders */

    /* Surfaces */
    --rd-bg: #F3F5F7;           /* page background (cool off-white) */
    --rd-surface: #FFFFFF;      /* cards / panels */

    /* Accent gold — reserve for the single primary action + price accents */
    --rd-lantern: #D9A441;
    --rd-lantern-deep: #B8842B; /* gold hover / focus ring */

    /* Text */
    --rd-ink: #1A1F24;          /* primary text */
    --rd-ink-soft: #5F6B75;     /* secondary text / labels */

    /* States */
    --rd-alert: #B5562C;        /* low-availability / warnings / remove */
    --rd-alert-bg: #FBEDE4;     /* warning background tint */

    /* Shape */
    --rd-radius: 14px;          /* cards */
    --rd-radius-sm: 10px;       /* controls / chips */

    /* Depth */
    --rd-shadow: 0 1px 2px rgba(15,23,32,.05), 0 8px 24px rgba(15,23,32,.07);
    --rd-shadow-lift: 0 2px 4px rgba(15,23,32,.07), 0 18px 40px rgba(15,23,32,.14);
}

/* ============================================================
   PAGE 1 — Select Rooms (Views/Home/HotelList.cshtml)
   Scoped under .rd-list. We only RESTYLE existing legacy classes;
   no ids/classes/ng-bindings are renamed. The .rd-list prefix
   raises specificity so these win over legacy CSS + the page's
   own inline <style> regardless of load order.
   ============================================================ */

.rd-list {
    font-family: var(--rd-font);
    background: var(--rd-bg);
    color: var(--rd-ink);
    padding-bottom: 90px; /* room for the fixed Selected Rooms bar */
}
.rd-list :focus-visible {
    outline: 2.5px solid var(--rd-lantern-deep);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Page shell width: bootstrap's .container caps at 1170px, which left a wide
   empty margin each side on desktop. Widen it so the room list + cart use more
   of the viewport. The nested .rd-list-grid .container override further down
   is more specific, so it still collapses to full width as before. */
.rd-list .container {
    width: 100%;
    max-width: 1440px;
}
@media (min-width: 992px) {
    /* a little breathing room so cards don't sit flush against the viewport */
    .rd-list .container { padding-left: 24px; padding-right: 24px; }
}

/* ---------- Top hotel bar ---------- */
.rd-list .hotel_detail {
    background: var(--rd-canopy);
    border: none;
    box-shadow: var(--rd-shadow);
}
.rd-list .txt_hotelname {
    color: #fff;
    font-family: var(--rd-font);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -.01em;
}
.rd-list .txt_place { color: #AEB8C2; font-weight: 400; }

/* Cancel Booking (top) — quiet ghost, NOT a loud solid button */
.rd-list #canbook.reserve_btn {
    background: transparent;
    color: #D3DBE2;
    border: 1px solid rgba(211,219,226,.4);
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    margin-top: 12px;
    transition: background .18s, color .18s;
}
.rd-list #canbook.reserve_btn:hover { background: rgba(255,255,255,.1); color: #fff; }
/* Header — hotel name + Cancel Booking on one vertically-centered line (desktop + mobile) */
.rd-list .hotel_detail .col-sm-12 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 12px;
}
.rd-list .hotel_detail .col-sm-9,
.rd-list .hotel_detail .col-sm-3 { width: auto; float: none; }
.rd-list .hotel_detail .col-sm-9 > div { padding-top: 0 !important; }
.rd-list .hotel_detail #canbook.reserve_btn { float: none; }

/* ---------- Date / availability strip ---------- */
.rd-list .slickblue {
    background: var(--rd-surface);
    border: 1px solid var(--rd-sage-line);
    border-radius: var(--rd-radius-sm);
    color: var(--rd-ink);
    margin: 0 4px;
    padding: 10px 6px;
    text-align: center;
    font-size: 13px;
    transition: border-color .16s, transform .16s;
}
.rd-list .slickblue:hover { border-color: var(--rd-moss); transform: translateY(-2px); }
.rd-list .slickblue > div:first-child {
    font-size: 11px;
    color: var(--rd-ink-soft);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
}
.rd-list .slickblue div { color: var(--rd-moss); font-weight: 700; }

/* ---------- Tabs (Make a reservation / Review & book) ---------- */
.rd-list .tab1 {
    background: var(--rd-sage);
    color: var(--rd-moss);
    font-weight: 700;
    border: 1px solid var(--rd-sage-line);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}
.rd-list .tab1_active {
    background: var(--rd-canopy);
    color: #fff;
    border-color: var(--rd-canopy);
}

/* ---------- Search / room-categories row ---------- */
.rd-list .cust_12_marg { color: var(--rd-ink); }
.rd-list .cust_12_marg > .col-sm-4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rd-moss);
    padding-top: 18px;
}
.rd-list .txt_check {
    color: var(--rd-ink-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: none;
    background: none;
}
.rd-list .nd_booking_bg_greydark_2 {
    background: var(--rd-surface) !important;
    border: 1px solid var(--rd-sage-line);
    border-radius: var(--rd-radius-sm);
}
.rd-list .date_clr { color: var(--rd-ink); }
.rd-list .txt_nyt { color: var(--rd-ink); font-weight: 700; }

/* SEARCH button — solid green utility action */
.rd-list .date_search {
    display: inline-block;
    background: var(--rd-canopy);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .04em;
    padding: 12px 22px;
    border-radius: var(--rd-radius-sm);
    text-decoration: none;
    transition: background .18s;
}
.rd-list .date_search:hover { background: var(--rd-canopy-deep); color: #fff; text-decoration: none; }

/* ---------- Room cards ---------- */
.rd-list .bg_set12 {
    background: var(--rd-surface);
    border: 1px solid var(--rd-sage-line);
    border-radius: var(--rd-radius);
    box-shadow: var(--rd-shadow);
    padding: 16px;
}
.rd-list .timeline-title span {
    color: var(--rd-canopy);
    font-weight: 700;
    font-size: 18px;
}
.rd-list .timeline-point i { color: var(--rd-moss); }
.rd-list .left_cnt, .rd-list .hotel_content { color: var(--rd-ink-soft); font-size: 14px; }
.rd-list .morelink { color: var(--rd-moss); font-weight: 700; }

/* Price + availability */
.rd-list .price_nyt {
    font-family: var(--rd-font);
    font-size: 26px;
    font-weight: 700;
    color: var(--rd-ink);
}
.rd-list .per_nyt { font-size: 13px; color: var(--rd-ink-soft); font-weight: 400; }
/* Availability = scarcity/urgency highlight so it reads as a key value for the customer */
.rd-list .remain_room {
    display: inline-block;
    margin-top: 6px;
    background: #FFEFD9;                 /* warm amber tint */
    color: #C2410C;                      /* burnt-orange text = urgency */
    border: 1px solid #F6C77D;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .01em;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(194, 65, 12, .16);
}
/* low stock (<= 3) → stronger red "Only X left!" urgency; dot inherits currentColor */
.rd-list .remain_room.remain_room-low {
    background: #FEE2E2;
    color: #B91C1C;
    border-color: #F5A9A9;
    box-shadow: 0 1px 5px rgba(185, 28, 28, .20);
}

/* Secondary link buttons (Check prices / Cancellation policy) */
.rd-list .price_btn, .rd-list .policy_btn {
    display: inline-block;
    background: var(--rd-surface);
    border: 1px solid var(--rd-sage-line);
    color: var(--rd-moss);
    font-weight: 700;
    font-size: 12px;
    padding: 7px 13px;
    border-radius: var(--rd-radius-sm);
    margin: 6px 6px 0 0;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.rd-list .price_btn:hover, .rd-list .policy_btn:hover {
    background: var(--rd-sage);
    border-color: var(--rd-moss);
    text-decoration: none;
}

/* Rate-plan table */
.rd-list .roomtype-odd { background: var(--rd-surface); }
.rd-list .roomtype-even { background: #F4F6F8; color: var(--rd-ink); }
.rd-list .roomtype-even .roomlist-counter span { color: var(--rd-ink); }
.rd-list .roomdetail_add {
    color: var(--rd-ink);
    border-color: var(--rd-sage-line) !important;
    padding: 10px 8px;
}
.rd-list .bigcheck { color: var(--rd-ink); font-weight: 700; }
.rd-list .strike, .rd-list .bigcheck .strike { color: var(--rd-ink-soft); }
.rd-list .info { color: var(--rd-moss); }

/* Checkbox accent: green/gold instead of orange */
.rd-list .chk label:before {
    border: 1px solid var(--rd-moss) !important;
    border-radius: 5px;
}
.rd-list input[type=checkbox]:checked + label:before {
    color: var(--rd-canopy) !important;
    content: "\2713";
}

/* ---------- Property details ---------- */
.rd-list .bg_set12_new {
    background: var(--rd-surface);
    border: 1px solid var(--rd-sage-line);
    border-radius: var(--rd-radius);
    box-shadow: var(--rd-shadow);
    padding: 18px;
    overflow: hidden;   /* contain the floated photo/text columns — the photo is now taller than the text */
}
.rd-list .ppt_details, .rd-list .property_name {
    color: var(--rd-canopy);
    font-weight: 700;
}
.rd-list .txt_content {
    color: var(--rd-ink-soft);
    font-size: 14px;      /* match the room description (.left_cnt) */
    font-weight: 400;
    opacity: 1;           /* was 0.75 — made it look like a different, fainter font */
    line-height: 1.6;
}

/* ---------- Selected Rooms footer bar ---------- */
.rd-list .cstm_footer {
    background: var(--rd-canopy-deep);
    box-shadow: 0 -6px 20px rgba(15,23,32,.18);
    border-top: 1px solid rgba(255,255,255,.06);
}
.rd-list .select_room { color: #fff; font-weight: 700; }
.rd-list .cstm_footer .col-sm-8 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.rd-list .room_set {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    width: 210px;
    height: 52px;
    margin: 0 !important;
    padding: 8px 30px 8px 12px;   /* right room for the × */
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--rd-radius-sm);
    color: #E6EAEE;
    overflow: hidden;
    vertical-align: middle;
}
.rd-list .set_room {
    width: 100% !important;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rd-list .set_price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    width: 100%;
    color: #AEB8C2;
    font-size: 12px;
}
.rd-list .set_price > span:first-child {   /* rate-plan name → truncates */
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    display: block !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rd-list .set_price > span:last-child {    /* ₹ price (qty) → always visible */
    flex: 0 0 auto;
    width: auto !important;
    display: inline-block !important;
    white-space: nowrap;
    color: #fff;
    font-weight: 700;
    vertical-align: baseline !important;
}
.rd-list .room_set .fa-times-circle {
    top: 6px !important;
    right: 6px !important;
    left: auto !important;
    color: #E6EAEE;
}

/* Reserve = the single primary action → gold */
.rd-list .cstm_footer .reserve_btn {
    background: var(--rd-lantern);
    color: #241A05;
    font-weight: 700;
    font-size: 16px;
    border: none;
    border-radius: 11px;
    padding: 13px 26px;
    box-shadow: 0 6px 16px rgba(217,164,65,.35);
    transition: background .18s, color .18s, transform .18s;
}
.rd-list .cstm_footer .reserve_btn:hover { background: var(--rd-lantern-deep); color: #fff; transform: translateY(-1px); }
.rd-list .cstm_footer .reserve_btn.cursor-default {
    background: var(--rd-sage-line);
    color: #9AA89C;
    box-shadow: none;
    cursor: not-allowed;
}

/* ============================================================
   PAGE 1 — MODERN POLISH (current-trend booking look)
   Rounded imagery, floating cards, pill badges, hover lift,
   gold accents. Still CSS-only; no DOM/binding changes.
   ============================================================ */

/* ---- Neutralise the dated timeline scaffolding for a clean card ---- */
/* Kill the connector dot + line */
.rd-list .timeline-point,
.rd-list .timeline-hotel-view .timeline-point,
.rd-list .timeline-point:before,
.rd-list .timeline-hotel-view .timeline-point:before { display: none !important; }
/* Remove the 10% left offset so the card is full width */
.rd-list .timeline-hotel-view .timeline-content { width: 100% !important; margin: 0 0 22px 0 !important; }
.rd-list .timeline-block { margin-bottom: 8px; }

/* Room name — was a fixed orange box; it's actually the room NAME,
   so present it as a big clean heading above the card (mockup style). */
.rd-list .timeline-title { line-height: normal; }
.rd-list .timeline-hotel-view .timeline-title {
    position: static !important;
    display: block;
    margin: 0 0 8px 4px;
}
.rd-list .timeline-title span {
    float: none;
    display: inline-block;
    width: auto !important;
    background: transparent !important;
    color: var(--rd-ink) !important;
    font-size: 22px !important;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
    padding: 0 !important;
    height: auto !important;
}

/* Amenity icon row — the live feed has no real icons here (only broken
   placeholders), so hide the row for a clean card. Labeled chips can be
   added later once we bind real amenity data. */
.rd-list .div_img_icon { display: none !important; }

/* ---- Rate-plan / selection row cleanup ("... Including Breakfast") ---- */
.rd-list .responsive_new > table td.roomdetail_add {
    padding: 14px 12px;
    border-right-color: var(--rd-sage-line) !important;
    font-size: 14px;
    color: var(--rd-ink);
    vertical-align: middle;
}
.rd-list .roomtype-odd:hover,
.rd-list .roomtype-even:hover { background: var(--rd-sage); }
.rd-list .responsive_new .info { color: var(--rd-moss); margin-right: 5px; }
.rd-list .responsive_new .bigcheck { color: var(--rd-ink); font-weight: 700; font-size: 15px; }
.rd-list .responsive_new .strike span { color: var(--rd-ink-soft); }

/* Compact, clean checkbox (was a big orange 30x25 box) */
.rd-list .chk label:before {
    height: 20px !important;
    width: 20px !important;
    border: 1.5px solid var(--rd-moss) !important;
    border-radius: 5px;
    line-height: 15px !important;
}
.rd-list input[type=checkbox]:checked + label:before {
    font-size: 20px !important;
    color: var(--rd-canopy) !important;
    line-height: 16px !important;
}

/* ---- Reserve button visibility on the dark footer ---- */
.rd-list .cstm_footer .reserve_btn,
.rd-list .cstm_footer .reserve_btn.cursor-pointer {
    background: var(--rd-lantern) !important;
    color: #241A05 !important;
    box-shadow: 0 6px 16px rgba(217,164,65,.4) !important;
}
.rd-list .cstm_footer .reserve_btn.cursor-pointer:hover {
    background: var(--rd-lantern-deep) !important;
    color: #fff !important;
}
.rd-list .cstm_footer .reserve_btn.cursor-default {
    background: rgba(255,255,255,.16) !important;
    color: #E6EAEE !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

/* ---- Cursors: make interactive controls feel clickable ---- */
.rd-list .chk,
.rd-list .chk label,
.rd-list [uib-popover-html],
.rd-list .roomlist-counter button,
.rd-list .roomlist-counter .btn,
.rd-list .price_btn,
.rd-list .policy_btn,
.rd-list .date_search,
.rd-list .slickblue,
.rd-list .reserve_btn { cursor: pointer; }
.rd-list .cstm_footer .reserve_btn.cursor-default { cursor: not-allowed; }

/* Details trigger */
.rd-list .responsive_new [uib-popover-html] {
    color: var(--rd-moss);
    font-weight: 700;
}
.rd-list .responsive_new [uib-popover-html] .info { color: var(--rd-moss); }

/* Small inline "Select Total Rooms" / "No more room" tooltip — was orange */
.rd-list .popuptext { background: var(--rd-canopy); border-radius: 8px; }
.rd-list .popuptext::after { border-color: var(--rd-canopy) transparent transparent transparent; }

/* uib-bootstrap popover (Details) — themed. Not scoped under .rd-list
   because the popover is appended to <body>, outside the wrapper. */
.popover {
    border: 1px solid var(--rd-sage-line);
    border-radius: 10px;
    box-shadow: var(--rd-shadow-lift);
    font-family: var(--rd-font);
    color: var(--rd-ink);
}
.popover .popover-title {
    background: var(--rd-sage);
    color: var(--rd-canopy);
    font-weight: 700;
    border-bottom: 1px solid var(--rd-sage-line);
    border-radius: 10px 10px 0 0;
}
.popover .table th { color: var(--rd-ink-soft); font-weight: 700; }
.popover .table td { color: var(--rd-ink); }

/* ---- Amenity chips (added markup; presentational until wired to data) ---- */
.rd-list .rd-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0 14px;
    float: left;
    width: 100%;
}
.rd-list .rd-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--rd-sage);
    color: var(--rd-canopy);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 8px;
    line-height: 1.2;
}
.rd-list .rd-chip svg { width: 14px; height: 14px; flex: none; }
.rd-list .rd-chip-icon { width: 15px; height: 15px; object-fit: contain; flex: none; }
.rd-list .rd-chip-fa { font-size: 11px; color: var(--rd-moss); flex: none; }   /* generic fallback icon for unmapped facilities */

/* OTA rate-comparison panel (shows when hotelData.OtherOtaFlag) */
.rd-list .rd-ota {
    background: #FAFBF9;
    border: 1px solid var(--rd-sage-line);
    border-radius: 10px;
    padding: 10px 12px;
}
.rd-list .rd-ota-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--rd-ink-soft);
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.rd-list .rd-ota-open .rd-ota-head {
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--rd-sage-line);
}
.rd-list .rd-ota-title { display: inline-flex; align-items: center; gap: 8px; }
.rd-list .rd-ota-caret { font-size: 11px; color: var(--rd-moss); transition: transform .18s ease; }
.rd-list .rd-ota-open .rd-ota-caret { transform: rotate(180deg); }
.rd-list .rd-ota-refresh {
    flex: none;
    background: #fff;
    border: 1px solid var(--rd-sage-line);
    color: var(--rd-moss);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    padding: 4px 12px;
    border-radius: var(--rd-radius-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.rd-list .rd-ota-refresh:hover {
    background: var(--rd-sage);
    border-color: var(--rd-moss);
    color: var(--rd-canopy-deep);
    text-decoration: none;
}
.rd-list .rd-ota-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--rd-sage-line);
}
.rd-list .rd-ota-row:last-child { border-bottom: none; }
.rd-list .rd-ota-site { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.rd-list .rd-ota-logo { height: 36px; max-width: 120px; object-fit: contain; flex: none; }
.rd-list .rd-ota-rate { font-size: 15px; font-weight: 700; color: var(--rd-ink); white-space: nowrap; }

/* OTA panel (any count) → spans the FULL card width + multi-column grid (1 col on mobile) */
.rd-list .bg_set12 > .col-sm-3:has(.rd-ota) { flex: 1 1 100% !important; max-width: 100% !important; }
.rd-list .rd-ota .rd-ota-rows {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));  /* ~4 cols on the full-width panel, fewer as it narrows */
    column-gap: 18px;
    row-gap: 0;
}
.rd-list .rd-ota .rd-ota-row {
    border-bottom: none;
    border-top: 1px dashed var(--rd-sage-line);
    padding: 8px 0;
}
@media (max-width: 640px) {
    .rd-list .rd-ota .rd-ota-rows { grid-template-columns: 1fr; }
}
.rd-list .rd-ota-empty,
.rd-list .rd-ota-loading { font-size: 13px; color: var(--rd-ink-soft); text-align: center; padding: 8px 0; }

/* Selected rate-plan row gets a gold accent (mockup "Added" feel) */
.rd-list .responsive_new tr.roomtype-odd:has(input.tblcheck:checked),
.rd-list .responsive_new tr.roomtype-even:has(input.tblcheck:checked) {
    background: #FFFCF5;
}

/* ============================================================
   PAGE 2 — Review & Book (Views/Home/HotelBooking.cshtml)
   Scoped under .rd-book. Restyle legacy classes only; no ids,
   ng-bindings, or JS-referenced classes are renamed/removed.
   ============================================================ */
.rd-book {
    font-family: var(--rd-font);
    background: var(--rd-bg);
    color: var(--rd-ink);
}
.rd-book :focus-visible {
    outline: 2.5px solid var(--rd-lantern-deep);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Page shell width — same treatment as Page 1: bootstrap's .container caps at
   1170px, leaving a wide empty margin each side on desktop. Widen it so the
   checkout form + summary rail use more of the viewport. */
.rd-book .container {
    width: 100%;
    max-width: 1440px;
}
@media (min-width: 992px) {
    .rd-book .container { padding-left: 24px; padding-right: 24px; }
}
/* any .container nested inside the grid fills its column (mirrors .rd-list-grid) */
.rd-book .rd-checkout-grid .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ---------- Top hotel bar + tabs (shared look with Page 1) ---------- */
.rd-book .hotel_detail { background: var(--rd-canopy); border: none; box-shadow: var(--rd-shadow); }
.rd-book .txt_hotelname { color: #fff; font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.rd-book .txt_place { color: #AEB8C2; font-weight: 400; }
.rd-book .tab1 {
    background: var(--rd-sage);
    color: var(--rd-moss);
    font-weight: 700;
    border: 1px solid var(--rd-sage-line);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    padding: 13px 18px;
}
.rd-book .tab1_active { background: var(--rd-canopy); color: #fff; border-color: var(--rd-canopy); }   /* no gold underline (match Page 1) */

/* ---------- Section eyebrows (ROOM DETAILS / CONTACT DETAILS / …) ---------- */
.rd-book .txt_rm_detail,
.rd-book .txt_OPTservices {
    color: var(--rd-canopy);
    font-weight: 700 !important;
    font-size: 14px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* ---------- Room-group card ---------- */
.rd-book .list_top1,
.rd-book .list_top2 {
    background: var(--rd-surface);
    border: 1px solid var(--rd-sage-line);
    border-radius: var(--rd-radius);
    box-shadow: var(--rd-shadow);
    padding: 16px 18px;
    margin-bottom: 18px;
}
.rd-book .room_bg { background: transparent; }
.rd-book .room_name { color: var(--rd-canopy); font-weight: 700; font-size: 18px; }
/* rate-plan name shown under the room-category heading (mirrors the Page 1 cart card) */
.rd-book .rd-rateplan-sub {
    display: inline-block;
    margin-top: 5px;
    background: var(--rd-sage);
    color: var(--rd-canopy);
    font-size: 14.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
}
.rd-book .room_capacity { color: var(--rd-ink-soft); font-size: 14px; }
.rd-book .room_capacity .txtstyle,
.rd-book #extraadultprice .txtstyle,
.rd-book #extrachildprice .txtstyle { color: var(--rd-ink); font-weight: 700; }
.rd-book #extraadultprice, .rd-book #extrachildprice { color: var(--rd-ink-soft); font-size: 13px; }
.rd-book #Childpolicy { color: var(--rd-alert) !important; }
.rd-book .checkin_out { color: var(--rd-ink-soft); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rd-book .date_clr { color: var(--rd-ink); font-weight: 700; }
.rd-book .cst_lbl { color: var(--rd-ink-soft); font-size: 13px; font-weight: 700; }

/* Occupancy steppers (angular-number-picker) */
.rd-book .guest-counter { color: var(--rd-ink); }
.rd-book .guest-counter button,
.rd-book .guest-counter .btn { color: var(--rd-moss); cursor: pointer; }

/* ---------- Form fields ---------- */
.rd-book .form-control.rds,
.rd-book .cstm_select,
.rd-book .myselect {
    border: 1px solid var(--rd-sage-line) !important;
    border-radius: 10px;
    box-shadow: none;
    height: auto;
    padding: 10px 12px;
    color: var(--rd-ink);
    transition: border-color .15s, box-shadow .15s;
}
.rd-book .form-control.rds:focus,
.rd-book .cstm_select:focus,
.rd-book .myselect:focus {
    border-color: var(--rd-moss) !important;
    box-shadow: 0 0 0 3px rgba(62,94,80,.14);
    outline: none;
}
.rd-book .red { color: #DC2626 !important; font-size: 12px; }

/* ---------- Per-room cost box ---------- */
.rd-book .custm_row3 {
    background: #FAFBF9;
    border: 1px solid var(--rd-sage-line);
    border-radius: 12px;
    padding: 12px 14px;
}
.rd-book .leftcolm { color: var(--rd-ink-soft); font-size: 13px; padding: 5px 0; }
.rd-book .rightcolm { color: var(--rd-ink); font-weight: 700; text-align: right; white-space: nowrap; }
.rd-book .custm_rowfooter { border-top: 1px solid var(--rd-sage-line); margin-top: 6px; }
.rd-book .rightfooter { color: var(--rd-ink); font-weight: 700; font-size: 16px; padding-top: 8px; }

/* ---------- Services tables ---------- */
.rd-book .service_tbl_head {
    background: var(--rd-sage);
    color: var(--rd-canopy);
    font-weight: 700;
    font-size: 12px;
    padding: 10px;
    border: none;
}
.rd-book .service_tbl_td { color: var(--rd-ink); padding: 10px; border-bottom: 1px solid var(--rd-sage-line); }
.rd-book .total_servicetbl { color: var(--rd-ink); font-weight: 700; }

/* horizontal-scroll fallback so wide service tables never overflow their card */
.rd-book #optionalservice,
.rd-book #extraservice { overflow-x: auto; }

/* ----- Services tables: data left, money right  [added 2026-08-21] -----
   The legacy .service_tbl_td centres every cell, which left the service names
   ragged and made the amounts impossible to scan down the column. Desktop only —
   the <=767px stacked-card layout further down has its own label:value alignment. */
@media (min-width: 768px) {
    .rd-book #optionalservice th.service_tbl_head,
    .rd-book #extraservice th.service_tbl_head,
    .rd-book #optionalservice td.service_tbl_td,
    .rd-book #extraservice td.service_tbl_td {
        text-align: left;
        vertical-align: middle;
        padding: 11px 14px;
        /* legacy sets a 1px box on every cell — drop the grid, keep row rules only */
        border: none;
        border-bottom: 1px solid var(--rd-sage-line);
    }
    .rd-book #optionalservice th.service_tbl_head,
    .rd-book #extraservice th.service_tbl_head {
        text-transform: uppercase;
        letter-spacing: .04em;
        white-space: nowrap;
    }
    /* Money columns right-aligned: the last column of each table, plus
       "Price per Unit" (5th) in the optional table. */
    .rd-book #optionalservice > table > tbody > tr > *:nth-child(5),
    .rd-book #optionalservice > table > tbody > tr > *:last-child,
    .rd-book #extraservice > table > tbody > tr > *:last-child {
        text-align: right;
        white-space: nowrap;
    }
    /* tabular figures so the digits line up under each other */
    .rd-book #optionalservice > table > tbody > tr > td:nth-child(5),
    .rd-book #optionalservice > table > tbody > tr > td:last-child,
    .rd-book #extraservice > table > tbody > tr > td:last-child {
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }
    /* service name carries the row — give it a little more weight than the description */
    .rd-book #optionalservice > table > tbody > tr > td:first-child,
    .rd-book #extraservice > table > tbody > tr > td:first-child { font-weight: 600; }
    .rd-book #optionalservice > table > tbody > tr > td:nth-child(3),
    .rd-book #extraservice > table > tbody > tr > td:nth-child(2) { color: var(--rd-ink-soft); }
    /* row hover (skip the header row) + no trailing rule on the last row */
    .rd-book #optionalservice > table > tbody > tr:not(:first-child):hover > td,
    .rd-book #extraservice > table > tbody > tr:not(:first-child):hover > td { background: var(--rd-sage); }
    .rd-book #optionalservice > table > tbody > tr:last-child > td,
    .rd-book #extraservice > table > tbody > tr:last-child > td { border-bottom: none; }
}

/* Option Name cell: the legacy .chk is `margin: 5px 20px; padding-left: 10px`, which
   pushed the name 30px off the column's left edge, and its checkbox is drawn with
   label::before — an inline box, so a name that wraps starts its 2nd line UNDER the
   checkbox instead of under the 1st line. Making the label a flex row puts the box in
   its own column and keeps every line of the name aligned to one left edge. */
.rd-book #optionalservice .checkbox.chk {
    margin: 0;
    padding-left: 0;
}
.rd-book #optionalservice .checkbox.chk label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding-left: 0;
    font-weight: 600;
    color: var(--rd-ink);
}
.rd-book #optionalservice .checkbox.chk label:before {
    flex: none;
    margin-right: 0;
    bottom: 0;
    border-radius: 4px;
    border: 1.5px solid var(--rd-moss);
}
.rd-book #optionalservice input[type=checkbox]:checked + label:before { color: var(--rd-canopy); }

/* Units dropdown — legacy is a 22px-tall box with a stray 20px left padding */
.rd-book #optionalservice .cstm_select_tbl {
    height: 32px;
    width: auto;
    min-width: 64px;
    padding: 4px 8px;
    margin: 0;
    border: 1px solid var(--rd-sage-line);
    border-radius: var(--rd-radius-sm);
    background: #fff;
    color: var(--rd-ink);
    cursor: pointer;
}

/* Total Service(s) Amount — label left, amount right, matching the tables above.
   Legacy paints this bar solid orange (#f05c2c), which is the only orange left on
   the page; retone it to the theme's soft surface. */
.rd-book .total_servicetbl {
    background: var(--rd-sage);
    color: var(--rd-ink);
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
}
.rd-book .total_servicetbl:first-child { border-radius: var(--rd-radius-sm) 0 0 var(--rd-radius-sm); }
.rd-book .total_servicetbl.wght600 {
    text-align: right;
    font-variant-numeric: tabular-nums;
    padding-left: 28px;
    border-radius: 0 var(--rd-radius-sm) var(--rd-radius-sm) 0;
}

/* ----- Services tables → stacked cards on phones (label:value rows) ----- */
@media (max-width: 767px) {
    .rd-book #optionalservice > table,
    .rd-book #extraservice > table,
    .rd-book #optionalservice > table > tbody,
    .rd-book #extraservice > table > tbody { display: block; width: 100%; }

    /* hide the column-header row (labels move inline via data-label) */
    .rd-book #optionalservice > table > tbody > tr:first-child,
    .rd-book #extraservice > table > tbody > tr:first-child { display: none; }

    /* each data row → a card */
    .rd-book #optionalservice > table > tbody > tr,
    .rd-book #extraservice > table > tbody > tr {
        display: block;
        border: 1px solid var(--rd-sage-line);
        border-radius: var(--rd-radius-sm);
        background: #fff;
        padding: 4px 14px 8px;
        margin-bottom: 12px;
    }

    /* each cell → label : value row */
    .rd-book #optionalservice > table > tbody > tr > td,
    .rd-book #extraservice > table > tbody > tr > td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        text-align: right;
        padding: 8px 0;
        border-bottom: 1px dashed var(--rd-sage-line);
    }
    .rd-book #optionalservice > table > tbody > tr > td:last-child,
    .rd-book #extraservice > table > tbody > tr > td:last-child { border-bottom: none; }

    /* label pulled from data-label */
    .rd-book #optionalservice > table > tbody > tr > td::before,
    .rd-book #extraservice > table > tbody > tr > td::before {
        content: attr(data-label);
        flex: none;
        font-weight: 600;
        color: var(--rd-ink-soft);
        text-align: left;
        white-space: nowrap;
    }

    /* first cell = card title (checkbox + name / service name) — full width, no label */
    .rd-book #optionalservice > table > tbody > tr > td:first-child,
    .rd-book #extraservice > table > tbody > tr > td:first-child {
        display: block;
        text-align: left;
        font-weight: 700;
        color: var(--rd-ink);
        padding: 4px 0 8px;
        border-bottom: 1px solid var(--rd-sage-line);
    }
    .rd-book #optionalservice > table > tbody > tr > td:first-child::before,
    .rd-book #extraservice > table > tbody > tr > td:first-child::before { display: none; }

    /* tighten the checkbox box + name in the title cell (drop the app/Bootstrap left indent) */
    .rd-book #optionalservice > table > tbody > tr > td:first-child .checkbox.chk { margin: 0; padding: 0; }
    .rd-book #optionalservice > table > tbody > tr > td:first-child .checkbox.chk label {
        display: inline-flex;
        align-items: center;
        padding-left: 0;
        margin: 0;
    }

    /* units dropdown compact, right-aligned in its row */
    .rd-book #optionalservice .cstm_select_tbl { width: auto; min-width: 72px; }

    /* total-service band stretches full width */
    .rd-book .list_top2 > div[style*="float"] { float: none !important; width: 100%; }
}

/* ---------- Coupon + totals band (was teal #317079 → deep canopy panel) ---------- */
.rd-book [style*="317079"] {
    background: var(--rd-canopy-deep) !important;
    border-radius: var(--rd-radius);
}
.rd-book .top3_leftcol { color: #D3DBE2 !important; font-size: 13px; }
.rd-book .top3_rightcol { color: #fff !important; font-weight: 700; }
.rd-book .top3_leftcol.wght600 { color: #fff !important; }
.rd-book [style*="coral"] { color: var(--rd-lantern) !important; }
.rd-book .cstm_hr { border-color: rgba(255,255,255,.18); }
.rd-book .coupon_input {
    border: 1px solid var(--rd-sage-line);
    border-radius: 9px;
    padding: 9px 12px;
    color: var(--rd-ink);
    background: #fff;
}
/* Follows the hotel's brand colour: --rd-canopy is rewritten per hotel from the DB
   Colorcode, and it is auto-darkened to AA contrast against white, so white button
   text stays readable whatever colour a hotel picks. */
.rd-book .coupon_btn,
.rd-book .coupon_btn1 {
    background: var(--rd-sage);
    color: var(--rd-canopy);
    font-weight: 700;
    border: 1px solid var(--rd-sage-line);
    border-radius: 9px;
    padding: 9px 16px;
    transition: background .18s, border-color .18s, color .18s;
}
.rd-book .coupon_btn:hover,
.rd-book .coupon_btn1:hover {
    background: var(--rd-sage-line);
    border-color: var(--rd-moss);
    color: var(--rd-canopy-deep);
}

/* ---------- Payment ---------- */
.rd-book .paymenttabcordion .nav-tabs { border-bottom: 1px solid var(--rd-sage-line); }
.rd-book .paymenttabcordion .nav-tabs > li.active > a {
    color: var(--rd-canopy);
    font-weight: 700;
    border-color: var(--rd-sage-line) var(--rd-sage-line) transparent;
    border-radius: 10px 10px 0 0;
}
.rd-book .img_gate { border: 1px solid var(--rd-sage-line); border-radius: 8px; padding: 3px; background: #fff; }
.rd-book .radio label { color: var(--rd-ink); }

/* ---------- Terms checkbox ---------- */
.rd-book .chk label:before {
    height: 20px !important;
    width: 20px !important;
    border: 1.5px solid var(--rd-moss) !important;
    border-radius: 5px;
    line-height: 15px !important;
}
.rd-book input[type=checkbox]:checked + label:before {
    font-size: 20px !important;
    color: var(--rd-canopy) !important;
    line-height: 16px !important;
}
.rd-book .chk a { color: var(--rd-moss); font-weight: 700; cursor: pointer; }

/* ---------- Confirm booking = single primary action → hotel brand colour ----------
   Uses --rd-canopy so it re-tints automatically with the hotel's DB Colorcode. The
   drop shadow is a neutral dark tint rather than a colour-matched one, since a
   per-hotel shadow colour can't be derived from a CSS variable. */
.rd-book .book_btn {
    display: inline-block;
    background: var(--rd-canopy);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .02em;
    padding: 15px 44px;
    border-radius: 11px;
    box-shadow: 0 6px 16px rgba(15,23,32,.22);
    text-decoration: none;
    transition: background .18s, color .18s, transform .18s;
}
.rd-book .book_btn:hover { background: var(--rd-canopy-deep); color: #fff; transform: translateY(-1px); text-decoration: none; }

/* ---------- Footer ---------- */
/* Plain footer bar — slate (same as the Order-summary heading), centred note */
.rd-book .fixed_footer {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--rd-canopy);
    border-top: none;
    box-shadow: 0 -4px 16px rgba(15,23,32,.12);
    padding: 12px 0;
    z-index: 60;
}
.rd-book .fixed_footer .col-sm-12 { display: flex; align-items: center; justify-content: center; }
.rd-book .rd-footer-note {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #EAF1EA;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.rd-book .rd-footer-note svg { width: 15px; height: 15px; color: #AEB8C2; flex: none; }

/* leave room for the fixed footer; the old mobile bar is now redundant */
.rd-book { padding-bottom: 64px; }
.rd-book .rd-mobilebar { display: none !important; }

@media (prefers-reduced-motion: reduce) { .rd-book * { transition: none !important; } }

/* ============================================================
   PAGE 1 — extra fidelity to mc-resort-booking-redesign.html
   (availability pill, price block + GST note, room-action bar)
   ============================================================ */

/* Availability = calm pill with a status dot (mockup .avail.ok) */
.rd-list .remain_room {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}
.rd-list .remain_room::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

/* Price block (mockup .price) + GST note under the amount */
.rd-list .price_nyt { font-size: 28px; line-height: 1.1; }
.rd-list .per_nyt { font-size: 13px; color: var(--rd-ink-soft); font-weight: 400; }
.rd-list .price_nyt::after {
    content: "GST applied at checkout per current slab";
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--rd-ink-soft);
    margin-top: 3px;
}
/* Capacity + extra adult/child cost, shown under the GST note (medium font) */
.rd-list .rd-rateinfo {
    clear: both;          /* drop below the floated .price_nyt, not beside it */
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--rd-ink-soft);
}
.rd-list .rd-rateinfo::before {
    content: "Occupancy details";
    flex: 0 0 100%;       /* full-width caption → details wrap onto the next line */
    font-size: 12px;
    font-weight: 700;
    color: var(--rd-ink);
    margin-bottom: 1px;
}
.rd-list .rd-rateinfo-item { white-space: nowrap; cursor: default; }
.rd-list .rd-rateinfo-item b { color: var(--rd-ink); font-weight: 700; }
/* icon-based occupancy details (hover tooltip shows the label) */
.rd-list .rd-rateinfo-item .fa { color: var(--rd-moss); margin-right: 5px; }
/* enlarge ONLY the occupancy icons — leave the ₹ currency icon at price-text size */
.rd-list .rd-rateinfo-item .fa-user,
.rd-list .rd-rateinfo-item .fa-child,
.rd-list .rd-rateinfo-item .fa-user-plus { font-size: 20px; vertical-align: -2px; }
.rd-list .rd-rateinfo-item .rd-xtra { color: var(--rd-lantern-deep); font-weight: 700; font-size: 9px; vertical-align: super; }
/* uib-tooltip theme (match the redesign) — global, appended to body */
.tooltip-inner { background-color: var(--rd-canopy) !important; color: #fff; border-radius: 6px; padding: 5px 10px; font-size: 12px; font-family: var(--rd-font); }
.tooltip.top .tooltip-arrow, .tooltip.top-left .tooltip-arrow, .tooltip.top-right .tooltip-arrow { border-top-color: var(--rd-canopy) !important; }
.tooltip.bottom .tooltip-arrow { border-bottom-color: var(--rd-canopy) !important; }

/* Rate-plan selection area as the mockup's light "room-action" bar */
.rd-list .responsive_new {
    background: #FAFBF9;
    border: 1px solid var(--rd-sage-line);
    border-radius: 12px;
    padding: 4px 8px;
    margin-top: 16px;
}
.rd-list .responsive_new > table {
    border: none;
    border-radius: 0;
    background: transparent;
}
.rd-list .responsive_new > table td.roomdetail_add {
    border-right-color: var(--rd-sage-line) !important;
}

/* Card breathing room to match the mockup proportions */
.rd-list .bg_set12 { padding: 18px; }

/* ============================================================
   Steppers (h-number) — make the - / + symbols clearly visible.
   Template renders: <span class="input-group-addon">-</span>
                     <label class="form-control">{{value}}</label>
                     <span class="input-group-addon">+</span>
   ============================================================ */
.rd-list .roomlist-counter .input-group-addon,
.rd-book .roomlist-counter .input-group-addon,
.rd-book .guest-counter .input-group-addon {
    background: var(--rd-sage);
    color: var(--rd-moss);
    border: 1px solid var(--rd-sage-line);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.rd-list .roomlist-counter .input-group-addon:hover,
.rd-book .roomlist-counter .input-group-addon:hover,
.rd-book .guest-counter .input-group-addon:hover {
    background: var(--rd-moss);
    color: #fff;
}
.rd-list .roomlist-counter .form-control,
.rd-book .roomlist-counter .form-control,
.rd-book .guest-counter .form-control {
    color: var(--rd-ink);
    font-weight: 700;
    background: #fff;
    border-color: var(--rd-sage-line);
    box-shadow: none;
}

/* Popover content (checkbox / Details hover) — guarantee readable text */
.popover,
.popover .popover-content { background: #fff !important; color: var(--rd-ink); }
.popover { min-width: 130px; }
.popover .popover-content { font-size: 13px; padding: 9px 12px; color: var(--rd-ink) !important; }
.popover .popover-content td,
.popover .popover-content th,
.popover .popover-content span { color: var(--rd-ink) !important; }

/* ---- Search row: clean card, readable heading, aligned fields ---- */
.rd-list .cust_12_marg {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    background: var(--rd-surface);
    border: 1px solid var(--rd-sage-line);
    border-radius: var(--rd-radius);
    box-shadow: var(--rd-shadow);
    padding: 12px 18px;
    margin: 12px 0 24px;
}
.rd-list .cust_12_marg > .col-sm-4 {
    width: auto;
    color: var(--rd-ink);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding-top: 0;
    display: flex;
    align-items: center;
}
.rd-list .cust_12_marg > .col-sm-8 { width: auto; flex: 1; min-width: 260px; }
.rd-list .cust_12_marg .col-sm-8 > div {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}
.rd-list .custom_width_in,
.rd-list .custom_width_out,
.rd-list .div_nyt {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}
.rd-list .date_search { display: inline-flex; align-items: center; justify-content: center; }

/* ---- Offer badge — clean centred gold pill (was off-centre on the hidden starburst) ---- */
.rd-list .hotel_content .right_offer {
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    margin: 4px 0;
}
.rd-list .hotel_content .offer {
    position: static !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1;
    text-align: center;
    padding: 7px 14px;
}
.rd-list .hotel_content .offer br { display: none !important; }
.rd-list .hotel_content .offer b {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    color: #241A05 !important;
    line-height: 1 !important;
}

/* ============================================================
   PAGE 1 — unified room card (mockup .room): name INSIDE the
   card, image flush on the left, tighter gaps + section heads.
   ============================================================ */

/* Section headings (Rates by date / Choose your rooms) */
.rd-list .rd-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--rd-ink);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 6px 0 12px;
}
.rd-list .rd-section-count {
    font-size: 13px;
    font-weight: 400;
    color: var(--rd-ink-soft);
    letter-spacing: 0;
}

/* Date strip cells (mockup "Rates by date") */
.rd-list .slickblue {
    background: var(--rd-surface);
    border: 1px solid var(--rd-sage-line);
    border-radius: 12px;
    padding: 12px 8px;
    margin: 0 4px;
    min-width: 82px;
    text-align: center;
    transition: border-color .16s, transform .16s, box-shadow .16s;
}
.rd-list .slickblue:hover {
    border-color: var(--rd-moss);
    transform: translateY(-2px);
    box-shadow: var(--rd-shadow);
}
.rd-list .slickblue > div:first-child {
    font-size: 12px;
    color: var(--rd-ink);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.25;
}
.rd-list .slickblue > div:nth-child(2),
.rd-list .slickblue > div:nth-child(2) span {
    color: var(--rd-lantern-deep);
    font-weight: 700;
    font-size: 16px;
}
.rd-list .slickblue > div:first-child { font-size: 12.5px; }
.rd-list .slickblue { padding: 12px 8px 13px; }

/* Name now lives inside the card → hide the old heading above it */
.rd-list .timeline-title { display: none !important; }
.rd-list .rd-room-name {
    color: var(--rd-ink);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
    margin: 0 0 8px;
}

/* One clean box: image flush-left, content padded */
.rd-list .bg_set12 {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}
.rd-list .bg_set12 > .col-sm-4 {           /* image column */
    padding: 0 !important;
    flex: 0 0 40%;
    max-width: 340px;
    /* Fixed 4:3 photo box instead of stretching to the text height. Stretching
       made the crop change from room to room (near-square on long descriptions,
       landscape on short ones); pinning the ratio means one predictable crop that
       hotels can compose their uploads for. align-self stops the flex stretch.
       Browsers without aspect-ratio simply fall back to the old stretch. */
    align-self: flex-start;
    max-height: none;
    /* height comes from the photo's 4:3 ratio further down; the column just wraps it */
    /* Since the photo no longer runs to the card's bottom edge, inset it so the
       shorter box reads as a deliberate thumbnail rather than a gap. */
    margin: 18px 0 18px 18px;
}
.rd-list .bg_set12 > .col-sm-5 {           /* content column */
    padding: 20px 22px !important;
    flex: 1;
    width: auto;
    min-width: 300px;
}
.rd-list .bg_set12 > .col-sm-3 { padding: 16px !important; }
.rd-list .bg_set12 > .col-sm-3:not(:has(.pad_all)) { display: none; }  /* hide empty OTA column */
.rd-list .bg_set12 > .col-sm-12 {          /* rate-plan bar spans full width */
    flex: 0 0 100%;
    width: 100%;
    padding-left: 22px !important;
    padding-right: 22px !important;
    order: 2;                              /* keep the rate-plan bar above the full-width OTA panel */
}
/* Full-width OTA panel drops BELOW the rate-plan bar (customer request):
   rate bar = order 2, OTA panel = order 3; image/content stay at default 0. */
.rd-list .bg_set12 > .col-sm-3:has(.rd-ota) { order: 3; }

/* Compact card (customer request 2026-08-04): place the availability pill +
   "Cancellation policy" button in the empty space to the RIGHT of the price /
   occupancy details — anchored to the bottom so they line up with that block. */
.rd-list .bg_set12 > .col-sm-5 { position: relative; }
/* reserve a right gutter on the price/occupancy block so it doesn't run under the meta */
.rd-list .bg_set12 > .col-sm-5 > div:has(> .price_nyt) { padding-right: 162px; }
/* availability pill → upper-right, above the stacked buttons */
.rd-list .bg_set12 > .col-sm-5 .remain_room {
    position: absolute !important;
    bottom: 86px;
    right: 22px;
    float: none !important;
    margin: 0 !important;
    z-index: 3;
}
/* "Cancellation policy" (+ "Check Prices" for OTA) → STACKED vertically, bottom-right,
   so they don't run side-by-side and overlap the occupancy details. */
.rd-list .bg_set12 > .col-sm-5 > div:has(> .policy_btn) {
    position: absolute;
    bottom: 14px;
    right: 22px;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    z-index: 3;
}
.rd-list .bg_set12 > .col-sm-5 > div:has(> .policy_btn) .price_btn,
.rd-list .bg_set12 > .col-sm-5 > div:has(> .policy_btn) .policy_btn {
    float: none !important;
    margin: 0 !important;
}

/* Photo box. The IMAGE carries the 4:3 ratio and every wrapper simply shrinks to
   it, all in normal flow. The previous version absolute-filled each carousel layer
   instead, which let the container end up taller than the rendered photo — and
   since the prev/next controls are positioned against that container, the arrows
   sat below the photo's midpoint. Sizing from the image keeps container height
   and photo height identical, so "centred" means centred on the picture. */
.rd-list .bg_set12 > .col-sm-4 {
    position: relative;
    overflow: hidden;
}
/* NB: .item is deliberately NOT in this list. Bootstrap positions the slides
   itself — .active stays relative (it gives .carousel-inner its height) while the
   incoming .next/.prev are absolute so they OVERLAY it during the 3s auto-advance.
   Forcing position:relative on .item drops the incoming slide into flow and the
   card briefly renders two photos side by side. */
.rd-list .bg_set12 > .col-sm-4 [uib-carousel],
.rd-list .bg_set12 > .col-sm-4 .carousel,
.rd-list .bg_set12 > .col-sm-4 .carousel-inner {
    position: relative !important;
    top: auto; left: auto; right: auto; bottom: auto;
    width: 100%;
    height: auto;
    margin: 0;
}
/* The card renders TWO photo elements: this legacy no-photo block (ng-if on
   RoomPhotoName) and the carousel. They must overlap, not stack — .right_offer is
   float:left;width:15% in the legacy CSS, so in normal flow it shows up as a
   narrow strip beside the photo. Overlay it and let the carousel set the height. */
.rd-list .bg_set12 > .col-sm-4 > .right_offer {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    float: none !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    z-index: 1;
}
.rd-list .bg_set12 > .col-sm-4 > .right_offer img {
    height: 100% !important;
    aspect-ratio: auto;
}
.rd-list .bg_set12 > .col-sm-4 img {
    position: relative !important;
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0 !important;
}
/* Round ALL corners across every layer (column + carousel layers + img). The
   photo is now an inset, fixed-ratio thumbnail rather than a full-height panel
   flush to the card edges, so left-only rounding would leave square corners
   floating inside the card. */
.rd-list .bg_set12 > .col-sm-4,
.rd-list .bg_set12 > .col-sm-4 [uib-carousel],
.rd-list .bg_set12 > .col-sm-4 .carousel,
.rd-list .bg_set12 > .col-sm-4 .carousel-inner,
.rd-list .bg_set12 > .col-sm-4 .item,
.rd-list .bg_set12 > .col-sm-4 img {
    border-radius: var(--rd-radius) !important;
}

/* Carousel chrome — shared by the ROOM cards (.bg_set12 > .col-sm-4) and the
   PROPERTY DETAILS panel (.bg_set12_new > .col-sm-5), so both galleries get the
   same dots and prev/next arrows. Keep the dots + arrows above the absolute-fill
   image, which would otherwise cover them. */
.rd-list .bg_set12 > .col-sm-4 .carousel-indicators,
.rd-list .bg_set12 > .col-sm-4 .carousel-control,
.rd-list .bg_set12_new > .col-sm-5 .carousel-indicators,
.rd-list .bg_set12_new > .col-sm-5 .carousel-control { z-index: 6; }
/* Bootstrap centres the dots with left:50% + width:60% + margin-left:-30%, so
   zeroing the margin alone pushed them off to the right. Span the full width and
   let the inherited text-align:center do the centring. */
.rd-list .bg_set12 > .col-sm-4 .carousel-indicators,
.rd-list .bg_set12_new > .col-sm-5 .carousel-indicators {
    bottom: 8px;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    padding-left: 0;
    text-align: center;   /* stated explicitly — the dots were sitting bottom-left */
}
.rd-list .bg_set12 > .col-sm-4 .carousel-indicators li,
.rd-list .bg_set12_new > .col-sm-5 .carousel-indicators li {
    width: 7px; height: 7px; margin: 0 3px;
    background: rgba(255,255,255,.5);
    border: 1px solid rgba(255,255,255,.85);
}
.rd-list .bg_set12 > .col-sm-4 .carousel-indicators .active,
.rd-list .bg_set12_new > .col-sm-5 .carousel-indicators .active {
    width: 8px; height: 8px; margin: 0 3px; background: #fff;
}
.rd-list .bg_set12 > .col-sm-4 .carousel-control,
.rd-list .bg_set12_new > .col-sm-5 .carousel-control {
    opacity: 1;
    background: none !important;
    width: 44px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.rd-list .bg_set12 > .col-sm-4 .carousel-control:hover,
.rd-list .bg_set12 > .col-sm-4 .carousel-control:focus,
.rd-list .bg_set12_new > .col-sm-5 .carousel-control:hover,
.rd-list .bg_set12_new > .col-sm-5 .carousel-control:focus { color: #fff; opacity: 1; }
/* Centre the chevrons ON THE PHOTO. A full-height control that relies on flex to
   centre its contents drifts: the glyph's font box and the .sr-only label that
   ui-bootstrap injects both count towards what gets centred. Instead size the
   control to the chip (38px) and hang it off the midpoint with margin-top of
   exactly half its height — that is centred by arithmetic, not by layout. */
.rd-list .bg_set12 > .col-sm-4 .carousel-control.left,
.rd-list .bg_set12 > .col-sm-4 .carousel-control.right,
.rd-list .bg_set12_new > .col-sm-5 .carousel-control.left,
.rd-list .bg_set12_new > .col-sm-5 .carousel-control.right {
    top: 50%;
    bottom: auto;
    left: auto;
    right: auto;
    width: 38px;
    height: 38px;
    margin-top: -19px;   /* half of height */
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rd-list .bg_set12 > .col-sm-4 .carousel-control.left,
.rd-list .bg_set12_new > .col-sm-5 .carousel-control.left { left: 10px; }
.rd-list .bg_set12 > .col-sm-4 .carousel-control.right,
.rd-list .bg_set12_new > .col-sm-5 .carousel-control.right { right: 10px; }
.rd-list .bg_set12 > .col-sm-4 .carousel-control .glyphicon,
.rd-list .bg_set12 > .col-sm-4 .carousel-control .icon-prev,
.rd-list .bg_set12 > .col-sm-4 .carousel-control .icon-next,
.rd-list .bg_set12_new > .col-sm-5 .carousel-control .glyphicon,
.rd-list .bg_set12_new > .col-sm-5 .carousel-control .icon-prev,
.rd-list .bg_set12_new > .col-sm-5 .carousel-control .icon-next {
    position: static;   /* drop bootstrap's absolute 50% + negative margins */
    margin: 0;
    /* --- circular chip [added 2026-08-21; delete this block to go back to bare
       white chevrons] ---------------------------------------------------------
       A fixed, square box is what makes the centring exact: with line-height:normal
       the font's ascender/descender padding sits inside the box and the visible
       chevron lands a few px below centre. The tinted circle also keeps the arrows
       readable over bright photos, where a white glyph disappears. */
    display: block;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    font-size: 19px;
    border-radius: 50%;
    background: rgba(15, 23, 32, .45);
    text-shadow: none;
    transition: background .15s ease;
}
.rd-list .bg_set12 > .col-sm-4 .carousel-control:hover .glyphicon,
.rd-list .bg_set12 > .col-sm-4 .carousel-control:hover .icon-prev,
.rd-list .bg_set12 > .col-sm-4 .carousel-control:hover .icon-next,
.rd-list .bg_set12_new > .col-sm-5 .carousel-control:hover .glyphicon,
.rd-list .bg_set12_new > .col-sm-5 .carousel-control:hover .icon-prev,
.rd-list .bg_set12_new > .col-sm-5 .carousel-control:hover .icon-next {
    background: rgba(15, 23, 32, .72);
}

/* Kill the inline min-height:110px on the description — it was forcing a big
   empty gap under short room descriptions (main cause of the tall cards). */
.rd-list .left_cnt { min-height: 0 !important; overflow: visible !important; float: none !important; width: 100% !important; }
.rd-list .hotel_content { min-height: 0 !important; }
.rd-list .rd-amenities { margin: 12px 0; }
.rd-list .price_nyt { margin-top: 2px; }

/* ---- Overall polish ---- */
/* Neutralise leftover orange on the check-in/out date fields */
.rd-list .date_clr,
.rd-list .marg12_0 { color: var(--rd-ink) !important; }
.rd-list .custm_marg { color: var(--rd-ink-soft) !important; }
.rd-list .custom_width_in .fa,
.rd-list .custom_width_out .fa { color: var(--rd-ink-soft) !important; }

/* Consistent section rhythm + tighter gap between cards.
   Legacy adds .timeline-content{margin-bottom:50px} AND
   .timeline-hotel-view .timeline-block{padding-bottom:50px} — override BOTH. */
.rd-list .rd-section-head { margin: 20px 0 12px; }
.rd-list .timeline-hotel-view .timeline-content { margin: 0 !important; }
.rd-list .timeline-hotel-view .timeline-block { padding-bottom: 16px !important; }
.rd-list .bg_set12 { margin-bottom: 0; }

/* Keep the offer badge from crowding the description */
.rd-list .hotel_content .right_offer { margin: 6px 0 0; }

/* Tighter gap between category cards */
.rd-list .timeline-hotel-view .timeline-content { margin: 0 0 14px 0 !important; }
.rd-list .timeline-block { margin-bottom: 0; }
.rd-list .timeline { margin: 0; }

/* Bottom action bar — flush & attached to the card (mockup .room-action),
   NOT a separate floating box. Top border, no vertical dividers. */
.rd-list .bg_set12 > .responsive_new {
    flex: 0 0 100%;
    width: 100%;
    margin: 0 !important;
    padding: 6px 14px !important;
    background: #FAFBF9;
    border: none;
    border-top: 1px solid var(--rd-sage-line);
    border-radius: 0;
}
.rd-list .responsive_new > table { width: 100%; margin: 0; }
.rd-list .responsive_new td.roomdetail_add {
    border: none !important;          /* kill the white/sage vertical dividers */
    padding: 12px 12px;
    vertical-align: middle;
    font-size: 14px;
    color: var(--rd-ink);
}
.rd-list .responsive_new td.roomdetail_add:last-child {
    text-align: right;
    font-weight: 700;
}
.rd-list .responsive_new .bigcheck { font-size: 18px; font-weight: 700; }
.rd-list .responsive_new td.roomdetail_add:last-child { font-size: 18px; }

/* First cell holds the rate-plan NAME (left) and the pay@hotel badge (right).
   Name flows left; badge floats to the right, just before the "Details" column. */
.rd-list .responsive_new > table td.roomdetail_add:first-child { text-align: left; }
.rd-list .rd-payhotel {
    float: right;
    height: 30px;
    width: auto;
    margin-left: 12px;
    margin-right: 6px;
}

/* "Add to stay" button (mockup) — selection via the existing roomcheck flow.
   Show the rate-plan NAME on the left of the row, but hide only the checkbox
   (input + label) since the button now handles add/remove. Needed so multiple
   rate plans per room are distinguishable. */
.rd-list .responsive_new .chk {
    display: inline-block;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--rd-ink);
    line-height: 1.35;
    vertical-align: middle;
}
.rd-list .responsive_new .chk > span { display: none; }   /* the checkbox + its label */
.rd-list .rd-add-cell { text-align: center; white-space: nowrap; }
.rd-list .rd-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--rd-canopy);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s, transform .15s;
}
.rd-list .rd-add-btn:hover { background: var(--rd-canopy-deep); transform: translateY(-1px); }
/* Added state → filled dark green (base theme colour), so an added room reads as selected */
.rd-list .rd-add-btn.added { background: var(--rd-canopy-deep); color: #fff; }
.rd-list .rd-add-btn.added:hover { background: var(--rd-canopy); }

/* Price on ONE line: "₹1500 1125 / Night" (GST note stays on its own line) */
.rd-list .price_nyt { white-space: nowrap; }
.rd-list .per_nyt { display: inline; white-space: nowrap; }

/* Bottom bar: push the Rooms stepper + Add-to-stay + price to the RIGHT.
   First cell (plan name) grows to eat the slack so the controls pack right. */
.rd-list .responsive_new > table { width: 100%; table-layout: auto; }
.rd-list .responsive_new > table td.roomdetail_add { white-space: nowrap; }
.rd-list .responsive_new > table td.roomdetail_add:first-child { width: 99%; white-space: normal; }

/* Room card — soft float + hover lift */
.rd-list .bg_set12 {
    transition: box-shadow .2s ease, transform .2s ease;
}
.rd-list .bg_set12:hover { box-shadow: var(--rd-shadow-lift); transform: translateY(-2px); }

/* Rounded room imagery */
.rd-list [uib-carousel] img,
.rd-list [uib-carousel] .carousel-inner,
.rd-list [uib-carousel] .item { border-radius: 14px; }
.rd-list [uib-carousel] .carousel-inner { overflow: hidden; }

/* Offer — was an orange starburst; now a clean gold pill */
.rd-list .hotel_content .right_offer img { display: none !important; }   /* offers.png ribbon has inline display:block */
.rd-list .hotel_content .offer {
    display: inline-block;
    background: linear-gradient(135deg, var(--rd-lantern), var(--rd-lantern-deep));
    color: #241A05;
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 13px;
    box-shadow: 0 4px 12px rgba(217,164,65,.3);
    line-height: 1.1;
}
.rd-list .hotel_content .offer b {
    color: #241A05 !important;
    padding: 0 !important;
    font-size: 14px !important;
}
.rd-list .hotel_content .offer br { display: none; }

/* Segmented tabs — gold accent on the active one */
.rd-list .tab1 {
    padding: 13px 18px;
    transition: background .15s, color .15s;
}
.rd-list .tab1_active { box-shadow: inset 0 -3px 0 var(--rd-lantern); }

/* Date strip — gold ring when hovered */
.rd-list .slickblue:hover { box-shadow: 0 0 0 2px var(--rd-lantern-deep) inset; }

/* Rate-plan table — rounded, hairline framed */
.rd-list .responsive_new > table {
    border: 1px solid var(--rd-sage-line);
    border-radius: 12px;
    overflow: hidden;
}
.rd-list .responsive_new > table td { vertical-align: middle; }

/* Property panel photo — same treatment as the room cards: a fixed 4:3 box with
   a cover crop. The markup carries an inline width:100%;height:200px on the <img>
   with no object-fit, so the photo was being squashed to that box; pinning the
   ratio and cropping with object-fit keeps it undistorted and predictable. */
.rd-list .bg_set12_new > .col-sm-5 {
    position: relative;
    overflow: hidden;
    max-width: 380px;
    border-radius: 12px;
}
/* .item omitted on purpose — see the note on the room-card rule above. */
.rd-list .bg_set12_new > .col-sm-5 [uib-carousel],
.rd-list .bg_set12_new > .col-sm-5 .carousel,
.rd-list .bg_set12_new > .col-sm-5 .carousel-inner {
    position: relative !important;
    top: auto; left: auto; right: auto; bottom: auto;
    width: 100%;
    height: auto;
    margin: 0;
}
.rd-list .bg_set12_new > .col-sm-5 img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0 !important;
}
/* Property panel imagery rounding */
.rd-list .bg_set12_new [uib-carousel] img,
.rd-list .bg_set12_new > .col-sm-5 .carousel-inner,
.rd-list .bg_set12_new > .col-sm-5 .item { border-radius: 12px; }

/* Selected Rooms bar — follows the themed deep color */
.rd-list .cstm_footer {
    background: var(--rd-canopy-deep);
}

@media (prefers-reduced-motion: reduce) { .rd-list * { transition: none !important; } }

/* ============================================================
   PAGE 2 — legacy colour overrides (found via grep):
   .custm_rowfooter{#F05C2C} orange Total bar, .bg7{#317079}/
   .bg5{#13636E} teal band, .date_clr{#f05b29 !important} orange
   dates, blue "Remove this room". Neutralise all to slate/gold.
   ============================================================ */

/* Per-room cost "Total" bar — was bright orange */
.rd-book .custm_rowfooter {
    background: var(--rd-canopy) !important;
    border-radius: 8px;
    padding: 4px 15px;
    border-top: none;
}
.rd-book .custm_rowfooter .leftcolm,
.rd-book .custm_rowfooter .rightcolm,
.rd-book .custm_rowfooter .rightfooter { color: #fff !important; }

/* Coupon + totals band — was teal (.bg7 / .bg5) */
.rd-book .bg7 { background: var(--rd-canopy) !important; }
.rd-book .bg5 { background: var(--rd-canopy-deep) !important; }
/* "Apply Coupon Code +" reddish inline text → light on the slate band */
.rd-book [style*="237, 90, 107"] { color: #E6EAEE !important; }

/* Orange check-in/out dates (legacy .date_clr has !important) → neutral ink */
.rd-book .date_clr { color: var(--rd-ink) !important; }

/* Free-age policy note → calmer muted tone (was red) */
.rd-book #Childpolicy { color: var(--rd-ink-soft) !important; }

/* "Remove this room" link (inline blue #2476bb) → terracotta */
.rd-book .hotelremoveRoom { color: var(--rd-alert) !important; }

/* Payment tab active accent → slate (was blue) */
.rd-book .paymenttabcordion .nav-tabs > li.active > a { border-top: 2px solid var(--rd-canopy); }

/* ---- Page 2 polish: per-room cost box ---- */
.rd-book .custm_row3 { margin-bottom: 16px; }
.rd-book .custm_row3 .room_name {
    color: var(--rd-canopy);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
}
.rd-book .custm_row3 > table { margin: 0 !important; }
.rd-book .custm_row3 .leftcolm,
.rd-book .custm_row3 .rightcolm { padding: 6px 0 !important; }
/* remove the big empty gap under the Total bar (legacy margin-bottom:20px) */
.rd-book .custm_rowfooter { margin: 10px 0 0 !important; }

/* ---- Page 2 polish: coupon band layout ---- */
.rd-book .bg7 {
    padding: 18px 22px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}
.rd-book .btn_set {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
}
.rd-book .coupon_input { width: 190px; margin: 0; height: 38px; }
.rd-book .coupon_btn,
.rd-book .coupon_btn1 { margin: 0; }
/* tidy the "× Remove" (inline red 18px float) + coupon message */
.rd-book div[ng-show="removespan"] span {
    color: var(--rd-alert) !important;
    font-size: 14px !important;
    float: none !important;
    padding: 0 !important;
    font-weight: 700;
}
.rd-book div[ng-bind-html="couponmsg"] { float: none !important; padding: 0 !important; }

/* ============================================================
   PAGE 2 — sticky Order Summary rail (desktop) + mobile bottom bar.
   Two-column: form (left) + sticky summary (right). Reuses the
   existing grandTotal/roomCharges/roomTax/coupon/confirm bindings.
   ============================================================ */
/* Back-to-room-selection button — right side of the ROOM DETAILS row */
.rd-book .rd-back-cell { text-align: right; margin-top: -10px; }
.rd-book .rd-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    background: #fff;
    color: var(--rd-canopy);
    border: 1px solid var(--rd-sage-line);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .15s;
}
.rd-book .rd-back:hover {
    background: var(--rd-sage);
    border-color: var(--rd-canopy);
    transform: translateX(-2px);
}
.rd-book .rd-back-ico { font-size: 17px; line-height: 1; }

.rd-book .rd-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
    margin-top: 4px;
}
.rd-book .rd-checkout-main { min-width: 0; }

/* Old bottom coupon/totals band + in-form standalone confirm → moved to the rail */
.rd-book .list_top3 { display: none !important; }
.rd-book .rd-checkout-main .book_btn { display: none !important; }

/* Sticky summary — natural height, NO internal scroll. The fixed footer bar
   carries the Confirm action, so the rail never needs to scroll. */
.rd-book .rd-summary {
    position: sticky;
    top: 16px;
    background: var(--rd-surface);
    border: 1px solid var(--rd-sage-line);
    border-radius: var(--rd-radius);
    box-shadow: var(--rd-shadow-lift);
    overflow: hidden;
}
/* Confirm + trust stay in the summary rail (footer is just a plain bar). */
.rd-book .rd-summary-head { background: var(--rd-canopy); color: #fff; padding: 16px 18px; }
.rd-book .rd-summary-head h3 { color: #fff; font-size: 17px; margin: 0; }
.rd-book .rd-summary-head p { margin: 4px 0 0; font-size: 12px; color: #AEB8C2; }
.rd-book .rd-summary-body { padding: 16px 18px; }

.rd-book .rd-sum-coupon { display: flex; gap: 8px; margin-bottom: 4px; }
.rd-book .rd-sum-coupon input {
    flex: 1; min-width: 0;
    border: 1px solid var(--rd-sage-line);
    border-radius: 9px; padding: 9px 11px;
    text-transform: uppercase;
}
/* Secondary action → LIGHT tint of the hotel colour. --rd-sage is the theme's own
   soft surface (the brand colour mixed 88% with white) and --rd-sage-line its
   hairline, so this button re-tints with the hotel exactly like the solid ones. */
.rd-book .rd-sum-coupon button {
    background: var(--rd-sage); color: var(--rd-canopy); font-weight: 700;
    border: 1px solid var(--rd-sage-line); border-radius: 9px; padding: 0 14px;
    cursor: pointer; white-space: nowrap;
    transition: background .18s, border-color .18s, color .18s;
}
.rd-book .rd-sum-coupon button:hover {
    background: var(--rd-sage-line); border-color: var(--rd-moss); color: var(--rd-canopy-deep);
}
.rd-book .rd-sum-couponmsg { font-size: 12px; min-height: 14px; margin-bottom: 6px; }

/* Applied-coupon chip with a Remove action */
.rd-book .rd-sum-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--rd-sage);
    border: 1px solid var(--rd-sage-line);
    border-radius: 9px;
    padding: 9px 12px;
    margin-bottom: 6px;
}
.rd-book .rd-sum-applied-info { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--rd-moss); }
.rd-book .rd-sum-applied-info svg { width: 15px; height: 15px; color: var(--rd-moss); flex: none; }
.rd-book .rd-sum-applied-info b { color: var(--rd-canopy); }
.rd-book .rd-sum-coupon-remove { color: var(--rd-alert); font-weight: 700; font-size: 12px; cursor: pointer; white-space: nowrap; }
.rd-book .rd-sum-coupon-remove:hover { text-decoration: underline; }

/* Available-coupons list — click one to apply it */
.rd-book .rd-sum-coupon-toggle { display: inline-block; color: var(--rd-moss); font-weight: 700; font-size: 12px; cursor: pointer; margin-bottom: 8px; }
.rd-book .rd-sum-coupon-toggle:hover { text-decoration: underline; }
.rd-book .rd-sum-coupon-options { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.rd-book .rd-sum-coupon-option {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    border: 1px dashed var(--rd-sage-line); border-radius: 8px; padding: 8px 10px;
    cursor: pointer; transition: background .15s, border-color .15s;
}
.rd-book .rd-sum-coupon-option:hover { background: var(--rd-sage); border-color: var(--rd-moss); }
.rd-book .rd-sum-coupon-opt-info { display: flex; flex-direction: column; }
.rd-book .rd-sum-coupon-opt-info b { font-size: 12px; color: var(--rd-canopy); }
.rd-book .rd-sum-coupon-opt-info small { font-size: 11px; color: var(--rd-ink-soft); }
.rd-book .rd-sum-coupon-apply-link { color: var(--rd-canopy); font-weight: 700; font-size: 12px; white-space: nowrap; }

/* Expandable per-room line items in the summary (replaces the inline cost boxes) */
.rd-book .rd-sum-rooms { margin-bottom: 12px; }
.rd-book .rd-sum-room + .rd-sum-room { border-top: 1px dashed var(--rd-sage-line); }
.rd-book .rd-sum-room-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 11px 0; cursor: pointer; }
.rd-book .rd-sum-room-name { font-size: 13px; font-weight: 700; color: var(--rd-ink); }
.rd-book .rd-sum-room-occ { font-size: 12px; color: var(--rd-ink-soft); margin-top: 1px; }
.rd-book .rd-sum-room-amt { font-size: 13px; font-weight: 700; color: var(--rd-ink); white-space: nowrap; }
.rd-book .rd-sum-room-amt .fa { color: var(--rd-ink-soft); font-size: 11px; margin-left: 4px; }
.rd-book .rd-sum-room-detail { padding: 2px 0 12px; }
.rd-book .rd-sum-dline { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--rd-ink-soft); padding: 3px 0; }
.rd-book .rd-sum-dline > span:last-child { color: var(--rd-ink); font-weight: 600; white-space: nowrap; }
.rd-book .rd-sum-dline.tot { border-top: 1px solid var(--rd-sage-line); margin-top: 4px; padding-top: 6px; }
.rd-book .rd-sum-dline.tot > span { color: var(--rd-ink) !important; font-weight: 700; }

/* Split-up moved into the summary → hide the inline per-room cost boxes,
   and let the guest details use the full width they freed up. */
.rd-book .col-sm-3:has(.custm_row3) { display: none !important; }
.rd-book .list_top1 .col-sm-9.col-md-9 { width: 100% !important; }

/* ---- Occupancy steppers → one clean connected control (were separate boxes) ---- */
.rd-book .guest-counter .input-group {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--rd-sage-line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.rd-book .guest-counter .input-group-addon {
    border: none !important;
    border-radius: 0 !important;
    background: var(--rd-sage);
    color: var(--rd-moss);
    font-weight: 700;
    font-size: 16px;
    padding: 0 !important;
    width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.rd-book .guest-counter .input-group-addon:hover { background: var(--rd-moss); color: #fff; }
.rd-book .guest-counter .form-control {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff;
    color: var(--rd-ink);
    font-weight: 700;
    width: 46px;
    height: 36px;
    text-align: center;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rd-book .cst_lbl { display: block; min-height: 16px; margin-bottom: 5px; }

/* "Remove this room" — keep on one line, aligned */
.rd-book .hotelremoveRoom { white-space: nowrap; display: inline-block; margin-top: 24px !important; }

.rd-book .rd-sum-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; color: var(--rd-ink-soft); padding: 7px 0; }
.rd-book .rd-sum-line > span:last-child { color: var(--rd-ink); font-weight: 700; white-space: nowrap; }
.rd-book .rd-sum-line.disc > span:last-child { color: var(--rd-ink); }

.rd-book .rd-sum-grand { border-top: 2px solid var(--rd-sage-line); margin-top: 10px; padding-top: 12px; }
.rd-book .rd-sum-grand-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rd-book .rd-sum-grand-row > span:first-child { font-size: 15px; font-weight: 700; color: var(--rd-ink); }
.rd-book .rd-sum-grand-val { font-size: 23px; font-weight: 700; color: var(--rd-ink); white-space: nowrap; }
.rd-book .rd-sum-usd { text-align: right; font-size: 13px; color: var(--rd-ink); font-weight: 700; margin-top: 3px; }

.rd-book .rd-sum-confirm { display: block; width: 100%; text-align: center; margin-top: 14px; padding: 14px; }
.rd-book .rd-sum-trust { text-align: center; font-size: 11px; color: var(--rd-ink-soft); margin-top: 10px; }

/* Mobile bottom bar (hidden on desktop) */
.rd-book .rd-mobilebar { display: none; }

@media (max-width: 980px) {
    .rd-book .rd-checkout-grid { grid-template-columns: 1fr; }
    /* Order summary → slide-up bottom sheet (tap the bar to expand). Definite
       height (top+bottom) so the scrolling body renders. Mirrors Page 1's cart. */
    .rd-book .rd-summary {
        display: flex;
        flex-direction: column;
        position: fixed; left: 0; right: 0;
        top: 30%; bottom: 56px; z-index: 59;
        margin: 0;
        border-radius: 16px 16px 0 0;
        overflow: hidden;
        box-shadow: 0 -12px 30px rgba(15, 23, 32, .22);
        transform: translateY(140%);
        transition: transform .26s ease;
    }
    .rd-book .rd-summary.rd-summary-open { transform: translateY(0); }
    .rd-book .rd-summary-head { flex: 0 0 auto; border-radius: 0; }
    .rd-book .rd-summary-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; }
    .rd-book .rd-summary-body::-webkit-scrollbar { display: none; }
    .rd-book .rd-sum-confirm { display: none; }   /* the fixed bar's Confirm handles it on mobile */

    .rd-book .fixed_footer { display: none !important; }   /* secure-note bar off on mobile */
    .rd-book .rd-mobilebar {
        display: flex !important;   /* beats the base `display:none !important` (line ~774) */
        align-items: center; justify-content: space-between; gap: 14px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
        background: var(--rd-surface); border-top: 1px solid var(--rd-sage-line);
        padding: 10px 16px; box-shadow: 0 -6px 20px rgba(15,23,32,.14);
    }
    .rd-book .rd-mb-total { cursor: pointer; }
    .rd-book .rd-mb-total small { display: block; font-size: 11px; color: var(--rd-ink-soft); }
    .rd-book .rd-mb-total small .fa { font-size: 9px; margin-left: 3px; }
    .rd-book .rd-mb-total b { font-size: 20px; }
    .rd-book .rd-mobilebar .book_btn { display: inline-block !important; margin: 0; padding: 12px 22px; }
    .rd-book { padding-bottom: 76px; }
}

/* ---- Page 2 alignment fixes ---- */
/* 3) CONFIRM BOOKING overflowing the card — box-sizing so width:100% includes padding */
.rd-book .rd-summary,
.rd-book .rd-summary *,
.rd-book .rd-mobilebar,
.rd-book .rd-mobilebar * { box-sizing: border-box; }
.rd-book .rd-sum-confirm { max-width: 100%; }

/* 1) Align the summary rail top with the tabs (drop the form's default margin) */
.rd-book .rd-checkout-grid { margin-top: 0; align-items: start; }
.rd-book form { margin: 0; }
.rd-book .rd-checkout-main { padding-top: 0; margin-top: 0; }
.rd-book .rd-summary { align-self: start; }

/* 2) Payment tabs — kill the legacy overlap: li.active has margin-top:-3px + a
   4px teal border-top. Override the LI (not just the <a>). */
.rd-book .paymenttabcordion ul > li.active {
    border-top: 2px solid var(--rd-canopy) !important;
    margin-top: 0 !important;
}
.rd-book .paymenttabcordion ul > li,
.rd-book .paymenttabcordion ul > li > a {
    color: var(--rd-ink-soft) !important;
    background-color: #F3F5F7 !important;
    border-radius: 8px 8px 0 0;
}
.rd-book .paymenttabcordion ul > li.active > a,
.rd-book .paymenttabcordion ul > li.active > a:hover,
.rd-book .paymenttabcordion ul > li.active > a:focus {
    color: var(--rd-canopy) !important;
    font-weight: 700;
    background-color: #fff !important;
    border-right: 1px solid var(--rd-sage-line) !important;
    border-left: 1px solid var(--rd-sage-line) !important;
}
.rd-book .paymenttabcordion .tab-content { border-color: var(--rd-sage-line) !important; padding: 20px; }

/* 1b) Center the T&C / cancellation-policy / "More…" modals.
   ui-bootstrap appends these into a constrained container, so container-based
   centring fails. Instead pin the DIALOG itself to the viewport centre — this
   ignores whatever it's nested in. */
.modal .modal-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    width: 900px;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    float: none !important;
}
.modal .modal-content {
    max-height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;              /* header stays put; only the body scrolls */
    border-radius: var(--rd-radius);
}
.modal .modal-header { flex: 0 0 auto; }
.modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none !important;   /* drop the inline 500px cap → no second scrollbar */
    overflow-y: auto !important;   /* the single scrollbar lives here */
}

/* 4) Subtle scrollbar inside the sticky summary (default one looked clunky) */
.rd-book .rd-summary { scrollbar-width: thin; scrollbar-color: var(--rd-sage-line) transparent; }
.rd-book .rd-summary::-webkit-scrollbar { width: 6px; }
.rd-book .rd-summary::-webkit-scrollbar-thumb { background: var(--rd-sage-line); border-radius: 3px; }
.rd-book .rd-summary::-webkit-scrollbar-thumb:hover { background: var(--rd-moss); }
.rd-book .rd-summary::-webkit-scrollbar-track { background: transparent; }

/* 5) Trust line under Confirm — was too faint / cut off */
.rd-book .rd-summary-body { padding-bottom: 20px; }
.rd-book .rd-sum-trust { font-size: 12px; color: var(--rd-ink-soft); margin-top: 12px; line-height: 1.4; }

@media (prefers-reduced-motion: reduce) { .rd-book * { transition: none !important; } }

/* ============================================================
   PAGE 3 — Booking Confirmation (BookingConfirm/Index.cshtml +
   _ConfirmLayout.cshtml). Scoped under .rd-confirm.
   ============================================================ */
.rd-confirm {
    font-family: var(--rd-font);
    background: var(--rd-bg);
    color: var(--rd-ink);
    min-height: 100vh;
    padding: 28px 16px 56px;
}
.rd-confirm > div { max-width: 940px; margin: 0 auto; }
.rd-confirm .col-md-12,
.rd-confirm .col-md-6,
.rd-confirm .col-md-8,
.rd-confirm .col-md-4,
.rd-confirm .col-md-3,
.rd-confirm .col-md-9 { padding-left: 0; padding-right: 0; }

/* Cards */
.rd-confirm .Titlelist {
    background: var(--rd-surface);
    border: 1px solid var(--rd-sage-line);
    border-radius: var(--rd-radius);
    box-shadow: var(--rd-shadow);
    padding: 22px 24px;
    margin-bottom: 16px;
}
/* Contain the floated bootstrap columns.  [fix 2026-10-17]
   The markup nests col-md-* straight inside each card with no .row, and .row is
   what carries bootstrap's clearfix — so those floats escaped their card. That is
   harmless for most cards, but .Titlelist3 (Booking Details) and .Titlelist5
   (Payment Summary) carry `overflow-y: auto` from confirmed.css, which makes them
   block formatting contexts, and a BFC may not overlap a float: those two cards
   were pushed beside the escaped float and collapsed to a narrow sliver.
   Clearing inside every card and column stops the floats escaping in the first place. */
.rd-confirm .Titlelist::after,
.rd-confirm [class*="col-md-"]::after {
    content: "";
    display: table;
    clear: both;
}

/* Success header */
.rd-confirm .Titlelist1 { text-align: center; padding: 26px; }
.rd-confirm .txtconfirm {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 23px;
    font-weight: 700;
    color: var(--rd-canopy);
}
/* Real tick.png (it ships in /Images and is fine — it was wrongly written off as
   broken and hidden). Overrides the inline 25px so it reads at hero size. The old
   CSS tick was a ::before glyph, which also drew a checkmark on the "Booking
   Cancelled" heading; using the image means only the confirmed state gets one. */
.rd-confirm .txtconfirm img {
    display: inline-block;
    width: 38px !important;
    height: 38px !important;
    margin-right: 0 !important;
    flex: none;
}
.rd-confirm .Titlelist1.red h4 { color: var(--rd-alert); }  /* pending/failed state */

/* Section headings — uniform: uppercase brand eyebrow with a hairline underline */
.rd-confirm .txthotelsetails,
.rd-confirm .txtservices,
.rd-confirm .headbooking {
    color: var(--rd-canopy);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--rd-sage-line);
    margin-bottom: 16px;
    background: transparent;
}
/* Service sub-headings (Optional / Extra Services) */
.rd-confirm .txtoptionalservice {
    color: var(--rd-moss);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
}

/* Detail rows (hotel / booking) */
.rd-confirm .divcontenthotel > div,
.rd-confirm .leftcol6 > div,
.rd-confirm .personname > div,
.rd-confirm .txtemail { margin-bottom: 8px; font-size: 14px; }
.rd-confirm .leftcol6 span:first-child,
.rd-confirm .personname span:first-child,
.rd-confirm .txtemail span:first-child,
.rd-confirm .divcontenthotel span:first-child { color: var(--rd-ink-soft); }
.rd-confirm .leftcol6 span + span,
.rd-confirm .personname span + span { color: var(--rd-ink); font-weight: 600; }
.rd-confirm .personname span[style*="bold"] { color: var(--rd-canopy) !important; }

/* Tables (guest details / services) */
.rd-confirm table { width: 100% !important; border-collapse: collapse; border: 1px solid var(--rd-sage-line) !important; border-radius: 10px; overflow: hidden; margin-top: 10px !important; }
.rd-confirm table tr[style*="f1f1f1"] { background: var(--rd-sage) !important; }
.rd-confirm .servicehead {
    padding: 11px 12px !important;
    border: none !important;
    border-bottom: 1px solid var(--rd-sage-line) !important;
    color: var(--rd-ink);
    font-size: 13px;
    vertical-align: middle;
}
.rd-confirm th.servicehead { color: var(--rd-canopy); font-weight: 700; }

/* Payment Summary — stamp on the left, totals card on the right.
   The stamp column is LAST in the markup, so order:-1 moves it ahead of the
   totals without touching the view. It also fills what was an empty left half. */
.rd-confirm .rd-paysummary {
    margin-top: 20px;
    clear: both;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}
/* order: heading (full row) → badge (left) → totals (right). The badge column is
   last in the markup, so it needs an order between the heading and the totals. */
.rd-confirm .rd-paysummary .headbooking { flex: 0 0 100%; order: -2; }
.rd-confirm .rd-paysummary .col-md-3 {
    order: -1;
    flex: 1 1 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
}
/* Payment badges — stamp.png (PAID) and 0.png (pay@hotel). Both ship in /Images;
   they were hidden as "broken". 0.png keeps its inline 80x30, stamp.png is capped
   here. */
.rd-confirm .imgstamp {
    display: block;
    max-width: 128px;
    height: auto;
    /* slight tilt so it reads as a rubber stamp rather than a logo */
    transform: rotate(-7deg);
}
.rd-confirm .rd-paysummary-inner {
    max-width: 360px;
    margin-left: auto;
    background: #FAFBF9;
    border: 1px solid var(--rd-sage-line);
    border-radius: 10px;
    padding: 10px 16px;
}
.rd-confirm .rd-paysummary-inner .table { margin: 0; }
.rd-confirm .rd-paysummary-inner .table td,
.rd-confirm .rd-paysummary-inner .table th { border: none !important; padding: 7px 4px; font-size: 14px; }
.rd-confirm .rd-paysummary-inner .table td { color: var(--rd-ink-soft); }
.rd-confirm .rd-paysummary-inner .table th { color: var(--rd-ink); }
.rd-confirm .rd-paysummary-inner tr:last-child td,
.rd-confirm .rd-paysummary-inner tr:last-child th { border-top: 1px solid var(--rd-sage-line) !important; padding-top: 9px; }
.rd-confirm .totalprice { color: var(--rd-canopy); font-weight: 700; font-size: 17px; }
.rd-confirm .rd-pay-disc { color: var(--rd-canopy); font-weight: 700; }   /* coupon discount (matches Page 2) */

/* Note */
.rd-confirm .txtnote { color: var(--rd-ink-soft); font-size: 13px; text-align: center; }

/* ------------------------------------------------------------------
   PAGE 3 POLISH  [2026-10-17] — presentation only, no markup changes
   ------------------------------------------------------------------ */

/* Cards size to their content. confirmed.css pins min-height 120–200px on
   Titlelist2..6, which left big empty gaps under short cards (the note card was
   mostly blank). */
.rd-confirm .Titlelist { min-height: 0 !important; margin-bottom: 18px; }
.rd-confirm .Titlelist6 { padding: 16px 24px !important; min-height: 0 !important; }

/* Confirmation hero — soft tinted band, larger tick with a halo */
.rd-confirm .Titlelist1 {
    background: linear-gradient(180deg, var(--rd-sage), var(--rd-surface) 72%);
    padding: 34px 26px !important;
}
.rd-confirm .txtconfirm { font-size: 26px; letter-spacing: -.01em; gap: 14px; }
.rd-confirm .txtconfirm::before {
    width: 42px; height: 42px;
    font-size: 23px;
    box-shadow: 0 0 0 6px var(--rd-sage);
}

/* Section headings get a small brand accent bar */
.rd-confirm .txthotelsetails::before,
.rd-confirm .txtservices::before,
.rd-confirm .headbooking::before {
    content: "";
    display: inline-block;
    width: 3px; height: 13px;
    margin-right: 9px;
    vertical-align: -1px;
    border-radius: 2px;
    background: var(--rd-canopy);
}

/* Detail blocks: drop the legacy 1px boxes (.leftcol6 in confirmed.css) and set
   the label/value pairs on a shared column so they read as a clean list. */
.rd-confirm .leftcol6 {
    border: none !important;
    padding: 0 28px 0 0 !important;
}
.rd-confirm .leftcol6 > div,
.rd-confirm .personname > div,
.rd-confirm .divcontenthotel > div > div {
    display: flex;
    gap: 8px;
    align-items: baseline;
}
.rd-confirm .leftcol6 span:first-child,
.rd-confirm .personname span:first-child,
.rd-confirm .divcontenthotel span:first-child {
    flex: none;
    min-width: 96px;
}
.rd-confirm .leftcol6 span + span,
.rd-confirm .personname span + span { min-width: 0; }

/* Booking ID as a chip. :not([style*="red"]) keeps the "Pending" state red —
   the old selector repainted it with the brand colour. */
.rd-confirm .personname span[style*="bold"]:not([style*="red"]) {
    background: var(--rd-sage);
    border-radius: 6px;
    padding: 2px 9px;
    font-size: 14.5px;
    letter-spacing: .02em;
}

/* Guest / service tables: quieter grid, numeric columns right-aligned */
.rd-confirm .divservicehead table { border-radius: 12px; }
.rd-confirm th.servicehead {
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 11.5px;
}
.rd-confirm .divservicehead table tr > *:last-child,
.rd-confirm .divservicehead table tr > *:nth-last-child(2) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.rd-confirm .divservicehead table tr > *:first-child { text-align: left; }
.rd-confirm .divservicehead table tbody tr:hover > td { background: var(--rd-bg); }

/* Payment summary — slightly wider, tinted, with the grand total as the anchor */
.rd-confirm .rd-paysummary-inner {
    flex: 0 1 380px;
    max-width: 400px;
    background: var(--rd-sage);
    padding: 14px 18px;
}
.rd-confirm .rd-paysummary-inner .table td,
.rd-confirm .rd-paysummary-inner .table th { font-variant-numeric: tabular-nums; }
.rd-confirm .rd-paysummary-inner tr:last-child td,
.rd-confirm .rd-paysummary-inner tr:last-child th {
    border-top: 1px solid var(--rd-moss) !important;
    padding-top: 11px;
}
.rd-confirm .totalprice { font-size: 19px; }

/* Note card reads as a footnote, not a section */
.rd-confirm .txtnote { font-size: 12.5px; line-height: 1.5; }

/* Error state */
.rd-confirm .Titlelist1.red { color: var(--rd-alert); }
.rd-confirm .Titlelist1.red h4 { color: var(--rd-alert); font-weight: 700; }

@media (max-width: 620px) {
    .rd-confirm .col-md-6, .rd-confirm .col-md-8, .rd-confirm .col-md-4, .rd-confirm .col-md-3, .rd-confirm .col-md-9 { width: 100%; }
    .rd-confirm .leftcol_6 { overflow-x: auto; }

    /* --- Guest / services tables → clean horizontal scroll (columns keep their width) --- */
    .rd-confirm .divservicehead { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .rd-confirm .divservicehead > table { min-width: 560px; }
    .rd-confirm .servicehead { white-space: nowrap; font-size: 13px; padding: 8px 9px !important; }

    /* --- Payment Summary → stacked on mobile: badge above, full-width totals --- */
    .rd-confirm .rd-paysummary-inner { flex: 1 1 100%; max-width: 100%; margin-left: 0; }
    .rd-confirm .rd-paysummary .col-md-3 { flex: 1 1 100%; }
    .rd-confirm .totalprice { font-size: 16px; }

    /* --- Headings + confirm banner sizing --- */
    .rd-confirm .txtconfirm { font-size: 19px; }
    .rd-confirm .headbooking,
    .rd-confirm .txthotelsetails,
    .rd-confirm .txtservices { font-size: 14px; }
    /* tighten the card padding a touch on small screens */
    .rd-confirm .Titlelist { padding-left: 14px !important; padding-right: 14px !important; }
}

/* ============================================================
   MOBILE RESPONSIVE — Page 1 (Select Rooms)   [added 2026-08-05]
   ============================================================ */
@media (max-width: 768px) {
    .rd-list .rd-section-head { font-size: 18px; }
    .rd-list .rd-room-name { font-size: 18px; }

    /* --- Card: stack image on top, content below --- */
    .rd-list .bg_set12 { flex-direction: column; }
    .rd-list .bg_set12 > .col-sm-4 {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 210px;
        min-height: 210px;
        /* undo the desktop inset + fixed ratio: mobile keeps the flush,
           full-width banner photo with only the top corners rounded */
        margin: 0 !important;
        aspect-ratio: auto;
    }
    /* match the photo to that fixed banner height (still a cover crop), so the
       column and the image stay the same height and the arrows stay centred */
    .rd-list .bg_set12 > .col-sm-4 img {
        height: 210px !important;
        aspect-ratio: auto;
    }
    /* property photo: drop the desktop 380px cap so it spans the stacked card */
    .rd-list .bg_set12_new > .col-sm-5 { max-width: 100%; }

    /* Carousel arrows → 44px on touch screens (Apple/Google minimum target).
       margin-top stays exactly half the height so the centring still holds. */
    .rd-list .bg_set12 > .col-sm-4 .carousel-control.left,
    .rd-list .bg_set12 > .col-sm-4 .carousel-control.right,
    .rd-list .bg_set12_new > .col-sm-5 .carousel-control.left,
    .rd-list .bg_set12_new > .col-sm-5 .carousel-control.right {
        width: 44px;
        height: 44px;
        margin-top: -22px;
    }
    .rd-list .bg_set12 > .col-sm-4 .carousel-control .glyphicon,
    .rd-list .bg_set12 > .col-sm-4 .carousel-control .icon-prev,
    .rd-list .bg_set12 > .col-sm-4 .carousel-control .icon-next,
    .rd-list .bg_set12_new > .col-sm-5 .carousel-control .glyphicon,
    .rd-list .bg_set12_new > .col-sm-5 .carousel-control .icon-prev,
    .rd-list .bg_set12_new > .col-sm-5 .carousel-control .icon-next {
        width: 44px;
        height: 44px;
        line-height: 44px;
        font-size: 21px;
    }
    .rd-list .bg_set12 > .col-sm-5 {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 16px !important;
    }
    .rd-list .bg_set12 > .col-sm-3 { width: 100% !important; }
    /* image now rounds the TOP corners (was left-only for the side-by-side layout) */
    .rd-list .bg_set12 > .col-sm-4,
    .rd-list .bg_set12 > .col-sm-4 [uib-carousel],
    .rd-list .bg_set12 > .col-sm-4 .carousel,
    .rd-list .bg_set12 > .col-sm-4 .carousel-inner,
    .rd-list .bg_set12 > .col-sm-4 .item,
    .rd-list .bg_set12 > .col-sm-4 img {
        border-radius: var(--rd-radius) var(--rd-radius) 0 0 !important;
    }

    /* --- Undo the desktop absolute placement: pill + Cancellation back in flow --- */
    .rd-list .bg_set12 > .col-sm-5 > div:has(> .price_nyt) { padding-right: 0; }
    .rd-list .bg_set12 > .col-sm-5 .remain_room {
        position: static !important;
        display: inline-flex !important;
        margin: 10px 0 0 !important;
    }
    .rd-list .bg_set12 > .col-sm-5 > div:has(> .policy_btn) {
        position: static !important;
        width: 100% !important;
        text-align: left !important;
        margin: 10px 0 0 !important;
    }

    /* --- Rate-plan row: name on its own line, controls wrap below --- */
    .rd-list .responsive_new > table,
    .rd-list .responsive_new > table > tbody,
    .rd-list .responsive_new > table > tbody > tr { display: block; width: 100%; }
    .rd-list .responsive_new > table > tbody > tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 12px;
        padding: 12px 4px;
        border-bottom: 1px solid var(--rd-sage-line);
    }
    .rd-list .responsive_new td.roomdetail_add {
        display: inline-flex;
        align-items: center;
        width: auto !important;
        border: none !important;
        padding: 0 !important;
        white-space: nowrap;
    }
    .rd-list .responsive_new > table td.roomdetail_add:first-child { flex: 1 1 100%; }  /* rate-plan name → full row */
    .rd-list .responsive_new td.roomdetail_add:last-child { margin-left: auto; }         /* price → right */
    .rd-list .rd-add-cell { flex: 1 1 auto; }
    .rd-list .rd-add-btn { width: 100%; justify-content: center; }

    /* --- Search bar: stack label + fields --- */
    .rd-list .cust_12_marg > .col-sm-4,
    .rd-list .cust_12_marg > .col-sm-8 { width: 100% !important; float: none; padding: 0 !important; }
    .rd-list .cust_12_marg > .col-sm-4 { margin-bottom: 10px; }

    /* --- Selected-rooms footer: stack, full-width Reserve --- */
    .rd-list .cstm_footer [class*="col-sm-"] { width: 100% !important; float: none; }
    .rd-list .cstm_footer .reserve_btn { width: 100%; margin-top: 12px; }
    .rd-list .cstm_footer .room_set { width: 100%; margin: 6px 0; }
}

/* ============================================================
   PAGE 1 CART — right-side sticky rail (mirrors Page 2 summary)
   [added 2026-08-05]
   ============================================================ */
.rd-list .rd-list-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}
/* neutralize the nested bootstrap .container so it fills the grid column */
.rd-list .rd-list-grid .container { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
.rd-list .rd-list-main { min-width: 0; }
.rd-list .rd-list-main .hotel-view-main { padding: 0; }

.rd-list .rd-cart {
    position: sticky;
    top: 16px;
    background: #fff;
    border: 1px solid var(--rd-sage-line);
    border-radius: var(--rd-radius);
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(15, 23, 32, .06);
}
.rd-list .rd-cart-head {
    background: var(--rd-canopy);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 18px;
}
.rd-list .rd-cart-body { padding: 6px 16px 16px; }
.rd-list .rd-cart-empty {
    color: var(--rd-ink-soft);
    font-size: 13px;
    text-align: center;
    padding: 22px 8px;
}
.rd-list .rd-cart-item {
    position: relative;
    padding: 14px 24px 14px 0;
    border-bottom: 1px solid var(--rd-sage-line);
}
.rd-list .rd-cart-item:last-of-type { border-bottom: none; }
.rd-list .rd-cart-item-name { font-weight: 700; color: var(--rd-ink); font-size: 14px; line-height: 1.25; }
.rd-list .rd-cart-item-plan { color: var(--rd-ink-soft); font-size: 12.5px; margin-top: 2px; }
.rd-list .rd-cart-item-amt { color: var(--rd-ink); font-weight: 700; font-size: 14px; margin-top: 5px; }
.rd-list .rd-cart-qty { color: var(--rd-ink-soft); font-weight: 400; }
.rd-list .rd-cart-remove {
    position: absolute; top: 12px; right: 0;
    background: none; border: none; color: var(--rd-ink-soft);
    font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 4px;
    transition: color .15s;
}
.rd-list .rd-cart-remove:hover { color: var(--rd-alert); }
/* Reserve button — hotel brand colour, matching Page 2's "CONFIRM BOOKING".
   Both live Reserve buttons (cart rail + mobile bar) sit on a WHITE surface, so a
   solid --rd-canopy fill is safe: the directive auto-darkens it to AA against white,
   keeping the white label readable for any hotel colour. */
.rd-list .rd-cart-reserve { width: 100%; margin: 16px 0 0 !important; display: block; }
.rd-list .rd-cart-reserve,
.rd-list .rd-cart-reserve.cursor-pointer,
.rd-list .rd-cart-mobilebar .reserve_btn,
.rd-list .rd-cart-mobilebar .reserve_btn.cursor-pointer {
    background: var(--rd-canopy) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    letter-spacing: .2px;
    transition: background .15s, transform .15s;
}
.rd-list .rd-cart-reserve { padding: 9px 16px !important; }
.rd-list .rd-cart-reserve:hover,
.rd-list .rd-cart-reserve.cursor-pointer:hover,
.rd-list .rd-cart-mobilebar .reserve_btn.cursor-pointer:hover {
    background: var(--rd-canopy-deep) !important;
    transform: translateY(-1px);
}
.rd-list .rd-cart-reserve.cursor-default,
.rd-list .rd-cart-mobilebar .reserve_btn.cursor-default {
    background: var(--rd-sage) !important;
    color: var(--rd-ink-soft) !important;
    cursor: not-allowed;
    transform: none;
}

/* retire the old bottom bar (replaced by the cart) */
.rd-list .cstm_footer { display: none !important; }
/* mobile bar hidden on desktop */
.rd-list .rd-cart-mobilebar { display: none; }

/* --- mobile: cart rail → fixed bottom bar (Page-2 pattern) --- */
@media (max-width: 980px) {
    .rd-list .rd-list-grid { grid-template-columns: 1fr; }
    /* cart = slide-up bottom sheet. DEFINITE height via top+bottom so the scrolling
       body actually renders (auto-height + flex:1 + overflow was collapsing it to 0). */
    .rd-list .rd-cart {
        display: flex;
        flex-direction: column;
        position: fixed; left: 0; right: 0;
        top: 38%; bottom: 56px; z-index: 59;
        margin: 0;
        border-radius: 16px 16px 0 0;
        overflow: hidden;
        box-shadow: 0 -12px 30px rgba(15, 23, 32, .22);
        transform: translateY(140%);
        transition: transform .26s ease;
    }
    .rd-list .rd-cart.rd-cart-open { transform: translateY(0); }
    .rd-list .rd-cart-head { flex: 0 0 auto; border-radius: 0; }   /* sheet's overflow clips both corners uniformly */
    .rd-list .rd-cart-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; }
    .rd-list .rd-cart-body::-webkit-scrollbar { display: none; }
    .rd-list .rd-cart-reserve { display: none; }   /* the fixed bar's Reserve handles it on mobile */
    .rd-list .rd-cart-mb-info { cursor: pointer; }
    .rd-list .rd-cart-mb-info .fa { font-size: 10px; margin-left: 4px; }
    /* fixed bottom bar: Room total + Reserve, always visible */
    .rd-list .rd-cart-mobilebar {
        display: flex; align-items: center; justify-content: space-between; gap: 14px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        background: #fff; border-top: 1px solid var(--rd-sage-line);
        padding: 10px 16px; box-shadow: 0 -6px 20px rgba(15, 23, 32, .14);
    }
    .rd-list .rd-cart-mb-info { display: flex; flex-direction: column; line-height: 1.2; }
    .rd-list .rd-cart-mb-info b { font-size: 18px; color: var(--rd-ink); }
    .rd-list .rd-cart-mb-info small { font-size: 11px; color: var(--rd-ink-soft); }
    .rd-list .rd-cart-mobilebar .reserve_btn { margin: 0; padding: 12px 24px; width: auto; }
    .rd-list { padding-bottom: 76px; }
}

/* ============================================================
   PAGE 1 POLISH  [2026-08-05]
   ============================================================ */
/* Cart — header icon */
.rd-list .rd-cart-head { display: flex; align-items: center; gap: 9px; }
.rd-list .rd-cart-ico { width: 18px; height: 18px; flex: none; }
/* Cart — empty state (icon + text, centered) */
.rd-list .rd-cart-empty {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 26px 12px; color: var(--rd-ink-soft); font-size: 13px; line-height: 1.5; text-align: center;
}
.rd-list .rd-cart-empty svg { width: 34px; height: 34px; color: var(--rd-sage-line); }
/* Cart — foot: count + checkout note */
.rd-list .rd-cart-foot { border-top: 1px dashed var(--rd-sage-line); margin-top: 6px; padding-top: 12px; }
.rd-list .rd-cart-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rd-list .rd-cart-count { font-size: 13px; font-weight: 700; color: var(--rd-ink); }
.rd-list .rd-cart-total { font-size: 16px; font-weight: 800; color: var(--rd-ink); white-space: nowrap; }
.rd-list .rd-cart-note { font-size: 11.5px; color: var(--rd-ink-soft); margin-top: 3px; }

/* Room card — soft lift on hover */
.rd-list .bg_set12 {
    box-shadow: 0 2px 10px rgba(15, 23, 32, .05);
    transition: box-shadow .2s, transform .2s;
}
.rd-list .bg_set12:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 32, .11);
    transform: translateY(-2px);
}

/* Section heads — gold accent bar + trailing divider (proper header look) */
.rd-list .rd-section-head { position: relative; padding-left: 14px; }
.rd-list .rd-section-head::before {
    content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px;
    border-radius: 3px; background: var(--rd-lantern);
}
.rd-list .rd-section-head::after {
    content: ""; flex: 1 1 auto; height: 1px; align-self: center; margin-left: 8px;
    background: var(--rd-sage-line);
}

/* Rate-plan action row — clean top divider + slight button lift */
.rd-list .responsive_new { border-top: 1px solid var(--rd-sage-line); margin-top: 14px; padding-top: 4px; }
.rd-list .rd-add-btn { box-shadow: 0 1px 3px rgba(15, 23, 32, .12); }

/* ============================================================
   PAGE 1 — top section polish (Rates strip + tabs + search)
   ============================================================ */
/* --- Rates by date → clean "ticket" cards (date on a band, price below) --- */
.rd-list .slickblue {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 32, .05);
    padding: 0 !important;
    overflow: hidden;
    min-width: 90px;
}
.rd-list .slickblue > div:first-child {
    background: var(--rd-sage);
    color: var(--rd-ink-soft) !important;
    font-size: 10.5px !important;
    letter-spacing: .05em;
    padding: 7px 6px 6px !important;
    line-height: 1.2;
    margin: 0 !important;
}
.rd-list .slickblue > div:nth-child(2) { padding: 9px 6px 11px; }
.rd-list .slickblue > div:nth-child(2),
.rd-list .slickblue > div:nth-child(2) span { color: var(--rd-ink) !important; font-size: 15px !important; }
.rd-list .slickblue:hover {
    border-color: var(--rd-lantern);
    box-shadow: 0 8px 20px rgba(15, 23, 32, .10);
    transform: translateY(-2px);
}

/* --- Reservation / Review tabs → rounded top, cleaner, no gold underline --- */
.rd-list .tab1 { border-radius: 10px 10px 0 0; letter-spacing: .06em; transition: background .16s, color .16s; }
.rd-list .tab1_active { box-shadow: none !important; }   /* drop the gold underline / double-colour */

/* --- Search bar → refined date cells + SEARCH --- */
.rd-list .cust_12_marg { padding: 14px 20px; }
.rd-list .nd_booking_bg_greydark_2 {
    border: 1px solid var(--rd-sage-line);
    border-radius: 10px;
    background: #fff !important;
    transition: border-color .15s, box-shadow .15s;
}
.rd-list .nd_booking_bg_greydark_2:hover { border-color: var(--rd-moss); box-shadow: 0 2px 8px rgba(15, 23, 32, .07); }
.rd-list .date_search {
    border-radius: 10px;
    padding: 12px 28px;
    letter-spacing: .06em;
    box-shadow: 0 3px 10px rgba(38, 50, 63, .18);
}

/* ============================================================
   SweetAlert (v1) validation popups — match the redesign theme.
   Appended to <body>, outside page wrappers, so these are global.
   The confirm button colour is set as an INLINE style by SweetAlert,
   so !important is required to override it.
   ============================================================ */
.sweet-alert {
    border-radius: 14px !important;
    font-family: 'Carlito', 'Segoe UI', system-ui, sans-serif !important;
    box-shadow: 0 18px 50px rgba(22, 31, 41, .28) !important;
    padding: 22px 24px 30px !important;
}
.sweet-alert h2 {
    color: var(--rd-ink) !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    margin-top: 6px !important;
}
.sweet-alert p {
    color: var(--rd-ink-soft) !important;
    font-size: 15px !important;
}
/* Primary (OK) button → slate, matching the header bar / "Add to stay" */
.sweet-alert button,
.sweet-alert button.confirm,
.sweet-alert button.confirm:hover,
.sweet-alert button.confirm:focus,
.sweet-alert button.confirm:active {
    background-color: var(--rd-canopy) !important;
    color: #fff !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-weight: 700 !important;
    padding: 10px 26px !important;
}
.sweet-alert button.confirm:hover { background-color: var(--rd-canopy-deep) !important; }
.sweet-alert button:focus { box-shadow: 0 0 0 3px var(--rd-sage-line) !important; }
/* Secondary (Cancel) button on confirm-type alerts */
.sweet-alert button.cancel,
.sweet-alert button.cancel:hover,
.sweet-alert button.cancel:focus {
    background-color: var(--rd-sage) !important;
    color: var(--rd-canopy) !important;
    text-shadow: none !important;
}
/* Warning "!" icon → gold accent (was amber) for a cohesive look */
.sweet-alert .sa-icon.sa-warning { border-color: var(--rd-lantern) !important; }
.sweet-alert .sa-icon.sa-warning .sa-body,
.sweet-alert .sa-icon.sa-warning .sa-dot { background-color: var(--rd-lantern) !important; }

/* ============================================================
   "Enter Guest Details" popup (windowClass: rd-guest-modal)
   — compact + themed to match the redesign (Book btn, close X).
   Global (body-level), so scoped by the window class.
   ============================================================ */
.rd-guest-modal .modal-content {
    border: none;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(22, 31, 41, .28);
    font-family: 'Carlito', 'Segoe UI', system-ui, sans-serif;
    overflow: hidden;
}
.rd-guest-modal .modal-dialog { width: 440px; max-width: 94%; }
/* Header — coloured bar, crisp, with a clean close box top-right */
.rd-guest-modal .modal-header {
    padding: 13px 18px;
    background: var(--rd-canopy);
    border-bottom: none;
}
.rd-guest-modal .modal-title { font-size: 17px; font-weight: 700; color: #fff; }
.rd-guest-modal .modal-header .close {
    float: right;
    width: 28px; height: 28px;
    font-size: 20px; line-height: 26px; text-align: center;
    color: #fff; opacity: .9; text-shadow: none;
    background: transparent; border: none; border-radius: 7px;
    transition: background .15s, opacity .15s;
}
.rd-guest-modal .modal-header .close:hover { background: rgba(255, 255, 255, .18); opacity: 1; }
/* Body — compact spacing */
.rd-guest-modal .modal-body { padding: 16px 18px 18px; max-height: none !important; overflow: visible; }
.rd-guest-modal .form-group { margin-bottom: 11px; }
.rd-guest-modal .control-label { font-size: 13px; font-weight: 600; color: var(--rd-ink); padding-top: 9px; }
.rd-guest-modal .form-control {
    height: 38px; font-size: 14px; border-radius: 8px;
    border: 1px solid var(--rd-sage-line) !important; box-shadow: none;
}
.rd-guest-modal .form-control:focus {
    border-color: var(--rd-canopy) !important;
    box-shadow: 0 0 0 3px var(--rd-sage);
}
.rd-guest-modal .input-group-addon {
    border: 1px solid var(--rd-sage-line); border-right: none;
    background: var(--rd-sage); color: var(--rd-ink-soft); border-radius: 8px 0 0 8px;
}
.rd-guest-modal .input-group .form-control { border-radius: 0 8px 8px 0; }
.rd-guest-modal .red { display: inline-block; font-size: 12px; margin-top: 3px; color: #c0392b; }
/* Center the Book button (drop the bootstrap offset, span full width) */
.rd-guest-modal .form-group .col-sm-offset-3 { margin-left: 0; width: 100%; text-align: center; }
/* Book button — uniform slate CTA (matches "+ Add to stay" / Confirm) */
.rd-guest-modal .btn,
.rd-guest-modal .btn:focus,
.rd-guest-modal .btn:active {
    background: var(--rd-canopy) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px;
    font-weight: 700; font-size: 14px;
    padding: 9px 30px;
    box-shadow: none;
    transition: background .15s, transform .15s;
}
.rd-guest-modal .btn:hover { background: var(--rd-canopy-deep) !important; transform: translateY(-1px); }

/* ============================================================
   MOBILE — Page 2 (Review & Book): form + payment tabs + bar
   [added 2026-08-05]
   ============================================================ */
@media (max-width: 640px) {
    /* --- Payment tabs → horizontal scroll (no ugly wrap / overflow) --- */
    .rd-book .paymenttabcordion .nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .rd-book .paymenttabcordion .nav-tabs::-webkit-scrollbar { display: none; }
    .rd-book .paymenttabcordion .nav-tabs > li { float: none; flex: 0 0 auto; }
    .rd-book .paymenttabcordion .nav-tabs > li > a { white-space: nowrap; padding: 10px 14px; font-size: 13px; margin-right: 2px; }
    .rd-book .paymenttabcordion .tab-content { padding: 14px !important; }
    /* payment-method cards stack full-width */
    .rd-book .paymenttabcordion .pad-20 .col-md-3 { width: 100%; margin-bottom: 6px; }

    /* --- Inputs: 16px stops iOS zoom-on-focus; comfortable tap height --- */
    .rd-book .form-control { font-size: 16px; min-height: 44px; }
    .rd-book textarea.form-control { min-height: 64px; }
    .rd-book .cst_lbl, .rd-book .control-label { font-size: 13px; }

    /* --- Section titles a touch smaller --- */
    .rd-book .txt_rm_detail { font-size: 15px; }

    /* --- ROOM DETAILS row: Back button full-width, below the heading --- */
    .rd-book .rd-back-cell { text-align: left; margin-top: 8px; }
    .rd-book .rd-back { width: 100%; justify-content: center; }

    /* --- Fixed bottom bar spacing --- */
    .rd-book .rd-mobilebar { padding: 10px 14px; }
    .rd-book .rd-mb-total b { font-size: 18px; }
}
