/* ==========================================================================
   Bongabong View — guest experience
   ========================================================================== */

.site { background: var(--bone); }
main:focus { outline: none; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; min-width: 0; }
.brand-emblem img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(196, 161, 107, .45); }
.brand-word { display: grid; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand-name em { font-weight: 400; }
.brand-sub { margin-top: .3rem; font-size: .62rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; opacity: .7; white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; color: var(--ink);
  background: rgba(248, 244, 236, .97); border-bottom: 1px solid rgba(16, 43, 39, .08);
  transition: background-color var(--d-card) var(--ease-out), color var(--d-card) var(--ease-out), border-color var(--d-card), transform var(--d-card) var(--ease-out);
}
.site-header[data-header="overlay"] { position: fixed; inset: 0 0 auto; background: transparent; color: var(--bone); border-color: transparent; }
.site-header[data-header="overlay"].is-scrolled { background: rgba(16, 43, 39, .97); border-color: rgba(196, 161, 107, .18); }
.site-header.is-hidden { transform: translate3d(0, -100%, 0); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.75rem; }
.site-nav { display: flex; gap: 2rem; }
.site-nav a {
  position: relative; font-size: var(--fs-sm); font-weight: 600; letter-spacing: .04em; text-decoration: none; padding: .4rem 0; opacity: .88;
  transition: opacity var(--d-hover) var(--ease-out);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: right; transition: transform var(--d-hover) var(--ease-out);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-header__actions { display: flex; align-items: center; gap: .75rem; }
.header-link { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .75rem; border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; transition: background-color var(--d-hover); }
.header-link:hover, .header-link.is-current { background: rgba(127, 127, 127, .12); }
.header-link .icon { width: 1.1rem; height: 1.1rem; }
.nav-toggle { display: none; }
.nav-toggle__bars { position: relative; width: 20px; height: 10px; }
.nav-toggle__bars i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform var(--d-card) var(--ease-out), top var(--d-card) var(--ease-out); }
.nav-toggle__bars i:first-child { top: 0; }
.nav-toggle__bars i:last-child { top: 8.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child { top: 4.25px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child { top: 4.25px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 90; padding: 6.5rem var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--evergreen); color: var(--bone);
  clip-path: inset(0 0 100% 0); transition: clip-path 520ms var(--ease-soft);
}
.mobile-nav.is-open { clip-path: inset(0 0 0 0); }
.mobile-nav__links { display: grid; gap: .3rem; }
.mobile-nav__links a {
  font-family: var(--font-display); font-size: clamp(2.2rem, 10vw, 3.2rem); line-height: 1.15; text-decoration: none;
  opacity: 0; transform: translate3d(0, 20px, 0);
  transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out); transition-delay: calc(120ms + var(--i) * 50ms);
}
.mobile-nav.is-open .mobile-nav__links a { opacity: 1; transform: none; }
.mobile-nav__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid rgba(248, 244, 236, .16); }
.mobile-nav__foot a { display: inline-flex; gap: .5rem; align-items: center; text-decoration: none; }
.nav-open { overflow: hidden; }
.nav-open .site-header { background: var(--evergreen) !important; color: var(--bone) !important; border-color: transparent !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: max(100svh, 46rem); padding: 7.5rem 0 2.5rem;
  display: grid; grid-template-rows: 1fr auto; gap: 2rem;
  background: radial-gradient(120% 90% at 85% 10%, var(--evergreen-3) 0%, var(--evergreen) 55%, #0B201D 100%);
}
.hero__texture {
  position: absolute; inset: 0; z-index: -1; opacity: .55; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(196, 161, 107, .09) 1px, transparent 1px) 0 0 / calc(100% / 6) 100%,
    radial-gradient(60rem 30rem at 0% 100%, rgba(122, 148, 133, .18), transparent 70%);
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__copy { display: grid; gap: 1.6rem; max-width: 40rem; }
.hero__title { color: var(--bone); }
.hero__title em { color: var(--brass-2); }
.hero__lede { max-width: 34rem; }
.hero__actions { --cluster: 1.5rem; }
.hero__actions .link { align-self: center; }
.hero__visual { position: relative; height: min(68vh, 40rem); min-height: 26rem; }
.hero__arch {
  position: absolute; inset: 0 0 0 12%; border-radius: var(--arch);
  box-shadow: var(--shadow-3), 0 0 0 1px rgba(196, 161, 107, .25);
}
.hero__arch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, transparent 55%, rgba(11, 32, 29, .45)); pointer-events: none; }
.hero__arch img, .hero__inset img { will-change: transform; }
.hero__inset {
  position: absolute; left: 0; bottom: 8%; width: 38%; aspect-ratio: 4 / 3; border-radius: var(--radius);
  border: 6px solid var(--evergreen); box-shadow: var(--shadow-3);
}
.hero__coords {
  position: absolute; right: -.25rem; top: 1rem; writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(248, 244, 236, .55); line-height: 1.6;
}
.hero__search { position: relative; z-index: 2; }

