/* Pine & Mist — Đà Lạt homestay demo
   Implemented from the Claude Design canvas "Pine & Mist - Homepage.dc.html".
   Palette, type scale and spacing are transcribed from the design. */

:root {
  --cream:        #F6F1E8;
  --cream-alt:    #F1EADD;
  --cream-input:  #FBF8F2;
  --cream-hi:     #F8F4EC;
  --cream-hi-2:   #F4F0E6;
  --ink:          #211F1B;
  --ink-2:        #4A443B;
  --ink-3:        #5A5449;
  --ink-4:        #615B51;
  --muted:        #6E675C;
  --muted-2:      #8A8377;
  --muted-3:      #9A9384;
  --muted-4:      #847D71;
  --green:        #2F4235;
  --green-dark:   #26332A;
  --green-deep:   #1E2921;
  --clay:         #A65E3C;
  --clay-light:   #C08A63;
  --sand:         #DFD8C9;
  --sand-2:       #E5DECF;
  --sand-3:       #E1DACB;
  --on-dark:      #EFEADF;
  --on-dark-2:    #E8E2D6;

  --hair:       rgba(33, 31, 27, 0.09);
  --hair-2:     rgba(33, 31, 27, 0.14);
  --hair-3:     rgba(33, 31, 27, 0.16);
  --hair-input: rgba(33, 31, 27, 0.2);

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans:  "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: clamp(64px, 8vw, 84px);
  --gutter:  clamp(20px, 4vw, 64px);
  --shell:   1440px;
  --section: clamp(64px, 11vw, 150px);
  --ease:    cubic-bezier(.22, .61, .36, 1);
}

/* ---------- base ---------- */

html {
  scroll-behavior: smooth;
  /* Anchor jumps must clear the fixed header. */
  scroll-padding-top: calc(var(--header-h) + 10px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

* { box-sizing: border-box; }
/* The `hidden` attribute must win over component display rules (.ar-card is
   display:flex), or a theme that filters with `el.hidden = true` hides nothing. */
[hidden] { display: none !important; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--clay); }
::selection { background: #DCE0D2; }

body.is-locked { overflow: hidden; }

.page { max-width: 100%; overflow: clip; }

/* Ken Burns for the banner. Deliberately larger and quicker than a typical
   hero drift so the movement actually reads: ~14% of scale over 16s rather than
   8% over 26s. Three variants so consecutive banners don't drift identically.
   The minimum scale is 1.06, which leaves 3% of overhang each side — more than
   the 1.5% pan can ever use, so no edge is exposed. */
@keyframes pm-drift-a {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.20) translate3d(-1.5%, -1%, 0); }
}
@keyframes pm-drift-b {
  from { transform: scale(1.20) translate3d(1.2%, 0.8%, 0); }
  to   { transform: scale(1.06) translate3d(0, 0, 0); }
}
@keyframes pm-drift-c {
  from { transform: scale(1.07) translate3d(1.2%, -0.8%, 0); }
  to   { transform: scale(1.21) translate3d(-1%, 0.6%, 0); }
}
@keyframes pm-rise  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- motion ----------
   JS adds .is-hidden to what should animate, then swaps it for .is-in when the
   element scrolls into view; child details key off .is-in. Reveals replay, so
   this runs every time something comes back on screen.

   Everything here is driven by the four tokens below — change them and the
   whole page's scroll feel changes together. */

:root {
  --reveal-dur:   0.8s;
  --reveal-rise:  46px;                             /* vertical travel */
  --reveal-slide: 60px;                             /* lateral travel */
  --stagger:      100ms;

  /* Overshoots 1 slightly, so things arrive with a little momentum and settle
     rather than easing flatly to a stop. */
  --reveal-ease:  cubic-bezier(.16, .84, .28, 1.08);

  --scooter-w:    30px;
}

/* Each row's scooter sets off a moment after the one above it. */
.is-in .nearby__scooter {
  animation: pm-ride 1.9s var(--ease) both;
  animation-delay: calc(0.45s + var(--i, 0) * 190ms);
}

/* `left` carries it along the line; the transform gives it a little bounce over
   the bumps so it reads as riding rather than sliding. */
@keyframes pm-ride {
  from { left: 0; transform: translateY(0) rotate(0deg); }
  30%  { transform: translateY(-1.6px) rotate(-2.5deg); }
  55%  { transform: translateY(0) rotate(0deg); }
  80%  { transform: translateY(-1.4px) rotate(-1.5deg); }
  to   { left: calc(100% - var(--scooter-w)); transform: translateY(0) rotate(0deg); }
}

[data-reveal] {
  /* Opacity gets a plain ease-out and a shorter run: it should be fully there
     before the movement finishes, or the overshoot reads as a wobble. */
  transition:
    opacity calc(var(--reveal-dur) * 0.7) ease-out var(--delay, 0ms),
    transform var(--reveal-dur) var(--reveal-ease) var(--delay, 0ms);
}

/* No will-change here: reveals replay, so many off-screen elements hold this
   class at once and pinning a compositor layer to each one is worse than the
   repaint it would save. */
[data-reveal].is-hidden {
  opacity: 0;
  transform: translate3d(0, var(--reveal-rise), 0) scale(0.965);
}

/* Direction is set per element so sections enter from where they sit. */
[data-reveal="left"].is-hidden {
  transform: translate3d(calc(var(--reveal-slide) * -1), 0, 0) scale(0.965);
}
[data-reveal="right"].is-hidden {
  transform: translate3d(var(--reveal-slide), 0, 0) scale(0.965);
}
[data-reveal="scale"].is-hidden { transform: scale(0.9); }

/* Items in a group step in one after another. JS sets --i; the cap keeps a
   long list from trailing off. */
[data-reveal] { --delay: calc(var(--i, 0) * var(--stagger)); }

/* Hairlines draw themselves in — the design leans on thin rules, so this is
   the one flourish that reads as part of the type, not decoration. */
.intro__rule,
.exp__rule {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.95s var(--reveal-ease) 0.2s;
}
.is-in .intro__rule,
.is-in .exp__rule { transform: scaleX(1); }

/* Room amenity tags settle in after the room's text. */
.room__tags .tag {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 0.45s ease-out calc(0.3s + var(--i, 0) * 70ms),
    transform 0.6s var(--reveal-ease) calc(0.3s + var(--i, 0) * 70ms);
}
.is-in .room__tags .tag { opacity: 1; transform: none; }

/* Images breathe on hover: the photo eases in, and the placeholder gradient
   drifts so empty slots feel alive too. */
.slot {
  background-size: 150% 150%;
  background-position: 28% 26%;
  transition: background-position 1.6s var(--ease);
}
.slot img { transition: transform 1.4s var(--ease); }

.gcell:hover .slot,
.room-row__media:hover .slot,
.dcard:hover .slot,
.exp__media:hover .slot,
.why__panel:hover .why__layer.is-on .slot { background-position: 60% 62%; }

.gcell:hover .slot img,
.room-row__media:hover .slot img,
.dcard:hover .slot img,
.exp__media:hover .slot img { transform: scale(1.055); }

/* Gallery: fade the grid out before swapping the filtered set in. */
.gallery__grid { transition: opacity 0.18s ease; }
.gallery__grid.is-swapping { opacity: 0; }

/* Discover rail cards lift slightly under the cursor. */
.dcard { transition: transform 0.6s var(--ease); }
.dcard:hover { transform: translate3d(0, -7px, 0); }

/* Nav links grow an underline instead of only changing colour. */
.nav-wide a { position: relative; }
.nav-wide a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease);
}
.nav-wide a:hover::after { transform: scaleX(1); }

