/* ═══════════════════════════════════════════════════════════
   Casa Nosa Silang — quiet luxury
   Palette drawn from the brand mark: ink, warm paper, olive.
   ═══════════════════════════════════════════════════════════ */

:root {
  --ink: #201e1a;
  --ink-soft: #4a463f;
  --paper: #f6f3ec;
  --paper-deep: #eee9dd;
  --olive: #5b6a41;
  --olive-deep: #3e4a2d;
  --cocoa: #2b2018;
  --cocoa-soft: #3a2c20;
  --sand: #c9b8a0;
  --line: rgba(32, 30, 26, 0.14);
  --line-light: rgba(246, 243, 236, 0.18);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --dur: 1s;

  --w-max: 1200px;
  --w-wide: 1440px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

/* height:auto so an explicit width/height attribute pair (used to reserve space
   and avoid layout shift) never forces a distorted box when CSS resizes the
   width. Elements that need a fixed height set it in their own, more specific rule. */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: italic; }

::selection { background: var(--olive); color: var(--paper); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

.container { max-width: var(--w-max); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--w-wide); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(5rem, 12vh, 9rem); }

/* ── Grain overlay ─────────────────────────────────────── */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 4;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Preloader ─────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: opacity 0.7s ease 0.1s, visibility 0.7s ease 0.1s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; color: var(--olive); }
.preloader__leaf {
  width: 150px;
  margin-inline: auto;
  animation: leafWipe 1.4s var(--ease-out) 0.15s both;
}

/* The brand leaf — actual logo artwork applied as a mask,
   colored via currentColor like an inline SVG would be. */
.leaf-img {
  display: inline-block;
  aspect-ratio: 427 / 264;
  background: currentColor;
  -webkit-mask: url("../assets/img/leaf-white.png") no-repeat center / contain;
  mask: url("../assets/img/leaf-white.png") no-repeat center / contain;
}
.preloader__word {
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}
@keyframes leafWipe {
  from { clip-path: inset(-5% 100% -5% 0); transform: translateX(-8px); }
  to { clip-path: inset(-5% -5% -5% 0); transform: translateX(0); }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ── Labels & headings ─────────────────────────────────── */
.label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--olive);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: 0.01em; }
h2 em { color: var(--olive-deep); }

.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head .label { margin-bottom: 1rem; }
.section-sub { margin-top: 1rem; color: var(--ink-soft); }
.section-head--light h2, .section-head--light .section-sub { color: var(--paper); }
.section-head--light h2 em { color: var(--sand); }
.section-head--light .label { color: var(--sand); }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 1em 2.4em;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--ghost { color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--paper); }
.btn--paper { color: var(--paper); }
.btn--paper:hover { background: var(--paper); color: var(--cocoa); }

