/*
 * Booking engine V6. Layout from the redesign prototype; colours are the V4 booking engine palette:
 * black primary buttons (green on hover), #34D399 accent, green-600/700 for Reserve and "good" states,
 * gray-50 page, gray-200/300 lines, gray-600/700/900 text, red-600 errors, #1f2937 dark surfaces.
 * Every rule is scoped to body.v6 so the shared (Tailwind) header is untouched.
 */
body.v6 {
    --brand: #000000;
    --brand-soft: #ecfdf5;
    --brand-ink: #111827;
    --accent: #34d399;
    --ok: #16a34a;
    --cta: #16a34a;
    /* Zotel's green (--zotel-brand), which our websites' buttons and logo tiles also turn on hover. */
    --cta-hover: #22c55e;
    --plan-cta-w: 160px;
    --rl-amt-w: 80px;
    --ink: #111827;
    --ink-2: #374151;
    --ink-3: #4b5563;
    --line: #e5e7eb;
    --line-2: #d1d5db;
    --bg: #f9fafb;
    --card: #ffffff;
    --warn: #854d0e;
    --warn-bg: #fefce8;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --dark: #1f2937;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 4px 16px rgba(17, 24, 39, .06);
    --shadow-lg: 0 12px 40px rgba(17, 24, 39, .18);
    /* 1200px of content (plus 24px padding each side), the website builder themes' width, so the edges stay put. */
    --wrap: 1248px;

    margin: 0;
    /* Zotel's wave: two fine grey lines, a touch stronger than V2's. They start below the dates, where only cards sit on
       them, so they never cross text: they show in the margins and the empty space under "Your stay". */
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 420' preserveAspectRatio='none' fill='none' stroke-width='1.25'%3E%3Cpath vector-effect='non-scaling-stroke' stroke='%23d1d5db' d='M0 110C240 20 500 40 760 160S1180 340 1440 200'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke='%23e5e7eb' d='M0 145C240 55 500 75 760 195S1180 375 1440 235'/%3E%3C/svg%3E") center 575px / 100% 420px no-repeat;
    color: var(--ink);
    font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}