/* The header firms up once you leave the hero. */
/* Header behaviour lives in its own block further down. */

/* Hero copy drifts up and dims as it scrolls away — JS drives the values. */
.hero__body { will-change: transform, opacity; }

@media (hover: none) {
  /* No hover on touch: don't leave cards mid-transform. */
  .dcard:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transition: none; }
  [data-reveal].is-hidden { opacity: 1; transform: none; }
  .hero__slide { animation: none; transform: none; transition: none; }
  .hero__body { transform: none !important; opacity: 1 !important; }
  .intro__rule, .exp__rule { transform: scaleX(1); transition: none; }
  .room__tags .tag { opacity: 1; transform: none; transition: none; }
  .slot, .slot img, .dcard { transition: none; }
  .rail-btn, .rail-btn svg { transition: none; }
  .pickview__alt, .pickview__badge { transition: none; }
  .social__icon { transition: none; }
  .social:hover .social__icon { transform: none; }
  .pickview__media:hover .slot img { transform: none; }
  .rail-btn--next:hover:not(:disabled) svg { transform: none; }
  .rail-btn--prev:hover:not(:disabled) svg { transform: scaleX(-1); }
  .gcell:hover .slot img,
  .room-row__media:hover .slot img,
  .dcard:hover .slot img,
  .exp__media:hover .slot img { transform: none; }
  .dcard:hover { transform: none; }
  .gallery__grid { transition: none; }
  .gallery__grid.is-swapping { opacity: 1; }
  .nav-wide a::after { transition: none; }

  /* Redesigned sections: keep every state reachable, just don't animate it. */
  .why__layer { transition: none; transform: none; }
  .why__copy { transition: none; }
  .why__dash { transition: none; }
  .why__row.is-on .why__dash { transform: translateY(-6px) scaleX(1); }
  .room-row__panel { transition: none; }
  .room-row__icon { transition: none; }
  .room-row__media-alt { transition: none; }

  /* The header still hides and shows — it just does it instantly. */
  .header,
  .header::before { transition: none; }

  /* The scooter stays parked beside the travel time. */
  .is-in .nearby__scooter { animation: none; }
}

/* ---------- image slots ---------- */
/* Each slot renders a pine-toned placeholder carrying its art-direction hint.
   Drop a real photo at images/<slot-id>.jpg and it takes over automatically;
   if the file is absent the <img> removes itself and the placeholder shows. */

.slot {
  position: relative;
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--sand-2);
  background-image: linear-gradient(150deg, #DCD5C4 0%, #CBCBB4 46%, #B9C4AC 100%);
}

.slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slot::after {
  content: attr(data-hint);
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: rgba(33, 31, 27, 0.44);
  background: linear-gradient(180deg, rgba(246, 241, 232, 0) 0%, rgba(246, 241, 232, 0.72) 100%);
}
.slot.is-filled::after { content: none; }

.slot--dark { background-image: linear-gradient(150deg, #24312A 0%, #2C3A2E 50%, #38473A 100%); }
.slot--dark::after {
  color: rgba(239, 234, 223, 0.5);
  background: linear-gradient(180deg, rgba(30, 41, 33, 0) 0%, rgba(30, 41, 33, 0.72) 100%);
}

/* ---------- header ----------
   Fixed, so it can sit over the hero rather than above it. Three states, all
   driven from the scroll handler:
     .is-top     at the very top — transparent, light text over the banner
     .is-solid   scrolled — cream background, hairline, soft shadow
     .is-away    scrolled down past the hero — slid up out of the way
   Scrolling up brings it back. */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(246, 241, 232, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
  transition:
    transform 0.5s var(--ease),
    background-color 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}

.header.is-solid { box-shadow: 0 10px 34px rgba(33, 31, 27, 0.07); }
.header.is-away  { transform: translate3d(0, -100%, 0); }

/* At the top of a page that has a banner, the header gets out of the way of
   the photograph: no background, no border, light type. */
body.has-hero .header.is-top {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

/* The veil that keeps cream type readable over a pale sky — two of the three
   banners have one. It is not flat: a soft top-down darkening the photograph
   still reads straight through.

   It lives on a pseudo-element that runs well past the header's own bottom
   edge, and that is the whole point. A gradient painted on the header itself
   has to reach zero by the last pixel of the box, and stopping a ramp dead
   like that leaves a seam the eye reads as a line under the header — exactly
   the panel edge the transparent state exists to avoid. Given room to finish,
   the fade lands on nothing in particular and there is no edge to see.

   Opacity rather than a background swap, so the veil comes and goes with the
   header's other state changes at the same 0.45s. */
.header::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 230%;
  background: linear-gradient(180deg,
      rgba(24, 22, 18, 0.5) 0%,
      rgba(24, 22, 18, 0.3) 34%,
      rgba(24, 22, 18, 0.09) 66%,
      rgba(24, 22, 18, 0) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.45s ease;
}
body.has-hero .header.is-top::before { opacity: 1; }
/* Cheap insurance for the type itself, over whatever the photo happens to be. */
body.has-hero .header.is-top .brand__name,
body.has-hero .header.is-top .brand__place,
body.has-hero .header.is-top .nav-wide a,
body.has-hero .header.is-top .lang {
  text-shadow: 0 1px 2px rgba(24, 22, 18, 0.35), 0 1px 12px rgba(24, 22, 18, 0.45);
}
body.has-hero .header.is-top .brand,
body.has-hero .header.is-top .brand__name { color: var(--cream-hi); }
/* The small type (10–12px) was 72% / 70% white: 2.3–3.3:1 on a pale misty sky. Dimming is the inactive cue,
   so keep it, but only slightly. */
body.has-hero .header.is-top .brand__place { color: rgba(248, 244, 236, 0.92); }
body.has-hero .header.is-top .nav-wide a { color: rgba(248, 244, 236, 0.92); }
body.has-hero .header.is-top .nav-wide a:hover { color: #FFF; }
body.has-hero .header.is-top .langs { border-left-color: rgba(248, 244, 236, 0.3); }
body.has-hero .header.is-top .lang { color: rgba(248, 244, 236, 0.9); }
body.has-hero .header.is-top .lang.is-on {
  color: var(--cream-hi);
  border-bottom-color: var(--cream-hi);
}
body.has-hero .header.is-top .btn-book {
  background: transparent;
  border-color: rgba(248, 244, 236, 0.78);
  color: var(--cream-hi);
}
body.has-hero .header.is-top .btn-book:hover {
  background: var(--cream-hi);
  border-color: var(--cream-hi);
  color: var(--ink);
}
body.has-hero .header.is-top .btn-burger { border-color: rgba(248, 244, 236, 0.45); }
body.has-hero .header.is-top .btn-burger span { background: var(--cream-hi); }

.header__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Pages without a banner need to clear the fixed header themselves. */
.main--offset { padding-top: var(--header-h); }

.brand { display: flex; align-items: baseline; gap: 10px; color: var(--ink); }
.brand__name {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 25px);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand__place {
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);          /* --muted-2 was 3:1 on the cream header at 10.5px */
  padding-bottom: 2px;
}

.nav-wide { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav-wide a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-2);
}
.nav-wide a:hover { color: var(--clay); }

.langs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 4px;
  border-left: 1px solid var(--hair-2);
  margin-left: 4px;
}
.lang {
  font-family: var(--sans);
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 6px 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);          /* the inactive language: --muted-3 was 2.3:1 on cream */
  border-bottom: 1px solid transparent;
  transition: color 0.35s ease;
}
.lang:hover { color: var(--clay); }
.lang.is-on { color: var(--ink); border-bottom-color: var(--clay); }