/* ── Navigation ────────────────────────────────────────── */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  color: var(--paper);
  transition: background 0.45s ease, color 0.45s ease, box-shadow 0.45s ease, transform 0.45s ease;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--w-wide);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
}
.nav.is-solid {
  background: rgba(246, 243, 236, 0.92);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__brand { display: flex; align-items: baseline; gap: 0.5rem; }
.brand-word {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand-leaf { width: 36px; align-self: center; color: currentColor; opacity: 0.85; }
.nav.is-solid .brand-leaf { color: var(--olive); opacity: 1; }
.brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.75;
}

.nav__links { display: flex; gap: clamp(1.2rem, 2.4vw, 2.2rem); }
.nav__links a {
  position: relative;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding-block: 0.4em;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 0.7em 1.6em;
  transition: background 0.35s ease, color 0.35s ease;
  white-space: nowrap;
}
.nav__cta:hover { background: var(--olive); border-color: var(--olive); color: var(--paper); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 26px;
  height: 1.5px;
  margin-inline: auto;
  background: currentColor;
  transition: transform 0.35s var(--ease-out);
}
.nav__burger.is-open span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__burger.is-open span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* ── Mobile menu ───────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  padding: var(--gutter);
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 0.4rem; text-align: center; }
.mobile-menu__links a {
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 2.8rem);
  padding-block: 0.15em;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.mobile-menu.is-open .mobile-menu__links a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(6) { transition-delay: 0.38s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(7) { transition-delay: 0.44s; }
.mobile-menu__foot {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--paper);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 115%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 2.6s var(--ease-out);
  will-change: transform;
}
.hero__fallback { z-index: 0; }
.hero__video { z-index: 1; }
/* When video can't/shouldn't play, reveal the still image beneath it */
body.no-hero-video .hero__video { display: none; }
body.is-loaded .hero__media img,
body.is-loaded .hero__media video { transform: scale(1.02); }
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(24, 20, 14, 0.55) 0%, rgba(24, 20, 14, 0.15) 34%, rgba(24, 20, 14, 0.2) 62%, rgba(24, 20, 14, 0.68) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--w-wide);
  width: 100%;
  margin-inline: auto;
  padding: 0 var(--gutter);
  padding-bottom: clamp(2rem, 6vh, 4rem);
}
.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  opacity: 0.9;
}
.hero__title {
  font-size: clamp(2.6rem, 7.2vw, 5.8rem);
  font-weight: 400;
  max-width: 15em;
  text-wrap: balance;
}
.hero__title em { font-weight: 300; }
.hero__title .line {
  display: block;
  overflow: hidden;
  /* Room for descenders (g, y, p) so the reveal-mask doesn't clip them;
     the negative margin keeps the visual line spacing unchanged. */
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}
.hero__title .line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.3s var(--ease-out);
}
body.is-loaded .hero__title .line:nth-child(1) > span { transform: none; transition-delay: 0.55s; }
body.is-loaded .hero__title .line:nth-child(2) > span { transform: none; transition-delay: 0.7s; }
.reveal-line span {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease-out);
}
body.is-loaded .reveal-line span { opacity: 0.92; transform: none; transition-delay: 0.45s; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease 1.05s, transform 0.9s var(--ease-out) 1.05s;
}
body.is-loaded .hero__actions { opacity: 1; transform: none; }

.hero__foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--w-wide);
  width: 100%;
  margin-inline: auto;
  padding: 0 var(--gutter) 2rem;
  opacity: 0;
  transition: opacity 1.2s ease 1.5s;
}
body.is-loaded .hero__foot { opacity: 1; }
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.85;
}
.hero__scroll i {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--paper), transparent);
  overflow: hidden;
  position: relative;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  animation: scrollHint 2.2s var(--ease-out) infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}
.hero__tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

/* ── Marquee ───────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper);
  padding-block: 1.1rem;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee__track span {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-style: italic;
  letter-spacing: 0.14em;
  white-space: pre;
  color: var(--ink-soft);
}
.marquee__track i { color: var(--olive); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Stay / About ──────────────────────────────────────── */
.stay__grid {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: clamp(2rem, 6vw, 6rem);
}
.stay__aside { position: relative; }
.stay__aside .label { position: sticky; top: 7rem; }
.leaf-mark {
  width: 68px;
  color: var(--olive);
  margin-top: 1.4rem;
  position: sticky;
  top: 9.4rem;
}
.stay__title { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 17em; }
.stay__title em { color: var(--olive-deep); }
.stay__copy {
  columns: 2;
  column-gap: 3rem;
  margin-top: 2.6rem;
  color: var(--ink-soft);
}
.stay__copy p { break-inside: avoid; margin-bottom: 1.4rem; }
.stay__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.2rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.stay__stats strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}
.stay__stats span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── Rooms ─────────────────────────────────────────────── */
.rooms { background: var(--paper-deep); }
.rooms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
}
.room__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.room__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 1.4s var(--ease-out);
}
.room:hover .room__media img { transform: scale(1.07); }
.room__num {
  position: absolute;
  top: 1.1rem;
  left: 1.25rem;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.room__body { padding-top: 1.5rem; }
.room__body h3 { font-size: 1.7rem; }
.room__cap {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--olive-deep);
}
.room__desc { margin-top: 0.9rem; color: var(--ink-soft); font-size: 0.98rem; }
.rooms__note {
  margin-top: 3.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

/* ── Gallery ───────────────────────────────────────────── */
.gallery__grid {
  columns: 3;
  column-gap: clamp(0.8rem, 1.6vw, 1.4rem);
}
.g {
  position: relative;
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: clamp(0.8rem, 1.6vw, 1.4rem);
}
.g__zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.g img {
  width: 100%;
  height: auto;
  transform: scale(1.01);
  transition: transform 1.6s var(--ease-out), filter 0.8s ease;
}
.g:hover img { transform: scale(1.04); }
.g::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 16, 10, 0.5));
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.g:hover::after { opacity: 1; }
.gallery__foot {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--ink-soft);
}