/* ---------- Search bar ---------- */
.search-bar {
  position: relative; display: grid; grid-template-columns: 1fr 1fr auto auto; align-items: stretch; gap: 0;
  padding: .55rem; border-radius: calc(var(--radius) + 6px);
  background: var(--bone); color: var(--ink); box-shadow: var(--shadow-3);
}
.search-bar__field { display: grid; gap: .15rem; padding: .55rem 1.1rem; border-right: 1px solid var(--stone); min-width: 0; border-radius: var(--radius-sm); transition: background-color var(--d-hover); }
.search-bar__field:focus-within { background: var(--paper); }
.search-bar__field label { font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-ink); }
.search-bar__input { border: 0; background: transparent; padding: .1rem 0; font-size: var(--fs-md); font-weight: 600; min-width: 0; width: 100%; color: var(--ink); }
.search-bar__input:focus { outline: none; }
.search-bar__input[aria-invalid="true"] { color: var(--st-occupied); }
.search-bar__hint { font-size: var(--fs-xs); color: var(--ink-3); }
.search-bar__nights { display: grid; place-content: center; text-align: center; padding: 0 1.5rem; min-width: 7rem; }
.search-bar__count { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1; transition: transform var(--d-card) var(--ease-spring), opacity var(--d-hover); }
.search-bar__count.is-bump { animation: bump 360ms var(--ease-spring); }
.search-bar__unit { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.search-bar__submit { border-radius: var(--radius); }
.search-bar__error { grid-column: 1 / -1; display: flex; gap: .4rem; align-items: center; padding: .55rem 1rem 0; color: var(--st-occupied); font-size: var(--fs-sm); font-weight: 600; }
.search-bar--stacked { grid-template-columns: 1fr 1fr; box-shadow: none; border: 1px solid var(--stone); background: var(--bone-2); }
.search-bar--stacked .search-bar__field:nth-child(2) { border-right: 0; }
.search-bar--stacked .search-bar__nights { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: start; gap: .5rem; align-items: baseline; padding: .6rem 1.1rem; border-top: 1px solid var(--stone); }
.search-bar--stacked .search-bar__count { font-size: 1.4rem; }
.search-bar--stacked .search-bar__submit { grid-column: 1 / -1; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }

/* ---------- Facts band ---------- */
.facts { background: var(--paper); border-bottom: 1px solid var(--stone); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { display: grid; gap: .35rem; padding: 2.2rem 1.5rem; border-left: 1px solid var(--stone); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact__value { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); line-height: 1; color: var(--evergreen); }
.fact__value small { font-family: var(--font-sans); font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-ink); }
.fact__label { font-size: var(--fs-sm); color: var(--ink-3); font-weight: 600; }

/* ---------- Section scaffolding ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); flex-wrap: wrap; }
.section-head > div { display: grid; gap: 1rem; }
.section-head__aside { display: grid; gap: 1rem; justify-items: start; max-width: 26rem; }
.empty-state { display: grid; gap: .8rem; justify-items: start; padding: clamp(2rem, 5vw, 4rem); border: 1px dashed var(--stone-3); border-radius: var(--radius-lg); background: var(--bone-2); }

.intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; padding-block: var(--section) calc(var(--section) * .6); }
.intro__copy { display: grid; gap: 1.2rem; }
.intro__text { display: grid; gap: 1.4rem; justify-items: start; }

/* ---------- Room cards ---------- */
.teaser { padding-bottom: var(--section); }
.teaser__grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.teaser__grid--3 { grid-template-columns: 1.55fr 1fr; grid-template-rows: auto auto; }
.teaser__grid--3 .room-card--feature { grid-row: span 2; }
.teaser__grid--2 { grid-template-columns: 1.4fr 1fr; }
.teaser__grid--1 { grid-template-columns: minmax(0, 46rem); }

.room-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border-radius: var(--radius-lg); background: var(--paper); overflow: hidden;
  box-shadow: var(--shadow-1); border: 1px solid rgba(16, 43, 39, .06);
  transition: box-shadow var(--d-card) var(--ease-out), transform var(--d-card) var(--ease-out);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
}
.room-card:hover { box-shadow: var(--shadow-3); }
.room-card__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.room-card__link:focus-visible { outline-offset: -3px; }
.room-card__media { aspect-ratio: 4 / 3; }
.room-card__media img { transition: transform 900ms var(--ease-out); }
.room-card:hover .room-card__media img { transform: scale(1.045); }
.room-card__badge { position: absolute; left: 1rem; top: 1rem; z-index: 1; box-shadow: var(--shadow-1); }
.room-card__body { display: flex; flex-direction: column; flex: 1; gap: .55rem; padding: 1.35rem 1.4rem 1.3rem; }
.room-card__type { font-size: .7rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-ink); }
.room-card__name { font-size: 1.75rem; line-height: 1.08; }
.room-card__facts { display: flex; flex-wrap: wrap; gap: .3rem 1rem; list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.room-card__facts li { display: inline-flex; align-items: center; gap: .35rem; }
.room-card__facts .icon { width: 1rem; height: 1rem; color: var(--sage); }
.room-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--stone); }
.room-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .4rem; }
.room-card__price .price { font-size: 1.6rem; color: var(--evergreen); }
.room-card__total { flex-basis: 100%; color: var(--ink-3); }
.room-card__go {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: none; border-radius: 50%;
  border: 1px solid var(--stone-2); color: var(--evergreen);
  transition: background-color var(--d-hover) var(--ease-out), color var(--d-hover), border-color var(--d-hover), transform var(--d-card) var(--ease-spring);
}
.room-card:hover .room-card__go { background: var(--evergreen); color: var(--bone); border-color: var(--evergreen); transform: translateX(3px); }
.room-card.is-unavailable .room-card__media img { filter: grayscale(.6); opacity: .8; }