.nav-narrow { display: none; align-items: center; gap: 10px; }
.nav-narrow .langs { border-left: none; padding-left: 0; margin-left: 0; gap: 2px; }
.nav-narrow .lang { padding: 8px 6px; letter-spacing: 0.1em; }

.btn-book {
  font-family: var(--sans);
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--cream);
  padding: 12px 22px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.5s ease, color 0.5s ease;
}
.btn-book:hover { background: transparent; color: var(--green); }
.nav-narrow .btn-book { padding: 11px 14px; font-size: 11.5px; letter-spacing: 0.12em; }

.btn-burger {
  width: 44px;
  height: 44px;
  border: 1px solid var(--hair-3);
  background: transparent;
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.btn-burger span { display: block; width: 18px; height: 1px; background: var(--ink); }

@media (max-width: 1060px) {
  .nav-wide   { display: none; }
  .nav-narrow { display: flex; }
}

/* Phone header: brand + languages + book + burger has to fit in 360px.
   Drop the "Đà Lạt" eyebrow and tighten the book button rather than let the
   burger get pushed off the edge. */
@media (max-width: 480px) {
  .header__inner { padding: 0 16px; gap: 12px; }
  .brand__place { display: none; }
  .nav-narrow { gap: 6px; }
  .nav-narrow .btn-book { padding: 11px 10px; letter-spacing: 0.08em; white-space: nowrap; }
  .nav-narrow .lang { padding: 8px 4px; }
}

/* ---------- mobile menu ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--cream);
  padding: clamp(20px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  animation: pm-rise 0.4s ease both;
}
.menu__top { display: flex; align-items: center; justify-content: space-between; }
.menu__brand { font-family: var(--serif); font-size: 24px; }
.btn-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--hair-3);
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.menu__nav {
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.menu__nav a { font-family: var(--serif); font-size: 38px; color: var(--ink); }
.menu__foot {
  border-top: 1px solid rgba(33, 31, 27, 0.12);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.menu__foot span { font-size: 13px; color: var(--muted); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: clamp(560px, 90vh, 960px);
  overflow: hidden;
  background: var(--sand);
}
/* Banner slideshow: the slides are stacked and cross-faded, each with its own
   drift so the picture is always moving regardless of which one is up. */
.hero__slides { position: absolute; inset: 0; overflow: hidden; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero__slide.is-on { opacity: 1; }

.hero__slide:nth-child(1) { animation: pm-drift-a 16s ease-in-out infinite alternate; }
.hero__slide:nth-child(2) { animation: pm-drift-b 18s ease-in-out infinite alternate; }
.hero__slide:nth-child(3) { animation: pm-drift-c 17s ease-in-out infinite alternate; }

/* Slide indicators — short bars rather than circles, to match the hairlines
   the rest of the page leans on. The padding gives a proper tap target while
   the bar itself stays 3px. */
.hero__dots {
  position: absolute;
  right: clamp(24px, 5vw, 88px);
  bottom: clamp(24px, 5vw, 88px);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero__dot {
  width: 34px;
  height: 3px;
  padding: 11px 0;
  border: none;
  cursor: pointer;
  background: rgba(248, 244, 236, 0.36);
  background-clip: content-box;
  transition: background-color 0.4s ease;
}
.hero__dot:hover { background-color: rgba(248, 244, 236, 0.72); }
.hero__dot.is-on { background-color: var(--cream-hi); }
.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(24, 22, 18, 0.44) 0%, rgba(24, 22, 18, 0.12) 34%, rgba(24, 22, 18, 0.72) 100%);
}
.hero__body {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 5vw, 88px);
  max-width: var(--shell);
  margin: 0 auto;
}
.hero__kicker {
  margin: 0 0 clamp(14px, 2vw, 22px);
  font-size: 11.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.82);
}
.hero h1 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 74px);
  line-height: 1.08;
  letter-spacing: -0.032em;
  color: var(--cream-hi);
  max-width: 17ch;
  text-wrap: balance;
}
.hero__sub {
  margin: clamp(16px, 2vw, 26px) 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 28px);
  color: rgba(248, 244, 236, 0.9);
  max-width: 38ch;
}
.hero__actions {
  margin-top: clamp(26px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  pointer-events: auto;
}
.btn-cream {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  border: none;
  padding: 18px 34px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.5s ease, color 0.5s ease;
}
.btn-cream:hover { background: var(--green); color: var(--cream); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  color: rgba(248, 244, 236, 0.96);
  font-size: 12.5px;
  text-shadow: 0 1px 2px rgba(24, 22, 18, 0.35), 0 1px 12px rgba(24, 22, 18, 0.45);
  letter-spacing: 0.02em;
}
.hero__rating { font-family: var(--serif); font-size: 19px; letter-spacing: 0; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(248, 244, 236, 0.5); }

/* ---------- facts bar ---------- */

.facts { border-bottom: 1px solid var(--hair); background: var(--cream-alt); }
.facts__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 34px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(18px, 3vw, 40px);
}
.fact { display: flex; flex-direction: column; gap: 5px; }
.fact__title { font-family: var(--serif); font-size: clamp(18px, 2vw, 22px); color: var(--ink); }
.fact__note  { font-size: 12.5px; line-height: 1.55; color: var(--muted); }

/* ---------- shared type ---------- */

.kicker {
  margin: 0 0 18px;
  font-size: 11.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(27px, 3.9vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.028em;
}
.h2--sm {
  font-size: clamp(25px, 3.4vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.026em;
}
.lede {
  margin: 22px 0 0;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.8;
  color: var(--ink-2);
}
.section { max-width: var(--shell); margin: 0 auto; padding: var(--section) var(--gutter); }
.section--tight { padding: clamp(64px, 10vw, 140px) var(--gutter); }

/* ---------- intro ---------- */

.intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.intro__media { position: relative; }
.intro__media-a { aspect-ratio: 4 / 5; background: var(--sand-2); }
.intro__media-b {
  position: absolute;
  right: clamp(-16px, -3vw, -48px);
  bottom: clamp(-28px, -5vw, -64px);
  width: clamp(120px, 22vw, 220px);
  aspect-ratio: 1;
  border: 8px solid var(--cream);
  background: var(--sand-2);
}
.intro__copy { max-width: 48ch; }
.intro__copy .h2 { letter-spacing: -0.01em; }
.intro__copy .body {
  margin: clamp(22px, 3vw, 32px) 0 0;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.8;
  color: var(--ink-2);
  text-wrap: pretty;
}
.intro__copy .body + .body { margin-top: 18px; }
.intro__hosts {
  margin-top: clamp(28px, 3vw, 40px);
  display: flex;
  align-items: center;
  gap: 14px;
}
.intro__rule { width: 44px; height: 1px; background: var(--clay); }
.intro__names { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--green); }

/* ---------- why / reasons ---------- */

.band {
  background: var(--cream-alt);
  border-top: 1px solid rgba(33, 31, 27, 0.08);
  border-bottom: 1px solid rgba(33, 31, 27, 0.08);
}
.band__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(58px, 9vw, 128px) var(--gutter);
}
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(38px, 6vw, 72px);
}
.split__note { margin: 0; max-width: 36ch; font-size: 14px; line-height: 1.75; color: var(--muted); }
/* Picture panel beside six selectable lines. */
.why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(26px, 4vw, 64px);
  align-items: stretch;
}

.why__panel {
  position: relative;
  min-height: clamp(320px, 46vw, 560px);
  background: var(--sand-2);
  overflow: hidden;
}

/* All six photos are stacked; only the active one is opaque, so switching is a
   cross-fade with a slow settle rather than a swap. */