/* ── Amenities ─────────────────────────────────────────── */
.amenities { background: var(--paper-deep); }
.amenities__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.6rem, 3vw, 3rem);
}
.amen {
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.amen__icon { width: 30px; height: 30px; color: var(--olive); margin-bottom: 1.1rem; }
.amen h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.amen ul li {
  padding-block: 0.42rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(32, 30, 26, 0.07);
}
.amen ul li:last-child { border-bottom: 0; }
.amen small { font-size: 0.8em; opacity: 0.75; }

/* ── Rates ─────────────────────────────────────────────── */
.rates {
  background: var(--cocoa);
  color: var(--paper);
}
.rates__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.4vw, 2rem);
  align-items: stretch;
}
.rate-card {
  border: 1px solid var(--line-light);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s var(--ease-out);
}
.rate-card:hover { transform: translateY(-4px); border-color: rgba(246, 243, 236, 0.4); }
.rate-card--feature { background: var(--cocoa-soft); }
.rate-card__day {
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sand);
  padding-bottom: 1.2rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line-light);
}
.rate-card__rows { display: grid; gap: 1.6rem; }
.rate-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.rate-row__price {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.6vw, 3.6rem);
  line-height: 1;
}
.rate-row__price small { font-size: 0.45em; letter-spacing: 0.08em; }
.rate-row__meta {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.7;
  opacity: 0.75;
}
.addons { display: flex; flex-direction: column; }
.addons li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid rgba(246, 243, 236, 0.1);
  font-size: 0.92rem;
}
.addons li:last-child { border-bottom: 0; }
.addons li span { opacity: 0.8; }
.addons li small { opacity: 0.65; font-size: 0.82em; }
.addons li strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  white-space: nowrap;
}
.rates__cta { margin-top: clamp(2.4rem, 5vw, 3.6rem); text-align: center; }

/* ── Availability modal ────────────────────────────────── */
.avail-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.avail-modal[hidden] { display: none; }
.avail-modal.is-open { opacity: 1; }
.avail-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 18, 12, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.avail-modal__panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;               /* the inner scroll area handles overflow */
  background: var(--paper);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.55);
  padding: clamp(1.6rem, 4vw, 3rem);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.5s var(--ease-out);
}
/* Head + calendar scroll here; the selected-date CTA stays pinned below as a
   footer, so its buttons are always visible the moment a date is chosen. */
.avail-modal__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.avail-modal.is-open .avail-modal__panel { transform: none; }
.avail-modal__close {
  position: absolute;
  top: clamp(0.8rem, 2vw, 1.2rem);
  right: clamp(0.8rem, 2vw, 1.2rem);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.avail-modal__close:hover { background: var(--olive); border-color: var(--olive); color: var(--paper); }
.avail-modal__close svg { width: 19px; height: 19px; }
.avail-modal__head { margin-bottom: clamp(1.4rem, 3vw, 2rem); padding-right: 2.5rem; }
.avail-modal__head .label { margin-bottom: 0.8rem; }
.avail-modal__head h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.avail-modal__head .section-sub { margin-top: 0.9rem; font-size: 0.95rem; }

/* ── Availability calendar (dark) ──────────────────────── */
.cal {
  --cal-line: rgba(246, 243, 236, 0.16);
  --cal-dim: rgba(246, 243, 236, 0.44);
  --cal-accent: #9aab73;   /* light sage — dots, rings */
  --cal-fill: #5f6f43;     /* hover / selected fill */
  background: #1c1915;
  color: var(--paper);
  padding: clamp(1rem, 3vw, 1.75rem);
  border-radius: 5px;
}
.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: clamp(1.1rem, 3vw, 1.6rem);
  margin-bottom: clamp(0.9rem, 2.5vw, 1.4rem);
  border-bottom: 1px solid var(--cal-line);
}
.cal__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  text-align: center;
}
.cal__month {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  font-weight: 400;
  color: var(--paper);
  letter-spacing: 0.01em;
}
.cal__year {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--sand);
}
.cal__nav {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid var(--cal-line);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.35s var(--ease-out);
}
.cal__nav:hover { background: var(--cal-fill); border-color: var(--cal-fill); color: var(--paper); transform: translateY(-2px); }
.cal__nav:disabled { opacity: 0.25; cursor: not-allowed; pointer-events: none; }
.cal__nav svg { width: 18px; height: 18px; }

