/* ==========================================================================
   38PC Boutique Hotel — styles.css
   "The restored shophouse": aged jade-green timber, brass-ochre and oxblood
   accents, limewash plaster, lantern light.

   Contents
     1.  Design tokens (custom properties)
     2.  Reset & base
     3.  Typography & shared helpers (eyebrow, section heads)
     4.  Buttons
     5.  Decorative bands (encaustic tile divider)
     6.  Utility bar
     7.  Header / navigation (+ mobile menu)
     8.  Hero
     9.  The House
     10. Rooms
     11. Nearby marquee
     12. Amenities
     13. Gallery
     14. Location
     15. Reviews
     16. Reserve
     17. Footer
     18. Scroll-reveal & motion preferences
     19. Responsive breakpoints
   ========================================================================== */

/* ─────────────────────────── 1. Design tokens ─────────────────────────── */
/*
   Dual theme. The light palette is the canonical one; [data-theme="dark"]
   re-anchors the same variable names for night (deep pine bases, brass doing
   more of the work, jade pushed lighter) plus a few dark-only component
   adjustments in §22. A matching @media block keeps the OS preference working
   when JavaScript is unavailable — keep the two dark blocks in sync.
*/
:root {
  color-scheme: light;

  /* Palette — "the restored shophouse", daylight */
  --pine: #1C3A33;
  --pine-2: #16302A;
  --jade: #3A6B5C;
  --jade-deep: #2C5448;
  --ochre: #C68A3E;
  --ochre-soft: #D8A65C;
  --oxblood: #8A3A2D;
  --plaster: #F0E8D8;
  --sand: #E4D8BF;
  --sand-2: #DDCFB1;   /* muted text on dark surfaces */
  --bone: #FAF6EC;
  --ink: #233029;
  --ink-soft: #4D5B50;

  /* Role-stable: light text on photos and permanently-dark surfaces.
     Deliberately the SAME in both themes (unlike --bone, which is a surface). */
  --cream: #FAF6EC;
  /* Numeric/graphic jade accent on light surfaces — lifted in dark */
  --jade-text: #2C5448;

  /* Structural */
  --line: #DDCFB1;                       /* hairline borders */
  --line-on-dark: rgba(228, 216, 191, 0.16);
  --header-bg: rgba(250, 246, 236, 0.92);
  --header-bg-solid: rgba(250, 246, 236, 0.97);
  --input-bg: #ffffff;
  --photo-tint: none;                    /* dark theme warms the photos */

  /* Encaustic tile (SVG pattern fills — see the inline <defs> in index.html) */
  --enc-base: #E4D8BF;
  --enc-corner: #3A6B5C;
  --enc-diamond: #C68A3E;
  --enc-dot: #8A3A2D;
  /* Drifting divider band (CSS background — data-URI per theme) */
  --tile-band-img: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='56'%20height='56'%3E%3Crect%20width='56'%20height='56'%20fill='%23E4D8BF'/%3E%3Ccircle%20cx='0'%20cy='0'%20r='17'%20fill='%233A6B5C'/%3E%3Ccircle%20cx='56'%20cy='0'%20r='17'%20fill='%233A6B5C'/%3E%3Ccircle%20cx='0'%20cy='56'%20r='17'%20fill='%233A6B5C'/%3E%3Ccircle%20cx='56'%20cy='56'%20r='17'%20fill='%233A6B5C'/%3E%3Cpath%20d='M28%2013L43%2028L28%2043L13%2028Z'%20fill='%23C68A3E'/%3E%3Ccircle%20cx='28'%20cy='28'%20r='4.5'%20fill='%238A3A2D'/%3E%3C/svg%3E");

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Layout — generous, editorial */
  --container: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 4px;
  --section-y: clamp(4rem, 9vw, 7.5rem);

  /* Shadow — soft, never heavy */
  --shadow-sm: 0 1px 2px rgba(28, 58, 51, 0.07), 0 2px 8px rgba(28, 58, 51, 0.05);
  --shadow-md: 0 6px 18px rgba(28, 58, 51, 0.10), 0 2px 6px rgba(28, 58, 51, 0.06);
  --shadow-lg: 0 16px 44px rgba(22, 48, 42, 0.18);
}