.why__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.85s var(--ease), transform 1.5s var(--ease);
}
.why__layer.is-on { opacity: 1; transform: none; }

.why__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  pointer-events: none;
  padding: 16px 18px;
  background: rgba(246, 241, 232, 0.94);
  display: flex;
  align-items: baseline;
  gap: 12px;
  max-width: 82%;
}
.why__caption-no { font-family: var(--serif); font-size: 15px; color: var(--clay); }
.why__caption-title {
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--ink);
}

.why__list { display: flex; flex-direction: column; justify-content: center; }

.why__row {
  font-family: var(--sans);
  cursor: pointer;
  text-align: left;
  width: 100%;
  background: transparent;
  border: none;
  border-top: 1px solid var(--hair-2);
  padding: clamp(14px, 1.6vw, 20px) 0;
  display: block;
  transition: border-color 0.5s ease;
}
.why__row.is-on { border-top-color: rgba(33, 31, 27, 0.32); }

.why__head {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 1.6vw, 20px);
}
.why__no {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--muted-4);
  transition: color 0.4s ease;
}
.why__row.is-on .why__no { color: var(--clay); }

.why__title {
  flex: 1;
  font-weight: 600;
  font-size: clamp(17px, 1.9vw, 23px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink-4);
  transition: color 0.4s ease;
}
.why__row.is-on .why__title { color: var(--ink); }
.why__row:hover .why__title { color: var(--ink); }

/* A small rule that grows in beside the active line. */
.why__dash {
  width: 22px;
  height: 1px;
  transform: translateY(-6px) scaleX(0);
  transform-origin: left center;
  background: var(--clay);
  transition: transform 0.5s var(--ease);
}
.why__row.is-on .why__dash { transform: translateY(-6px) scaleX(1); }

/* Expanding copy. max-height rather than 0fr/1fr grid rows so the transition
   is reliable everywhere; the design keeps this copy to one or two lines. */
.why__copy {
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding-left: clamp(25px, 3.5vw, 33px);
  max-width: 46ch;
  font-family: var(--serif);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  color: var(--ink-2);
  transition:
    max-height 0.55s var(--ease),
    opacity 0.45s ease,
    padding-top 0.55s var(--ease);
}
.why__copy > span { display: block; }
.why__row.is-on .why__copy { max-height: 12em; opacity: 1; padding-top: 10px; }

.why__rule { border-top: 1px solid var(--hair-2); }

/* ---------- rooms ---------- */

.rooms__head { margin-bottom: clamp(28px, 4vw, 52px); max-width: 54ch; }

.rooms__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(18px, 2.2vw, 28px);
}
.rooms__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.rooms__aside {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
}
.rooms__count { font-size: 12.5px; letter-spacing: 0.02em; color: var(--ink-4); }
.rooms__all {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;
}
.rooms__all:hover { color: var(--clay); }

.rfilter {
  font-family: var(--sans);
  cursor: pointer;
  padding: 9px 15px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(33, 31, 27, 0.18);
  background: transparent;
  color: var(--ink-2);
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.rfilter:hover { border-color: var(--green); }
.rfilter.is-on { background: var(--green); color: var(--cream); }

.rooms__table { border-top: 1px solid rgba(33, 31, 27, 0.2); }

.room-row {
  border-bottom: 1px solid rgba(33, 31, 27, 0.12);
  background: transparent;
  transition: background 0.5s ease;
}
.room-row.is-open { background: var(--cream-alt); }

.room-row__head {
  font-family: var(--sans);
  width: 100%;
  min-height: 64px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: clamp(15px, 1.9vw, 24px) clamp(2px, 1vw, 14px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px clamp(14px, 2vw, 28px);
}

.room-row__no {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--clay);
}

.room-row__head { --thumb-w: clamp(72px, 7vw, 104px); }
.room-row__thumb {
  flex: 0 0 auto;
  width: var(--thumb-w);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand-2);
  transition: width 0.55s var(--ease), opacity 0.4s ease, margin 0.55s var(--ease);
}
.room-row__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Open, the panel's full photo takes over; the negative margin cancels the
   flex gap the zero-width thumb would otherwise still claim. */
.room-row.is-open .room-row__thumb {
  width: 0;
  opacity: 0;
  margin-right: calc(-1 * clamp(14px, 2vw, 28px));
}

.room-row__name {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 200px;
}
.room-row__title {
  font-weight: 600;
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.22;
  letter-spacing: -0.024em;
  color: var(--ink);
  transition: color 0.4s ease;
}
.room-row__head:hover .room-row__title { color: var(--green); }
.room-row__specs {
  font-size: 12.5px;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--ink-4);
}

.room-row__price { flex: 0 1 auto; display: flex; align-items: baseline; gap: 7px; }
.room-row__amount { font-family: var(--serif); font-size: clamp(18px, 1.9vw, 23px); color: var(--ink); }
.room-row__per { font-size: 12.5px; color: var(--ink-4); }

/* The "+" rotates into an "x" as its row opens. */
.room-row__icon {
  flex: 0 0 auto;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(33, 31, 27, 0.22);
  display: grid;
  place-content: center;
  color: var(--green);
  font-size: 15px;
  line-height: 1;
  transition: transform 0.5s var(--ease), background 0.4s ease, border-color 0.4s ease;
}
.room-row.is-open .room-row__icon { transform: rotate(45deg); }
.room-row__head:hover .room-row__icon { border-color: var(--green); }

/* Height is animated in JS; keep it clipped so the panel slides rather than
   popping. */
.room-row__panel {
  overflow: hidden;
  height: 0;
  transition: height 0.55s var(--ease);
}

.room-row__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(18px, 3vw, 48px);
  padding: 0 clamp(2px, 1vw, 14px) clamp(22px, 3vw, 40px);
}

.room-row__media {
  position: relative;
  background: var(--sand-2);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

/* The second angle, stacked on top and revealed on hover. */
.room-row__media-alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.room-row__media:hover .room-row__media-alt,
.room-row__media.is-alt .room-row__media-alt { opacity: 1; }

@media (hover: none) {
  /* Tappable, so the second photo is reachable without a pointer. */
  .room-row__media { cursor: pointer; }
}
@media (max-width: 1060px) {
  .room-row__media { aspect-ratio: 3 / 2; }
  .room-row__no { display: none; }
  /* Thumb and name share the first line; price and toggle wrap below. */
  .room-row__name { flex: 1 1 calc(100% - var(--thumb-w, 0px) - 28px); }
  .room-row__head { --thumb-w: 72px; }
}

.room-row__body { display: flex; flex-direction: column; justify-content: center; }
.room-row__line {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 32ch;
}
.room-row__body .room__tags { margin-top: 20px; }
.room-row__avail {
  margin: 18px 0 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
}
.room-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(22px, 2.6vw, 30px);
}

.room__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  border: 1px solid var(--hair-3);
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* Used both as a <button> and as an <a> (the "view room" link) — keep the box
   identical either way. */
.btn-outline {
  font-family: var(--sans);
  display: inline-block;
  border: 1px solid var(--green);
  color: var(--green);
  background: transparent;
  padding: 14px 24px;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background 0.5s ease, color 0.5s ease;
}
.btn-outline:hover { background: var(--green); color: var(--cream); }

.btn-solid {
  font-family: var(--sans);
  display: inline-block;
  background: var(--green);
  border: 1px solid var(--green);
  color: var(--cream);
  padding: 14px 24px;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.4s ease;
}
.btn-solid:hover { opacity: 0.88; }

/* ---------- experience (dark) ---------- */