.cal__weekdays,
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(0.5rem, 1.5vw, 0.9rem);
}
.cal__weekdays {
  margin-bottom: clamp(0.6rem, 1.6vw, 1rem);
}
.cal__weekdays span {
  text-align: center;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cal-dim);
  padding-block: 0.4rem;
}

.cal__cell {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 0.92;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(0.5rem, 1.4vw, 0.85rem);
  border: 1px solid var(--cal-line);
  border-radius: 3px;
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--paper);
  background: rgba(246, 243, 236, 0.03);
}
.cal__cell--empty { border-color: transparent; background: transparent; }

/* Available — interactive */
.cal__cell--open {
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out);
}
.cal__cell--open::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.5rem;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cal-accent);
  opacity: 0.9;
}
.cal__cell--open:hover,
.cal__cell--open.is-selected {
  background: var(--cal-fill);
  border-color: var(--cal-fill);
  color: var(--paper);
  transform: translateY(-2px);
  z-index: 1;
}
.cal__cell--open:hover::after,
.cal__cell--open.is-selected::after { background: var(--paper); opacity: 1; }

/* Booked — hatched, muted */
.cal__cell--booked {
  color: var(--cal-dim);
  background-color: rgba(246, 243, 236, 0.05);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 6px,
    rgba(246, 243, 236, 0.14) 6px,
    rgba(246, 243, 236, 0.14) 7px
  );
  cursor: not-allowed;
}
.cal__cell--booked .cal__tag {
  position: absolute;
  left: 0.5rem;
  bottom: 0.45rem;
  font-family: var(--sans);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cal-dim);
  opacity: 0.95;
}

/* Past — faded, non-interactive */
.cal__cell--past {
  color: rgba(246, 243, 236, 0.22);
  background: transparent;
  border-color: rgba(246, 243, 236, 0.06);
}

/* Today ring */
.cal__cell--today { box-shadow: inset 0 0 0 2px var(--cal-accent); }

.cal__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.6rem;
  margin-top: clamp(1.4rem, 3vw, 2rem);
  padding-top: clamp(1.2rem, 2.5vw, 1.6rem);
  border-top: 1px solid var(--cal-line);
}
.cal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
}
.cal__legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cal-dim);
}
.cal__dot {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--cal-line);
  flex: none;
}
.cal__dot--open { background: transparent; border-color: var(--cal-accent); }
.cal__dot--open::after { content: ""; }
.cal__dot--booked {
  background-color: rgba(246, 243, 236, 0.06);
  background-image: repeating-linear-gradient(-45deg, transparent 0, transparent 3px, rgba(246, 243, 236, 0.3) 3px, rgba(246, 243, 236, 0.3) 4px);
}
.cal__dot--past { background: transparent; }
.cal__dot--today { background: transparent; box-shadow: inset 0 0 0 2px var(--cal-accent); border-color: transparent; }
.cal__note {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--cal-dim);
}

/* Tighten the calendar on small screens so all 7 columns fit comfortably */
@media (max-width: 560px) {
  .avail-modal__panel { padding: 1.2rem 0.9rem; }
  .cal { padding: 0.9rem 0.75rem; }
  .cal__weekdays,
  .cal__grid { gap: 0.35rem; }
  .cal__weekdays span { font-size: 0.55rem; letter-spacing: 0.1em; }
  .cal__cell { padding: 0.4rem; font-size: 0.92rem; }
  .cal__cell--open::after { bottom: 0.35rem; width: 4px; height: 4px; }
  .cal__cell--booked .cal__tag { font-size: 0.42rem; left: 0.35rem; bottom: 0.35rem; }
}

/* Selected-date CTA — pinned footer of the modal (never scrolls out of view) */
.cal__cta {
  flex: none;
  margin-top: clamp(1.2rem, 3vw, 1.8rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1.4rem, 3.5vw, 2.4rem);
  background: var(--cocoa);
  color: var(--paper);
}
.cal__cta[hidden] { display: none; }
.cal__cta-date {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}
.cal__cta-date em { color: var(--sand); font-style: italic; }
.cal__cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn--small { padding: 0.85em 1.8em; font-size: 0.7rem; }