/* ── Dark theme: the shophouse at night ─────────────────────────────────── */
[data-theme="dark"] {
  color-scheme: dark;

  --pine: #10231D;       /* cool sections sink toward near-black green */
  --pine-2: #0B1A15;
  --jade: #6FA28E;       /* pushed lighter for contrast on dark */
  --jade-deep: #1E3A32;
  --ochre: #C68A3E;      /* brass carries the accents at night */
  --ochre-soft: #E2B876;
  --oxblood: #C4674F;    /* lifted for contrast */
  --plaster: #15271F;    /* "sunlit" sections become lamplit dark */
  --sand: #D8CCB0;
  --sand-2: #B3AC96;
  --bone: #1B2E26;       /* cards float slightly lighter than the page */
  --ink: #EDE4CD;        /* warm bone text */
  --ink-soft: #A6B1A0;
  --jade-text: #93C1AE;  /* jade numerals lifted for dark surfaces */

  --line: rgba(216, 204, 176, 0.15);
  --line-on-dark: rgba(216, 204, 176, 0.15);
  --header-bg: rgba(11, 26, 21, 0.88);
  --header-bg-solid: rgba(11, 26, 21, 0.96);
  --input-bg: #22352C;
  --photo-tint: linear-gradient(rgba(198, 138, 62, 0.10), rgba(11, 26, 21, 0.22));

  --enc-base: #20332A;
  --enc-corner: #2C4B3F;
  --enc-diamond: #B07F3F;
  --enc-dot: #8F4A38;
  --tile-band-img: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='56'%20height='56'%3E%3Crect%20width='56'%20height='56'%20fill='%2320332A'/%3E%3Ccircle%20cx='0'%20cy='0'%20r='17'%20fill='%232C4B3F'/%3E%3Ccircle%20cx='56'%20cy='0'%20r='17'%20fill='%232C4B3F'/%3E%3Ccircle%20cx='0'%20cy='56'%20r='17'%20fill='%232C4B3F'/%3E%3Ccircle%20cx='56'%20cy='56'%20r='17'%20fill='%232C4B3F'/%3E%3Cpath%20d='M28%2013L43%2028L28%2043L13%2028Z'%20fill='%23B07F3F'/%3E%3Ccircle%20cx='28'%20cy='28'%20r='4.5'%20fill='%238F4A38'/%3E%3C/svg%3E");

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 44px rgba(0, 0, 0, 0.5);
}

/* No-JS fallback: honour the OS preference when the head script never ran.
   KEEP IN SYNC with the [data-theme="dark"] block above. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    color-scheme: dark;
    --pine: #10231D;
    --pine-2: #0B1A15;
    --jade: #6FA28E;
    --jade-deep: #1E3A32;
    --ochre: #C68A3E;
    --ochre-soft: #E2B876;
    --oxblood: #C4674F;
    --plaster: #15271F;
    --sand: #D8CCB0;
    --sand-2: #B3AC96;
    --bone: #1B2E26;
    --ink: #EDE4CD;
    --ink-soft: #A6B1A0;
    --jade-text: #93C1AE;
    --line: rgba(216, 204, 176, 0.15);
    --line-on-dark: rgba(216, 204, 176, 0.15);
    --header-bg: rgba(11, 26, 21, 0.88);
    --header-bg-solid: rgba(11, 26, 21, 0.96);
    --input-bg: #22352C;
    --photo-tint: linear-gradient(rgba(198, 138, 62, 0.10), rgba(11, 26, 21, 0.22));
    --enc-base: #20332A;
    --enc-corner: #2C4B3F;
    --enc-diamond: #B07F3F;
    --enc-dot: #8F4A38;
    --tile-band-img: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='56'%20height='56'%3E%3Crect%20width='56'%20height='56'%20fill='%2320332A'/%3E%3Ccircle%20cx='0'%20cy='0'%20r='17'%20fill='%232C4B3F'/%3E%3Ccircle%20cx='56'%20cy='0'%20r='17'%20fill='%232C4B3F'/%3E%3Ccircle%20cx='0'%20cy='56'%20r='17'%20fill='%232C4B3F'/%3E%3Ccircle%20cx='56'%20cy='56'%20r='17'%20fill='%232C4B3F'/%3E%3Cpath%20d='M28%2013L43%2028L28%2043L13%2028Z'%20fill='%23B07F3F'/%3E%3Ccircle%20cx='28'%20cy='28'%20r='4.5'%20fill='%238F4A38'/%3E%3C/svg%3E");
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 44px rgba(0, 0, 0, 0.5);
  }
}

/* ──────────────────────────── 2. Reset & base ─────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* The sticky header is ~64–112px tall; keep anchored sections clear of it. */
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

/* `clip` (not `hidden`) so no scroll container is created and the sticky
   header keeps working; guards against transformed off-canvas elements
   (mobile drawer, parallax layers) widening the page. */
html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  font-optical-sizing: auto;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