.exp { background: var(--green-dark); color: var(--on-dark); }
.exp__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 140px) var(--gutter);
}
.exp__head { max-width: 56ch; margin-bottom: clamp(42px, 6vw, 84px); }
.exp__kicker { color: rgba(239, 234, 223, 0.55); }
.exp .h2 { color: var(--cream-hi-2); }
.exp__lede { color: rgba(239, 234, 223, 0.72); }
.exp__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.exp__media { aspect-ratio: 3 / 4; background: var(--green-deep); overflow: hidden; }
.exp__meta { display: flex; align-items: baseline; gap: 12px; margin-top: 20px; }
.exp__time {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay-light);
}
.exp__rule { flex: 1; height: 1px; background: rgba(239, 234, 223, 0.2); }
.exp__card h3 {
  margin: 10px 0 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(23px, 2.2vw, 29px);
  color: var(--cream-hi-2);
}
.exp__card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(239, 234, 223, 0.7);
  text-wrap: pretty;
}

/* ---------- gallery ---------- */

.gallery__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(30px, 4vw, 48px);
}
.gallery__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.gtab {
  font-family: var(--sans);
  cursor: pointer;
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--hair-3);
  background: transparent;
  color: var(--ink-2);
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.gtab:hover { border-color: var(--green); }
.gtab.is-on { background: var(--green); color: var(--cream); }

.gallery__grid { display: flex; flex-wrap: wrap; gap: clamp(10px, 1.4vw, 18px); }

/* On a phone the flex layout collapses to one full-width photo per row —
   sixteen of them is four screens of scrolling. A two-up grid with every
   fifth photo running full width keeps the rhythm at half the length. A
   photo that would otherwise sit alone at the end of a set runs full width
   too, so no filter leaves a hole. The ratios are inline per cell, hence
   the !important. */
@media (max-width: 640px) {
  .gallery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery__grid .gcell { min-width: 0; aspect-ratio: 1 / 1 !important; }
  .gallery__grid .gcell:nth-child(5n+1),
  .gallery__grid .gcell:last-child:nth-child(5n+2),
  .gallery__grid .gcell:last-child:nth-child(5n+4) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10 !important;
  }
}

.gallery__more { display: flex; justify-content: center; }
.gallery__more:empty { display: none; }
.gallery__more > * { margin-top: clamp(26px, 3.4vw, 44px); padding: 15px 30px; }

.btn-less {
  font-family: var(--sans);
  cursor: pointer;
  border: 1px solid var(--hair-input);
  background: transparent;
  color: var(--ink-4);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.4s ease, border-color 0.4s ease;
}
.btn-less:hover { color: var(--clay); border-color: var(--clay); }
.gcell {
  min-width: min(100%, 240px);
  background: var(--sand-2);
  position: relative;
  overflow: hidden;
}

/* ---------- location ---------- */

.location__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 130px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
/* The map picture stays as the ground under the iframe, so the block still
   reads as a map for the moment before Google's tiles arrive — or if they
   never do, on a blocked or offline connection. */
.map {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--sand-3) center / cover no-repeat;   /* the picture itself is set by each site's theme.css */
  border: 1px solid rgba(33, 31, 27, 0.1);
  overflow: hidden;
}
.map__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Until the map is handed its gestures, the iframe must not see the pointer:
   on a phone a drag that starts over it would pan the map instead of scrolling
   the page, and the traveller gets stuck halfway down the site. */
.map:not(.is-live) .map__frame { pointer-events: none; }

.map__veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;      /* top-right: Google's own chrome owns the other three corners */
  padding: clamp(12px, 2vw, 18px);
  background: transparent;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.map.is-live .map__veil { display: none; }

.map__label {
  background: var(--cream);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 12px;
  box-shadow: 0 8px 24px rgba(33, 31, 27, 0.18);
}
.map__veil:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.location__address {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 42ch;
}
.nearby { margin-top: clamp(26px, 3vw, 36px); border-top: 1px solid var(--hair-2); }
.nearby__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(33, 31, 27, 0.1);
}
.nearby__place { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.nearby__fill {
  flex: 1;
  min-width: 44px;                    /* always leave room for the scooter */
  position: relative;
  border-bottom: 1px dotted rgba(33, 31, 27, 0.22);
}

/* The scooter sprite is defined once and referenced per row; keep the holder
   out of the layout. */
.pm-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* A little scooter that rides the dotted leader from the place name to the
   travel time — the leader line is the road. It parks at the far end beside
   the time, which is where it rests once the animation has run. */
.nearby__scooter {
  position: absolute;
  bottom: -8px;
  left: calc(100% - var(--scooter-w));
  width: var(--scooter-w);
  height: calc(var(--scooter-w) * 32 / 48);
  color: var(--clay);
  pointer-events: none;
}
.nearby__time { font-size: 12.5px; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; flex: none; }   /* "11 phút xe" stays on one line */
.location__cta {
  display: inline-block;
  margin-top: clamp(24px, 3vw, 34px);
  border: 1px solid var(--green);
  color: var(--green);
  padding: 15px 26px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.5s ease, color 0.5s ease;
}
.location__cta:hover { background: var(--green); color: var(--cream); }

/* ---------- discover ---------- */

/* The section carries no horizontal padding: the heading gets it back from
   .discover__inner, and the rail uses it as scroll padding so the first card
   still lines up with the heading while the row runs edge to edge. */
.discover { padding: clamp(64px, 10vw, 140px) 0; }

.discover__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.discover__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.discover__aside {
  /* Grows so that once the head wraps on a phone the arrows still land on the
     page gutter, in line with the cards below them. */
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
}
.discover__note { margin: 0; max-width: 34ch; font-size: 14px; line-height: 1.75; color: var(--muted); }

.discover__rail {
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  overflow-x: auto;
  /* overflow-x alone would make overflow-y compute to auto, and the cards'
     reveal translate would then add a vertical scrollbar. The padding/margin
     pair leaves headroom for the hover lift without shifting the layout. */
  overflow-y: hidden;
  padding: 12px var(--gutter) 14px;
  margin-top: -12px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  /* The arrows are the control now; the bar underneath would only repeat them.
     Scrolling itself stays native, so swipe and trackpad still work. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.discover__rail::-webkit-scrollbar { width: 0; height: 0; }
.discover__rail:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -6px;
}

/* ---------- slider arrows ---------- */

.rail-nav { display: flex; gap: 10px; }
.rail-nav.is-idle { display: none; }        /* nothing to scroll to */

.rail-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(33, 31, 27, 0.18);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              color 0.4s var(--ease), opacity 0.4s var(--ease);
}
.rail-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease);
}
.rail-btn--prev svg { transform: scaleX(-1); }

.rail-btn:hover:not(:disabled) { background: var(--green); border-color: var(--green); color: var(--cream); }
.rail-btn--next:hover:not(:disabled) svg { transform: translateX(2px); }
.rail-btn--prev:hover:not(:disabled) svg { transform: scaleX(-1) translateX(2px); }

.rail-btn:disabled { opacity: 0.3; cursor: default; }
.dcard {
  flex: 0 0 clamp(240px, 30vw, 380px);
  scroll-snap-align: start;
  color: var(--ink);
}
.dcard__media { aspect-ratio: 3 / 4; background: var(--sand-2); overflow: hidden; }
.dcard h3 {
  margin: 18px 0 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 26px;
}
.dcard p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--ink-3); }

/* ---------- reviews ---------- */