/* ── Voices / testimonials ─────────────────────────────── */
.rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: clamp(2.6rem, 6vw, 4.4rem);
  text-align: center;
  transition: transform 0.4s var(--ease-out);
}
a.rating:hover { transform: translateY(-3px); }
a.rating:hover .rating__source { color: var(--olive-deep); }
.rating__source { transition: color 0.35s ease; }
.rating__stars { display: inline-flex; gap: 0.35rem; color: #b3924f; }
.rating__stars svg { width: 22px; height: 22px; fill: currentColor; }
.rating__text {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}
.rating__text strong {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
  color: var(--olive-deep);
}
.rating__source {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.voices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 3.4vw, 3.4rem);
}
.voice {
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}
.voice p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}
.voice cite {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--olive-deep);
}

/* ── Contact ───────────────────────────────────────────── */
.contact { background: var(--paper-deep); }
.contact__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.4rem, 6vw, 5rem);
  align-items: start;
}
.contact__info h2 { margin-top: 1rem; }
.contact__lede { margin-top: 1.4rem; color: var(--ink-soft); max-width: 30em; }
.contact__list { margin-top: 2.6rem; }
.contact__list li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.contact__key {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--olive-deep);
}
.contact__list a, .contact__list li > span:last-child {
  font-family: var(--serif);
  font-size: 1.25rem;
}
.contact__list a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.45s var(--ease-out);
}
.contact__list a:hover { background-size: 100% 1px; }
.contact__map {
  position: sticky;
  top: 6.5rem;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--olive-deep);
  color: var(--paper);
}
.contact__map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none; /* visual only — "Open in Google Maps" handles interaction */
  filter: grayscale(0.5) sepia(0.35) saturate(0.85) contrast(0.95) brightness(0.92);
}
.contact__map-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(62, 74, 45, 0.28) 0%, rgba(43, 32, 24, 0.1) 38%, rgba(43, 32, 24, 0.78) 100%);
  mix-blend-mode: multiply;
}
.contact__map-leaf {
  position: absolute;
  top: -6%;
  right: -10%;
  width: 75%;
  color: var(--paper);
  opacity: 0.14;
  transform: rotate(8deg);
}
.contact__map-body {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.6rem);
}
.contact__map-place {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.1;
}
.contact__map-note {
  margin-top: 0.8rem;
  max-width: 26em;
  font-size: 0.92rem;
  opacity: 0.85;
}
.contact__map-soon {
  margin-top: 1rem;
  margin-bottom: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3.5rem, 8vw, 5.5rem) 2rem;
}
.footer__inner { text-align: center; }
.footer__logo { width: min(220px, 55vw); height: auto; margin-inline: auto; }
.footer__tag {
  margin-top: 1.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  opacity: 0.85;
}
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2.2rem;
  margin-top: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}
.footer__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.8rem;
}
.footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.35s var(--ease-out);
}
.footer__social a:hover {
  background: var(--olive);
  border-color: var(--olive);
  transform: translateY(-2px);
}
.footer__social svg { width: 19px; height: 19px; }

.footer__fine {
  margin-top: 2.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  opacity: 0.45;
}

/* ── Lightbox ──────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(22, 18, 12, 0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__figure {
  max-width: min(1200px, 92vw);
  text-align: center;
  transform: scale(0.96);
  transition: transform 0.45s var(--ease-out);
}
.lightbox.is-open .lightbox__figure { transform: scale(1); }
.lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox__figure figcaption {
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--paper);
  opacity: 0.85;
}
.lightbox__close,
.lightbox__arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: rgba(22, 18, 12, 0.4);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.lightbox__close:hover,
.lightbox__arrow:hover { background: var(--olive); border-color: var(--olive); }
.lightbox__close { top: clamp(0.8rem, 2.5vw, 2rem); right: clamp(0.8rem, 2.5vw, 2rem); }
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__arrow { top: 50%; transform: translateY(-50%); }
.lightbox__arrow svg { width: 22px; height: 22px; }
.lightbox__arrow--prev { left: clamp(0.5rem, 2.5vw, 2rem); }
.lightbox__arrow--next { right: clamp(0.5rem, 2.5vw, 2rem); }

/* ── Ambient sound toggle ──────────────────────────────── */
.sound-toggle {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.1rem;
  background: rgba(32, 30, 26, 0.55);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: var(--paper);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease-out), opacity 0.5s ease;
}
.sound-toggle[hidden] { display: none; }
.sound-toggle:hover { background: var(--olive-deep); border-color: var(--olive); transform: translateY(-2px); }
.nav.is-solid ~ .sound-toggle { /* keep legible over light sections too */ }