/* Feature card: the photograph absorbs extra height, the text block keeps its natural size. */
.room-card--feature .room-card__media { aspect-ratio: auto; flex: 1 1 auto; min-height: 20rem; }
.room-card--feature .room-card__body { flex: none; }
.room-card--feature .room-card__name { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.8rem); }
.teaser__grid--3 .room-card:not(.room-card--feature) { flex-direction: row; }
.teaser__grid--3 .room-card:not(.room-card--feature) .room-card__media { width: 46%; flex: none; aspect-ratio: 1 / 1; }
.teaser__grid--3 .room-card:not(.room-card--feature) .room-card__body { flex: 1; min-width: 0; }

/* ---------- Gallery ---------- */
.gallery { padding-block: var(--section); background: var(--evergreen); }
.gallery__grid {
  display: grid; gap: clamp(.6rem, 1.2vw, 1rem);
  grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(9rem, 15vw, 15rem);
  grid-template-areas: "a a b c" "a a b d" "e f f d";
}
.gallery__item { position: relative; margin: 0; min-height: 0; border-radius: var(--radius); overflow: hidden; }
.g-a { grid-area: a; } .g-b { grid-area: b; } .g-c { grid-area: c; } .g-d { grid-area: d; } .g-e { grid-area: e; } .g-f { grid-area: f; }
.gallery__media { position: absolute; inset: -6% 0; }
.gallery__item figcaption {
  position: absolute; left: .8rem; bottom: .8rem; padding: .35rem .7rem; border-radius: 999px;
  background: rgba(11, 32, 29, .72); color: var(--bone); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em;
  opacity: 0; transform: translate3d(0, 6px, 0); transition: opacity var(--d-hover) var(--ease-out), transform var(--d-hover) var(--ease-out);
}
.gallery__item:hover figcaption, .gallery__item:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .gallery__item figcaption { opacity: 1; transform: none; } }

/* ---------- How it works ---------- */
.how { padding-block: var(--section); }
.how__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); counter-reset: step; }
.how__step {
  position: relative; display: grid; gap: .8rem; align-content: start; padding: 2rem 1.75rem 2.2rem;
  border-radius: var(--radius-lg); background: var(--paper); border: 1px solid rgba(16, 43, 39, .07); overflow: hidden;
}
.how__step > .icon { width: 2rem; height: 2rem; color: var(--evergreen); }
.how__step h3 { font-family: var(--font-display); font-size: 1.6rem; }
.how__num { position: absolute; right: 1.25rem; top: .75rem; font-size: 3.6rem; line-height: 1; color: var(--stone); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--section); background: var(--paper); border-block: 1px solid var(--stone); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq__intro { display: grid; gap: 1.2rem; position: sticky; top: 7rem; }
.faq__times { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 1rem; background: var(--stone); border: 1px solid var(--stone); border-radius: var(--radius); overflow: hidden; }
.faq__times div { background: var(--bone-2); padding: 1rem 1.2rem; }
.faq__times dt { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-ink); }
.faq__times dd { font-size: 1.5rem; }
.faq__list { border-top: 1px solid var(--stone); }
.faq__item { border-bottom: 1px solid var(--stone); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 0;
  list-style: none; cursor: pointer; font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + .6vw, 1.65rem); line-height: 1.25;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none; border-radius: 50%; border: 1px solid var(--stone-2); transition: transform var(--d-card) var(--ease-out), background-color var(--d-hover); }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--evergreen); color: var(--bone); border-color: var(--evergreen); }
.faq__item summary:hover .faq__icon { border-color: var(--evergreen); }
.faq__answer { overflow: hidden; }
.faq__answer p { padding: 0 3.5rem 1.6rem 0; color: var(--ink-2); max-width: 60ch; }

/* ---------- Location ---------- */
.location { padding-block: var(--section); }
.location__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.location__card { display: grid; gap: 1.4rem; align-content: center; padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius-lg); background: var(--evergreen); color: var(--bone); }
.location__card .eyebrow { color: var(--brass-2); }
.location__card .btn { --btn-bg: var(--brass); --btn-fg: var(--ink); }
.location__address { font-style: normal; font-size: var(--fs-md); line-height: 1.7; color: rgba(248, 244, 236, .82); }
.location__map { border-radius: var(--radius-lg); min-height: 26rem; border: 1px solid var(--stone); }
.map { position: absolute; inset: 0; background: var(--stone); }
.map__fallback { display: flex; align-items: center; gap: .5rem; padding: 1.25rem; font-size: var(--fs-sm); flex-wrap: wrap; }
.map .leaflet-control-attribution { font-size: 10px; }
.map-marker { width: 44px; height: 44px; }
.map-marker span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--evergreen); box-shadow: 0 8px 20px rgba(16, 43, 39, .4); border: 2px solid var(--brass); }
.map-marker img { width: 30px; height: 30px; border-radius: 50%; transform: rotate(45deg); }

/* ---------- Closing CTA ---------- */
.closing { position: relative; overflow: hidden; padding-block: calc(var(--section) * 1.15); background: linear-gradient(180deg, var(--evergreen) 0%, #0B201D 100%); }
.closing::before { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; border-radius: 50%; background: radial-gradient(closest-side, rgba(196, 161, 107, .16), transparent); pointer-events: none; }
.closing__inner { display: grid; gap: 1.8rem; justify-items: start; }
.closing__title { max-width: 14ch; }
.closing__title em { color: var(--brass-2); }
.closing__actions { --cluster: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; padding-top: clamp(3.5rem, 6vw, 5rem); background: #0B201D; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(248, 244, 236, .12); }
.site-footer__brand { display: grid; gap: 1.25rem; align-content: start; max-width: 22rem; }
.site-footer__title { margin-bottom: .9rem; font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-2); }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: .9rem; color: rgba(248, 244, 236, .8); }
.site-footer__top > div { display: grid; gap: .55rem; align-content: start; }
.footer-phone { font-family: var(--font-display); font-size: 1.6rem; text-decoration: none; }
.site-footer__links { display: grid; gap: .5rem; }
.site-footer__links a { text-decoration: none; opacity: .82; transition: opacity var(--d-hover); }
.site-footer__links a:hover { opacity: 1; }
.site-footer__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; font-size: var(--fs-xs); }
/* Decorative outline wordmark: sized to the viewport so it never overflows sideways, with room
   below the descenders (the "g"s) so nothing is clipped. */