.reviews { background: var(--cream-alt); border-top: 1px solid rgba(33, 31, 27, 0.08); }
.reviews__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 130px) var(--gutter);
}
.reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(24px, 5vw, 60px);
  margin-bottom: clamp(40px, 5vw, 70px);
}
.reviews__score { display: flex; align-items: baseline; gap: 10px; }
.reviews__big {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(60px, 10vw, 118px);
  line-height: 0.86;
}
.reviews__outof { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 28px); color: var(--muted-2); }
.reviews__count {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
}
.reviews__sub { margin: 0; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.reviews__lede { max-width: 30ch; }

/* Pushed to the far end of the header row. */
.reviews__google {
  margin-left: auto;
  border: 1px solid var(--green);
  color: var(--green);
  padding: 14px 22px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.5s ease, color 0.5s ease;
}
.reviews__google:hover { background: var(--green); color: var(--cream); }

/* On a phone the header row stacks, and `margin-left: auto` would leave the
   link floating right of everything else. Align it with the rest instead. */
@media (max-width: 620px) {
  .reviews__google { margin-left: 0; }
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(20px, 2.6vw, 34px);
}

.review {
  margin: 0;
  border-top: 1px solid var(--hair-3);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}
.review__stars { font-size: 12.5px; letter-spacing: 0.16em; color: var(--clay); }
.review__date  { font-size: 12.5px; color: var(--muted-2); }

.review__quote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.58;
  color: var(--ink);
  text-wrap: pretty;
}

/* Name over origin. The design puts a round avatar to the left of these; we
   leave it out — see the note in app.js. */
.review__by { display: flex; flex-direction: column; gap: 2px; }
.review__name {
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.review__origin { font-size: 12.5px; color: var(--muted-2); }

/* ---------- final CTA ---------- */

.final {
  position: relative;
  min-height: clamp(480px, 72vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--sand);
}
.final__media { position: absolute; inset: 0; }
.final__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(24, 22, 18, 0.5), rgba(24, 22, 18, 0.62));
}
.final__body {
  position: relative;
  text-align: center;
  padding: clamp(60px, 9vw, 120px) clamp(20px, 4vw, 40px);
  max-width: 820px;
}
.final h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(29px, 4.6vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--cream-hi);
}
.final__sub {
  margin: clamp(18px, 2vw, 26px) 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(248, 244, 236, 0.88);
}
.final .btn-cream { margin-top: clamp(30px, 4vw, 44px); padding: 18px 36px; }

/* ---------- footer ---------- */

.footer { background: var(--ink); color: var(--on-dark-2); }
.footer__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(32px, 4vw, 56px);
}
.footer__brand { font-family: var(--serif); font-size: 30px; color: var(--cream-hi-2); }
.footer__tagline {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: rgba(232, 226, 214, 0.66);
}
.btn-light {
  font-family: var(--sans);
  margin-top: 26px;
  background: var(--cream-hi-2);
  color: var(--ink);
  border: none;
  padding: 15px 26px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.4s ease;
}
.btn-light:hover { opacity: 0.82; }

.footer__label {
  margin: 0 0 16px;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(232, 226, 214, 0.66);
}
.footer__line { margin: 0 0 10px; font-size: 14px; line-height: 1.75; color: rgba(232, 226, 214, 0.82); }
.footer__line--tight { margin: 0 0 6px; }
.footer__line--last  { margin: 0; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 14px; color: rgba(232, 226, 214, 0.82); }
.footer__links a:hover { color: var(--clay-light); }

/* The follow column carries a mark per channel. Slightly looser rows than the
   plain link column, because the icons make each row taller. */
.footer__links--social { gap: 13px; }
.social {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  /* A 19px row is a mean target for a thumb. The padding grows the hit area to
     31px; the matching negative margin keeps the column's rhythm unchanged. */
  padding-block: 6px;
  margin-block: -6px;
}
.social__icon {
  width: 19px;
  height: 19px;
  flex: none;
  /* Half a step back from the label, so the marks read as a column of glyphs
     rather than competing with the words. Hover brings them level. */
  opacity: 0.74;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.social:hover .social__icon { opacity: 1; transform: translateX(2px); }

.footer__base {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px var(--gutter) clamp(28px, 4vw, 44px);
  border-top: 1px solid rgba(232, 226, 214, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.footer__copy { font-size: 12.5px; color: rgba(232, 226, 214, 0.66); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__legal a { font-size: 12.5px; color: rgba(232, 226, 214, 0.6); }
.footer__legal a:hover { color: var(--clay-light); }

/* ---------- sticky booking bar (narrow only) ---------- */

.sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: rgba(246, 241, 232, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(33, 31, 27, 0.12);
  padding: 12px clamp(16px, 4vw, 24px);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.sticky__price { font-family: var(--serif); font-size: 20px; line-height: 1.1; white-space: nowrap; }
.sticky__note  { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sticky__col   { display: flex; flex-direction: column; min-width: 0; }
/* On a 360–390px phone the English labels ("per night · breakfast included",
   "CHECK AVAILABILITY") are wider than the bar: let the note wrap and the
   button tighten instead of pushing the button off the right edge. */
.sticky > .btn-green, .sticky > button, .sticky > a { flex: 0 1 auto; min-width: 0; }
@media (max-width: 440px) {
  /* 7-digit prices ("1.300.000 VND") ran under the button on phones: let the price shrink with the screen. */
  .sticky__price { font-size: clamp(15px, 4.6vw, 20px); }
  .sticky__note { white-space: normal; }
  .sticky .btn-green { padding-inline: 14px; letter-spacing: 0.08em; white-space: normal; text-align: center; line-height: 1.25; }
}
.btn-green { white-space: nowrap;
  font-family: var(--sans);
  background: var(--green);
  color: var(--cream);
  border: none;
  padding: 15px 20px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 46px;
}

@media (max-width: 1060px) {
  .sticky { display: flex; }
  body.is-locked .sticky { display: none; }

  /* The bar is fixed, so make room for it: the dark footer extends underneath
     it, and the hero's rating row lifts clear of it. */
  body.has-sticky .footer__base { padding-bottom: calc(clamp(28px, 4vw, 44px) + 76px); }
  body.has-sticky .hero__body   { padding-bottom: calc(clamp(24px, 5vw, 88px) + 76px); }
}

/* Phones: the small text links (footer, legal, breadcrumbs, "see all") were
   14–20px tall, under the 24px minimum tap target. Grow the hit area with
   padding and give the same back as negative margin, so nothing moves. */
@media (max-width: 1060px) {
  .footer__links a, .footer__legal a, .rd-footer__nav a, .rd-crumbs a,
  .rd-aside__foot a, .rooms__all, .rd-other__all {
    padding-block: 6px;            /* keeps each link's own display (flex icons, inline text) */
    margin-block: -6px;
  }
}

/* ---------- booking drawer ---------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
}
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(24, 22, 18, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  animation: pm-rise 0.35s ease both;
}
.drawer__panel {
  position: relative;
  width: min(100%, 460px);
  background: var(--cream);
  height: 100%;
  overflow-y: auto;
  padding: clamp(22px, 4vw, 38px);
  box-shadow: -30px 0 80px rgba(24, 22, 18, 0.28);
  animation: pm-rise 0.4s ease both;
}
.drawer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.drawer__kicker {
  margin: 0 0 8px;
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.drawer__title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.08;
}
.drawer__close {
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid rgba(33, 31, 27, 0.18);
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
}

.form { margin-top: 30px; display: flex; flex-direction: column; gap: 20px; }
.form__dates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
/* A date input's intrinsic width is wider than half a phone card; without
   min-width: 0 it pushes the second column out past the card's edge. */
.field { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select {
  font-family: var(--sans);
  font-size: 14px;
  padding: 13px 12px;
  border: 1px solid var(--hair-input);
  background: var(--cream-input);
  color: var(--ink);
  min-height: 46px;
  width: 100%;
  min-width: 0;
}

/* ---------- the picked room, inside the booking drawer ----------

   Sits right under the picker so the choice and its evidence are one glance
   apart. The photo is 160px wide — large enough to recognise a room, small
   enough that the total and the submit button stay above the fold. */
.pickview {
  display: flex;
  gap: 15px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--hair-input);
  background: var(--cream-input);
}

.pickview__media {
  position: relative;
  flex: 0 0 clamp(132px, 42%, 168px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand-2);
}
/* The second angle, stacked over the first and revealed on hover. */
.pickview__alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.pickview__media:hover .pickview__alt,
.pickview__media.is-alt .pickview__alt { opacity: 1; }
.pickview__media:hover .slot img { transform: scale(1.03); }

.pickview__badge {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(24, 22, 18, 0.55);
  color: var(--cream);
  transition: opacity 0.4s var(--ease), background 0.4s var(--ease);
}
.pickview__badge svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Its job is done once the other angle is showing. */
.pickview__media:hover .pickview__badge,
.pickview__media.is-alt .pickview__badge { opacity: 0; }

.pickview__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 0;
}
.pickview__name {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}
.pickview__specs {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
.pickview__price {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink);
}
.pickview__price span {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  /* In a narrow drawer the unit wraps: keep the slash with the word rather
     than leaving it dangling at the end of the price. */
  white-space: nowrap;
}

@media (hover: none) {
  /* Tappable, so the second photo is reachable without a pointer. */
  .pickview__media[data-room-media] { cursor: pointer; }
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--hair-input);
  background: var(--cream-input);
  padding: 10px 12px;
}
.stepper__controls { display: flex; align-items: center; gap: 14px; }
.stepper button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--hair-input);
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink);
}
.stepper__value {
  font-family: var(--serif);
  font-size: 21px;
  min-width: 18px;
  text-align: center;
}

.summary {
  border-top: 1px solid var(--hair-2);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--hair-2);
  padding-top: 12px;
}
.summary__total-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.summary__total-value { font-family: var(--serif); font-size: 27px; }

