/*
 * Entire home page (resources/views/frontend/place/home_detail.blade.php),
 * laid out to the "Holiday home listing page" mockup (2026-12-01).
 *
 * Uses the site tokens from resources/css/_tokens.css, with fallbacks so the
 * page still reads correctly if a token is missing. Bordered cards, controls
 * and buttons use 6px corners; sections are square (AGENTS.md).
 */

.hb-page {
    --hb-accent: var(--cat-stay, #922590);
    --hb-accent-soft: #f4e6f4;
    --hb-accent-text: #5a1759;
    --hb-green: #4d9322;
    --hb-green-soft: #eaf6e0;
    --hb-green-text: #2d6a1a;
    --hb-green-deep: #2f5b15;
    --hb-link: #1f4f79;
    --hb-border: #ececec;
    --hb-field: #8b929b;
    --hb-muted: #5b6470;
    --hb-ink: #111111;
    --hb-text: #222831;
    --hb-radius: 6px;
    background: #fff;
    color: var(--hb-text);
}

.hb-page h1,
.hb-page h2,
.hb-page h3,
.hb-page h4 { color: var(--hb-ink); margin: 0; font-weight: 600; }
.hb-page h2 { font-size: 24px; line-height: 1.25; margin-bottom: 14px; }
.hb-page h3 { font-size: 17px; line-height: 1.3; }
.hb-page h4 { font-size: 15px; margin: 14px 0 6px; }
.hb-page a { color: var(--hb-link); }
.hb-page a:hover,
.hb-page a:focus-visible { color: var(--hb-green-deep); }
.hb-muted { color: var(--hb-muted); }
.hb-small { font-size: 14px; line-height: 1.5; margin: 8px 0 0; color: var(--hb-muted); }
.hb-icon { flex: none; }
.hb-sr {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.hb-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px 64px; box-sizing: border-box; }

/* A plain card: white, a light border, 6px corners. */
.hb-card { background: #fff; border: 1px solid var(--hb-border); border-radius: var(--hb-radius); }

/* Buttons that read as links ("View all photos", "Read the full description"). */
.hb-linkbtn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0;
    border: 0; background: none; color: var(--hb-link); font-size: 15px; font-weight: 600; cursor: pointer;
}
.hb-linkbtn:hover,
.hb-linkbtn:focus-visible { color: var(--hb-green-deep); text-decoration: underline; }
.hb-linkbtn:focus-visible { outline: 2px solid var(--hb-link); outline-offset: 2px; }
/* The site sets button{display:inline-flex!important}, so hiding a button needs !important too. */
.hb-more[hidden] { display: none !important; }
.hb-link { font-weight: 600; }

/* ---- Breadcrumb ------------------------------------------------- */
.hb-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 8px; font-size: 14px; color: var(--hb-muted); }
.hb-crumbs a { color: var(--hb-muted); text-decoration: none; }
.hb-crumbs a:hover,
.hb-crumbs a:focus-visible { color: var(--hb-link); text-decoration: underline; }
.hb-crumbs__here { color: var(--hb-text); }

/* ---- Title and chips ------------------------------------------------ */
.hb-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.hb-title__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hb-title h1 { font-size: 38px; line-height: 1.1; }
.hb-title__where { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 16px; color: var(--hb-muted); }
.hb-title__where > .hb-icon { color: var(--hb-green); }
.hb-title__rating { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; color: var(--hb-text); }
.hb-title__rating .hb-icon { color: #b7791f; }
.hb-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.hb-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
    border-radius: var(--hb-radius); font-size: 14px; font-weight: 600;
}
.hb-chip--stay { background: var(--hb-accent-soft); color: var(--hb-accent-text); }
.hb-chip--green { background: var(--hb-green-soft); color: var(--hb-green-text); }