.site-footer__mark {
  margin: 0; padding: .05em var(--gutter) .32em; font-family: var(--font-display); font-style: italic;
  font-size: clamp(3rem, 12.5vw, 12rem); line-height: 1.02;
  text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(196, 161, 107, .24); user-select: none;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); background: radial-gradient(90% 120% at 100% 0%, var(--evergreen-3), var(--evergreen) 60%); }
.page-hero__inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: end; margin-bottom: 2.25rem; }
.page-hero .h1 em { color: var(--brass-2); }

/* ---------- Collection ---------- */
.collection { padding-block: 2rem var(--section); }
.collection__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-bottom: 1.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--stone); }
.collection__filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 2.35rem; padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid var(--stone-2); font-size: var(--fs-sm); font-weight: 600; background: var(--paper);
  transition: background-color var(--d-hover) var(--ease-out), color var(--d-hover), border-color var(--d-hover), transform var(--d-press) var(--ease-out);
}
.chip:hover span { border-color: var(--evergreen); }
.chip input:checked + span { background: var(--evergreen); color: var(--bone); border-color: var(--evergreen); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(196, 161, 107, .35); }
.chip:active span { transform: scale(.96); }
.select--quiet { min-height: 2.35rem; border-radius: 999px; padding-block: .4rem; font-size: var(--fs-sm); font-weight: 600; }

.feature-room {
  display: grid; grid-template-columns: 1.35fr 1fr; margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-2);
}
.feature-room__media { min-height: 26rem; display: block; }
.feature-room__media img { transition: transform 1100ms var(--ease-out); }
.feature-room:hover .feature-room__media img { transform: scale(1.035); }
.feature-room__body { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 3.5vw, 3rem); }
.feature-room__body h2 a { text-decoration: none; }
.feature-room__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--stone); }
.feature-room__foot > p { margin-right: auto; }
.feature-room__price { font-size: 2.4rem; color: var(--evergreen); }
.feature-room.is-unavailable .feature-room__media img { filter: grayscale(.6); }

.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }

.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.spec-list li { display: flex; gap: .6rem; align-items: center; font-size: var(--fs-sm); color: var(--ink-2); }
.spec-list .icon { color: var(--sage); }
.spec-list--large li { font-size: var(--fs-base); padding: .9rem 1rem; border-radius: var(--radius-sm); background: var(--bone-2); border: 1px solid var(--stone); }

/* ---------- Room detail ---------- */
.room-detail { padding-block: 1.5rem var(--section); }
.room-detail__crumbs { margin-bottom: 1.25rem; }
.room-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.room-detail__main { display: grid; gap: 2rem; min-width: 0; }
.room-detail__photo { aspect-ratio: 16 / 11; border-radius: var(--radius-lg); }
.room-detail__head { display: grid; gap: 1rem; }
.room-detail__specs { display: grid; gap: 1rem; }
.room-detail__policy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--stone); }
.room-detail__policy > div { display: flex; gap: .75rem; align-items: flex-start; }
.room-detail__policy .icon { color: var(--evergreen); margin-top: .15rem; }
.room-detail__policy p { display: grid; gap: .2rem; font-size: var(--fs-sm); }
.reserve-card { position: sticky; top: 6rem; }
.reserve-card__inner { display: grid; gap: 1.1rem; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-2); border: 1px solid rgba(16, 43, 39, .06); }
.reserve-card__rate .price { font-size: 2.2rem; color: var(--evergreen); }
.reserve-card__result { display: grid; gap: .9rem; padding-top: 1rem; border-top: 1px solid var(--stone); animation: rise-in var(--d-section) var(--ease-out) both; }
.reserve-card__result .pill { justify-self: start; }
.reserve-card__note { text-align: center; }
.summary-list { display: grid; gap: .55rem; }
.summary-list > div { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-sm); }
.summary-list dt { color: var(--ink-2); }
.summary-list dd { font-weight: 600; text-align: right; }
.summary-list__total { padding-top: .7rem; margin-top: .2rem; border-top: 1px solid var(--stone); align-items: baseline; }
.summary-list__total dt { font-weight: 700; color: var(--ink); }
.summary-list__total dd { font-size: 1.6rem; color: var(--evergreen); }
.more-rooms { padding-top: var(--section); }
.mobile-reserve { display: none; }