/* The reusable SVG defs block carries no layout. */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  background: var(--pine);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ──────────────────── 3. Typography & shared helpers ──────────────────── */
.section { padding-block: var(--section-y); }

.section--light { background: var(--plaster); color: var(--ink); }
.section--dark {
  background: var(--pine);
  color: var(--sand);
  background-image:
    radial-gradient(120% 80% at 85% -10%, rgba(58, 107, 92, 0.45), transparent 60%);
}
.section--dark p { color: var(--sand); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section__title {
  font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.3rem);
  letter-spacing: -0.01em;
  margin-top: 0.5rem;
}
.section__title em { font-style: italic; font-weight: 400; color: var(--ochre); }
.section--light .section__title em { color: var(--oxblood); }

.section__lede {
  font-size: 1.125rem;
  max-width: 42rem;
  margin-top: 1rem;
}

/* Eyebrow label: uppercase, wide tracking, ochre rule before the text */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jade);
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--ochre);
  flex: none;
}
.eyebrow--on-dark,
.section--dark .eyebrow { color: var(--ochre-soft); }

/* ─────────────────────────────── 4. Buttons ───────────────────────────── */
.btn {
  --btn-bg: var(--pine);
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--oxblood); --btn-fg: var(--cream); }
.btn--primary:hover { --btn-bg: #99412f; }

.btn--ochre { --btn-bg: var(--ochre); --btn-fg: var(--pine-2); }
.btn--ochre:hover { --btn-bg: var(--ochre-soft); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  border-color: rgba(250, 246, 236, 0.55);
}
.btn--ghost:hover { --btn-bg: rgba(250, 246, 236, 0.12); border-color: var(--cream); }

.btn--small { padding: 0.6rem 1.05rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

/* ───────────────────── 5. Decorative encaustic bands ──────────────────── */
/* The encaustic tile is a CSS background (data-URI, themed via §1 tokens)
   so §20 can drift it horizontally. */
.tile-band {
  height: 28px;
  background-color: var(--sand);
  background-image: var(--tile-band-img);
  background-repeat: repeat-x;
  background-size: 56px 56px;
  background-position: 0 0;
}
[data-theme="dark"] .tile-band { background-color: var(--enc-base); }

/* ───────────────────────────── 6. Utility bar ─────────────────────────── */
.utility-bar {
  background: var(--pine-2);
  color: var(--sand-2);
  font-size: 0.8rem;
}
.utility-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.5rem;
}
.utility-bar__note { margin: 0; }
.utility-bar__contact { margin: 0; display: inline-flex; gap: 0.5rem; align-items: center; }
.utility-bar a { color: var(--ochre-soft); text-decoration: none; font-weight: 600; }
.utility-bar a:hover { text-decoration: underline; }
.utility-bar .dot { opacity: 0.5; }

/* ─────────────────────── 7. Header / navigation ───────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink); /* theme-aware: pine-dark by day, bone by night */
}
.brand__mark { flex: none; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand__sub {
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.nav { display: flex; align-items: center; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
}
.nav__menu a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}
.nav__menu a:not(.btn) { padding: 0.35rem 0; }
/* Restore the button's own padding (`.nav__menu a` outranks `.btn--small`) */
.nav__menu a.btn { padding: 0.6rem 1.05rem; color: var(--btn-fg); }
.nav__menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--ochre);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav__menu a:not(.btn):hover::after,
.nav__menu a:not(.btn):focus-visible::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bone);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle-bars { display: block; width: 20px; height: 14px; position: relative; }
.nav__toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav__toggle-bars span:nth-child(1) { top: 0; }
.nav__toggle-bars span:nth-child(2) { top: 6px; }
.nav__toggle-bars span:nth-child(3) { top: 12px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ─────────────────────────────── 8. Hero ──────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(88vh, 760px);
  padding-block: clamp(3rem, 10vw, 7rem);
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
}
/* Oversized media layer (parallax translates this). 140% tall, centred via top,
   so the parallax shift up to ~18% of the hero height never exposes an edge. */
