/* ============================================================
   Recanto Primavera — editorial luxury villa site
   Rooted in Airbnb DS (spacing/shadow/warm near-black),
   but using an editorial serif for display to match the brief.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap");

:root {
  /* Palette — warm neutrals + terracotta */
  --ink: #1f1d1a;               /* near-black, warm */
  --ink-soft: #3a352e;
  --ink-mute: #6b6459;
  --ink-faint: #a59c8d;

  --paper: #faf6ef;             /* warm off-white */
  --paper-2: #f2ecdf;           /* tonal cream */
  --paper-3: #e8dfcb;

  --accent: #b08b5a;            /* brass terracotta (from reference) */
  --accent-ink: #8a6937;
  --accent-deep: #705428;

  --hairline: rgba(31, 29, 26, 0.12);
  --hairline-strong: rgba(31, 29, 26, 0.24);

  --shadow-soft:
    rgba(0, 0, 0, 0.02) 0 0 0 1px,
    rgba(0, 0, 0, 0.04) 0 2px 6px,
    rgba(0, 0, 0, 0.08) 0 6px 14px;
  --shadow-hover: rgba(0,0,0,0.12) 0 10px 30px;

  /* Type */
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, system-ui, sans-serif;

  /* Layout */
  --max: 1200px;
  --gutter: 40px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { font-size: 15px; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0; z-index: 100;
  padding: 18px 28px 0;
  background: transparent;
  pointer-events: none;
  /* Force own GPU compositing layer — prevents iOS Safari from painting
     animated hero children above the sticky header */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.site-header.has-bg { background: var(--paper); }
.site-header .inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0;
  align-items: stretch;
  pointer-events: auto;
  box-shadow: var(--shadow-soft);
  border-radius: 2px;
  background: var(--paper);
}

.brand-block {
  background: var(--ink);
  color: var(--paper);
  padding: 22px 34px;
  display: flex; align-items: center;
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  letter-spacing: 0.2px;
  white-space: nowrap;
  line-height: 1;
}
.brand-block .dot { color: var(--accent); }

.site-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 34px;
  padding: 0 32px;
  background: var(--paper);
}
.site-nav a {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
  position: relative;
}
.site-nav a .num {
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
}
.site-nav a:hover { color: var(--accent-ink); }
.site-nav a.active { border-bottom-color: var(--accent); }

.book-cta {
  background: var(--accent);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  padding: 22px 40px;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  letter-spacing: 0.3px;
  transition: background .2s;
}
.book-cta:hover { background: var(--accent-ink); color: var(--paper); }

/* Hide numbered nav when tweak disabled */
body.no-num .site-nav a .num { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  margin-top: -86px;  /* let header float over hero */
  padding-top: 86px;
  height: 86vh;
  min-height: 620px;
  max-height: 820px;
  overflow: hidden;
  /* Contain the ken-burns animation stacking context so it can't
     promote above the sticky header on iOS Safari */
  isolation: isolate;
  z-index: 0;
}
.hero-photo {
  position: absolute; inset: 0;
  overflow: hidden;
  /* No animation or will-change here — prevents iOS compositor layer ghost */
}
.hero-photo-inner {
  position: absolute; inset: -10%;
  background-size: cover;
  background-position: center;
  /* Animation lives here, isolated from the bg-image parent */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 65%, rgba(250,246,239,0.6) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
  text-align: center;
  padding: 0 20px 3%;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  color: #fff;
  font-size: clamp(40px, 6vw, 78px);
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.hero-title .sm { display: block; }
.hero-sub {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin: 18px 0 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.page-hero .hero-sub {
  margin-top: 14px;
  color: rgba(255,255,255,0.85);
}
@media (max-width: 680px) {
  .hero-sub { font-size: 10.5px; letter-spacing: 1.8px; margin-top: 14px; }
}

/* Circular stamp / seal */
.stamp {
  position: absolute;
  top: auto; bottom: 10%; left: 50%;
  transform: translate(-50%, 0);
  width: 340px; height: 340px;
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}
body.no-stamp .stamp { display: none; }

.hero-scribble {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  width: 100%;
  pointer-events: none;
  z-index: 3;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px var(--gutter);
}
.section.tight { padding-top: 60px; padding-bottom: 60px; }
.section.cream { background: var(--paper-2); max-width: none; }
.section.cream > .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 18px;
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 24px;
}
.display em {
  font-style: italic;
  color: var(--accent-ink);
}
.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 54ch;
}
.prose p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