.btn-submit {
  font-family: var(--sans);
  background: var(--green);
  color: var(--cream);
  border: none;
  padding: 18px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 52px;
  transition: opacity 0.4s ease;
}
.btn-submit:hover { opacity: 0.9; }
.form__note { margin: 0; font-size: 12px; line-height: 1.65; color: var(--muted-2); }

.done {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: pm-rise 0.5s ease both;
}
.done__mark {
  width: 46px;
  height: 46px;
  border: 1px solid var(--green);
  border-radius: 50%;
  display: grid;
  place-content: center;
  color: var(--green);
  font-size: 18px;
}
.done h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.15;
}
.done__line { margin: 0; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.done__note { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--muted); }
.btn-back {
  font-family: var(--sans);
  border: 1px solid var(--green);
  color: var(--green);
  background: transparent;
  padding: 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.5s ease, color 0.5s ease;
}
.btn-back:hover { background: var(--green); color: var(--cream); }

/* ---------- fixed contact rail ----------
   A column of channel icons pinned to the right edge on every page, above the
   header (60) and the sticky price bar (70) but below the menu (90) and the
   booking drawer (100) — it must never sit over a panel the guest opened.

   Resting state is the site's own mono palette so five icons don't turn the
   page into a toolbar; each channel's real colour arrives on hover and focus,
   which is when the guest is actually choosing between them. */

.crail {
  position: fixed;
  right: clamp(10px, 1.6vw, 20px);
  top: 50%;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;                      /* the handle's 44px box carries the spacing */

  /* The handle sits at the bottom of a box whose height never changes —
     `--crail-h` is the open height, measured once per render in
     contact-rail.js — so folding the icons away cannot move the one control
     the guest just clicked. The negative margin is what keeps the open rail
     optically centred. */
  height: var(--crail-h, auto);
  margin-top: calc(var(--crail-h, 0px) / -2);
}
/* The pill folds on `transform` and `opacity` and nothing else. Height,
   padding, border-colour and box-shadow were all animated here before, and
   every one of those makes the browser lay the pill out and repaint it again
   on every frame — over a banner that is itself drifting, that is what the
   fold felt like. Transform and opacity go to the compositor instead, so the
   motion costs no layout at all.

   Because the rail's box is a fixed `--crail-h` (see above) and the handle is
   pinned to its bottom, the folded pill can keep its size and simply scale
   away: nothing else moves when it does. */
.crail__list {
  list-style: none;
  margin: 0;
  padding: 7px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* Slightly more opaque than before, standing in for the blur that used to be
     here: a backdrop filter has to re-blur whatever is behind it on every frame
     of a transform, which is far too expensive for what it added at this
     alpha. */
  background: rgba(246, 241, 232, 0.94);
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(24, 22, 18, 0.1);

  visibility: visible;
  transform-origin: 50% 100%;         /* it collapses towards the handle */
  transition: transform 0.36s var(--ease), opacity 0.24s var(--ease),
              visibility 0s linear;
  will-change: transform, opacity;
}
/* Each icon leaves and arrives a beat after the one before it. Opacity alone —
   the pill's own scale already carries the movement, and a second travelling
   transform on top of it only muddies it. */
.crail__row {
  display: flex;
  transition: opacity 0.2s var(--ease);
  transition-delay: calc(var(--i, 0) * 26ms);
}

.crail__link {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              transform 0.35s var(--ease);
}
.crail__link:hover,
.crail__link:focus-visible {
  color: var(--cream);
  background: var(--crail-brand, var(--green));
  transform: scale(1.06);
}
.crail__link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.crail__icon { width: 21px; height: 21px; display: block; }

/* Each channel's own colour, so the icon is recognisable the moment it lights
   up. Phone and email stay in the house palette — they aren't brands. */