.hero__media {
  position: absolute;
  left: 0;
  top: -20%;
  width: 100%;
  height: 140%;
  z-index: -2;
}
.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(22, 48, 42, 0.35) 0%, rgba(22, 48, 42, 0.55) 55%, rgba(22, 48, 42, 0.86) 100%),
    linear-gradient(90deg, rgba(28, 58, 51, 0.7) 0%, rgba(28, 58, 51, 0.15) 60%);
}
.hero__inner { max-width: 46rem; }
.hero .eyebrow { color: var(--ochre-soft); }
.hero__title {
  font-size: clamp(2.5rem, 1.2rem + 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 1rem 0 1.25rem;
  text-shadow: 0 2px 24px rgba(15, 33, 28, 0.45);
}
.hero__title em { font-style: italic; font-weight: 400; color: var(--ochre-soft); }

.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.45rem 0.9rem;
  background: rgba(250, 246, 236, 0.14);
  border: 1px solid rgba(250, 246, 236, 0.3);
  border-radius: 999px;
  font-size: 0.92rem;
  backdrop-filter: blur(4px);
}
.rating-chip__stars { color: var(--ochre-soft); font-size: 1.05rem; line-height: 1; }
.rating-chip strong { font-weight: 700; }

.hero__lede {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  max-width: 38rem;
  color: var(--cream);
  margin-bottom: 1.75rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ───────────────────────────── 9. The House ───────────────────────────── */
.house__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.house__text p { max-width: 38rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 2rem 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--bone);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.stat__num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--jade-text);
  margin: 0;
  line-height: 1;
}
.stat__unit { font-size: 0.95rem; color: var(--ink-soft); margin-left: 0.15rem; }
.stat__label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.house__figure { margin: 0; text-align: center; }
.facade {
  width: min(320px, 80%);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 14px 30px rgba(22, 48, 42, 0.18));
}
.house__figure figcaption {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ─────────────────────────────── 10. Rooms ────────────────────────────── */
.rooms__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
}
.room-card {
  background: var(--bone);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.room-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.room-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.room-card:hover .room-card__media img { transform: scale(1.06); }
.room-card__tag {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--pine);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius);
}
.room-card__tag--accent { background: var(--oxblood); }

.room-card__body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.room-card__name { font-size: 1.4rem; font-weight: 600; }
.room-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin: 0.6rem 0 0.75rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.room-card__specs li {
  position: relative;
  padding-left: 0.85rem;
}
.room-card__specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ochre);
}
.room-card__desc { font-size: 0.95rem; margin-bottom: 1.1rem; }
.room-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.price { margin: 0; display: flex; align-items: baseline; gap: 0.3rem; }
.price__from { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.price__amount { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--oxblood); }
.price__unit { font-size: 0.8rem; color: var(--ink-soft); }

.rooms__fineprint {
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--sand-2);
  text-align: center;
}
.rooms__fineprint a { color: var(--ochre-soft); font-weight: 600; }

/* ─────────────── 11. Beyond our doors — landmarks carousel ────────────── */
.beyond {
  background: var(--jade-deep);
  color: var(--sand);
  background-image: radial-gradient(120% 80% at 15% -10%, rgba(58, 107, 92, 0.4), transparent 60%);
}
.beyond p { color: var(--sand); }
.beyond .section__title em { color: var(--ochre-soft); }

.carousel { position: relative; }
.carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  touch-action: pan-y; /* vertical scroll passes through; horizontal swipes are ours */
}
.carousel__track {
  display: flex;
  transition: transform 0.55s var(--ease-io);
}
.carousel__track.is-dragging { transition: none; }
.carousel__slide { flex: 0 0 100%; min-width: 0; }
.carousel__slide figure {
  margin: 0;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  background: var(--pine-2);
  min-height: 100%;
}
.carousel__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.carousel__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel__caption { padding: clamp(1.25rem, 3vw, 2.5rem); align-self: center; }
.carousel__caption h3 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.carousel__caption p { font-size: 0.97rem; margin-bottom: 1rem; }
.carousel__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre-soft);
}
.carousel__meta::before { content: ""; width: 1.1rem; height: 2px; background: var(--ochre); flex: none; }

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 1.4rem;
}
.carousel__btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.carousel__btn:hover {
  background: rgba(250, 246, 236, 0.1);
  border-color: var(--ochre);
  transform: translateY(-2px);
}
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__dots { display: flex; gap: 0.6rem; }
.carousel__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--ochre-soft);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.carousel__dot:hover { transform: scale(1.15); }
.carousel__dot[aria-current="true"] { background: var(--ochre-soft); transform: scale(1.15); }
.carousel__note {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--sand-2);
  opacity: 0.85;
}

@media (max-width: 760px) {
  .carousel__slide figure { grid-template-columns: 1fr; }
  .carousel__media { aspect-ratio: 16 / 11; }
}

/* ─────────────────────────────── 12. Amenities ────────────────────────── */
.amenities__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.amenity {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.amenity:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--ochre); }
.amenity__icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--jade);
  color: var(--cream);
}
.amenity__icon svg { width: 24px; height: 24px; }
.amenity__name { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.2rem; }
.amenity p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ─────────────────────────────── 13. Gallery ──────────────────────────── */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
  gap: clamp(0.6rem, 1.5vw, 1rem);
}
.gallery__item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