html:has(body.v6) { scroll-behavior: smooth; scroll-padding-top: calc(var(--v6-header-h, 64px) + 12px); }
.v6 main img, .v6 dialog img { display: block; max-width: 100%; }
.v6 main a, .v6 dialog a { color: var(--ink); }
.v6 main h1, .v6 main h2, .v6 main h3, .v6 dialog h2, .v6 dialog h3 { margin: 0; letter-spacing: -.01em; color: var(--ink); }
.v6 main h1 { font-size: 30px; line-height: 1.2; font-weight: 700; }
.v6 main h2, .v6 dialog h2 { font-size: 21px; line-height: 1.3; font-weight: 650; }
.v6 main h3 { font-size: 18px; font-weight: 650; }
.v6 main p, .v6 dialog p { margin: 0; }
:where(.v6 main, .v6 dialog, .v6 .popover, .v6 .mobile-bar) :where(button, select) { font: inherit; color: inherit; }
.v6 .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.v6 .muted { color: var(--ink-3); }
.v6 .strong { font-weight: 600; }
.v6 .tiny { font-size: 12px; }
.v6 .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v6 :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Header: one sticky bar with the property, dates, guests and sign-in (header.blade.php). */
.v6 .v6-bar { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: var(--ink); transition: box-shadow .2s; }
.v6 .v6-bar.stuck { box-shadow: 0 6px 16px -12px rgba(0, 0, 0, .25); }
.v6 .bar { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; min-height: 64px; }
.v6 .bar-logo { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; background: var(--brand); color: #fff; font-weight: 700; font-size: 20px; text-decoration: none; transition: background .15s; }
/* A property's own logo stands on the white bar as it is; without one, a black tile shows its first letter. */
.v6 .bar-logo.has-image { border-radius: 4px; background: none; }
.v6 .bar-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.v6 .bar-title { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
/* The hotel's name keeps the Poppins wordmark of the other booking pages. */
.v6 .bar-name { font-family: Poppins, Inter, ui-sans-serif, system-ui, sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v6 .bar-name.has-switch { display: none; }
.v6 .bar-switch { position: relative; align-self: flex-start; max-width: min(380px, 100%); }
.v6 .bar-switch-toggle { display: flex; align-items: center; gap: 8px; max-width: 100%; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.v6 .bar-switch-toggle > i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #f3f4f6; font-size: 10px; color: var(--ink-2); transition: transform .15s, background .15s; }
.v6 .bar-switch-toggle:hover > i { background: var(--line); }
.v6 .bar-switch-toggle[aria-expanded="true"] > i { transform: rotate(180deg); }
/* Opens below the bar, clear of the location line under the name. */
.v6 .bar-switch-menu { position: absolute; left: -10px; top: calc(100% + 32px); z-index: 50; width: max-content; min-width: 240px; max-width: 360px; max-height: min(420px, 70vh); overflow-y: auto; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.v6 .bar-switch-menu a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--ink); text-decoration: none; }
.v6 .bar-switch-menu a:hover { background: #f3f4f6; }
.v6 .bar-switch-menu a[aria-current] { font-weight: 600; }
.v6 .bar-switch-menu small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.v6 .bar-switch-menu i { font-size: 12px; color: var(--ok); }
.v6 .bar-sub { margin: 0; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v6 .bar-location i { margin-right: 4px; }
.v6 .bar-summary { display: none; }
.v6 .bar-search { flex: none; display: flex; gap: 8px; align-items: stretch; }
.v6 .bar-search .field { min-width: 0; padding: 6px 14px 7px; border-radius: 10px; }
.v6 .bar-search .field-label { font-size: 11px; }
.v6 .bar-search .field-value { font-size: 14px; white-space: nowrap; }
.v6 .bar-search #field-dates { min-width: 250px; }
.v6 .bar-search #field-guests { min-width: 140px; }
.v6 .bar-search .bar-property-phone, .v6 .bar-change { display: none; }
.v6 .bar-account { flex: none; display: flex; align-items: center; gap: 8px; }
.v6 .bar-account [data-be-guest-profile] { position: relative; }
/* Leave the sign-in container out of the layout while it shows nothing (no Google button, not signed in, no error). */
.v6 .bar-account > #be-guest:has(> [data-be-guest-profile].hidden):has(> #be-auth-error:empty):not(:has(> #be-google-button:not(.hidden))) { display: none; }
/*
 * Signed-in guest: the "Hey, name" dropdown from the shared sign-in partial (hotel.partials.guest-profile-menu). Styled
 * here in full so it matches the bar whatever utility classes the partial carries. The partial's Manage Booking link
 * is left out of V6 for now; the guest booking portal will add its entry point.
 */
.v6 .bar-account [data-be-guest-profile]:not(.hidden) { display: flex; }
.v6 .bar-account [data-be-guest-profile] > div { display: flex; align-items: center; gap: 8px; }
.v6 .bar-account a[aria-label="Manage Booking"] { display: none; }
.v6 .bar-account [data-guest-menu] { position: relative; }
.v6 .bar-account [data-guest-menu] > summary { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 2px 10px 2px 2px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; list-style: none; }
.v6 .bar-account [data-guest-menu] > summary::-webkit-details-marker { display: none; }
.v6 .bar-account [data-guest-menu] > summary img, .v6 .bar-account [data-guest-menu] > summary [data-be-guest-avatar-fallback] { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.v6 .bar-account [data-be-guest-avatar-fallback], .v6 .bar-account nav [data-be-guest-initial] { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #f3f4f6; color: var(--ink); font: 700 13px/1 Inter, ui-sans-serif, system-ui, sans-serif; }
.v6 .bar-account [data-guest-menu] > summary .hidden, .v6 .bar-account [data-be-guest-avatar-fallback].hidden, .v6 .bar-account [data-guest-menu] > summary img[hidden] { display: none; }
.v6 .bar-account [data-guest-menu] > summary > span:not([data-be-guest-avatar-fallback]) { display: block; max-width: 140px; line-height: 1.2; }
.v6 .bar-account [data-guest-menu] > summary > span:not([data-be-guest-avatar-fallback]) span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.v6 .bar-account [data-guest-menu] > summary > span:not([data-be-guest-avatar-fallback]) span:first-child { font-size: 11px; font-weight: 500; color: var(--ink-3); }
.v6 .bar-account [data-guest-menu] > summary > i { font-size: 10px; color: var(--ink-3); }
.v6 .bar-account [data-guest-menu] > nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 224px; max-width: calc(100vw - 32px); padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); }
.v6 .bar-account [data-guest-menu] > nav a, .v6 .bar-account [data-guest-menu] > nav button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: 500 14px/1.3 Inter, ui-sans-serif, system-ui, sans-serif; text-align: left; text-decoration: none; cursor: pointer; }
.v6 .bar-account [data-guest-menu] > nav a:first-child { border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; margin-bottom: 4px; min-height: 52px; }
.v6 .bar-account [data-guest-menu] > nav a:first-child span span { display: block; }
.v6 .bar-account [data-guest-menu] > nav a:first-child span span + span { font-size: 12px; color: var(--ink-3); }
.v6 .bar-account [data-guest-menu] > nav a:hover, .v6 .bar-account [data-guest-menu] > nav button:hover { background: #f3f4f6; }
.v6 .bar-account [data-guest-menu] > nav i { width: 18px; color: var(--ink-3); }
.v6 .bar-account [data-guest-menu-error]:empty { display: none; }
.v6 .bar-account [data-guest-menu-error] { margin: 4px 10px; font-size: 12px; color: var(--danger); }
/* One "Sign in" (signed out): Google and "Find my booking" in a small menu. The old separate Login link is not shown. */
.v6 .bar-account [data-be-guest-login] { display: none; }
.v6 #be-guest[data-signed-in="1"] ~ .signin { display: none; }
.v6 .signin { position: relative; }
.v6 .signin[hidden] { display: none; }
.v6 .signin-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); font: 600 13px/1 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.v6 .signin-toggle:hover { background: #f3f4f6; }
.v6 .signin-toggle i { font-size: 16px; }
/* Kept rendered while closed (not display:none) so Google can draw its button inside. */
.v6 .signin-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 260px; max-width: calc(100vw - 32px); display: grid; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.v6 .signin.is-open .signin-menu { visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
.v6 .signin-note { margin: 0; font-size: 13px; color: var(--ink-2); }
.v6 .signin-google > #be-google-button, .v6 .signin-google > #be-google-button.hidden { display: block; min-height: 40px; }
.v6 .signin-find { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; }
.v6 .signin-find:hover { text-decoration: underline; }
.v6 .signin-find i { color: var(--ink-3); }
/* Phones (option C2): a room's rates as radio rows, one summary and one Select under them. */
/* The plans are one quiet list (thin dividers, the picked one softly shaded) so the button under them stays the action. */
.v6 .plan-pick { margin: 0; padding: 12px 16px 4px; border: 0; min-width: 0; }
.v6 .plan-pick legend { float: left; width: 100%; padding: 0; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.v6 .plan-pick .pick-for strong { font-weight: 700; color: var(--ink); }
.v6 .pick-mixed { clear: both; margin: 0 0 8px; font-size: 12px; color: var(--warn); }
.v6 .pick-list { clear: both; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.v6 .pick-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; background: #fff; cursor: pointer; }
.v6 .pick-row + .pick-row { border-top: 1px solid var(--line); }
.v6 .pick-row[hidden] { display: none; }
.v6 .pick-row:has(input:disabled) { cursor: default; }
/* A rate that can't take a room's guests: faded name and radio, no price, and the reason in amber under the name. */
.v6 .pick-row.is-blocked .pick-title { color: #9ca3af; }
.v6 .pick-row.is-blocked input { opacity: .4; }
.v6 .pick-block { display: flex; gap: 6px; align-items: baseline; margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--warn); }
.v6 .pick-block i { flex: none; font-size: 11px; }
/*
 * The picked plan: a thin black bar on its left (as desktop marks a chosen rate), its name and price in full black and
 * bold, and a larger black radio; the other plans step back in grey, so the pick reads without any outline or fill.
 */
.v6 .pick-row { color: #6b7280; }
.v6 .pick-row .pick-price .now { color: #4b5563; font-weight: 600; }
.v6 .pick-row.is-picked { background: #fff; color: var(--ink); box-shadow: inset 4px 0 0 var(--brand); }
.v6 .pick-row.is-picked .pick-title { font-weight: 600; }
.v6 .pick-row.is-picked .pick-price .now { color: var(--ink); font-weight: 700; }
.v6 .pick-row.is-picked input { width: 22px; height: 22px; }
.v6 .pick-row input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: #000; color: #000; }
.v6 .pick-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.v6 .pick-title { font-size: 15px; font-weight: 500; }
.v6 .pick-meta { display: flex; flex-direction: column; font-size: 12px; }
.v6 .pick-caption { font-size: 12px; }
.v6 .pick-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.v6 .pick-price .now { font-size: 16px; font-weight: 700; }
.v6 .pick-was { display: flex; gap: 6px; font-size: 12px; }
.v6 .pick-was .was { color: var(--danger); text-decoration: line-through; }
.v6 .pick-was .off { color: var(--ok); font-weight: 600; }
/* Each plan says what its price includes (taxes can differ between plans, e.g. above a tax slab), in V2's words. */
.v6 .pick-tax { font-size: 12px; color: var(--ink-3); text-align: right; }
.v6 .pick-tax .t-long { display: inline; }
.v6 .pick-tax .t-short { display: none; }
.v6 .plans-pick .pick-cta { padding-top: 12px; }
.v6 .pick-cta { padding: 10px 16px 14px; }
.v6 .pick-cta .btn, .v6 .pick-cta .qty { width: 100%; min-height: 48px; font-size: 15px; }
/* Some properties add their own `.btn.btn-primary` styles to the page; the card's Add button keeps V6's look. */
.v6 .pick-cta .btn-primary { background: var(--brand); color: #fff; border-color: transparent; }
.v6 .pick-cta .btn-primary:disabled { background: #9ca3af; }
/* The counter has the whole row: wide − and + targets either side of the count. */
.v6 .pick-cta .qty { display: flex; justify-content: space-between; border: 1.5px solid #000; background: #fff; }
.v6 .pick-cta .qty button { width: 64px; height: 48px; font-size: 22px; background: #fff; color: #000; }
.v6 .pick-cta .qty button:hover:not(:disabled) { background: #f3f4f6; }
.v6 .pick-cta .qty output { flex: 1; align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 15px; border-inline: 1px solid var(--line-2); }
.v6 .pick-cta .qty .qty-unit { display: inline; }
.v6 .plans-pick .more-rates { padding: 0 16px; }
.v6 .staff-menu { position: relative; }
.v6 .staff-toggle { display: flex; align-items: center; gap: 4px; border: 0; background: none; padding: 2px; cursor: pointer; color: var(--ink-3); }
.v6 .staff-toggle img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.v6 .staff-links { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 180px; display: grid; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); }
.v6 .staff-links[hidden] { display: none; }
.v6 .staff-links a, .v6 .staff-links button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 6px; background: none; font: 500 14px/1.4 Inter, ui-sans-serif, system-ui, sans-serif; color: var(--ink); text-decoration: none; cursor: pointer; }
.v6 .staff-links a:hover, .v6 .staff-links button:hover { background: #f3f4f6; }
.v6 .staff-links form { margin: 0; }
.v6 .bar-error { margin-top: 12px; font-size: 14px; color: var(--danger); }

/* Buttons */
.v6 .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.v6 .btn-primary { background: var(--brand); color: #fff; }
.v6 .btn-primary:disabled, .v6 .btn-cta:disabled { background: #9ca3af; cursor: not-allowed; }
.v6 .btn-cta { background: var(--cta); color: #fff; }
.v6 .btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.v6 .btn-ghost:hover { border-color: var(--ink-3); }
/* Select: a calm black outline, like the room counter it turns into. */
.v6 .btn-outline { background: #fff; border-color: var(--brand); color: var(--brand); }
.v6 .btn-outline:disabled { background: #f3f4f6; border-color: var(--line-2); color: #9ca3af; cursor: not-allowed; }
/* Zotel's touch: main buttons and the first-letter logo turn green on hover. Phones have no hover, so there while pressed. */
.v6 :is(.btn-primary, .btn-cta, .btn-outline, .bar-change):active:not(:disabled), .v6 .bar-logo:not(.has-image):active { background: var(--cta-hover); border-color: var(--cta-hover); color: #fff; }
@media (hover: hover) {
    .v6 :is(.btn-primary, .btn-cta, .btn-outline, .bar-change):hover:not(:disabled), .v6 .bar-logo:not(.has-image):hover { background: var(--cta-hover); border-color: var(--cta-hover); color: #fff; }
}
.v6 .plans-foot { padding: 0 20px 12px; font-size: 13px; color: var(--ink-3); }
/* The rooms booked on a rate, with who stays in each, right under that rate: grey, carrying on the rate's bar. */
.v6 .room-lines { background: #f9fafb; box-shadow: inset 3px 0 0 var(--brand); }
.v6 .room-lines + .plan, .v6 .room-lines + .more-rates { border-top: 1px dashed var(--line); }
.v6 .rl { padding: 10px 20px; display: grid; gap: 8px; border-top: 1px dashed var(--line); }
.v6 .rl:first-child { border-top: 0; }
/* One line: "Room 1", its rate, its price, remove. */
.v6 .rl-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; }
.v6 .rl-name { font-weight: 400; font-size: 14px; white-space: nowrap; }
.v6 .rl-head .line-plan { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.v6 .rl-amt { font-weight: 400; font-size: 14px; white-space: nowrap; }
/* Children when the room takes none: shown, so every room row has the same shape, but greyed out. */
.v6 .rl-step.is-off { opacity: .45; }
.v6 .rl-del { border: 0; background: none; color: var(--ink-3); cursor: pointer; width: 28px; height: 28px; border-radius: 6px; margin-right: -6px; }
.v6 .rl-del:hover { background: #f3f4f6; color: var(--ink); }
/* One line: adults and children side by side, with smaller + / − than the search picker. */
.v6 .rl-guests { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.v6 .rl-step { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.v6 .rl .stepper { gap: 6px; }
.v6 .rl .stepper button { width: 30px; height: 30px; font-size: 14px; }
.v6 .rl .stepper output { min-width: 16px; font-size: 14px; }
.v6 .rl-ages { display: flex; flex-wrap: wrap; gap: 6px; }
.v6 .rl-ages select { border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 8px; font-size: 13px; background: #fff; width: auto; }
.v6 .rl-ages select.missing { border-color: var(--danger); }
/*
 * Each room on one open line under its rate, lined up with it: the name indented to the rate's name, guests beside
 * the price, the price under the rate's price and remove under the rate's counter. Ages and errors go below.
 */
.v6 .rl { grid-template-columns: minmax(0, 1fr) auto minmax(var(--rl-amt-w), auto) auto; align-items: center; column-gap: 20px; row-gap: 8px; padding: 8px 20px 8px 44px; border-top: 0; }
.v6 .rl-edit, .v6 .rl-head { display: contents; }
.v6 .rl-name { grid-column: 1; grid-row: 1; }
.v6 .rl-head .line-plan { grid-column: 1; grid-row: 2; }
.v6 .rl-guests { grid-column: 2; grid-row: 1; flex-wrap: nowrap; gap: 20px; }
.v6 .rl-amt { grid-column: 3; grid-row: 1; justify-self: end; }
.v6 .rl-del { grid-column: 4; grid-row: 1; }
.v6 .rl-edit > .rl-ages, .v6 .rl-edit > .err-text { grid-column: 1 / -1; }
.v6 .room-lines { padding-bottom: 6px; }
/* A rate's total when it has two or more units, its amount under the units' prices. */
.v6 .rl-total { display: grid; grid-template-columns: minmax(0, 1fr) auto 22px; column-gap: 20px; align-items: center; margin: 4px 20px 0 44px; padding: 8px 0 4px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.v6 .rl-total-label { grid-column: 1; }
.v6 .rl-total-amt { grid-column: 2; justify-self: end; white-space: nowrap; }
/* "Adults" and "Children" once, above the rooms, each centred over its column of steppers. */
.v6 .rl-labels { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(var(--rl-amt-w), auto) auto; column-gap: 20px; padding: 4px 20px 0 44px; font-size: 12px; color: var(--ink-3); }
.v6 .rl-labels .rl-guests { grid-column: 2; }
.v6 .rl-guests .rl-step { width: 88px; justify-content: center; }
.v6 .rl-edit .rl-step > span:first-child { display: none; }

.v6 .btn-sm { padding: 7px 12px; font-size: 14px; }
.v6 .btn-lg { padding: 14px 22px; font-size: 16px; width: 100%; }
.v6 .btn-link { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.v6 .icon-btn:disabled { opacity: .35; cursor: default; }
.v6 .icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); }

/* Gallery: fixed shape, so any photo ratio fits */
.v6 .gallery { margin-top: 16px; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 360px; border-radius: var(--radius); overflow: hidden; position: relative; }
.v6 .gallery > button { border: 0; padding: 0; cursor: zoom-in; background: var(--line); overflow: hidden; position: relative; }
.v6 .gallery > button:first-child { grid-row: span 2; }
.v6 .gallery-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.v6 .gallery-1 > button:first-child, .v6 .gallery-2 > button:first-child { grid-row: auto; }
.v6 .gallery-2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.v6 .gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.v6 .gallery button:hover img { transform: scale(1.03); }
.v6 .gallery-rating { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow); font-size: 14px; color: var(--ink); pointer-events: none; }
.v6 .gallery-rating i { color: #f59e0b; }
.v6 .gallery-rating span { color: var(--ink-3); }

.v6 .intro > * { min-width: 0; }
.v6 .intro { padding: 16px 0 8px; }
.v6 .address { margin-top: 6px; }
.v6 .address a { color: var(--ink-2); }
.v6 .highlights { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.v6 .highlights li { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--ink-2); }
.v6 .highlights i { color: var(--ink-3); width: 14px; text-align: center; }
.v6 .highlights .map-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; text-decoration: none; }
.v6 .highlights .rating-chip { border-color: #bbf7d0; background: var(--brand-soft); color: var(--ink); }
.v6 .highlights .rating-chip i { color: var(--ok); }
.v6 .highlights .rating-chip span { color: var(--ink-3); }
.v6 .tag { font-size: 11px; font-weight: 600; border-radius: 6px; padding: 1px 6px; background: #f3f4f6; color: var(--ink-3); }
.v6 .tag-free { background: var(--brand-soft); color: var(--ok); }

/* Search fields (dates, guests, property) */
.v6 .field { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 16px 10px; cursor: pointer; min-width: 260px; }
.v6 .field:hover { border-color: var(--ink-3); }
.v6 .field[aria-expanded="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px #e5e7eb; }
.v6 .field-label { font-size: 12px; color: var(--ink-3); }
.v6 .field-property { position: relative; min-width: 220px; max-width: 320px; }
.v6 .field-property select { border: 0; padding: 0 22px 0 0; margin: 0; background: transparent; font-weight: 600; font-size: 15px; width: 100%; appearance: none; cursor: pointer; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.v6 .field-property::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 11px; color: var(--ink-3); position: absolute; right: 14px; bottom: 14px; pointer-events: none; }
.v6 .field-property:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px #e5e7eb; }
.v6 .field-value { font-weight: 600; }
.v6 .field .short { display: none; }

/* Popovers (calendar, guests) */
.v6 .popover { position: fixed; z-index: 45; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px; overflow: auto; color: var(--ink); }
.v6 .cal { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.v6 .cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.v6 .cal-month { font-weight: 650; text-align: center; margin-bottom: 8px; }
.v6 .cal-grid { display: grid; grid-template-columns: repeat(7, 46px); gap: 2px; }
.v6 .cal-dow { font-size: 11px; color: var(--ink-3); text-align: center; padding-bottom: 4px; }
.v6 .cal-day { height: 50px; border: 0; background: none; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-weight: 500; color: var(--ink); }
.v6 .cal-day small { font-size: 10px; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
/* Availability colours, as in V2; the selected dates keep their own colours. */
.v6 .cal-day.lvl-good { color: #16a34a; font-weight: 600; }
/* Filling up is amber and few rooms left a deep red, so the two read apart at a glance (V2's orange and red were close). */
.v6 .cal-day.lvl-limited { color: #b45309; font-weight: 600; }
.v6 .cal-day.lvl-low { color: #dc2626; font-weight: 600; }
.v6 .cal-day.sold, .v6 .cal-day.sold small { color: #9ca3af; }
.v6 .cal-day:hover:not(:disabled) { background: #f3f4f6; }
.v6 .cal-day:disabled { color: #d1d5db; cursor: default; }
.v6 .cal-day.in-range { background: var(--brand-soft); border-radius: 0; }
.v6 .cal-day.edge { background: var(--brand); color: #fff; }
.v6 .cal-day.edge small { color: #d1fae5; }
.v6 .cal-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); gap: 16px; }
.v6 .cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--ink-3); }
.v6 .cal-legend li { display: inline-flex; align-items: center; gap: 5px; }
.v6 .cal-legend .sw { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.v6 .cal-legend .sw.lvl-good { background: #16a34a; }
.v6 .cal-legend .sw.lvl-limited { background: #f59e0b; }
.v6 .cal-legend .sw.lvl-low { background: #dc2626; }
.v6 .cal-legend .sw.lvl-sold-out { background: #9ca3af; }
.v6 .cal-late { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; }
.v6 .cal-nav { display: flex; gap: 8px; }
.v6 .quick-dates { display: flex; gap: 8px; margin-bottom: 12px; }
.v6 .quick-dates .btn { flex: 1; }
.v6 .quick-dates .btn.is-active { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }

.v6 .guests-pop { width: 340px; }
.v6 .stepper-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.v6 .stepper-row + .stepper-row { border-top: 1px solid var(--line); }
.v6 .stepper { display: inline-flex; align-items: center; gap: 12px; }
.v6 .stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-size: 16px; display: grid; place-items: center; }
.v6 .stepper button:disabled { opacity: .35; cursor: default; }
.v6 .stepper output { min-width: 18px; text-align: center; font-weight: 600; }
.v6 .ages { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 0 8px; }
.v6 .ages label { font-size: 12px; color: var(--ink-3); display: flex; flex-direction: column; gap: 3px; }
.v6 .err-text { color: var(--danger); font-size: 13px; }
.v6 .err-text:empty { display: none; }
.v6 main select, .v6 dialog select, .v6 .popover select { border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; background-color: #fff; width: 100%; color: var(--ink); }
.v6 main select:focus, .v6 dialog select:focus, .v6 .popover select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px #e5e7eb; }
.v6 select.missing { border-color: var(--danger); }

/* Layout */
.v6 .layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-top: 18px; }
.v6 .room-list { display: flex; flex-direction: column; gap: 18px; }
.v6 .rooms-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 14px; }
.v6 .rooms-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.v6 .rooms-for { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; font-size: 14px; color: var(--ink-2); }
.v6 .rooms-for .btn-link { font-size: 14px; }

/* Room card */
.v6 .room { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: calc(var(--v6-header-h, 0px) + 12px); }
.v6 .room.is-target { border-color: var(--brand); }
.v6 .room-top { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.v6 .room-photo { position: relative; height: 100%; min-height: 230px; background: var(--line); border: 0; padding: 0; overflow: hidden; }
.v6 .room-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v6 .rp-open { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; }
.v6 .rp-nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12px; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.v6 .rp-prev { left: 8px; }
.v6 .rp-next { right: 8px; }
/* A finger-sized tap area around each arrow, so a tap just beside one steps the photo instead of opening the viewer. */
.v6 .rp-nav::after { content: ''; position: absolute; inset: -8px; }
@media (hover: hover) { .v6 .rp-nav { opacity: 0; transition: opacity .15s; } .v6 .room-photo:hover .rp-nav, .v6 .rp-nav:focus-visible { opacity: 1; } }
.v6 .room-photo.no-photo { cursor: default; display: grid; place-items: center; color: #9ca3af; font-size: 34px; }
.v6 .photo-count { position: absolute; left: 10px; bottom: 10px; background: rgba(17, 24, 39, .75); color: #fff; font-size: 12px; border-radius: 8px; padding: 3px 8px; display: inline-flex; gap: 6px; align-items: center; }
.v6 .offer { position: absolute; left: 10px; top: 10px; max-width: calc(100% - 20px); background: var(--accent); color: var(--brand-ink); font-size: 12px; font-weight: 600; border-radius: 8px; padding: 4px 9px; box-shadow: var(--shadow); }
.v6 .room-cancel { font-size: 13px; display: flex; gap: 6px; align-items: center; }
.v6 .room-info { padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
/* The room name opens its details; a small info icon after it says so. */
.v6 .room-name { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; text-underline-offset: 3px; }
.v6 .room-name:hover { text-decoration: underline; }
.v6 .room-name-end { white-space: nowrap; }
.v6 .room-name i { margin-left: 6px; font-size: .7em; color: var(--ink-3); vertical-align: .15em; position: relative; }
/* A finger-sized tap area around the icon, without changing the line's height. */
.v6 .room-name i::after { content: ''; position: absolute; inset: -14px; }
.v6 .room-name:hover i { color: var(--ink); }
.v6 .room-title { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.v6 .room-title h3 { overflow-wrap: anywhere; }
.v6 .specs { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); font-size: 14px; }
.v6 .specs span { display: inline-flex; gap: 7px; align-items: center; }
.v6 .specs i { color: var(--ink-3); width: 15px; text-align: center; }
.v6 .room-desc { color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v6 .amen { display: flex; flex-wrap: wrap; gap: 6px; }
.v6 .amen span { font-size: 13px; color: var(--ink-2); background: #f3f4f6; border-radius: 8px; padding: 4px 9px; display: inline-flex; gap: 6px; align-items: center; }
.v6 .amen i { color: var(--ink-3); font-size: 12px; }
.v6 .amen .amen-more { display: inline-flex; flex: none; border: 1px solid var(--line-2); background: #fff; border-radius: 8px; padding: 3px 9px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.v6 .reassure-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.v6 .pay-tags { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-2); }
.v6 .pay-tags > span { display: inline-flex; align-items: center; gap: 6px; }
.v6 .pay-tags i { color: var(--ok); }
/* "Reserve with just 40%": a dotted underline says there is more; hover, focus or a tap shows how it works. */
.v6 .pay-tip { position: relative; cursor: help; outline-offset: 2px; }
.v6 .pay-tip .pay-label { text-decoration: underline dotted var(--line-2); text-underline-offset: 3px; }
.v6 .pay-tip .tip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v6 .pay-tip:hover .tip, .v6 .pay-tip:focus .tip, .v6 .pay-tip:focus-within .tip { left: 0; top: calc(100% + 6px); z-index: 20; width: max-content; max-width: 240px; height: auto; overflow: visible; clip: auto; white-space: normal; padding: 8px 10px; border-radius: 8px; background: var(--dark); color: #fff; font-size: 12px; line-height: 1.4; box-shadow: var(--shadow-lg); }
.v6 .left-badge { font-size: 12px; font-weight: 600; color: var(--danger); background: var(--danger-bg); border-radius: 8px; padding: 3px 8px; white-space: nowrap; }
.v6 .fit-note { font-size: 13px; color: var(--warn); display: flex; gap: 8px; align-items: center; }
.v6 .ok { color: var(--ok); }
.v6 .warn { color: var(--warn); }
.v6 .neutral { color: var(--ink-2); }

.v6 .plans { border-top: 1px solid var(--line); }
.v6 .plan { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 20px; align-items: center; padding: 14px 20px; }
.v6 .plan + .plan { border-top: 1px dashed var(--line); }
.v6 .plan[hidden] { display: none; }
/* A rate in the stay: a dark bar down its left edge, carried on through its rooms below. */
.v6 .plan.chosen { box-shadow: inset 3px 0 0 var(--brand); }
.v6 .plan.is-target { background: var(--brand-soft); }
.v6 .plan-name { font-weight: 500; display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.v6 .plan-name i { color: var(--ink-3); width: 16px; text-align: center; flex: none; }
.v6 .plan-meta { font-size: 13px; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.v6 .plan-meta .desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v6 .plan-price { text-align: right; }
.v6 .plan-price .now { font-size: 18px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.v6 .plan-price .now small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.v6 .plan-price .was { font-size: 12px; color: var(--danger); text-decoration: line-through; margin-left: 8px; font-weight: 400; }
.v6 .plans-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 10px 20px 0; font-size: 13px; }
.v6 .plans-head .festive { display: inline-flex; align-items: center; gap: 6px; background: #fff7ed; border: 1px solid #fed7aa; color: #c2410c; font-weight: 600; border-radius: 6px; padding: 2px 8px; }
.v6 .plan-price .off { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--ok); }
.v6 .policy-text { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.v6 .policy-text:hover { text-decoration-style: solid; }
.v6 .policy-for { margin: 0 0 12px; color: var(--ink-3); font-size: 14px; }
.v6 .policy-steps { list-style: none; margin: 0 0 14px; padding: 0; border: 1px solid var(--line); border-radius: 12px; }
.v6 .policy-steps li { display: flex; gap: 10px; padding: 12px 14px; font-size: 14px; }
.v6 .policy-steps li + li { border-top: 1px solid var(--line); }
.v6 .policy-steps li i { margin-top: 3px; }
.v6 .policy-steps li.ok i { color: var(--ok); }
.v6 .policy-steps li.warn i { color: var(--warn); }
.v6 .policy-steps strong { display: block; font-weight: 600; }
.v6 .policy-steps span { color: var(--ink-2); }
.v6 .policy-note { margin: 0 0 4px; }
.v6 .plan-price .for, .v6 .plan-price .tot { font-size: 12px; color: var(--ink-3); }
/* A rate that holds fewer guests than the card's "Total for …" line says who its price is for. */
.v6 .plan-price .rate-fits { font-weight: 600; color: var(--ink-2); }
.v6 .plan-cta { min-width: 132px; display: flex; justify-content: flex-end; }
.v6 .qty { display: inline-flex; align-items: center; border: 1px solid var(--brand); border-radius: 10px; overflow: hidden; }
.v6 .qty button { width: 40px; height: 40px; border: 0; background: #f3f4f6; color: var(--brand); cursor: pointer; font-size: 16px; }
.v6 .qty button:disabled { opacity: .4; cursor: default; }
.v6 .qty output { min-width: 60px; text-align: center; font-weight: 600; font-size: 14px; }
.v6 .more-rates { display: flex; justify-content: center; border-top: 1px dashed var(--line); }
.v6 .more-rates button { background: none; border: 0; padding: 12px; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.v6 .soldout { padding: 18px 20px; border-top: 1px solid var(--line); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
/* Sold out: a light fade, still in colour. Rooms that open with another stay keep their photo as is. */
.v6 .room.is-soldout:not(.is-fixable) .room-photo img { opacity: .7; }
.v6 .empty-card { background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; justify-items: start; }
.v6 .empty-card .row-actions { margin-top: 2px; }
/* Long labels (a stay's dates) wrap inside their button rather than pushing the page wider than a phone. */
.v6 .row-actions .btn { white-space: normal; text-align: center; max-width: 100%; }

/* Cart */
.v6 .cart-col { position: sticky; top: calc(var(--v6-header-h, 0px) + 16px); }
.v6 .cart { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.v6 .cart h2 { font-size: 18px; }
.v6 .cart-when { margin: 6px 0 10px; font-size: 13px; color: var(--ink-3); }
.v6 .cart-empty { text-align: center; padding: 18px 6px 6px; color: var(--ink-3); font-size: 14px; }
.v6 .cart-empty i { font-size: 26px; color: var(--line-2); display: block; margin-bottom: 8px; }
.v6 .line { padding: 12px 0; border-top: 1px solid var(--line); }
.v6 .line-head { display: flex; justify-content: space-between; gap: 10px; }
.v6 .line-name { font-weight: 600; font-size: 14px; }
.v6 .line-plan { font-size: 13px; color: var(--ink-3); }
.v6 .line-amt { font-weight: 600; font-size: 14px; white-space: nowrap; }
.v6 .line-actions { display: flex; gap: 16px; margin-top: 6px; }
.v6 .line-remove { font-size: 13px; color: var(--ink-3); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }

.v6 .sum { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; display: grid; gap: 6px; font-size: 14px; }
.v6 .sum div { display: flex; justify-content: space-between; gap: 12px; }
.v6 .sum .total { font-size: 18px; font-weight: 700; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.v6 .sum .total small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); }
/* Two small rows under the total: what the guest saves (against the cards' struck-through prices) and pays now. */
.v6 .sum .save-row, .v6 .sum .due-row { font-size: 13px; font-weight: 600; color: var(--ok); }
.v6 .sum .save-row i, .v6 .sum .due-row i { margin-right: 6px; width: 14px; text-align: center; }
.v6 .alert { font-size: 13px; border-radius: 10px; padding: 9px 11px; display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; }
.v6 .alert-warn { background: var(--warn-bg); color: var(--warn); }
.v6 .alert-error { background: var(--danger-bg); color: var(--danger); }
.v6 .alert:empty { display: none; }
.v6 .cart .btn-lg, .v6 .dlg-body .btn-lg { margin-top: 14px; }

/* Sections */
.v6 .sections { padding-bottom: 48px; }
/* The shared booking engine footer (hotel.partials-v2.booking-engine-footer) sits right under the page. */
.v6 > footer { margin-top: 0 !important; }
.v6 .about-text { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.65; white-space: pre-line; }
.v6 .about-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.v6 .about-toggle { margin-top: 6px; }
.v6 .section { margin-top: 44px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.v6 .section > h2, .v6 .section-head { margin-bottom: 18px; }
.v6 .section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.v6 .strip-nav { display: flex; gap: 8px; }
.v6 .photo-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.v6 .photo-strip::-webkit-scrollbar { display: none; }
.v6 .photo-strip > button { flex: none; width: 260px; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: var(--line); cursor: zoom-in; scroll-snap-align: start; }
.v6 .photo-strip img { width: 100%; height: 100%; object-fit: cover; }
.v6 .facility-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px 24px; }
.v6 .facility { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.v6 .facility > i { width: 34px; height: 34px; border-radius: 10px; background: #f3f4f6; color: var(--ink-2); display: grid; place-items: center; font-size: 14px; flex: none; }
.v6 .fac-groups { columns: 2 260px; column-gap: 32px; }
.v6 .fac-group { break-inside: avoid; margin-bottom: 20px; }
.v6 .fac-group h3 { font-size: 14px; margin-bottom: 8px; }
.v6 .fac-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.v6 .fac-group li { display: flex; gap: 8px; align-items: center; }
.v6 .fac-group li i { color: var(--ink-3); font-size: 12px; width: 16px; text-align: center; }
.v6 .policy-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
/* Location: quiet contact links (Directions · Call · Email), not buttons. */
.v6 .contact-links { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.v6 .contact-links a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.v6 .contact-links a:hover { color: var(--ink); }
.v6 .contact-links a + a::before { content: '·'; display: inline-block; margin: 0 8px; color: var(--line-2); text-decoration: none; }
.v6 .ptile { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.v6 .ptile small { color: var(--ink-3); font-size: 12px; display: block; }
.v6 .ptile strong { font-size: 16px; }
.v6 .ptile p { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.v6 .policy-grid { columns: 2 300px; column-gap: 32px; }
.v6 .pgroup { break-inside: avoid; margin-bottom: 18px; }
.v6 .pgroup h3 { font-size: 14px; margin-bottom: 6px; }
.v6 .pgroup ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; display: grid; gap: 4px; list-style: disc; }
.v6 .timeline { display: flex; align-items: center; margin-top: 12px; font-size: 12px; }
.v6 .timeline .seg { flex: 1; height: 6px; border-radius: 6px; }
.v6 .timeline .seg.free { background: var(--accent); }
.v6 .timeline .seg.paid { background: #fecaca; }
.v6 .tl-labels { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.v6 .location-card.has-map { display: grid; grid-template-columns: 400px 1fr; gap: 24px; align-items: center; }
.v6 .map-frame { display: block; width: 100%; height: 220px; border: 0; border-radius: 12px; background: #f3f4f6; }
.v6 .row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Dialogs */
.v6 .dlg { margin: auto; border: 0; border-radius: 18px; padding: 0; width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: var(--shadow-lg); background: #fff; color: var(--ink); }
.v6 .dlg[open] { display: flex; flex-direction: column; }
.v6 .dlg[data-kind="policy"] { width: min(520px, calc(100vw - 32px)); }
.v6 .dlg::backdrop { background: rgba(17, 24, 39, .55); }
.v6 .dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.v6 .dlg-body { padding: 20px; overflow: auto; }
.v6 .dlg-foot:empty { display: none; }
.v6 .dlg-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.v6 .rd-photos { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; height: 320px; border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
.v6 .rd-photos.single { grid-template-columns: 1fr; }
.v6 .rd-photos button { border: 0; padding: 0; cursor: zoom-in; overflow: hidden; background: var(--line); }
.v6 .rd-photos img { width: 100%; height: 100%; object-fit: cover; }
.v6 .rd-photos .stack { display: grid; gap: 8px; }
.v6 .rd-grid { columns: 3 180px; column-gap: 24px; margin-top: 14px; list-style: none; padding: 0; }
.v6 .rd-grid li { break-inside: avoid; margin-bottom: 8px; font-size: 14px; }
.v6 .rd-grid i { width: 18px; color: var(--ok); }

.v6 .lightbox { border: 0; padding: 0; background: rgba(0, 0, 0, .96); width: 100vw; height: 100vh; max-width: none; max-height: none; color: #fff; }
.v6 .lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; }
.v6 .lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.v6 .lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; justify-content: center; padding: 40px 0; min-width: 0; }
.v6 .lightbox img { max-height: calc(100vh - 120px); max-width: 100%; object-fit: contain; border-radius: 8px; }
.v6 .lightbox figcaption { color: #d1d5db; font-size: 14px; }
.v6 .lightbox .icon-btn { background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; justify-self: center; }
.v6 .lb-close { position: absolute; right: 18px; top: 18px; }

/* Mobile bar */
.v6 .mobile-bar { display: none; }

@media (max-width: 1024px) {
    .v6 .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
    .v6 .room-top { grid-template-columns: 240px minmax(0, 1fr); }
    .v6 .plan { grid-template-columns: minmax(0, 1fr) auto; }
    .v6 .plan-cta { grid-column: 1 / -1; justify-content: flex-end; min-width: 0; }
}

@media (max-width: 860px) {
    html:has(body.v6) { scroll-padding-top: calc(var(--v6-header-h, 56px) + 8px); }
    .v6 .wrap { padding: 0 16px; }
    /* Phones: logo · name with "dates · guests" under it · Change · sign-in; Change opens the fields under the bar. */
    .v6 .bar { gap: 10px; min-height: 56px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
    .v6 .bar-logo { width: 38px; height: 38px; font-size: 17px; }
    /* A long property name wraps to two lines (then …) rather than being cut to a few letters by Edit and sign-in. */
    .v6 .bar-name, .v6 .bar-name.has-switch { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: break-word; font-size: 15px; line-height: 1.2; }
    .v6 .bar-title { flex: 1 1 0; }
    /* Phones: Sign in is just its icon, so the name keeps most of the row (the text stays for screen readers). */
    .v6 .bar-account { gap: 6px; }
    .v6 .signin-toggle { padding: 0; width: 36px; justify-content: center; font-size: 0; gap: 0; }
    .v6 .signin-toggle i { font-size: 20px; }
    /* Phones have no empty space for the wave: it would only cross the text or show as stray marks. */
    body.v6 { background-image: none; }
    .v6 .bar-switch, .v6 .bar-location { display: none; }
    /* The dates and guests wrap to a second line rather than losing the children behind Edit. */
    .v6 .bar-sub { white-space: normal; }
    .v6 .next-stays .btn { flex: 1 1 100%; }
    .v6 .bar-summary { display: inline; border: 0; background: none; padding: 0; font: 500 13px/1.3 Inter, ui-sans-serif, system-ui, sans-serif; color: var(--ink-2); cursor: pointer; text-align: left; }
    .v6 .bar-change { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--brand); border-radius: 999px; padding: 7px 12px; font: 600 13px/1.2 Inter, ui-sans-serif, system-ui, sans-serif; color: #fff; cursor: pointer; flex: none; }
    .v6 .bar-change::before { content: '\f303'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 11px; }
    .v6 .v6-bar.is-editing .bar-change::before { content: none; }
    .v6 .bar-search { order: 10; flex: 1 1 100%; display: none; flex-wrap: wrap; gap: 8px; padding-bottom: 4px; }
    .v6 .v6-bar.is-editing .bar-search { display: flex; }
    .v6 .bar-search .field.bar-property-phone { display: flex; flex: 1 1 100%; }
    .v6 .bar-search .field { flex: 1; }
    .v6 .bar-search #field-dates, .v6 .bar-search #field-guests { min-width: 0; }
    /* Phones: a signed-in guest gets just their photo or initial; tapping it opens their menu. */
    /* Older sign-in markup (photo, then name and Sign out side by side): just the photo; tapping it shows the rest. */
    .v6 .bar-account [data-be-guest-profile]:not(.open):has(> img[data-be-guest-avatar]:not([hidden])) > div:has(> #be-logout) { display: none; }
    .v6 .bar-account [data-be-guest-profile].open > div:has(> #be-logout) { display: flex; position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; padding: 10px 12px; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); }
    .v6 .bar-account [data-be-guest-profile] > img[data-be-guest-avatar] { cursor: pointer; }
    .v6 .bar-account [data-guest-menu] > summary { padding: 2px; gap: 0; }
    .v6 .bar-account [data-guest-menu] > summary > span:not([data-be-guest-avatar-fallback]), .v6 .bar-account [data-guest-menu] > summary > i { display: none; }
    .v6 main h1 { font-size: 22px; }
    .v6 main h2 { font-size: 19px; }
    /* Phones: one large photo and two stacked beside it, like desktop but tighter. */
    .v6 .gallery { margin: 0 -16px; border-radius: 0; height: 240px; gap: 4px; grid-template-columns: 1.15fr 1fr; }
    .v6 .gallery-1 { grid-template-columns: 1fr; }
    /* Short enough to sit inside the large photo, with the same gap on both sides. */
    .v6 .gallery-rating { left: 8px; bottom: 8px; font-size: 11px; padding: 4px 8px; gap: 4px; white-space: nowrap; }
    .v6 .strip-nav { display: none; }
    .v6 .photo-strip { margin: 0 -18px; padding: 0 18px; scroll-padding: 0 18px; gap: 8px; }
    .v6 .photo-strip > button { width: 72%; }
    .v6 .intro { grid-template-columns: 1fr; gap: 12px; padding: 12px 0 4px; }
    /* The shared header already shows the hotel name and city; rooms carry their own cancellation line. */
    .v6 .intro h1, .v6 .intro .address { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .v6 .highlights { margin-top: 0 !important; }
    .v6 .address { font-size: 14px; }
    .v6 .highlights { flex-wrap: nowrap; overflow-x: auto; margin: 12px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
    .v6 .highlights::-webkit-scrollbar { display: none; }
    .v6 .highlights li { flex: none; }
    .v6 .field.field-property { max-width: none; min-width: 0; }
    /* Phones: dates and guests are one line each, with an icon in place of the label. */
    .v6 .bar-search #field-dates .field-label, .v6 .bar-search #field-guests .field-label { display: none; }
    .v6 .bar-search #field-dates, .v6 .bar-search #field-guests { flex-direction: row; align-items: center; gap: 8px; padding: 9px 12px; }
    .v6 .bar-search .field::before { font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 13px; color: var(--ink-3); }
    .v6 #field-dates::before { content: '\f133'; }
    .v6 #field-guests::before { content: '\f0c0'; }
    .v6 .field-property select { font-size: 14px; }
    .v6 .field { min-width: 0; flex: 1; padding: 7px 12px; }
    .v6 .field-value { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .v6 .field .long { display: none; }
    .v6 .field .short { display: inline; }
    .v6 .layout { grid-template-columns: 1fr; padding-top: 10px; }
    .v6 .cart-col { display: none; }
    .v6 .room-list { gap: 14px; }
    .v6 .room-top { grid-template-columns: 1fr; }
    .v6 .room-photo { aspect-ratio: 5 / 2; height: auto; min-height: 0; }
    .v6 .room-info { padding: 12px 16px; gap: 8px; }
    .v6 .room-info .room-desc { font-size: 13px; }
    .v6 .room-info .specs { font-size: 13px; gap: 4px 12px; }
    .v6 .amen .amen-more { display: inline-flex; }
    .v6 .plan-cta { align-self: start; }
    .v6 .amen { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
    .v6 .amen::-webkit-scrollbar { display: none; }
    .v6 .amen span { flex: none; }
    .v6 .plan { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; gap: 8px 14px; }
    .v6 .plan-cta { grid-column: 2; grid-row: 1 / span 2; align-self: center; min-width: 0; }
    .v6 .plan-price { grid-column: 1; text-align: left; }
    .v6 .plan-price .now { font-size: 17px; }
    .v6 .plans-head { padding: 10px 16px 0; font-size: 12px; gap: 6px 8px; }
    .v6 .plans-foot { padding: 0 16px 12px; font-size: 12px; }
    .v6 .plan-cta .btn { min-width: 96px; min-height: 44px; }
    .v6 .qty button { width: 40px; height: 44px; }
    .v6 .qty output { min-width: 52px; }
    .v6 .section { padding: 18px; margin-top: 28px; }
    .v6 .policy-top { grid-template-columns: 1fr; }
    .v6 .location-card.has-map { grid-template-columns: 1fr; gap: 16px; }
    .v6 .map-frame { height: 180px; }
    .v6 .popover { left: 8px !important; right: 8px; width: auto !important; padding: 14px; }
    .v6 .cal { grid-template-columns: 1fr; }
    .v6 .cal > div:nth-child(2) { display: none; }
    .v6 .cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .v6 .cal-day { height: 48px; }
    .v6 .cal-foot { flex-wrap: wrap; }
    .v6 .cal-foot .btn { margin-left: auto; }
    .v6 .guests-pop { width: auto; }
    .v6 .sections { padding-bottom: 32px; }
    /* Keep the footer clear of the total-and-Reserve bar once a room is chosen. */
    .v6:has(.mobile-bar:not([hidden])) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .v6 .mobile-bar:not([hidden]) { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .08); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; gap: 12px; }
    .v6 .mobile-bar .mb-sum { flex: 1; min-width: 0; background: none; border: 0; text-align: left; padding: 0; cursor: pointer; color: var(--ink); }
    .v6 .mobile-bar .mb-sum strong { display: block; font-size: 17px; }
    .v6 .mobile-bar .mb-sum small { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
    .v6 .mobile-bar .btn { padding: 12px 22px; min-height: 48px; }
    .v6 .dlg, .v6 .dlg[data-kind="policy"] { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
    .v6 .dlg-body { padding: 16px; }
    .v6 .dlg-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
    .v6 .rd-photos { height: 220px; grid-template-columns: 1fr; }
    .v6 .rd-photos .stack { display: none; }
    .v6 .lightbox[open] { grid-template-columns: 0 1fr 0; }
    /* The arrows are positioned over the photo here, so the photo must claim the middle column itself (else it lands in the empty first one). */
    .v6 .lightbox figure { grid-column: 2; grid-row: 1; }
    .v6 .lightbox .lb-nav { position: absolute; bottom: 24px; }
    .v6 .lb-prev { left: 30%; }
    .v6 .lb-next { right: 30%; }
}

/* Searching: a new search is loading from the server. */
.v6 .search-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--ok); z-index: 1000; animation: v6-progress 8s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes v6-progress { 0% { width: 0; } 15% { width: 40%; } 100% { width: 92%; } }
.v6 .searching-note { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.v6 .searching-note i { color: var(--ok); }
body.v6.is-searching #room-list, body.v6.is-searching #cart { opacity: .4; pointer-events: none; transition: opacity .15s; }
@media (prefers-reduced-motion: reduce) { .v6 .search-progress { animation: none; width: 60%; } }

/* Phones: the same open line, narrower: no room price (the rate's price sits just above) and smaller steppers. */
@media (max-width: 860px) {
    .v6 .rl, .v6 .rl-labels { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 10px; padding-left: 36px; padding-right: 16px; }
    .v6 .rl-amt { display: none; }
    .v6 .rl-total { grid-template-columns: minmax(0, 1fr) auto; margin: 4px 16px 0 36px; }
    .v6 .rl-del { grid-column: 3; }
    .v6 .rl-guests { gap: 10px; }
    .v6 .rl-guests .rl-step { width: 82px; }
    .v6 .rl .stepper { gap: 4px; }
    .v6 .rl .stepper button { width: 28px; height: 28px; }
    .v6 .rl-labels { padding-top: 6px; }
}

/* Rate lines: short tax wording and a narrow room counter on phones, so names and prices don't wrap. */
.v6 .t-short { display: none; }
@media (max-width: 860px) {
    .v6 .t-long, .v6 .qty-unit { display: none; }
    .v6 .t-short { display: inline; }
    .v6 .plan { padding: 12px 16px; gap: 4px 12px; }
    .v6 .plan-name { font-size: 15px; gap: 6px; }
    .v6 .plan-name i { font-size: 13px; width: 14px; }
    .v6 .plan-price .now { font-size: 17px; }
    .v6 .plan-price .was { margin-left: 6px; }
    .v6 .plan-cta .btn { min-width: 84px; min-height: 40px; padding: 8px 14px; }
    .v6 .qty { border-color: var(--line-2); border-radius: 10px; }
    .v6 .qty button { width: 36px; height: 40px; background: #fff; font-size: 16px; }
    .v6 .qty output { min-width: 28px; font-size: 15px; }
}

/* Blocked rooms and searches: soft red when sold out, amber when another stay opens them. */
.v6 .room.is-soldout .soldout { background: var(--danger-bg); color: #b91c1c; border-top-color: #fecaca; }
.v6 .room.is-soldout .soldout .btn-link { color: var(--ink); }
.v6 .room.is-fixable .soldout { background: var(--warn-bg); color: var(--warn); border-top-color: #fde68a; }
.v6 .empty-card.is-soldout { background: var(--danger-bg); border: 1px solid #fecaca; }
.v6 .empty-card.is-soldout > .strong { color: #b91c1c; }
.v6 .empty-card.is-fixable { background: var(--warn-bg); border: 1px solid #fde68a; }
.v6 .empty-card.is-fixable > .strong { color: var(--warn); }
.v6 .empty-card .muted { color: var(--ink-2); }

/* Wide enough for one row per rate: every rate's button column is the room counter's width, so prices line up. */
@media (min-width: 1025px) {
    .v6 .plan { grid-template-columns: minmax(0, 1fr) auto var(--plan-cta-w); }
    .v6 .plan-cta { min-width: 0; }
    .v6 .plan-cta .qty { width: 100%; }
    .v6 .plan-cta .qty output { flex: 1; min-width: 0; white-space: nowrap; }
    .v6 .rl, .v6 .rl-labels { grid-template-columns: minmax(0, 1fr) auto minmax(var(--rl-amt-w), auto) var(--plan-cta-w); }
    .v6 .rl-total { grid-template-columns: minmax(0, 1fr) auto var(--plan-cta-w); }
    .v6 .rl-del { justify-self: end; }
}

/* The narrowest phones: the rating still fits inside the large photo. */
@media (max-width: 350px) { .v6 .gallery-rating .rating-source { display: none; } }