/* ---- Gallery: a large lead photo and up to four beside it ------------ */
.hb-gallery { display: grid; gap: 8px; border-radius: var(--hb-radius); overflow: hidden; height: 456px; }
.hb-gallery--1 { grid-template-columns: 1fr; }
.hb-gallery--2 { grid-template-columns: 2fr 1fr; }
.hb-gallery--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.hb-gallery--3 .hb-gallery__tile--lead { grid-row: span 2; }
.hb-gallery--4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.hb-gallery--4 .hb-gallery__tile--lead { grid-row: span 2; }
.hb-gallery--4 .hb-gallery__tile:last-child { grid-column: span 2; }
.hb-gallery--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; }
.hb-gallery--5 .hb-gallery__tile--lead { grid-column: span 2; grid-row: span 2; }
.hb-gallery__tile { overflow: hidden; background: #d6d3cc; min-height: 0; }
.hb-gallery__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-gallery__more { margin: 6px 0 0; }

/* ---- Two columns -------------------------------------------------- */
.hb-columns { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; margin-top: 26px; }
.hb-main { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.hb-block { margin: 0; }
.hb-whole { font-weight: 600; margin: 0 0 12px; }
.hb-prose { line-height: 1.65; font-size: 16px; }
.hb-prose p { margin: 0 0 12px; }
.hb-prose--clamp { max-height: 10.5em; overflow: hidden; position: relative; }
.hb-prose--clamp::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none;
}
.hb-prose--clamp.is-open { max-height: none; overflow: visible; }
.hb-prose--clamp.is-open::after { display: none; }

/* Size tiles: guests, bedrooms, beds, bathrooms */
.hb-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.hb-stat { display: flex; align-items: center; gap: 12px; padding: 16px; }
.hb-stat .hb-icon { color: var(--hb-green); }
.hb-stat__value { display: block; font-size: 24px; font-weight: 600; line-height: 1.1; color: var(--hb-ink); }
.hb-stat__label { display: block; font-size: 14px; color: var(--hb-muted); }

/* Where you'll sleep */
.hb-sleep { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.hb-sleep__card { display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.hb-sleep__card > .hb-icon { color: var(--hb-green); }
.hb-sleep__photo { width: 100%; height: 120px; object-fit: cover; border-radius: var(--hb-radius); display: block; }
.hb-sleep__beds { margin: 0; font-size: 15px; line-height: 1.5; color: var(--hb-muted); }
.hb-sleep__request { margin: 0; font-size: 14px; color: var(--hb-muted); }

/* What this home offers */
.hb-amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 24px; font-size: 15px; }
.hb-amenities li { display: flex; align-items: center; gap: 10px; }
.hb-amenities i,
.hb-amenities .hb-icon { color: var(--hb-green); width: 22px; text-align: center; flex: none; }

/* Good to know */
.hb-know { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hb-know__card { padding: 18px; }
.hb-know__card--wide { grid-column: 1 / -1; }
.hb-know__card h3 { display: flex; align-items: center; gap: 10px; }
.hb-know__card h3 .hb-icon { color: var(--hb-green); }
.hb-know__card p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--hb-muted); }
.hb-know__policy { margin-top: 10px; }
.hb-rules { margin: 8px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.6; color: var(--hb-muted); }
.hb-closures { margin: 8px 0 0; font-size: 14px; color: var(--hb-muted); }
.hb-closures dt { font-weight: 700; color: var(--hb-text); margin-top: 8px; }
.hb-closures dd { margin: 2px 0 0; }

.hb-fees { list-style: none; margin: 8px 0 0; padding: 0; font-size: 15px; }
.hb-fees li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--hb-border); }
.hb-fees li:last-child { border-bottom: 0; }
.hb-fees small { color: var(--hb-muted); font-size: 13px; margin-left: 4px; }