/* ─────────────────────────────── 14. Location ─────────────────────────── */
.location__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.location__score { font-size: 1.1rem; margin-top: 0.75rem; }
.location__score strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--jade-text);
  margin-right: 0.25rem;
}
.walk-times {
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}
.walk-times li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.walk-times__place { font-weight: 600; }
.walk-times__time { color: var(--oxblood); font-weight: 600; white-space: nowrap; }

.location__photo {
  margin: 1.75rem 0 0;
  position: relative;
  overflow: hidden;
  height: 280px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.info-card {
  background: var(--pine);
  color: var(--sand);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
}
.info-card__mark { border-radius: var(--radius); margin-bottom: 0.85rem; }
.info-card__name { color: var(--cream); font-size: 1.4rem; font-weight: 600; }
.info-card__address {
  font-style: normal;
  margin: 0.6rem 0 1.25rem;
  color: var(--sand-2);
  line-height: 1.6;
}
.info-card__rows { margin: 0 0 1.5rem; display: grid; gap: 0.65rem; }
.info-card__rows > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(228, 216, 191, 0.18);
}
.info-card__rows dt { color: var(--ochre-soft); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; }
.info-card__rows dd { margin: 0; font-weight: 600; }
.info-card__rows a { color: var(--cream); text-decoration: none; }
.info-card__rows a:hover { text-decoration: underline; }

/* ─────────────────────────────── 15. Reviews ──────────────────────────── */
.reviews__layout {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.score-box {
  background: var(--pine-2);
  border: 1px solid rgba(228, 216, 191, 0.16);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}
.score-box__num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
  margin: 0;
}
.score-box__stars { color: var(--ochre-soft); font-size: 1.35rem; letter-spacing: 0.1em; margin: 0.35rem 0 0.2rem; }
.score-box__star-half {
  background: linear-gradient(90deg, var(--ochre-soft) 60%, rgba(216, 166, 92, 0.28) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.score-box__meta { color: var(--sand-2); font-size: 0.9rem; margin: 0 0 1.25rem; }
.dist { display: grid; gap: 0.5rem; text-align: left; }
.dist li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; }
.dist__label { width: 0.75rem; color: var(--sand-2); font-weight: 600; }
.dist__bar { flex: 1; height: 8px; background: rgba(228, 216, 191, 0.18); border-radius: 999px; overflow: hidden; }
.dist__fill { display: block; height: 100%; background: var(--ochre); border-radius: 999px; }
.dist__pct { width: 2.5rem; text-align: right; color: var(--sand-2); }

.review-cards { display: grid; gap: 1.25rem; }
.review-card {
  margin: 0;
  background: var(--jade-deep);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border-left: 3px solid var(--ochre);
}
.review-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.review-card__source { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--cream); }
.review-card__rating { font-size: 0.82rem; color: var(--ochre-soft); font-weight: 600; white-space: nowrap; }
.review-card blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--sand); }
.review-card figcaption { margin-top: 0.75rem; font-size: 0.85rem; color: var(--ochre-soft); font-weight: 600; }

/* ─────────────────────────────── 16. Reserve ──────────────────────────── */
.reserve__inner {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.reserve__intro p { max-width: 34rem; }
.reserve__intro a { color: var(--oxblood); font-weight: 600; }
.reserve__phone {
  display: inline-flex;
  flex-direction: column;
  margin-top: 1.25rem;
}
.reserve__phone span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  font-weight: 700;
}
.reserve__phone a {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.reserve__phone a:hover { color: var(--oxblood); }

.booking-card {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 1rem;
}
.field { display: grid; gap: 0.35rem; }
.field label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--input-bg);
  color: var(--ink);
  width: 100%;
}
.field input:focus,
.field select:focus { outline: none; border-color: var(--ochre); box-shadow: 0 0 0 3px rgba(198, 138, 62, 0.25); }

.booking-card__result {
  margin: 0;
  font-size: 0.95rem;
  min-height: 0;
}
.booking-card__result:not(:empty) {
  padding: 0.9rem 1rem;
  background: var(--sand);
  border-left: 3px solid var(--jade);
  border-radius: var(--radius);
  color: var(--ink);
}
.booking-card__result.is-error {
  background: #f6ddd6;
  border-left-color: var(--oxblood);
}
.booking-card__result strong { color: var(--oxblood); }