/* ---------- Auth ---------- */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100svh; }
.auth__visual { position: relative; overflow: hidden; background: var(--evergreen); }
.auth__photo, .auth__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth__photo img { object-position: 50% 65%; }
.auth__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 32, 29, .94) 0%, rgba(11, 32, 29, .7) 32%, rgba(16, 43, 39, .08) 62%, rgba(11, 32, 29, .35) 100%); }
.auth__caption { position: absolute; left: clamp(1.5rem, 4vw, 3.5rem); right: clamp(1.5rem, 4vw, 3.5rem); top: clamp(1.5rem, 5vw, 4rem); display: grid; gap: 1rem; }
.auth__quote { font-size: clamp(2.4rem, 1.5rem + 3vw, 4.4rem); line-height: 1; }
.auth__quote em { color: var(--brass-2); }
.auth__panel { display: grid; grid-template-rows: auto 1fr auto; gap: 2rem; padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 5vw, 5rem); background: var(--bone); }
.auth__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.auth__body { align-self: center; width: min(100%, 27rem); margin-inline: auto; }
.auth__foot { text-align: center; }
.auth-form { display: grid; gap: 1.2rem; }
.auth-form__head { display: grid; gap: .7rem; margin-bottom: .6rem; }
.auth-form__switch { text-align: center; font-size: var(--fs-sm); color: var(--ink-3); }
.auth-form__switch a { font-weight: 700; color: var(--evergreen); }
.password-field { position: relative; }
.password-field .input { padding-right: 3.2rem; }
.password-field button { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); z-index: 2; cursor: pointer; touch-action: manipulation; }
.password-field button .icon { pointer-events: none; }
.strength { height: 4px; border-radius: 4px; background: var(--stone); overflow: hidden; }
.strength span { display: block; height: 100%; width: var(--w, 0%); background: var(--sage); transition: width var(--d-card) var(--ease-out), background-color var(--d-card); }

/* ---------- Bare / error ---------- */
.bare-main { min-height: 100svh; display: grid; place-items: center; padding: 2rem var(--gutter); background: radial-gradient(80% 80% at 50% 0%, var(--paper), var(--bone)); }
.error-card { display: grid; gap: 1.2rem; justify-items: center; text-align: center; max-width: 34rem; }
.error-card__code { font-family: var(--font-display); font-size: clamp(5rem, 20vw, 9rem); line-height: .9; color: var(--stone-2); font-style: italic; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .site-nav { gap: 1.4rem; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-detail__grid { grid-template-columns: minmax(0, 1fr) 21rem; }
  .room-detail__policy { grid-template-columns: 1fr; }
}
@media (max-width: 1020px) {
  .site-nav, .header-link span { display: none; }
  .nav-toggle { display: inline-grid; }
  .hero { padding-top: 6.5rem; min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { height: auto; min-height: 0; aspect-ratio: 5 / 4; max-height: 32rem; }
  .hero__coords { display: none; }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-bar__field:nth-child(2), .search-bar__field:nth-of-type(2) { border-right: 0; }
  .search-bar__nights { grid-template-columns: auto auto; justify-content: start; gap: .5rem; align-items: baseline; padding: .6rem 1.1rem; border-top: 1px solid var(--stone); }
  .search-bar__count { font-size: 1.4rem; }
  .search-bar__submit { border-radius: var(--radius); }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--stone); }
  .intro, .faq__grid, .location__grid, .page-hero__inner { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
  .teaser__grid--3, .teaser__grid--2 { grid-template-columns: 1fr 1fr; }
  .teaser__grid--3 .room-card--feature { grid-column: 1 / -1; grid-row: auto; }
  .teaser__grid--3 .room-card:not(.room-card--feature) { flex-direction: column; }
  .teaser__grid--3 .room-card:not(.room-card--feature) .room-card__media,
  .teaser__grid--3 .room-card:not(.room-card--feature) .room-card__body { width: auto; }
  .teaser__grid--3 .room-card:not(.room-card--feature) .room-card__media { aspect-ratio: 4 / 3; min-height: 0; }
  .how__steps { grid-template-columns: 1fr; }
  .feature-room { grid-template-columns: 1fr; }
  .feature-room__media { min-height: 0; aspect-ratio: 16 / 10; }
  .room-detail__grid { grid-template-columns: 1fr; }
  .reserve-card { position: static; }
  .auth { grid-template-columns: 1fr; }
  .auth__visual { min-height: 15rem; }
  .auth__caption { gap: .4rem; }
  .auth__quote { font-size: 2.2rem; }
}
@media (max-width: 760px) {
  .header-cta { display: none; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 11rem; grid-template-areas: "a a" "b c" "b d" "e d" "f f"; }
  .room-grid, .teaser__grid--3, .teaser__grid--2 { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .collection__bar { align-items: flex-start; }
  .collection__filters { width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip span { white-space: nowrap; }
  .spec-list { grid-template-columns: 1fr; }
  .mobile-reserve {
    position: fixed; z-index: 80; left: .75rem; right: .75rem; bottom: max(.75rem, env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .75rem .7rem 1.2rem;
    border-radius: 999px; background: var(--ink); color: var(--bone); box-shadow: var(--shadow-3);
    animation: rise-in 500ms var(--ease-spring) both;
  }
  .mobile-reserve .price { font-size: 1.4rem; }
  .room-detail { padding-bottom: 7rem; }
}
@media (max-width: 520px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.2rem; }
  .brand-emblem img { width: 34px; height: 34px; }
  .search-bar { grid-template-columns: 1fr; }
  .search-bar__field { border-right: 0; border-bottom: 1px solid var(--stone); }
  .search-bar--stacked { grid-template-columns: 1fr; }
  .hero__inset { width: 46%; border-width: 4px; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 1.5rem 1rem; }
  .fact:nth-child(odd) { padding-left: 0; }
  .room-card__name { font-size: 1.5rem; }
  .faq__answer p { padding-right: 0; }
  .gallery__grid { grid-auto-rows: 8.5rem; }
}
@media (max-width: 360px) {
  .site-header__inner { gap: .5rem; }
  .facts__grid { grid-template-columns: 1fr; }
  .fact { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--stone); }
  .fact:first-child { border-top: 0; }
}

/* ==========================================================================
   Booking · payment · My Stays · receipt (guest)
   ========================================================================== */
.booking { padding-block: 2rem var(--section); }
.booking__head { display: grid; gap: 1rem; margin-bottom: 2rem; }
.booking__head .h2 em { color: var(--brass-ink); }
.stepper { display: flex; gap: .5rem; list-style: none; margin: .5rem 0 0; padding: 0; flex-wrap: wrap; }
.stepper li { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem .4rem .45rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--stone); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-3); transition: all var(--d-card) var(--ease-out); }
.stepper__dot { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--stone); font-size: .75rem; font-weight: 800; color: var(--ink-2); transition: background-color var(--d-card) var(--ease-out), color var(--d-card); }
.stepper li.is-current { color: var(--ink); border-color: var(--evergreen); }
.stepper li.is-current .stepper__dot { background: var(--evergreen); color: var(--bone); }
.stepper li.is-done { color: var(--ink-2); cursor: pointer; }
.stepper li.is-done .stepper__dot { background: var(--sage); color: var(--paper); }
.booking__grid { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.booking__form { display: grid; gap: 1.5rem; }
.booking__step { display: grid; gap: 1.4rem; margin: 0; padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid rgba(16, 43, 39, .07); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-1); min-width: 0; }
.booking__legend { display: grid; gap: .4rem; padding: 0; float: left; width: 100%; }
.booking__legend + * { clear: both; }
.booking__legend:focus { outline: none; }
.booking__nights { display: flex; align-items: baseline; gap: .5rem; }
.booking__actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .5rem; border-top: 1px solid var(--stone); flex-wrap: wrap; }
.review-list { display: grid; border: 1px solid var(--stone); border-radius: var(--radius); overflow: hidden; }
.review-list > div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--stone); font-size: var(--fs-sm); }
.review-list > div:last-child { border-bottom: 0; }
.review-list dt { color: var(--ink-3); font-weight: 600; }
.review-list dd { font-weight: 600; overflow-wrap: anywhere; }
.pay-note { display: flex; gap: 1rem; padding: 1.1rem; border-radius: var(--radius); background: #EEF2EE; border: 1px solid rgba(16, 43, 39, .1); }
.pay-note__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: none; border-radius: 12px; background: var(--evergreen); color: var(--brass-2); }
.pay-note p + p { margin-top: .25rem; }
.booking__summary { position: sticky; top: 6rem; }
.booking__summary-toggle { display: none; }
.booking__summary-panel { border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-2); }
.booking__summary-media { aspect-ratio: 16 / 10; }
.booking__summary-body { display: grid; gap: .8rem; padding: 1.4rem; }