/* Two-column layout: photo collage + text */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.narrow-left { grid-template-columns: 0.9fr 1.1fr; }
.split.narrow-right { grid-template-columns: 1.1fr 0.9fr; }

/* Image collage */
.collage {
  position: relative;
  aspect-ratio: 4/5;
}
.collage.stacked {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.collage.stacked .cs-img {
  width: 100%;
  aspect-ratio: 3/2;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
  display: block;
  object-fit: cover;
  height: auto;
}
.collage .c1, .collage .c2 {
  position: absolute;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}
.collage .c1 {
  top: 0; left: 0;
  width: 72%; height: 72%;
}
.collage .c2 {
  bottom: 0; right: 0;
  width: 58%; height: 58%;
  border: 8px solid var(--paper);
}
.collage.landscape {
  aspect-ratio: 3/2;
}
.collage.landscape .c1 {
  top: 0; left: 0;
  width: 88%; height: 88%;
}
.collage.landscape .c2 {
  bottom: -30px; right: -30px;
  width: 48%;
  aspect-ratio: 3/2;
  height: auto;
  border: 8px solid var(--paper);
  z-index: 2;
}
.collage .caption {
  position: absolute;
  bottom: -8px; left: 10%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-mute);
  transform: rotate(-2deg);
}

/* Divider with ornament */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  padding: 20px 0;
  color: var(--accent);
}
.ornament .line { flex: 1; height: 1px; background: var(--hairline); max-width: 160px; }
.ornament .sym { font-family: var(--serif); font-style: italic; font-size: 18px; }

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
  margin-top: 60px;
}
.feature {
  text-align: center;
}
.feature .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 40px;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}
.feature h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--ink);
}
.feature p {
  font-size: 14px; line-height: 1.65;
  color: var(--ink-mute);
  font-weight: 300;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px;
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  transition: all .2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px var(--gutter) 36px;
  margin-top: 80px;
}
.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(250,246,239,0.12);
}
.site-footer h4 {
  font-family: var(--sans);
  font-size: 10px; font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}
.site-footer .brand-big {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  margin-bottom: 16px;
}
.site-footer p {
  font-size: 14px; font-weight: 300; line-height: 1.7;
  color: rgba(250,246,239,0.75);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: 13.5px; color: rgba(250,246,239,0.75); font-weight: 300; }
.site-footer a:hover { color: var(--accent); }
.site-footer .bottom {
  max-width: var(--max);
  margin: 30px auto 0;
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(250,246,239,0.5);
}

/* ============================================================
   PAGE HERO (smaller, for inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  margin-top: -86px;
  padding-top: 86px;
  height: 52vh;
  min-height: 380px;
  max-height: 540px;
  overflow: hidden;
}
.page-hero .photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.page-hero .photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.1) 50%, rgba(250,246,239,0.85) 100%);
}
.page-hero .inner {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 20px 0;
}
.page-hero .kicker {
  font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 14px;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 6vw, 84px);
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
  margin: 0;
}
.page-hero h1 em { font-style: italic; color: #fff; }

/* ============================================================
   GALLERY GRID (masonry-ish)
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.gallery-grid .g {
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .4s ease;
}
.gallery-grid .g:hover { transform: translateY(-4px); }
.gallery-grid .g.span-6 { grid-column: span 6; aspect-ratio: 3/2; }
.gallery-grid .g.span-4 { grid-column: span 4; aspect-ratio: 3/2; }
.gallery-grid .g.span-5 { grid-column: span 5; aspect-ratio: 3/2; }
.gallery-grid .g.span-7 { grid-column: span 7; aspect-ratio: 3/2; }
.gallery-grid .g.span-8 { grid-column: span 8; aspect-ratio: 3/2; }
.gallery-grid .g.span-3 { grid-column: span 3; aspect-ratio: 3/2; }
.gallery-grid .g.span-12 { grid-column: span 12; aspect-ratio: 21/9; }

/* Panoramic pairs: nudge horizons to line up across two side-by-side photos */
.gallery-grid .g.pano-left,
.gallery-grid .g.pano-right { background-position: center 30%; }