/* ─────────────────────────────── 17. Footer ───────────────────────────── */
.site-footer { background: var(--pine-2); color: var(--sand-2); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.brand--footer { color: var(--cream); }
.brand--footer .brand__sub { color: var(--ochre-soft); }
.site-footer__blurb { margin-top: 0.9rem; max-width: 22rem; font-size: 0.92rem; color: var(--sand-2); }
.site-footer__col h4 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre-soft);
  margin-bottom: 0.9rem;
}
.site-footer__col ul { display: grid; gap: 0.5rem; }
.site-footer__col a { color: var(--sand-2); text-decoration: none; }
.site-footer__col a:hover { color: var(--cream); text-decoration: underline; }
.site-footer__address { font-style: normal; line-height: 1.55; font-size: 0.92rem; }
.site-footer__address a { color: var(--ochre-soft); text-decoration: none; font-weight: 600; }
.site-footer__address a:hover { text-decoration: underline; }

.site-footer__social { display: flex; gap: 0.6rem; }
.site-footer__social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(228, 216, 191, 0.25);
  border-radius: var(--radius);
  color: var(--sand);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.site-footer__social a:hover { background: var(--ochre); color: var(--pine-2); border-color: var(--ochre); }

.site-footer__bar { border-top: 1px solid rgba(228, 216, 191, 0.16); }
.site-footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.1rem;
  font-size: 0.82rem;
}
.site-footer__bar p { margin: 0; }
.site-footer__credit { color: var(--sand-2); opacity: 0.7; }

/* ─────────────────── 18. Scroll-reveal & motion ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .tile-band { animation: none; }
}

/* ─────────────────────────── 19. Breakpoints ──────────────────────────── */

/* Small tablets and up */
@media (min-width: 560px) {
  .rooms__grid { grid-template-columns: repeat(2, 1fr); }
  .amenities__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-auto-rows: 200px; }
}

/* Tablets / small laptops */
@media (min-width: 800px) {
  .house__grid { grid-template-columns: 1.15fr 0.85fr; }
  .location__grid { grid-template-columns: 1.3fr 0.7fr; }
  .reviews__layout { grid-template-columns: 0.85fr 1.15fr; }
  .reserve__inner { grid-template-columns: 1fr 0.85fr; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* Desktop */
@media (min-width: 1000px) {
  .amenities__grid { grid-template-columns: repeat(3, 1fr); }
  .rooms__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Mobile navigation (collapse the menu below this width) ──────────────── */
@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed;
    /* The header's backdrop-filter makes it the containing block for this
       fixed drawer, so an explicit viewport height is required (bottom:0 would
       only reach the header's own height). */
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(82vw, 320px);
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 5.5rem 1.5rem 2rem;
    background: var(--bone);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    /* visibility keeps the CLOSED drawer out of the tab order and off the
       scrollable-overflow area; the delay lets the slide-out finish first */
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    overflow-y: auto;
  }
  .nav__menu.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s ease;
  }
  .nav__menu li { width: 100%; }
  .nav__menu a:not(.btn) {
    display: block;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav__menu a:not(.btn)::after { display: none; }
  .nav__cta-item { margin-top: 1rem; }
  .nav__cta-item .btn { width: 100%; }

  /* Dim the page behind the open menu */
  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(22, 48, 42, 0.45);
  }
  .site-header { z-index: 100; }
  .nav__menu { z-index: 110; }
  /* Keep both header controls above the open drawer so the theme toggle
     stays reachable beside the close (X) button. */
  .nav__toggle { z-index: 120; position: relative; }
  .nav .theme-toggle { z-index: 120; position: relative; }
}

/* ════════════════════ 20. Motion & micro-interactions ═══════════════════ */
/*
   Tasteful, transform/opacity-based motion. Everything non-essential is gated
   two ways so the page stays fully usable without it:
     • html.js …                          → only when JS is active, so a script
                                             failure never strands hidden content
     • @media (prefers-reduced-motion: no-preference)
   The reduce backstop in §18 also force-disables any animation/transition.
*/
:root {
  --ease-out: cubic-bezier(0.16, 0.84, 0.3, 1);
  --ease-io: cubic-bezier(0.45, 0, 0.2, 1);
}

/* Headline line masks (structure is always present; the slide is gated below) */
.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.2em;   /* room for italic descenders inside the clip … */
  margin-bottom: -0.2em;   /* …without changing the visual line spacing */
}
.hero__line-in { display: block; }

/* ── 9. Buttons: a soft light sweep on hover (in addition to the §4 lift) ── */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 35%, rgba(250, 246, 236, 0.22) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease-out);
}
.btn:hover::before { transform: translateX(120%); }
.btn--ochre::before {
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
}