/* Where it is: the district, never the home's position. */
.hb-area { border: 1px solid var(--hb-border); border-radius: var(--hb-radius); overflow: hidden; background: #f7f7f5; }
.hb-area__map { display: block; width: 100%; height: 240px; object-fit: cover; }
.hb-area__panel {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    min-height: 200px; padding: 16px; text-align: center; color: var(--hb-text); font-size: 16px;
}
.hb-area__panel .hb-icon { color: var(--hb-green); }
.hb-block > p { margin: 12px 0 0; font-size: 15px; color: var(--hb-muted); }

.hb-review { padding: 12px 0; border-bottom: 1px solid var(--hb-border); font-size: 15px; }
.hb-review:last-child { border-bottom: 0; }
.hb-review p { margin: 0 0 4px; }

/* ---- Booking card -------------------------------------------------- */
.hb-book {
    position: sticky; top: calc(var(--vnz-header-height, 116px) + 16px);
    display: flex; flex-direction: column; gap: 16px;
    border: 1px solid var(--hb-border); border-radius: var(--hb-radius);
    padding: 24px; background: #fff; box-sizing: border-box;
}
.hb-book form { display: flex; flex-direction: column; gap: 0; }
.hb-book__head { display: flex; align-items: center; justify-content: space-between; }
.hb-book__head h2 { font-size: 20px; margin: 0; }
.hb-book__close { display: none !important; }
.hb-book__from p { margin: 0; }
.hb-book__from strong { font-size: 30px; font-weight: 700; color: var(--hb-ink); }
.hb-book__from span { font-size: 15px; color: var(--hb-muted); }
.hb-book__from .hb-small { margin-top: 4px; }
.hb-page button,
.hb-page a.hb-cta { align-items: center; justify-content: center; }

.hb-field { display: block; margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--hb-text); }
.hb-field > span { display: block; margin-bottom: 6px; }
.hb-field input,
.hb-field select,
.hb-extra input {
    width: 100%; height: 46px; padding: 0 10px; font-size: 16px; font-weight: 400; box-sizing: border-box;
    border: 1px solid var(--hb-field); border-radius: var(--hb-radius); background: #fff; color: var(--hb-text);
}
.hb-field input:focus-visible,
.hb-field select:focus-visible,
.hb-extra input:focus-visible,
.hb-check input:focus-visible { outline: 2px solid var(--hb-accent); outline-offset: 1px; }
/* minmax(0, 1fr) and min-width 0: a native date field has a wide minimum
   width that would otherwise push the second field past the card's edge. */
.hb-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hb-dates input { min-width: 0; padding: 0 6px; }
.hb-guests { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.hb-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 0 4px; font-size: 15px; cursor: pointer; }
.hb-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--hb-green); }
.hb-check .hb-icon { color: var(--hb-green); }