/* Injected <img> for mobile — hidden on desktop (bg-image handles it) */
.gallery-grid .g .tile-img { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15,14,12,0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 300;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox .close {
  position: absolute; top: 24px; right: 28px;
  color: #fff; background: none; border: none; font-size: 30px; cursor: pointer;
  font-family: var(--serif);
}

/* ============================================================
   PROPERTY PAGE — spec list
   ============================================================ */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}
.spec {
  text-align: left;
}
.spec .label {
  font-family: var(--sans);
  font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.spec .val {
  font-family: var(--serif);
  font-size: 28px; font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
}
.spec .val em { font-style: italic; color: var(--accent-ink); }

/* Room cards */
.rooms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 50px;
  margin-top: 60px;
}
.room {
  display: flex; flex-direction: column; gap: 18px;
}
.room .img {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-soft);
}
.room .meta {
  font-family: var(--sans);
  font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent-ink);
}
.room h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  margin: 2px 0 4px;
}
.room p { font-weight: 300; color: var(--ink-mute); line-height: 1.7; }

/* Amenity list */
.amenities {
  columns: 3;
  column-gap: 48px;
  margin-top: 30px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
}
.amenities li { list-style: none; padding: 10px 0; border-bottom: 1px solid var(--hairline); break-inside: avoid; }
.amenities ul { padding: 0; margin: 0; }

/* ============================================================
   LOCAL AREA — itinerary / guide cards
   ============================================================ */
.guide-list {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--hairline);
}
.guide-item {
  display: grid;
  grid-template-columns: 80px 1.3fr 1.4fr 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: center;
}
.guide-item .index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 36px;
  color: var(--accent);
}
.guide-item .img {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-soft);
}
.guide-item .body h3 {
  font-family: var(--serif);
  font-weight: 500; font-size: 26px;
  margin: 0 0 6px;
}
.guide-item .body .cat {
  font-family: var(--sans);
  font-size: 10px; font-weight: 600; letter-spacing: 2.3px; text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 6px;
}
.guide-item .body p { font-weight: 300; color: var(--ink-mute); line-height: 1.65; margin-top: 6px; }
.guide-item .meta {
  text-align: right;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-mute);
}
.guide-item .meta .dist {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}

/* ============================================================
   BOOKINGS — form
   ============================================================ */
.booking-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.booking-image {
  aspect-ratio: 3/4;
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-soft);
}
.form {
  display: flex; flex-direction: column; gap: 22px;
}
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form label {
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--sans);
  font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--ink-mute);
}
.form input, .form select, .form textarea {
  font-family: var(--serif);
  font-size: 18px;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-bottom-color: var(--accent);
}
.form textarea { min-height: 100px; resize: vertical; font-family: var(--sans); font-size: 15px; line-height: 1.6; }
.form .submit { margin-top: 20px; align-self: flex-start; }