.crail__link--zalo      { --crail-brand: #0068FF; }
.crail__link--messenger { --crail-brand: #0A7CFF; }
.crail__link--whatsapp  { --crail-brand: #1FA855; }
.crail__link--phone     { --crail-brand: var(--green); }
.crail__link--email     { --crail-brand: var(--clay); }

/* The label slides out to the left of the icon on hover or keyboard focus.
   Pointer events off so it can never swallow the click it describes. */
.crail__tip {
  position: absolute;
  right: calc(100% + 8px);
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--green-dark);
  color: var(--on-dark);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.crail__link:hover .crail__tip,
.crail__link:focus-visible .crail__tip {
  opacity: 1;
  transform: none;
}

/* The fold handle. A quiet chevron tucked under the icons while the rail is
   open; once folded it is the only thing left on screen, so it grows into a
   proper green contact button with a chat bubble — by then it has to invite
   the tap on its own rather than just mark an edge.

   The button box stays 44px whatever state it is in and only the disc inside
   it grows, so the handle's centre stays exactly where it was. That also
   leaves it a full-size tap target while it is only a small chevron. */
.crail__toggle {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.crail__toggle:focus-visible { outline: none; }

/* The disc, and the grid cell both glyphs share — so cross-fading them moves
   nothing.

   The disc's box is always the full 44px and every state change is a `scale()`
   on it, never a new width and height. Same reason as the pill: growing a box
   lays it out and repaints it each frame, and a box-shadow whose blur radius is
   changing too is the most expensive thing on that list. The folded state's
   ring and deeper shadow sit on ::after and fade in instead, so both shadows
   stay static and only their opacity moves. */
.crail__glyph {
  --disc: var(--crail-disc, 0.68);        /* 0.68 x 44px = the 30px resting disc */
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hair-2);
  border-radius: 50%;
  background: rgba(246, 241, 232, 0.94);
  box-shadow: 0 6px 16px rgba(24, 22, 18, 0.08);
  color: var(--muted-4);
  transform: scale(var(--disc));
  transition: transform 0.36s var(--ease), background-color 0.3s var(--ease),
              border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.crail__glyph::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  /* A cream ring, because folded it is the only control left and it has to
     hold its shape over a dark forest photo as well as over the cream. */
  box-shadow: 0 0 0 2px rgba(246, 241, 232, 0.55), 0 13px 28px rgba(30, 41, 33, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.crail__toggle:hover .crail__glyph,
.crail__toggle:focus-visible .crail__glyph {
  --disc: calc(var(--crail-disc, 0.68) + 0.06);
  color: var(--green);
  background: var(--cream);
}
.crail__toggle:focus-visible .crail__glyph {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.crail__glyph > svg {
  grid-area: 1 / 1;
  display: block;
  transition: opacity 0.26s var(--ease), transform 0.36s var(--ease);
}
/* Sized for the scaled disc: 22px at 0.68 lands on the 15px chevron the open
   handle wants, and on a 22px bubble once the disc is at full size. */
.crail__chev { width: 22px; height: 22px; }
.crail__chat { width: 22px; height: 22px; opacity: 0; transform: scale(0.6) rotate(-20deg); }

/* Folded. The pill scales down into the handle as it fades, the icons going out
   bottom-first so they read as being drawn towards it. `visibility` waits for
   the fade to finish and then takes the hidden links out of the tab order and
   off the a11y tree. */
.crail.is-collapsed .crail__list {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.84);
  pointer-events: none;
  transition: transform 0.36s var(--ease), opacity 0.22s var(--ease) 0.04s,
              visibility 0s linear 0.36s;
}
.crail.is-collapsed .crail__row {
  opacity: 0;
  transition-delay: calc((var(--n, 5) - 1 - var(--i, 0)) * 26ms);
}
.crail.is-collapsed .crail__glyph {
  --disc: 1;
  background: var(--green);
  border-color: var(--green);
  color: var(--cream);
}
.crail.is-collapsed .crail__glyph::after { opacity: 1; }
.crail.is-collapsed .crail__toggle:hover .crail__glyph,
.crail.is-collapsed .crail__toggle:focus-visible .crail__glyph {
  --disc: 1.06;
  background: var(--green-dark);
}
.crail.is-collapsed .crail__chev { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.crail.is-collapsed .crail__chat { opacity: 1; transform: none; }

/* Out of the way while the guest is inside the menu or the booking drawer. */
body.is-locked .crail { display: none; }

/* Desktop: the content column runs to `100% - var(--gutter)` (≈ 4vw), and the
   rail used to stand 20px + 44px in from the edge — so it sat on top of the
   last few pixels of every row: room-row "+" buttons, sort selects, "compare"
   tabs. Pull it into the margin and slim it a little (mouse pointers do not
   need 42px discs) so it clears the column at every width above 1060px. */
@media (min-width: 1061px) {
  .crail { right: 6px; }
  .crail__list { padding: 5px 4px; gap: 4px; }
  .crail__link { width: 34px; height: 34px; }
  .crail__icon { width: 18px; height: 18px; }
}

@media (max-width: 1060px) {
  /* Thumb reach beats vertical centring on a phone: drop the rail to the
     bottom-right corner, clearing the sticky price bar where there is one. */
  .crail {
    top: auto;
    bottom: 16px;
    height: auto;
    margin-top: 0;
    gap: 1px;
  }
  body.has-sticky .crail { bottom: calc(76px + 14px); }

  .crail__list { gap: 4px; padding: 5px; }
  .crail__link { width: 38px; height: 38px; }
  .crail__icon { width: 19px; height: 19px; }
  /* Bigger discs than on desktop — it is a thumb doing the tapping. */
  .crail__toggle { width: 50px; height: 50px; }
  .crail__glyph  { width: 50px; height: 50px; --crail-disc: 0.7; }
  /* No hover on a touch screen, and no room for the label either. */
  .crail__tip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .crail__link,
  .crail__tip,
  .crail__list,
  .crail__row,
  .crail__glyph,
  .crail__glyph::after,
  .crail__glyph > svg { transition: none; }
  .crail.is-collapsed .crail__list,
  .crail.is-collapsed .crail__row { transition: none; transition-delay: 0s; }
  .crail__link:hover,
  .crail__link:focus-visible,
  .crail__toggle:hover .crail__glyph,
  .crail__toggle:focus-visible .crail__glyph { transform: none; }
}

/* ---------- utility ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- booking hand-off (sites engine) ----------
   Replaces the demo's dead-end "sent" screen on all three pages: the guest gets
   a pre-written message and goes to Zalo / WhatsApp / Messenger with it.
   Colours come from the theme's tokens, so every style inherits it. */
.handoff { width: 100%; text-align: left; display: grid; gap: 12px; margin: 4px 0 8px; }
.handoff__lead { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.handoff__msg {
  margin: 0; padding: 14px 16px; white-space: pre-wrap; word-break: break-word;
  font: 500 14px/1.65 var(--sans); color: var(--ink);
  background: var(--cream-input); border: 1px solid var(--hair-2); border-radius: var(--handoff-radius, 10px);
}
.handoff__chs { display: grid; gap: 8px; }
.handoff__ch {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px;
  border: 1px solid var(--hair-2); border-radius: var(--handoff-radius, 10px); background: var(--cream-hi);
  color: var(--ink); text-decoration: none; font: 600 14px var(--sans);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.handoff__ch:hover { border-color: var(--ink); transform: translateY(-1px); }
.handoff__ch svg { width: 22px; height: 22px; flex: none; }
.handoff__ch small { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--muted); }
.handoff__copied { margin: 0; min-height: 1.2em; font-size: 13px; color: var(--green); font-weight: 600; }

/* ---------- photo viewer (kit.js): photos inside [data-zoom] open full-screen ---------- */

[data-zoom] .slot img { cursor: zoom-in; }
[data-zoom] .slot img:focus-visible { outline: 2px solid var(--clay, #b5543c); outline-offset: -4px; }
html.is-zoomed, html.is-zoomed body { overflow: hidden; }

.zoom {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: rgba(14, 12, 10, .94);
  padding: clamp(12px, 4vw, 56px) clamp(8px, 6vw, 96px);
  animation: zoom-in .22s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.zoom__fig { margin: 0; display: grid; justify-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.zoom__img {
  display: block; max-width: 100%; max-height: calc(100svh - 120px);
  width: auto; height: auto; object-fit: contain; border-radius: 4px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  filter: none;                     /* show the real photo, not the theme's print effect */
  touch-action: pinch-zoom;
}
.zoom__cap { color: rgba(255, 255, 255, .82); font-size: 14px; line-height: 1.4; text-align: center; max-width: 60ch; }
.zoom__count { position: absolute; top: 18px; left: 20px; color: rgba(255, 255, 255, .75); font-size: 13px; letter-spacing: .08em; }
.zoom__btn {
  position: absolute; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(0, 0, 0, .35); color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
  transition: background .2s;
}
.zoom__btn:hover { background: rgba(255, 255, 255, .16); }
.zoom__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.zoom__close { top: 10px; right: 12px; }
.zoom__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.zoom__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .zoom { padding: 56px 0 72px; }
  .zoom__img { border-radius: 0; max-height: calc(100svh - 150px); }
  .zoom__prev, .zoom__next { top: auto; bottom: 14px; transform: none; }
  .zoom__prev { left: calc(50% - 60px); }
  .zoom__next { right: calc(50% - 60px); }
}
@keyframes zoom-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .zoom { animation: none; } }