/* ---- Calendar ------------------------------------------------------ */
.hb-cal-toggle {
    width: 100%; min-height: 44px; margin: 0 0 12px; padding: 9px 12px;
    border: 1px solid var(--hb-field); border-radius: var(--hb-radius); background: #fff;
    color: var(--hb-text); font-size: 14px; font-weight: 600; cursor: pointer;
}
.hb-cal-toggle:hover,
.hb-cal-toggle:focus-visible { background: #f4f4f2; }
.hb-cal-toggle:focus-visible { outline: 2px solid var(--hb-accent); outline-offset: 1px; }
.hb-cal { border: 1px solid var(--hb-border); border-radius: var(--hb-radius); padding: 12px; margin: 0 0 14px; }
.hb-cal[hidden] { display: none; }
.hb-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hb-cal__head h3 { margin: 0; font-size: 15px; }
.hb-cal__head button,
.hb-cal__done {
    min-width: 44px; min-height: 44px; border: 1px solid var(--hb-field); border-radius: var(--hb-radius);
    background: #fff; color: var(--hb-text); font-size: 18px; cursor: pointer;
}
.hb-cal__done { width: 100%; margin-top: 10px; font-size: 14px; font-weight: 600; }
.hb-cal__head button:focus-visible,
.hb-cal__done:focus-visible { outline: 2px solid var(--hb-accent); outline-offset: 1px; }
.hb-cal__prompt { margin: 8px 0; font-size: 14px; font-weight: 600; color: var(--hb-text); }
.hb-cal__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.hb-cal__grid th { font-size: 12px; font-weight: 600; color: var(--hb-muted); padding: 4px 0; text-align: center; }
.hb-cal__grid abbr { text-decoration: none; }
.hb-cal__grid td { padding: 2px; }
.hb-cal__day {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    width: 100%; min-height: 46px; padding: 2px 0;
    border: 1px solid transparent; border-radius: var(--hb-radius);
    background: #fff; color: var(--hb-text); font-size: 14px; line-height: 1.1; cursor: pointer;
}
.hb-cal__day small { font-size: 9px; line-height: 1.1; color: var(--hb-muted); font-weight: 600; white-space: nowrap; }
.hb-cal__day:hover { border-color: #c9ccd1; }
.hb-cal__day:focus-visible { outline: 2px solid var(--hb-accent); outline-offset: -2px; }
/* A date that cannot be picked now is dimmed and has a dashed edge; its reason is in words. */
.hb-cal__day[aria-disabled="true"] { color: #6b7280; border: 1px dashed #d5d8dc; cursor: not-allowed; }
.hb-cal__day.is-unavailable > span { text-decoration: line-through; }
.hb-cal__day.is-in-range { background: var(--hb-accent-soft); }
.hb-cal__day.is-check-in,
.hb-cal__day.is-check-out { background: var(--hb-accent); color: #fff; border-color: var(--hb-accent); }
.hb-cal__day.is-check-in small,
.hb-cal__day.is-check-out small { color: #fff; }
.hb-cal__hint { min-height: 18px; margin: 8px 0 0; font-size: 13px; font-weight: 600; color: #7a1219; }
.hb-cal__key { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12px; color: var(--hb-muted); display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.hb-cal__key b { color: var(--hb-text); }

/* Optional extras: name and price on the left, how many on the right. */
.hb-extras { border: 0; border-top: 1px solid var(--hb-border); margin: 12px 0 0; padding: 14px 0 0; }
.hb-extras legend { float: left; width: 100%; font-size: 14px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.hb-extra { clear: both; display: grid; grid-template-columns: 1fr 72px; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 15px; }
.hb-extra__name { display: flex; align-items: center; gap: 10px; }
.hb-extra__name .hb-icon { color: var(--hb-green); }
.hb-extra small { display: block; color: var(--hb-muted); font-size: 13px; }

.hb-price { margin: 16px 0 12px; padding-top: 16px; border-top: 1px solid var(--hb-border); min-height: 64px; }
.hb-price__prompt { font-size: 18px; font-weight: 700; margin: 0; color: var(--hb-ink); }
.hb-price__busy { margin: 8px 0 0; font-size: 14px; color: var(--hb-muted); }
/* A refusal is words in a bordered box with a mark, not colour alone. */
.hb-price__refusal {
    margin: 0; padding: 12px 14px 12px 38px; position: relative;
    border: 1px solid #b4232c; border-radius: var(--hb-radius);
    background: #fdf3f3; color: #7a1219; font-size: 14px; line-height: 1.45; font-weight: 600;
}
.hb-price__refusal::before { content: "!"; position: absolute; left: 14px; top: 11px; font-weight: 800; }

.hb-breakdown { margin: 0; font-size: 15px; }
.hb-breakdown > div { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; }
.hb-breakdown dt { font-weight: 400; }
.hb-breakdown dd { margin: 0; white-space: nowrap; }
.hb-breakdown small { color: var(--hb-muted); font-size: 12px; margin-left: 4px; }
.hb-breakdown__property { color: var(--hb-muted); }
.hb-total { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--hb-border); font-size: 16px; }
.hb-total strong { font-size: 22px; color: var(--hb-ink); }

.hb-error { margin: 0 0 12px; padding: 12px 14px; border: 1px solid #b4232c; border-radius: var(--hb-radius); background: #fdf3f3; color: #7a1219; font-size: 14px; font-weight: 600; }

.hb-cta {
    display: flex; width: 100%; min-height: 52px; padding: 13px 18px; text-align: center;
    border: 0; border-radius: var(--hb-radius);
    background: var(--hb-accent); color: #fff;
    font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.hb-page a.hb-cta:hover,
.hb-cta:hover,
.hb-cta:focus-visible { background: var(--hb-accent-text); color: #fff; text-decoration: none; }
.hb-cta:focus-visible { outline: 2px solid var(--hb-ink); outline-offset: 2px; }
.hb-cta[disabled] { background: #e3e5e8; color: #5b6068; cursor: not-allowed; }
.hb-page a.hb-cta--enquire,
.hb-cta--enquire { background: #fff; color: var(--hb-accent-text); border: 2px solid var(--hb-accent); }
.hb-page a.hb-cta--enquire:hover,
.hb-cta--enquire:hover,
.hb-cta--enquire:focus-visible { background: var(--hb-accent-soft); color: var(--hb-accent-text); }

/* Contact the host: the green band at the foot of the card. */
.hb-host { padding: 16px; border-radius: var(--hb-radius); background: var(--hb-green-soft); color: var(--hb-green-deep); }
.hb-host h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--hb-green-deep); }
.hb-contact { list-style: none; margin: 8px 0 0; padding: 0; font-size: 15px; line-height: 1.8; }
.hb-contact li { display: flex; align-items: center; gap: 8px; }
.hb-page .hb-contact a { color: var(--hb-green-deep); font-weight: 600; overflow-wrap: anywhere; }

/* ---- Closed dialogs stay closed ------------------------------------------
   The browser hides a <dialog> that is not open, but site styles that set
   `display` on dialogs or on these classes beat that built-in rule, so the
   cancellation policy and the photo viewer were drawn on the page while
   closed. Only these two dialogs, only while they are NOT open: an open
   dialog (showModal) is untouched, so opening and closing work as before. */
dialog#hb-cancellation:not([open]),
dialog#hb-photos:not([open]) { display: none !important; }

/* ---- Photo dialog ---------------------------------------------------- */
.hb-photos { width: min(1000px, 94vw); max-height: 90vh; border: 0; border-radius: var(--hb-radius); padding: 0; }
.hb-photos::backdrop { background: rgba(0, 0, 0, .7); }
.hb-photos header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--hb-border); position: sticky; top: 0; background: #fff; }
.hb-photos header h2 { font-size: 18px; margin: 0; }
.hb-photos header button,
.hb-book__close { width: 44px; height: 44px; border: 1px solid var(--hb-border); border-radius: var(--hb-radius); background: #fff; font-size: 24px; line-height: 1; cursor: pointer; color: var(--hb-ink); }
.hb-photos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; padding: 14px; }
.hb-photos__grid img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--hb-radius); display: block; }

/* ---- Phone: sticky bar + sheet ----------------------------------------- */
.hb-bar,
.hb-backdrop { display: none; }

/* On a wide screen the price leads the card; the heading is for screen readers. */
@media (min-width: 821px) {
    .hb-book__head h2 {
        position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
        overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
    }
    .hb-book__head { position: absolute; }
}

@media (max-width: 1024px) {
    .hb-columns { grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; }
    .hb-gallery { height: 380px; }
}

@media (max-width: 820px) {
    .hb-wrap { padding: 0 16px 110px; }
    .hb-columns { display: block; }
    .hb-main { gap: 28px; }
    .hb-title { align-items: flex-start; }
    .hb-title h1 { font-size: 28px; }
    .hb-gallery { height: 260px; grid-template-columns: 1fr; grid-template-rows: 1fr; }
    .hb-gallery__tile:not(.hb-gallery__tile--lead) { display: none; }
    .hb-gallery .hb-gallery__tile--lead { grid-row: auto; grid-column: auto; }
    .hb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hb-know { grid-template-columns: 1fr; }

    .hb-bar {
        display: flex; align-items: center; justify-content: space-between; gap: 14px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        background: #fff; border-top: 1px solid var(--hb-border);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
    }
    .hb-bar__price strong { display: block; font-size: 18px; color: var(--hb-ink); }
    .hb-bar__price small { color: var(--hb-muted); font-size: 12px; }
    .hb-bar .hb-cta { width: auto; min-width: 150px; }

    /* The booking card becomes the sheet. Hidden until opened. */
    .hb-book {
        position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 1060;
        max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
        border-radius: var(--hb-radius) var(--hb-radius) 0 0; border-bottom: 0;
        padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
        transform: translateY(105%); visibility: hidden;
        transition: transform .22s ease, visibility 0s linear .22s;
    }
    .hb-book.is-open { transform: translateY(0); visibility: visible; transition: transform .22s ease; }
    .hb-book__close { display: inline-flex !important; }
    .hb-backdrop { position: fixed; inset: 0; z-index: 1050; background: rgba(0, 0, 0, .5); }
    .hb-backdrop:not([hidden]) { display: block; }

    /* While the booking sheet (a modal dialog) is open, the chat launcher
       steps aside so it cannot cover the sheet's Reserve button. Only on
       this page, only at this width, only while the sheet is open: the
       script adds and removes the body class. Chat itself is untouched. */
    body.hb-sheet-open #vnz-chatbot-root { visibility: hidden; }
}

@media (max-width: 520px) {
    .hb-sleep { grid-template-columns: 1fr 1fr; }
    .hb-amenities { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .hb-book,
    .hb-book.is-open { transition: none; }
}