.rate-table {
  background: var(--paper-2);
  padding: 30px 32px;
  margin-top: 40px;
}
.rate-table h4 {
  font-family: var(--sans);
  font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 18px;
}
.rate-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0; border-bottom: 1px dashed var(--hairline);
  font-family: var(--serif); font-size: 18px;
}
.rate-row:last-child { border-bottom: none; }
.rate-row .season { color: var(--ink); }
.rate-row .dates { font-style: italic; color: var(--ink-mute); font-size: 14px; flex: 1; padding: 0 20px; }
.rate-row .price { color: var(--ink); font-weight: 500; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { margin-top: 40px; border-top: 1px solid var(--hairline); }
.faq-item {
  border-bottom: 1px solid var(--hairline);
  padding: 28px 0;
  cursor: pointer;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  gap: 30px;
}
.faq-q h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
  margin: 0;
  flex: 1;
}
.faq-toggle {
  width: 40px; height: 40px;
  background: var(--accent);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 24px; font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  transition: background .2s;
}
.faq-item.open .faq-toggle { background: var(--ink); }
.faq-item .faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-family: var(--sans);
  font-size: 15px; font-weight: 300; line-height: 1.75;
  color: var(--ink-mute);
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding-top: 18px;
}
.faq-cat-heading {
  font-family: var(--sans);
  font-size: 10px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent-ink);
  margin: 50px 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.faq-cat-heading:first-of-type { margin-top: 0; }

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
.tweaks {
  position: fixed;
  bottom: 20px; right: 20px;
  background: var(--ink);
  color: var(--paper);
  padding: 18px 20px;
  width: 280px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  z-index: 200;
  display: none;
  font-family: var(--sans);
  font-size: 12px;
}
.tweaks.open { display: block; }
.tweaks h5 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
  margin: 0 0 14px;
}
.tweaks .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.tweaks label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(250,246,239,0.7); }
.tweaks input[type="text"] {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--paper);
  padding: 8px 10px;
  font-size: 12px;
  font-family: var(--sans);
}
.tweaks input[type="color"] {
  width: 36px; height: 24px; border: none; padding: 0; background: transparent; cursor: pointer;
}
.tweaks .swatches { display: flex; gap: 6px; }
.tweaks .sw { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; border: 2px solid rgba(255,255,255,0.2); }
.tweaks .sw.active { border-color: var(--paper); }
.tweaks .toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--paper);
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--sans);
}
.tweaks .toggle.on { background: var(--accent); border-color: var(--accent); }

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 56px;
  height: 56px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .25s;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer (hidden by default; shown on small screens when open) */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  background: var(--paper);
  border-top: 1px solid var(--hairline);
  pointer-events: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav nav a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  min-height: 44px;
}
.mobile-nav nav a.active { color: var(--accent-ink); }
.mobile-nav nav a .num {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  min-width: 22px;
}
.mobile-nav .book-cta-mobile {
  display: block;
  margin-top: 18px;
  background: var(--accent);
  color: var(--paper);
  padding: 18px;
  text-align: center;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  min-height: 44px;
}
body.no-num .mobile-nav nav a .num { display: none; }

/* ============================================================
   UTILITIES & RESPONSIVE
   ============================================================ */
.center { text-align: center; }
.mt-small { margin-top: 16px; }
.mt { margin-top: 32px; }
.mt-large { margin-top: 60px; }