/* ── 8. Sticky nav: condense on scroll + current-section underline ──────── */
.site-header { transition: background-color 0.25s ease, box-shadow 0.25s ease; }
.site-header__inner { transition: min-height 0.25s ease; }
.site-header.is-condensed {
  background: var(--header-bg-solid);
  box-shadow: var(--shadow-md);
}
.site-header.is-condensed .site-header__inner { min-height: 52px; }
/* Persistent underline on the link whose section is in view (reuses §7 ::after) */
.nav__menu a.is-active:not(.btn)::after { transform: scaleX(1); }

@media (prefers-reduced-motion: no-preference) {
  /* ── 6. Encaustic divider: slow horizontal drift (one tile width) ──────── */
  .tile-band { animation: tile-drift 9s linear infinite; }

  /* ── 1. Hero load sequence (staggered ~120ms apart) ─────────────────────── */
  html.js .hero .eyebrow,
  html.js .hero .rating-chip,
  html.js .hero__lede,
  html.js .hero__actions { animation: hero-rise 0.7s var(--ease-out) both; }
  html.js .hero .eyebrow     { animation-delay: 0.05s; }
  html.js .hero .rating-chip { animation-delay: 0.34s; }
  html.js .hero__lede        { animation-delay: 0.46s; }
  html.js .hero__actions     { animation-delay: 0.58s; }

  /* Headline lines slide up from behind their clip mask */
  html.js .hero__line-in { animation: line-rise 0.85s var(--ease-out) both; }
  html.js .hero__title .hero__line:nth-child(1) .hero__line-in { animation-delay: 0.14s; }
  html.js .hero__title .hero__line:nth-child(2) .hero__line-in { animation-delay: 0.24s; }

  /* ── 2. Hero image: slow Ken Burns zoom (sits behind the dark overlay) ─── */
  html.js .hero__img { animation: ken-burns 22s var(--ease-io) infinite alternate; will-change: transform; }

  /* ── 7. Staggered scroll reveals (grid children arrive in sequence) ────── */
  html.js [data-stagger] > *:not(.wipe) {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 85ms);
  }
  html.js [data-stagger].is-in > *:not(.wipe) { opacity: 1; transform: none; }

  /* ── 3. Image reveal: clip-path wipe + a gentle scale-down ─────────────── */
  /* The frame already has overflow:hidden, so the scaled image stays cropped. */
  html.js .wipe {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.9s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 85ms);
  }
  html.js [data-stagger].is-in .wipe,
  html.js .wipe.is-in { clip-path: inset(0 0 0 0); }
  /* The scale runs as an animation (not a transition) so it never competes
     with the hover-zoom transition on the same <img>. */
  html.js [data-stagger].is-in .wipe img,
  html.js .wipe.is-in img {
    animation: img-settle 0.9s var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 85ms);
  }

  /* ── 5. Shophouse facade: hold fills back until the line-draw lands ────── */
  html.js .facade__ink { fill-opacity: 0; }
  html.js .facade.is-drawn .facade__ink { fill-opacity: 1; transition: fill-opacity 0.8s ease 1s; }
  /* Lantern glow gently pulses (opacity + scale loop) */
  html.js .lantern-glow {
    transform-box: fill-box;
    transform-origin: center;
    animation: lantern-pulse 3.4s ease-in-out 1.8s infinite;
  }
}

@keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes line-rise { from { transform: translateY(120%); } to { transform: translateY(0); } }
@keyframes ken-burns { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes img-settle { from { transform: scale(1.05); } to { transform: scale(1); } }
@keyframes tile-drift { from { background-position-x: 0; } to { background-position-x: -56px; } }
@keyframes lantern-pulse {
  0%, 100% { opacity: 0.22; transform: scale(0.9); }
  50%      { opacity: 0.5;  transform: scale(1.14); }
}

/* ════════════════════════ 21. Photographic parallax ═════════════════════ */
/*
   Each parallaxed photo sits in an oversized layer (.pphoto / .hero__media)
   inside its overflow:hidden frame, centred at rest via `top`. So even with
   parallax OFF (reduced motion, touch, < 768px) the photo fully covers the
   frame — no white edges. JS translates the *layer* with translate3d; the
   <img> inside keeps its own transforms (hover zoom, reveal scale, Ken Burns),
   so the two never fight over `transform`. (Hero media layer is in §8.)
*/
.pphoto {
  position: absolute;
  left: 0;
  top: -10%;            /* centres the 120%-tall layer: ±8% travel stays covered */
  width: 100%;
  height: 120%;
}
.pphoto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ════════════════ 22. Dark-theme component adjustments ═══════════════════ */
/* Beyond the §1 token swap, these keep each component intentional at night. */

/* Encaustic pattern fills (classes on the inline SVG <defs> in index.html) */
.enc-base { fill: var(--enc-base); }
.enc-corner { fill: var(--enc-corner); }
.enc-diamond { fill: var(--enc-diamond); }
.enc-dot { fill: var(--enc-dot); }

/* Keep room tags above the night photo tint */
.room-card__tag { z-index: 2; }

/* Deeper hero overlay so the light text holds against the night photo */
[data-theme="dark"] .hero__overlay {
  background:
    linear-gradient(180deg, rgba(8, 18, 15, 0.5) 0%, rgba(8, 18, 15, 0.68) 55%, rgba(8, 18, 15, 0.93) 100%),
    linear-gradient(90deg, rgba(11, 26, 21, 0.75) 0%, rgba(11, 26, 21, 0.2) 60%);
}

/* Photos get a subtle warm tint so they sit into the night palette
   instead of glowing white against it */
[data-theme="dark"] .room-card__media::after,
[data-theme="dark"] .gallery__item::after,
[data-theme="dark"] .location__photo::after,
[data-theme="dark"] .carousel__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--photo-tint);
  pointer-events: none;
}

/* Brass carries the primary action at night */
[data-theme="dark"] .btn--primary { --btn-bg: var(--ochre); --btn-fg: #142019; }
[data-theme="dark"] .btn--primary:hover { --btn-bg: var(--ochre-soft); }

/* Booking feedback surfaces on dark */
[data-theme="dark"] .booking-card__result:not(:empty) { background: rgba(216, 204, 176, 0.1); }
[data-theme="dark"] .booking-card__result.is-error { background: rgba(196, 103, 79, 0.16); }

/* The facade's limewash wall dims to lamplight */
[data-theme="dark"] .facade__wall { fill: #E3D5B1; }

/* ─────────────────────────── 23. Theme toggle ─────────────────────────── */
.theme-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bone);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle { color: var(--ochre-soft); }
[data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: block; }
/* These are JS-driven; without JS they would be dead controls (the first
   carousel slide still shows, and the Book-now anchor works regardless). */
html:not(.js) .theme-toggle,
html:not(.js) .carousel__controls { display: none; }

/* Nav row order: links · theme toggle · hamburger */
.nav { gap: clamp(0.75rem, 2vw, 1.1rem); }
.nav__menu { order: 1; }
.nav .theme-toggle { order: 2; }
.nav__toggle { order: 3; }

/* Smooth cross-fade between themes — the JS adds .theme-fade for ~500ms
   around a toggle (never under prefers-reduced-motion: instant swap). */
html.theme-fade,
html.theme-fade *,
html.theme-fade *::before,
html.theme-fade *::after {
  transition:
    background-color 0.45s ease,
    color 0.45s ease,
    border-color 0.45s ease,
    fill 0.45s ease,
    stroke 0.45s ease,
    box-shadow 0.45s ease !important;
}

/* ──────────────────────── 24. Floating "Book now" ─────────────────────── */
.book-fab {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.5rem);
  bottom: clamp(1rem, 2.5vw, 1.5rem);
  z-index: 80; /* under the mobile-nav overlay (90+) */
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.35rem;
  background: var(--ochre);
  color: var(--pine-2);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.book-fab:hover { transform: translateY(-3px); background: var(--ochre-soft); }
.book-fab svg { width: 20px; height: 20px; flex: none; }
/* At night it glows like the doorway lantern */
[data-theme="dark"] .book-fab {
  color: #142019;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 26px rgba(216, 166, 92, 0.35);
}
[data-theme="dark"] .book-fab:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), 0 0 34px rgba(216, 166, 92, 0.5);
}
@media (max-width: 640px) {
  /* Collapse to an icon-only disc — still present, never hidden */
  .book-fab { padding: 0; width: 54px; height: 54px; justify-content: center; border-radius: 50%; }
  .book-fab__label { display: none; }
}
/* Keep the footer's bottom bar clear of the floating button */
.site-footer__bar-inner { padding-right: clamp(8.5rem, 16vw, 11rem); }
@media (max-width: 640px) {
  .site-footer__bar-inner { padding-right: 4.5rem; padding-bottom: 3.25rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html.js .book-fab { animation: fab-in 0.6s var(--ease-out) 1.1s both; }
}
@keyframes fab-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