.payment { display: grid; justify-items: center; gap: 1.1rem; padding-block: clamp(3rem, 8vw, 6rem); text-align: center; }
.payment .lede { margin-inline: auto; }
.payment__ring { position: relative; width: 7.5rem; height: 7.5rem; margin-bottom: .5rem; }
.payment__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.payment__track { fill: none; stroke: var(--stone); stroke-width: 4; }
.payment__arc { fill: none; stroke: var(--brass); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 245; transform-origin: 60px 60px; animation: spin 1.6s linear infinite; transition: stroke var(--d-card), stroke-dashoffset 700ms var(--ease-out); }
.payment__glyph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--evergreen); opacity: 0; transform: scale(.8); transition: opacity var(--d-card) var(--ease-out), transform 520ms var(--ease-spring); }
.payment__glyph .icon { width: 2.4rem; height: 2.4rem; }
.payment[data-state="pending"] .payment__glyph--pending,
.payment[data-state="slow"] .payment__glyph--pending { opacity: 1; transform: none; }
.payment[data-state="paid"] .payment__arc { animation: none; stroke-dashoffset: 0; stroke: var(--st-free); }
.payment[data-state="paid"] .payment__glyph--paid { opacity: 1; transform: none; color: var(--st-free); }
.payment[data-state="review"] .payment__arc, .payment[data-state="error"] .payment__arc { animation: none; stroke-dashoffset: 0; stroke: var(--st-held); }
.payment[data-state="review"] .payment__glyph--alert, .payment[data-state="error"] .payment__glyph--alert { opacity: 1; transform: none; color: var(--st-held); }
.payment[data-state="slow"] .payment__arc { animation-duration: 3s; }
.payment__card { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; width: 100%; padding: 1rem 1.25rem; margin-top: .5rem; text-align: left; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--stone); box-shadow: var(--shadow-1); flex-wrap: wrap; }
.payment__room { display: flex; gap: 1rem; align-items: center; min-width: 0; }
.payment__thumb { width: 5rem; height: 5rem; border-radius: var(--radius-sm); flex: none; }
.payment__thumb .photo-missing { min-height: 0; padding: .4rem; }
.payment__thumb .photo-missing span { font-size: .8rem; }
.payment__room-name { font-size: 1.35rem; line-height: 1.1; }
.payment__amount { display: grid; text-align: right; }
.payment__amount .price { font-size: 1.6rem; color: var(--evergreen); }
.payment__warning { display: flex; gap: .5rem; align-items: center; justify-content: center; flex-wrap: wrap; color: var(--ink-2); }
.payment__warning .icon { width: 1rem; height: 1rem; }