/* Tablet — collapse 2-up layouts + tighten gutters */
@media (max-width: 960px) {
  :root { --gutter: 28px; }
  .split,
  .split.narrow-left,
  .split.narrow-right,
  .site-footer .inner { grid-template-columns: 1fr; gap: 40px; }
  .features { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .section { padding: 64px var(--gutter); }
  .section.tight { padding: 44px var(--gutter); }
  .spec-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .rooms { grid-template-columns: 1fr; gap: 40px; }
  .amenities { columns: 2; }
  .guide-item { grid-template-columns: 60px 1fr 1fr; gap: 20px; }
  .guide-item .meta { grid-column: 2 / span 2; text-align: left; }
  .booking-wrap { grid-template-columns: 1fr; gap: 40px; }
  .site-footer .inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Phone — single column, larger touch targets, drawer nav */
@media (max-width: 680px) {
  :root { --gutter: 20px; }
  /* DO NOT set overflow-x: hidden on html or body — it breaks
     position: sticky on iOS Safari (well-known WebKit bug).
     Horizontal overflow is prevented by keeping all children within
     100vw instead. */
  body { font-size: 15.5px; }

  /* Header: hamburger appears, inline nav + desktop CTA hide */
  .site-header {
    padding: 12px 16px 0;
    background: var(--paper); /* solid bg — required on older iOS where transparent sticky can vanish */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  .site-header .inner {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-align-items: center;
    align-items: center;
    /* keep existing shadow/radius from desktop rule */
  }
  .brand-block {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 14px 18px;
    font-size: 20px;
    min-height: 48px;
  }
  .site-nav { display: none; }
  .book-cta { display: none; }
  .nav-toggle {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    margin-right: 8px;
  }
  .mobile-nav {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 100%;
    flex: 1 1 100%;
    width: 100%;
  }

  /* Hero */
  .hero {
    margin-top: -72px; padding-top: 72px;
    height: 78vh;
    min-height: 500px;
    max-height: none;
    isolation: isolate;
    z-index: 0;
  }
  .hero-inner { padding: 0 20px 40px; }
  .hero-title {
    font-size: clamp(34px, 9vw, 46px);
    letter-spacing: 0.04em;
  }
  .stamp {
    width: 200px; height: 200px;
    bottom: auto; top: 58%;
    transform: translate(-50%, -50%);
    opacity: 0.55;
  }

  /* Page hero */
  .page-hero {
    margin-top: -72px; padding-top: 72px;
    height: 46vh;
    min-height: 320px;
    max-height: 420px;
  }
  .page-hero .inner { padding: 40px 20px 20px; }
  .page-hero .kicker { font-size: 10px; letter-spacing: 2.5px; margin-bottom: 10px; }
  .page-hero h1 { font-size: clamp(36px, 9vw, 52px); }

  /* Sections */
  .section { padding: 48px var(--gutter); }
  .section.tight { padding: 36px var(--gutter); }
  .display { font-size: clamp(30px, 7vw, 40px); margin-bottom: 18px; }
  .lede { font-size: 17px; }
  .prose p { font-size: 15.5px; line-height: 1.7; }
  .eyebrow { font-size: 10.5px; letter-spacing: 2.4px; margin-bottom: 14px; }

  /* Features: stack single column on phone */
  .features { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .feature { text-align: left; }
  .feature .num { font-size: 32px; }

  /* Collage: drop absolute-positioned overlaps (they cramp on phone) */
  .collage {
    aspect-ratio: auto;
    display: flex; flex-direction: column; gap: 14px;
  }
  .collage .c1, .collage .c2 {
    position: relative;
    width: 100%; height: auto;
    aspect-ratio: 3/2;
    inset: auto !important;
    border: none !important;
    top: auto !important; bottom: auto !important;
    left: auto !important; right: auto !important;
  }
  .collage .caption { position: static; margin-top: 8px; text-align: center; transform: none !important; }
  .collage.landscape { aspect-ratio: auto; }

  /* Ornament */
  .ornament .line { max-width: 80px; }

  /* Buttons — full-width, taller hit target */
  .btn {
    padding: 16px 24px;
    font-size: 11px; letter-spacing: 2px;
    min-height: 48px;
    justify-content: center;
  }
  .btn-primary, .btn-ghost { width: 100%; }

  /* Gallery — 1 column on phone, full-width landscape ratio */
  .gallery-grid { gap: 10px; grid-template-columns: 1fr; }
  .gallery-grid .g,
  .gallery-grid .g.span-6,
  .gallery-grid .g.span-4,
  .gallery-grid .g.span-5,
  .gallery-grid .g.span-7,
  .gallery-grid .g.span-8,
  .gallery-grid .g.span-3,
  .gallery-grid .g.span-12 {
    grid-column: 1 / -1;
    aspect-ratio: auto;
    background-image: none !important;
    background: var(--hairline);
  }
  .gallery-grid .g .tile-img {
    display: block;
    width: 100%;
    height: auto;
  }
  /* Gallery filter tabs scroll horizontally */
  .filter-btn { font-size: 11px; letter-spacing: 1.8px; }

  /* Lightbox */
  .lightbox { padding: 16px; }
  .lightbox .close { top: 12px; right: 16px; font-size: 36px; }

  /* Property specs */
  .spec-grid { grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; padding-top: 28px; }
  .spec .val { font-size: 22px; }

  /* Amenities single column */
  .amenities { columns: 1; font-size: 14.5px; }
  .amenities li { padding: 12px 0; }

  /* Local-area guide — stack image on top, body below */
  .guide-item {
    grid-template-columns: 1fr;
    grid-template-areas: "index" "img" "body" "meta";
    gap: 14px;
    padding: 28px 0;
  }
  .guide-item .index { grid-area: index; font-size: 28px; }
  .guide-item .img { grid-area: img; aspect-ratio: 3/2; }
  .guide-item .body { grid-area: body; }
  .guide-item .body h3 { font-size: 22px; }
  .guide-item .meta {
    grid-area: meta;
    text-align: left;
    border-top: 1px solid var(--hairline);
    padding-top: 14px;
    font-size: 12px;
  }
  .guide-item .meta .dist { font-size: 18px; display: inline; margin-right: 10px; }

  /* Booking form */
  .booking-wrap { gap: 32px; }
  .form .row2 { grid-template-columns: 1fr; gap: 22px; }
  .form input, .form select, .form textarea { font-size: 16px; padding: 12px 0; } /* 16px = no iOS zoom */
  .form textarea { font-size: 15.5px; min-height: 120px; }
  .form .submit { width: 100%; justify-content: center; }

  .booking-image { aspect-ratio: 4/3; }

  .rate-table { padding: 22px 20px; }
  .rate-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "season price" "dates dates";
    column-gap: 14px;
    row-gap: 2px;
    font-size: 16px;
    padding: 14px 0;
  }
  .rate-row .season { grid-area: season; }
  .rate-row .price { grid-area: price; }
  .rate-row .dates { grid-area: dates; padding: 0; font-size: 12.5px; }

  /* FAQ */
  .faq-q h3 { font-size: 18px; }
  .faq-item { padding: 22px 0; }
  .faq-toggle { width: 36px; height: 36px; font-size: 22px; }
  .faq-item.open .faq-a { max-height: 600px; }
  .faq-a { font-size: 14.5px; }
  .faq-cat-heading { margin-top: 36px; font-size: 10.5px; }

  /* Footer */
  .site-footer { padding: 48px var(--gutter) 24px; margin-top: 40px; }
  .site-footer .inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .site-footer .brand-big { font-size: 26px; }
  .site-footer .bottom {
    flex-direction: column; gap: 6px; align-items: flex-start;
    font-size: 10.5px; letter-spacing: 1.3px;
  }

  /* Tweaks panel: compact + allow scrolling within */
  .tweaks {
    bottom: 12px; right: 12px; left: 12px;
    width: auto; max-height: 70vh; overflow-y: auto;
  }
}

/* Compact phone */
@media (max-width: 380px) {
  .hero-title { font-size: 34px; }
  .page-hero h1 { font-size: 34px; }
  .display { font-size: 28px; }
  .brand-block { font-size: 18px; padding: 12px 14px; }
  .spec-grid { grid-template-columns: 1fr; }
}

/* Old fallback — kept for anything that somehow hits only the 960 bucket */
@media (max-width: 960px) and (min-width: 681px) {
  .book-cta { padding: 14px; font-size: 16px; }
}

/* ============================================================
   Premium lightbox — pinch-zoom, swipe, keyboard nav
   ============================================================ */
.rp-lightbox {
  position: fixed; inset: 0;
  background: rgba(12, 11, 10, 0.96);
  display: none;
  opacity: 0;
  z-index: 1000;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.25s ease-out;
}
.rp-lightbox.open {
  display: block;
  opacity: 1;
}

.rp-lb-chrome {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px;
  z-index: 3;
  pointer-events: none;
}
.rp-lb-counter {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 2.3px;
  text-transform: uppercase;
  color: rgba(255, 245, 230, 0.75);
  pointer-events: auto;
}
.rp-lb-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 245, 230, 0.9);
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
  pointer-events: auto;
}
.rp-lb-close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.05);
}