.sound-toggle__label {
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  min-width: 4.5em; /* stop the pill resizing between On/Off */
  text-align: left;
}

/* Speaker icon — waves show when on, slash shows when muted */
.sound-toggle__icon { display: inline-flex; }
.sound-toggle__icon svg { display: block; width: 18px; height: 18px; }
.sound-toggle__wave {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.sound-toggle.is-on .sound-toggle__wave { opacity: 1; }
.sound-toggle.is-on .sound-toggle__wave:nth-of-type(2) { animation: soundPulse 1.8s ease-in-out infinite; }
.sound-toggle__slash {
  opacity: 1;
  stroke: #e7b4a6; /* warm muted-red so "off" reads instantly */
  transition: opacity 0.2s ease;
}
.sound-toggle.is-on .sound-toggle__slash { opacity: 0; }
@keyframes soundPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* Off (muted) look — dimmer than the active state */
.sound-toggle:not(.is-on) { opacity: 0.8; }
.sound-toggle:not(.is-on):hover { opacity: 1; }

/* ── Toast (clipboard confirmations) ───────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: clamp(1.2rem, 4vw, 2.2rem);
  z-index: 95;
  max-width: min(90vw, 32rem);
  padding: 0.95rem 1.35rem;
  background: var(--cocoa);
  color: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: 6px;
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.65);
  font-size: 0.9rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(1rem);
  transition: opacity 0.35s ease, transform 0.4s var(--ease-out);
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast strong { color: var(--sand); font-weight: 500; white-space: nowrap; }

/* ── Reveal animations ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s ease, transform 1s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Signature clip-wipe for imagery — echoes the preloader leaf wipe.
   The image unmasks left-to-right as its card settles into view.
   Scoped to rooms only: the gallery's CSS-columns masonry can glitch
   clip-path in some browsers, so it keeps the plain fade reveal. */
.room__media {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.25s var(--ease-out);
}
.room.is-in .room__media {
  clip-path: inset(0 0 0 0);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .rooms__grid { grid-template-columns: 1fr 1fr; }
  .amenities__grid { grid-template-columns: 1fr 1fr; gap: 2.4rem; }
  .rates__grid { grid-template-columns: 1fr 1fr; }
  .rate-card--addons { grid-column: span 2; }
  .voices__grid { grid-template-columns: 1fr; max-width: 40rem; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__map { position: relative; top: auto; aspect-ratio: 16 / 10; }
}

@media (max-width: 700px) {
  .stay__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .stay__aside .label, .leaf-mark { position: static; }
  .leaf-mark { margin-top: 0.8rem; }
  .stay__copy { columns: 1; }
  .stay__stats { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .rooms__grid { grid-template-columns: 1fr; }
  .gallery__grid { columns: 2; }
  .rates__grid { grid-template-columns: 1fr; }
  .rate-card--addons { grid-column: auto; }
  .contact__list li { grid-template-columns: 1fr; gap: 0.15rem; }
  .hero__foot { justify-content: center; }
  .hero__tag { display: none; }

  .cal { padding: 1.1rem; }
  .cal__cell { font-size: 0.85rem; padding: 0.3rem; }
  .cal__cell--open::after { width: 4px; height: 4px; bottom: 0.35rem; }
  .cal__cell--booked .cal__tag { display: none; }
  .cal__weekdays span { font-size: 0.55rem; letter-spacing: 0.1em; }
  .cal__foot { flex-direction: column; align-items: flex-start; }
  .cal__cta { flex-direction: column; align-items: flex-start; }
}

/* ── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal, .hero__actions, .hero__foot, .reveal-line span { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
  .marquee__track { animation: none; }
}