.stays-hero { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(5rem, 9vw, 7rem); background: radial-gradient(90% 120% at 100% 0%, var(--evergreen-3), var(--evergreen) 60%); }
.stays-hero__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.stays-hero .h1 em { color: var(--brass-2); }
.stays { display: grid; gap: 1.75rem; margin-top: clamp(-4.5rem, -6vw, -3rem); padding-bottom: var(--section); }
.next-stay { display: grid; grid-template-columns: 1fr 1.15fr; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-3); }
.next-stay__media { min-height: 20rem; }
.next-stay__body { display: grid; gap: 1rem; align-content: center; padding: clamp(1.5rem, 4vw, 3rem); }
.next-stay__countdown { display: flex; gap: .75rem; align-items: center; font-weight: 700; color: var(--evergreen); flex-wrap: wrap; }
.next-stay__dates { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1.2rem 0; border-block: 1px solid var(--stone); }
.next-stay__dates dt { font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-ink); }
.next-stay__dates dd.serif { font-size: 1.6rem; line-height: 1.1; }
.next-stay__line { position: relative; display: grid; place-items: center; height: 1px; background: linear-gradient(90deg, var(--stone-2), var(--brass), var(--stone-2)); }
.next-stay__line span { padding: .15rem .6rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--stone); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.stay-list { display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.stay-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: .75rem 1.5rem; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--paper); border: 1px solid rgba(16, 43, 39, .07); transition: box-shadow var(--d-card) var(--ease-out), transform var(--d-card) var(--ease-out); }
.stay-row:hover { box-shadow: var(--shadow-2); }
.stay-row--stay { grid-template-columns: 5.5rem minmax(0, 1fr) auto auto auto; }
.stay-row__thumb { width: 5.5rem; height: 4.25rem; border-radius: var(--radius-sm); }
.stay-row__thumb .photo-missing { min-height: 0; padding: .3rem; } .stay-row__thumb .photo-missing span { font-size: .75rem; }
.stay-row__title { font-size: 1.35rem; line-height: 1.15; }
.stay-row__status { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.stay-row__amount { font-size: 1.25rem; text-align: right; }
.stay-row__note { grid-column: 1 / -1; display: flex; gap: .5rem; align-items: flex-start; padding-top: .75rem; border-top: 1px dashed var(--stone); }
.stay-row__note .icon { width: 1rem; height: 1rem; color: var(--st-review); flex: none; margin-top: .15rem; }

.receipt-page { padding-block: 2rem var(--section); display: grid; gap: 2rem; }
.confirm-head { display: grid; justify-items: center; gap: 1rem; text-align: center; padding-top: clamp(1rem, 4vw, 3rem); }
.confirm-head__mark svg { width: 4.5rem; height: 4.5rem; fill: none; stroke: var(--st-free); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.confirm-head__mark circle { stroke: var(--st-free-bg); stroke-width: 4; }
.confirm-head.is-changed .confirm-head__mark path { stroke: var(--st-held); }
.motion-ok .confirm-head.is-celebrate .confirm-head__mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 700ms 250ms var(--ease-out) forwards; }
.motion-ok .confirm-head.is-celebrate .confirm-head__mark circle { stroke: var(--st-free); stroke-dasharray: 183; stroke-dashoffset: 183; animation: draw 800ms var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confirm-head .lede { margin-inline: auto; }
.confirm-head__actions { justify-content: center; }

.install { display: grid; gap: 1.2rem; width: min(100%, 34rem); }
.install__checks { display: grid; gap: .4rem; font-size: var(--fs-sm); padding: 1rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--stone); list-style: none; margin: 0; }
.install__checks li { display: flex; gap: .5rem; align-items: center; }
.install__checks .ok .icon { color: var(--st-free); } .install__checks .bad .icon { color: var(--st-occupied); } .install__checks .warn .icon { color: var(--st-held); }

/* Staged booking: JS shows one step at a time; without JS all steps show. */
@media (max-width: 1020px) {
  .booking__grid { grid-template-columns: 1fr; }
  .booking__summary { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; top: auto; }
  .booking__summary-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem var(--gutter) calc(.9rem + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--stone); background: var(--paper); box-shadow: 0 -12px 30px -18px rgba(16, 43, 39, .4); text-align: left; }
  .booking__summary-toggle .price { font-size: 1.35rem; color: var(--evergreen); }
  .booking__summary-toggle .icon { width: 1rem; height: 1rem; vertical-align: middle; transition: transform var(--d-card) var(--ease-out); }
  .booking__summary-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .booking__summary-panel { position: absolute; left: 0; right: 0; bottom: 100%; max-height: 70vh; overflow: auto; border-radius: var(--radius-lg) var(--radius-lg) 0 0; transform: translateY(105%); visibility: hidden; transition: transform var(--d-drawer) var(--ease-soft), visibility 0s linear var(--d-drawer); }
  .booking__summary-panel.is-open { transform: none; visibility: visible; transition: transform var(--d-drawer) var(--ease-soft), visibility 0s; }
  .no-js .booking__summary-panel { position: static; transform: none; visibility: visible; }
  .booking { padding-bottom: 8rem; }
  .next-stay { grid-template-columns: 1fr; }
  .next-stay__media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .stay-row, .stay-row--stay { grid-template-columns: minmax(0, 1fr) auto; }
  .stay-row__thumb { display: none; }
  .stay-row__status { justify-content: flex-start; grid-column: 1; }
  .stay-row__actions { grid-column: 1 / -1; }
  .review-list > div { grid-template-columns: 1fr; gap: .2rem; }
  .next-stay__dates { grid-template-columns: 1fr 1fr; }
  .next-stay__line { display: none; }
  .payment__amount { text-align: left; }
}