.rp-lb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 245, 230, 0.85);
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: background .2s, transform .2s, opacity .2s;
}
.rp-lb-nav:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-50%) scale(1.06);
}
.rp-lb-nav:disabled {
  opacity: 0.25;
  pointer-events: none;
}
.rp-lb-prev { left: 24px; }
.rp-lb-next { right: 24px; }

.rp-lb-track {
  position: absolute; inset: 0;
  display: flex;
  will-change: transform;
  touch-action: none;
}
.rp-lb-slide {
  flex: 0 0 100%;
  height: 100%;
  display: grid; place-items: center;
  padding: 72px 80px;
  overflow: hidden;
}
.rp-lb-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}

.rp-lb-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: 2.3px;
  text-transform: uppercase;
  color: rgba(255, 245, 230, 0.5);
  transition: opacity .6s ease;
  pointer-events: none;
}
.rp-lightbox.hint-gone .rp-lb-hint { opacity: 0; }

@media (max-width: 720px) {
  .rp-lb-chrome { padding: 14px 16px; }
  .rp-lb-nav { width: 44px; height: 44px; }
  .rp-lb-prev { left: 10px; }
  .rp-lb-next { right: 10px; }
  .rp-lb-slide { padding: 60px 20px; }
  .rp-lb-hint { bottom: 16px; font-size: 9px; letter-spacing: 1.8px; }
}