/* Photos that should fill their cell without setting its height */
.next-stay__media, .feature-room__media { position: relative; }
.next-stay__media > picture, .next-stay__media > .photo-missing,
.feature-room__media > picture, .feature-room__media > .photo-missing { position: absolute; inset: 0; }

/* Layout guards found in narrow-screen QA */
.brand-emblem { flex: none; }
.brand-word { min-width: 0; }
.link { justify-self: start; align-self: flex-start; }
.stays, .booking__grid, .room-detail__grid, .room-detail__main { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1021px) {
  .booking__grid { grid-template-columns: minmax(0, 1fr) 24rem; }
  .room-detail__grid { grid-template-columns: minmax(0, 1fr) 24rem; }
}
@media (max-width: 1020px) { .next-stay { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 400px) { .next-stay__dates dd.serif { font-size: 1.25rem; } .stays-hero__inner .btn { width: 100%; } }

@media (max-width: 520px) { .site-header .header-link, .site-header .header-signout { display: none; } }

/* Teaser: the two side cards set the row heights; the feature photo fills whatever is left. */
.room-card--feature .room-card__media { position: relative; min-height: 16rem; }
.room-card--feature .room-card__media > picture, .room-card--feature .room-card__media > .photo-missing { position: absolute; inset: 0; }
.teaser__grid--3 .room-card:not(.room-card--feature) .room-card__media { position: relative; }
.teaser__grid--3 .room-card:not(.room-card--feature) .room-card__media > picture { position: absolute; inset: 0; }
@media (max-width: 1020px) { .room-card--feature .room-card__media { aspect-ratio: 16 / 10; flex: none; } }

/* ==========================================================================
   Improvement pass (operations, recovery, layout fixes) — same visual language
   ========================================================================== */

/* Header sign-out: icon + label on wide screens */
.header-signout { margin: 0; }
.header-signout__btn { border: 0; background: transparent; cursor: pointer; color: inherit; font: inherit; font-size: var(--fs-sm); font-weight: 600; }
@media (max-width: 1180px) { .header-signout__btn span { display: none; } }

/* Full-width map, right after Welcome */
.location--full { padding-block: 0; }
.location__map--full { position: relative; width: 100%; height: clamp(22rem, 72vh, 52rem); min-height: 0; border: 0; border-radius: 0; border-block: 1px solid var(--stone); }
.location__map--full .map { position: absolute; inset: 0; }
.location__strip { background: var(--evergreen); color: var(--bone); }
.location__strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.1rem; }
.location__strip .eyebrow { color: var(--brass-2); }
.location__strip .btn { --btn-bg: var(--brass); --btn-fg: var(--ink); }
.location__where { display: grid; gap: .2rem; }
.location__address-line { font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + .6vw, 1.6rem); line-height: 1.2; }
.map__touch-hint {
  position: absolute; z-index: 500; left: 50%; bottom: 1rem; transform: translateX(-50%);
  padding: .55rem 1rem; border: 0; border-radius: 999px; background: rgba(23, 28, 27, .82); color: var(--bone);
  font-size: var(--fs-sm); font-weight: 700; box-shadow: var(--shadow-2);
}
@media (max-width: 1020px) { .location__map--full { height: clamp(20rem, 60vh, 34rem); } }
@media (max-width: 640px) { .location__map--full { height: clamp(18rem, 55vh, 26rem); } }

/* Closing CTA: balanced, not stretched */
.closing { padding-block: clamp(4rem, 3rem + 4vw, 6.5rem) clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }

/* Compact empty states */
.empty-state--compact { padding: clamp(1.25rem, 3vw, 2rem); gap: .55rem; }
.empty-state--compact .h3 { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.8rem); }

/* My Stays: less dead space above the footer */
.stays { padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.stays-hero__link { color: var(--bone); }
.stay-row--payment .stay-row__status { flex-direction: column; align-items: flex-end; }
@media (max-width: 640px) { .stay-row--payment .stay-row__status { align-items: flex-start; } .tabs { width: 100%; } }

/* Login and account pages: fit the viewport on desktop without hiding anything */
.field__label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.field__aside { font-size: var(--fs-sm); font-weight: 700; color: var(--evergreen); }
@media (min-width: 1021px) {
  .auth { height: 100svh; min-height: 34rem; }
  .auth__panel { gap: 1rem; padding-block: clamp(1rem, 2.5vh, 2rem); overflow-y: auto; }
  .auth-form { gap: clamp(.7rem, 1.6vh, 1.1rem); }
  .auth-form__head { gap: .45rem; margin-bottom: .2rem; }
  .auth-form .h2 { font-size: clamp(2rem, 1.2rem + 2.4vh, 2.9rem); }
  .auth-form .btn--lg { min-height: 3.1rem; padding-block: .8rem; }
}
.account-page { padding-block: clamp(2rem, 4vw, 4rem); }
.account-form { max-width: 30rem; margin-inline: auto; }

/* Home page spacing fixes */
/* Rooms heading no longer touches the location strip above it. */
.teaser { padding-top: clamp(3.5rem, 2.5rem + 3vw, 6rem); }
/* Phone number and "Get directions" share one centre line (the generic .link rule pins links to the top). */
.location__strip .cluster { align-items: center; gap: .75rem 1.75rem; }
.location__strip .cluster .link { align-self: center; min-height: 2.35rem; }
/* Gallery: less empty green above and below the heading. */
.gallery { padding-block: clamp(3rem, 2rem + 3vw, 5.5rem); }
.gallery .section-head { margin-bottom: clamp(1.5rem, 2.5vw, 2.25rem); }
