/* =========================================================
   Lagom Pool Villas — styles.css  (complete redesign)
   ========================================================= */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --sage:  #9aa28a;
  --moss:  #5b6a4a;
  --ink:   #2f3529;
  --mist:  #eef0e8;
  --oak:   #b9783a;
  --line:  #c9cfbd;
  --cream: #f9f7f1;
  --r:     180px;
  --ease:  cubic-bezier(.4,0,.2,1);
}

/* ── RESET / BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: Poppins, sans-serif;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  /* Safe area insets for notched / foldable phones */
  padding-left:  env(safe-area-inset-left,  0px);
  padding-right: env(safe-area-inset-right, 0px);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4, .brand, .wordmark {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  line-height: 1.1;
}
h2 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.section-label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: .6rem;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--moss);
  color: #fff;
  border: 2px solid var(--moss);
  padding: .75em 2em;
  border-radius: 99px;
  font: 500 .85rem/1 Poppins, sans-serif;
  letter-spacing: .06em;
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.btn.sm    { padding: .55em 1.4em; font-size: .78rem; }
.btn-outline {
  background: transparent;
  color: var(--moss);
  border-color: var(--moss);
}
.btn-outline:hover { background: var(--moss); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.4);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,.25); border-color: #fff; }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem max(5vw, env(safe-area-inset-left, 1rem));
  padding-right: max(5vw, env(safe-area-inset-right, 1rem));
  color: #fff;
  transition: background .4s var(--ease), padding .3s var(--ease), box-shadow .3s;
}
.nav.solid {
  background: rgba(47,53,41,.96);
  backdrop-filter: blur(14px);
  padding-top: .75rem;
  padding-bottom: .75rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.brand {
  font-size: 1.9rem;
  letter-spacing: .14em;
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
}
.nav .brand {
  text-shadow: 0 .04em 0 rgba(91,106,74,.7);
}
#mainNav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .06em;
}
#mainNav a { opacity: .85; transition: opacity .2s; }
#mainNav a:hover { opacity: 1; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: #fff; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: -20% 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center 72%;   /* scrolled down to show the pool area */
  transform-origin: center center;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(20,25,15,.34) 0%,
      rgba(20,25,15,.14) 14%,
      rgba(20,25,15,0) 34%),
    linear-gradient(to top,
      rgba(20,25,15,.92) 0%,
      rgba(20,25,15,.4) 45%,
      rgba(20,25,15,.05) 100%);
}
.hero-text {
  position: relative;
  z-index: 1;
  padding: 0 clamp(1rem, 5vw, 5rem) clamp(5rem, 12vh, 10rem);
  max-width: min(900px, 100%);
  width: 100%;
}
/* ── WORDMARK: always single line, fluid across every screen ── */
.wordmark {
  /* 
   * Uses fit-content font scaling trick:
   * font-size uses vw so it always fits one line.
   * On very small screens (320px wide) LAGOM with 0.06em letter-spacing
   * needs ~16vw. On large screens cap at 13rem.
   * white-space + nowrap ensure no wrapping ever happens.
   */
  font-size: clamp(2.8rem, 16vw, 13rem);
  line-height: .92;
  letter-spacing: .06em;
  text-shadow: 0 .04em 0 rgba(91,106,74,.7);
  perspective: 800px;
  white-space: nowrap;
  display: block;
  width: 100%;
}
.wordmark .char { display: inline-block; }
.hero-sub {
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 400;
  margin: 1.1rem 0 1.4rem;
  opacity: .88;
}
.hero-lead {
  max-width: 46ch;
  font-size: 1.08rem;
  margin-bottom: 2rem;
  opacity: .9;
  line-height: 1.8;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 5vw;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .6;
  animation: bounce 2.5s ease-in-out infinite;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,.5);
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ── STORY ───────────────────────────────────────────────── */
.story {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 7vw;
  padding: 14vh 6vw 10vh;
  align-items: center;
  background: var(--cream);
}
.story-col-left h2 { margin-top: .5rem; }
.story-col-left p  { max-width: 52ch; font-size: 1.05rem; margin-top: 1.4rem; color: #4a5540; }

.facts { display: grid; gap: 1.2rem; margin-top: 2rem; }
.facts li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: .9rem;
  transition: box-shadow .25s;
}
.facts li:hover { box-shadow: 0 4px 20px rgba(47,53,41,.08); }
.facts li b {
  font: 500 1.5rem "Cormorant Garamond", serif;
  color: var(--moss);
  min-width: 2.5rem;
  line-height: 1;
  margin-top: .1rem;
}

/* ── VILLAS ──────────────────────────────────────────────── */
.villas {
  padding: 10vh 5vw;
  background: var(--mist);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.filters button {
  border: 1.5px solid var(--line);
  background: none;
  padding: .45em 1.4em;
  border-radius: 99px;
  font: 400 .8rem Poppins, sans-serif;
  letter-spacing: .05em;
  color: var(--ink);
  transition: all .25s;
}
.filters button:hover { border-color: var(--sage); background: rgba(154,162,138,.12); }
.filters .on  { background: var(--moss); color: #fff; border-color: var(--moss); }

/* Villa grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 16px rgba(47,53,41,.06);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
  cursor: pointer;
}
.card:hover {
  box-shadow: 0 16px 48px rgba(47,53,41,.14);
  transform: translateY(-6px);
}
.card-img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 10px 10px var(--r) var(--r);
  margin: .8rem .8rem 0;
  background: var(--sage);
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.card:hover .card-img-wrap img { transform: scale(1.06); }
.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font: 500 .7rem Poppins, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3em .9em;
  border-radius: 99px;
}
.card-body {
  padding: 1.2rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .3rem;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .2rem;
}
.card-pax   { font-size: .78rem; color: var(--moss); letter-spacing: .04em; }
.card-price {
  font: 500 1.3rem "Cormorant Garamond", serif;
  color: var(--oak);
}
.card-price small {
  font: 400 .7rem Poppins, sans-serif;
  color: var(--sage);
  margin-left: .2rem;
}
.card-name  { font-size: 1.9rem; color: var(--ink); line-height: 1.1; }
.card-tag   { font-size: .82rem; color: var(--moss); margin-bottom: .5rem; }
.card-cta   { display: flex; gap: .6rem; margin-top: auto; padding-top: .8rem; flex-wrap: wrap; }

/* ── GALLERY ─────────────────────────────────────────────── */
.gallery-section {
  padding: clamp(5rem, 11vh, 8.5rem) max(5vw, 1.5rem);
  background: var(--cream);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

.gal-container {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: clamp(2.5rem, 5.5vw, 6rem);
  align-items: center;
  max-width: 1560px;
  margin: 0 auto;
}

/* ── Left side: Editorial copy & Controls (inspired by image.png) ── */
.gal-info-col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  z-index: 2;
}

.gal-meta-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(47, 53, 41, 0.12);
}
.gal-meta-header .section-label {
  margin-bottom: 0;
  color: var(--moss);
  letter-spacing: .24em;
  font-size: .74rem;
  font-weight: 500;
}
.gal-counter {
  font-family: Poppins, sans-serif;
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--sage);
}

.gal-headline {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.1rem, 3.4vw, 3.3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1.2rem;
  min-height: 2.3em;
  max-width: 100%;
  transition: opacity .35s ease, transform .35s ease;
}

.gal-lead-p {
  font-size: .95rem;
  line-height: 1.8;
  color: #4a5540;
  margin-bottom: 2.2rem;
  max-width: min(44ch, 100%);
  min-height: 3.6em;
  transition: opacity .35s ease, transform .35s ease;
}

/* Villa highlight badge (matching the author card in image.png) */
.gal-villa-badge {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding: .65rem 1.1rem .65rem .65rem;
  background: #fff;
  border-radius: 99px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(47, 53, 41, 0.06);
  cursor: default;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  margin-bottom: 2.8rem;
  width: fit-content;
  max-width: 100%;
}
.gal-villa-badge:hover {
  transform: none;
  box-shadow: 0 4px 18px rgba(47, 53, 41, 0.06);
  border-color: var(--line);
}
.gal-badge-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--mist);
  border: 1.5px solid rgba(47, 53, 41, 0.1);
}
.gal-badge-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gal-badge-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.gal-badge-info strong {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.gal-badge-info span {
  font-size: .74rem;
  color: var(--moss);
  letter-spacing: .02em;
}

/* Navigation row (Prev, segmented dash bars, Next) */
.gal-nav-row {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  width: 100%;
}
.gal-nav-btn {
  background: none;
  border: none;
  font-family: Poppins, sans-serif;
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--ink);
  padding: .4rem .2rem;
  cursor: pointer;
  transition: color .2s, transform .2s, opacity .2s;
  opacity: .85;
}
.gal-nav-btn:hover {
  color: var(--moss);
  opacity: 1;
  transform: translateY(-1px);
}
.gal-nav-btn:active {
  transform: translateY(1px);
}

.gal-segments {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 20px;
  cursor: pointer;
}
.gal-segment {
  position: relative;
  flex: 1;
  height: 3px;
  background: rgba(47, 53, 41, 0.16);
  border-radius: 99px;
  overflow: hidden;
  transition: background .25s, height .2s;
}
.gal-segment:hover {
  background: rgba(47, 53, 41, 0.32);
  height: 4px;
}
.gal-segment-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--ink);
  border-radius: 99px;
  transition: width linear;
}
.gal-segment.active .gal-segment-fill {
  background: var(--ink);
}
.gal-segment.completed .gal-segment-fill {
  width: 100%;
  background: rgba(47, 53, 41, 0.45);
}

/* ── Right side: Animated carousel stage (inspired by image.png) ── */
.gal-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 540px;
  height: clamp(480px, 60vh, 600px);
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

/* Stage viewport & track */
.gal-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  user-select: none;
  cursor: grab;
}
.gal-viewport:active {
  cursor: grabbing;
}

.gal-cards-track {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 22px);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform .68s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.gal-cards-track.is-resetting,
.gal-cards-track.is-resetting .gal-card {
  transition: none !important;
}

/* Individual card */
.gal-card {
  position: relative;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--mist);
  transition:
    transform .68s cubic-bezier(.22, 1, .36, 1),
    width .68s cubic-bezier(.22, 1, .36, 1),
    height .68s cubic-bezier(.22, 1, .36, 1),
    opacity .55s ease,
    box-shadow .55s ease,
    border .3s ease;
  will-change: transform, opacity, width, height;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(47, 53, 41, 0.08);
}
.gal-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .68s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.gal-card:not(.is-active):hover {
  transform: scale(1.03) translateY(-4px);
  opacity: 1 !important;
  box-shadow: 0 18px 40px rgba(47, 53, 41, 0.16);
}

/* Active card — framed, forward, prominent */
.gal-card.is-active {
  width: clamp(290px, 28vw, 380px);
  height: clamp(410px, 52vh, 520px);
  border: 7px solid #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(47, 53, 41, 0.18), 0 4px 16px rgba(0, 0, 0, 0.06);
  opacity: 1;
  z-index: 10;
  cursor: default;
}
.gal-card.is-active img {
  transform: scale(1);
}

/* Trailing perspective cards */
.gal-card.is-next-1 {
  width: clamp(230px, 21vw, 290px);
  height: clamp(350px, 45vh, 460px);
  opacity: 0.94;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(47, 53, 41, 0.1);
  z-index: 8;
}
.gal-card.is-next-2 {
  width: clamp(200px, 18vw, 250px);
  height: clamp(310px, 40vh, 410px);
  opacity: 0.82;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(47, 53, 41, 0.08);
  z-index: 6;
}
.gal-card.is-next-3 {
  width: clamp(170px, 15vw, 220px);
  height: clamp(280px, 35vh, 370px);
  opacity: 0.62;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(47, 53, 41, 0.06);
  z-index: 4;
}
.gal-card.is-next-4 {
  width: clamp(150px, 13vw, 190px);
  height: clamp(250px, 31vh, 330px);
  opacity: 0.38;
  border-radius: 14px;
  z-index: 2;
}
.gal-card.is-far {
  width: clamp(140px, 12vw, 170px);
  height: clamp(230px, 28vh, 300px);
  opacity: 0;
  pointer-events: none;
}

/* ── LIGHTBOX (MAXIMIZED FULL SIZE VIEW) ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 12, 8, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
#lightbox.open {
  display: flex;
}

.lb-img-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: min(94vw, 1400px);
  max-height: 90vh;
  gap: .8rem;
}
#lbImg {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.85);
  user-select: none;
  display: block;
}

.lb-caption-wrap {
  text-align: center;
  color: #fff;
  padding: .4rem 1rem;
}
.lb-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 300;
  color: #fff;
  line-height: 1.2;
}
.lb-sub {
  font-size: .78rem;
  letter-spacing: .08em;
  color: rgba(238, 240, 232, 0.7);
  font-family: Poppins, sans-serif;
  margin-top: .2rem;
}

.lb-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .25s;
  z-index: 20;
}
.lb-close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(90deg) scale(1.06);
}

.lb-arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  transition: background .2s, transform .2s;
  cursor: pointer;
}
.lb-arr:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.08);
}
.lb-arr:active {
  transform: translateY(-50%) scale(0.95);
}
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }

.lb-counter {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .75rem;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, 0.45);
  font-family: Poppins, sans-serif;
}

/* ── FUNCTION HALL — MAXIMIZED IMAGES ─────────────────────── */
.hall {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6vw;
  padding: 12vh 6vw;
  align-items: center;
  background: var(--cream);
}
.hall-badge {
  display: inline-block;
  background: var(--oak);
  color: #fff;
  font: 500 .78rem Poppins, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .45em 1.3em;
  border-radius: 99px;
  margin-bottom: 1.2rem;
}
.hall-copy h2 { margin-bottom: 1rem; }
.hall-copy p  { max-width: 48ch; color: #4a5540; margin-bottom: 1rem; font-size: 1rem; }
.hall-copy ul {
  display: grid;
  gap: .6rem;
  margin-bottom: 2rem;
}
.hall-copy ul li {
  font-size: .9rem;
  padding-left: 1.4rem;
  position: relative;
}
.hall-copy ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--moss);
  font-weight: 600;
}
.hall-stats {
  display: flex;
  gap: 2.5rem;
  margin: 1.5rem 0 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hall-stat b {
  font: 300 2.8rem "Cormorant Garamond", serif;
  color: var(--oak);
  display: block;
  line-height: 1;
}
.hall-stat span { font-size: .78rem; color: var(--moss); letter-spacing: .06em; }

/* Maximized photo layout for Function Hall */
.hall-photos {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: minmax(260px, 300px) minmax(260px, 300px);
  gap: 1rem;
}
.hall-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(47, 53, 41, 0.12);
  cursor: zoom-in;
  background: var(--mist);
  transition: transform .45s var(--ease), box-shadow .45s ease;
}
.hall-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.hall-img-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(47, 53, 41, 0.2);
}
.hall-img-wrap:hover img {
  transform: scale(1.05);
}
.hall-img-tall {
  grid-row: 1 / 3;
  height: 100%;
}
.hall-zoom-hint {
  position: absolute;
  bottom: .9rem;
  right: .9rem;
  background: rgba(47, 53, 41, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .72rem;
  letter-spacing: .08em;
  padding: .35em .8em;
  border-radius: 99px;
  opacity: 0;
  transform: translateY(6px);
  transition: all .25s ease;
  pointer-events: none;
}
.hall-img-wrap:hover .hall-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

/* ── RATES ───────────────────────────────────────────────── */
.rates-section {
  padding: 10vh 5vw;
  background: linear-gradient(135deg, var(--moss) 0%, #3f4f30 100%);
  color: #fff;
}
.rates-section .section-label { color: rgba(255,255,255,.65); }
.rates-section h2 { color: #fff; margin-bottom: 2.5rem; }
.rate-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.rate-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  transition: background .3s, transform .3s;
}
.rate-card:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-4px);
}
.rc-label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; opacity: .65; }
.rc-title { font: 300 1.7rem "Cormorant Garamond", serif; }
.rc-price { font: 600 2.2rem Poppins, sans-serif; color: #f5d9a8; line-height: 1; margin-top: .5rem; }
.rc-unit  { font-size: .78rem; opacity: .7; margin-bottom: .3rem; }
.rc-pax   { font-size: .82rem; opacity: .65; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.12); margin-top: .5rem; }
.rates-note {
  margin-top: 2rem;
  font-size: .82rem;
  opacity: .6;
}

/* ── BOOKING ─────────────────────────────────────────────── */
.book {
  padding: 10vh 6vw;
  background: #fff;
}
.book h2 { margin-bottom: .4rem; }
.book > p { color: var(--moss); font-size: .95rem; margin-bottom: 2rem; }
.book-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 6vw;
  align-items: start;
}
.book-form-col form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--ink);
}
label.full { grid-column: 1 / -1; }
input, select, textarea {
  font: 300 .95rem Poppins, sans-serif;
  padding: .8em 1em;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--mist);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(91,106,74,.12);
  background: #fff;
}
textarea { resize: vertical; min-height: 80px; }
.form-submit { grid-column: 1/-1; }
.msg { margin-top: 1rem; min-height: 1.4em; font-size: .9rem; }
.msg-ok { color: var(--moss); font-weight: 500; }

.book-info-col {
  padding: 2rem;
  background: var(--mist);
  border-radius: 16px;
  border: 1px solid var(--line);
}
.book-info-col h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.book-info-col ul {
  display: grid;
  gap: .6rem;
}
.book-info-col ul li {
  font-size: .88rem;
  padding-left: 1.2rem;
  position: relative;
  color: #4a5540;
}
.book-info-col ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--sage);
}

/* ── DIRECTIONS ──────────────────────────────────────────── */
.directions {
  padding: 10vh 5vw;
  background: var(--mist);
}
.directions h2 { margin-bottom: .4rem; }
.dir-address {
  font-size: .95rem;
  color: var(--moss);
  margin-bottom: 1.5rem;
}
.dir-guide {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: var(--cream);
  box-shadow: 0 8px 28px rgba(47,53,41,.07);
}
.dir-guide-frame {
  display: block;
  width: 100%;
  min-height: 760px;
  height: 900px;
  border: 0;
}
.dir-cta-card {
  border-radius: 14px;
  background: var(--ink);
  color: var(--mist);
  margin-top: 1.5rem;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.dir-cta-card h4 { font-size: 1.4rem; color: #fff; flex: 0 0 auto; }
.dir-cta-card p { font-size: .88rem; opacity: .75; }

/* ── RULES ───────────────────────────────────────────────── */
.rules-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 6vw;
  padding: 12vh 6vw;
  align-items: center;
  background: var(--ink);
  color: var(--mist);
}
.rules-section .section-label { color: var(--sage); }
.rules-col h2 { color: #fff; margin-bottom: 1.5rem; }
.rules-list { display: grid; gap: .75rem; }
.rules-list li {
  font-size: .9rem;
  padding-left: 1.6rem;
  position: relative;
  opacity: .88;
  line-height: 1.6;
}
.rules-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--sage);
}
.rules-img-wrap {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.rules-img-wrap img { width: 100%; display: block; }

/* ── PHOTO SHOOTS ────────────────────────────────────────── */
.shoots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  padding: 12vh 6vw;
  align-items: center;
  background: var(--sage);
}
.shoots-copy .section-label { color: rgba(47,53,41,.6); }
.shoots-copy h2 { margin-bottom: 1rem; }
.shoots-copy p { max-width: 48ch; margin-bottom: 1.5rem; }
.shoot-rates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.shoot-rate {
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 1.2rem 1rem;
}
.shoot-rate span { display: block; font-size: .8rem; margin-bottom: .2rem; }
.shoot-rate b {
  font: 300 2rem "Cormorant Garamond", serif;
  display: block;
  line-height: 1.1;
}
.shoot-rate small { font-size: .78rem; display: block; margin-top: .4rem; opacity: .75; }
.shoots-img {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.shoots-img img { width: 100%; display: block; }
.note { font-size: .82rem; opacity: .75; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: var(--mist);
  padding: 8vh 5vw 4vh;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 4vw;
  padding-bottom: 4vh;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .brand { font-size: 2.4rem; display: block; margin-bottom: .5rem; }
.footer-brand p { font-size: .88rem; opacity: .6; max-width: 30ch; }
.footer-col h5 {
  font: 500 .72rem Poppins, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: .5rem; }
.footer-col ul li { font-size: .88rem; opacity: .75; }
.footer-col a:hover { opacity: 1; color: var(--sage); }
.footer-bottom {
  margin-top: 3vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  opacity: .45;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ── VILLA OVERLAY ───────────────────────────────────────── */
#villaOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  --accent: var(--oak);
}
#villaOverlay.open { display: flex; }

.vo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,12,8,.6);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.vo-panel {
  position: relative;
  margin-left: auto;
  width: min(860px, 95vw);
  height: 100dvh;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -20px 0 80px rgba(0,0,0,.3);
}

.vo-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 10;
  width: 42px; height: 42px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
  font-size: 1.1rem;
  color: var(--ink);
}
.vo-close:hover { background: #fff; transform: scale(1.08) rotate(90deg); }

/* Carousel */
.vo-carousel-wrap {
  position: relative;
  flex-shrink: 0;
  height: 42%;
  min-height: 260px;
  overflow: hidden;
  background: var(--ink);
}
.vo-track {
  width: 100%;
  height: 100%;
  position: relative;
}
.vo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.vo-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.vo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vo-slide-nav {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.vo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  transition: background .2s, transform .2s;
}
.vo-dot.active { background: #fff; transform: scale(1.3); }
.vo-arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px; height: 42px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.vo-arr:hover { background: rgba(255,255,255,.35); }
#voPrev { left: 1rem; }
#voNext { right: 1rem; }
.vo-slide-count {
  position: absolute;
  bottom: 1rem;
  right: 1.2rem;
  z-index: 2;
  font-size: .72rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .08em;
}

/* Overlay scrollable content */
.vo-content {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.vo-content::-webkit-scrollbar { width: 4px; }
.vo-content::-webkit-scrollbar-track { background: transparent; }
.vo-content::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

.vo-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.8rem 2rem 1rem;
}
/* NOTE: .vo-animate initial opacity is set by JS (GSAP fromTo), not CSS.
   Having opacity:0 here fights with clearProps and breaks content visibility. */
#voTag {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: .3rem;
}
#voName {
  font-size: 2.4rem;
  line-height: 1;
  color: var(--ink);
}
#voPax { font-size: .82rem; color: var(--moss); margin-top: .3rem; }
.vo-price-col { text-align: right; }
#voPrice {
  font: 300 2rem "Cormorant Garamond", serif;
  color: var(--accent);
  display: block;
}
#voUnit { font-size: .75rem; color: var(--moss); display: block; margin-bottom: .6rem; }
#voDesc {
  padding: 0 2rem 1.2rem;
  font-size: .95rem;
  color: #4a5540;
  max-width: 68ch;
  line-height: 1.8;
}

/* Overlay tabs */
.vo-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 0 2rem;
  gap: .2rem;
  position: sticky;
  top: 0;
  background: var(--cream);
  z-index: 5;
}
.vo-tab {
  background: none;
  border: none;
  color: var(--ink);
  font: 400 .82rem Poppins, sans-serif;
  padding: .9em 1.2em;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  letter-spacing: .05em;
  opacity: .6;
}
.vo-tab:hover { opacity: 1; }
.vo-tab.on {
  color: var(--accent);
  border-bottom-color: var(--accent);
  opacity: 1;
  font-weight: 500;
}

/* Tab panels */
.vo-tab-panel { padding: 1.5rem 2rem 2rem; }
.vo-tab-panel.hidden { display: none; }

/* Gallery tab */
.vo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .6rem;
}
.vg-item {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
}
.vg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s, opacity .25s;
}
.vg-item:hover img { transform: scale(1.06); opacity: .9; }

/* Amenities tab */
#voAmenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}
#voAmenities li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .88rem;
  color: #4a5540;
  padding: .6rem .8rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.amen-icon { color: var(--accent); font-size: .75rem; flex-shrink: 0; margin-top: .15rem; }

/* Rules tab */
.vo-rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.vo-rules-grid h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: .5rem;
}
.v-rules-list { display: grid; gap: .6rem; }
.v-rules-list li {
  font-size: .85rem;
  color: #4a5540;
  padding: .5rem .8rem .5rem 1.4rem;
  position: relative;
  background: #fff;
  border-radius: 7px;
  border-left: 2px solid var(--line);
  line-height: 1.5;
}
.v-rules-list li::before {
  content: '→';
  position: absolute;
  left: .5rem;
  color: var(--accent);
  font-size: .8rem;
}

/* Calendar tab */
.vo-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.vo-cal-nav button {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--mist);
  border: 1.5px solid var(--line);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.vo-cal-nav button:hover { background: var(--sage); border-color: var(--sage); color: #fff; }
#calMonthLabel {
  font: 300 1.3rem "Cormorant Garamond", serif;
  letter-spacing: .06em;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .4rem;
}
.cal-day-head {
  text-align: center;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage);
  padding-bottom: .4rem;
}
.cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  border-radius: 8px;
  transition: transform .15s;
  font-weight: 400;
}
.cal-cell.empty  { background: none; }
.cal-cell.past   { color: var(--line); background: rgba(201,207,189,.15); }
.cal-cell.free   { background: rgba(91,106,74,.12); color: var(--moss); font-weight: 500; }
.cal-cell.free:hover { transform: scale(1.1); background: rgba(91,106,74,.22); }
.cal-cell.booked { background: rgba(185,120,58,.15); color: #9a4a1a; text-decoration: line-through; }
.cal-cell.today  { box-shadow: inset 0 0 0 2px var(--accent); font-weight: 600; }
.cal-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.leg {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: #4a5540;
}
.leg::before {
  content: '';
  display: block;
  width: 14px; height: 14px;
  border-radius: 4px;
}
.leg.available::before { background: rgba(91,106,74,.2); }
.leg.booked::before    { background: rgba(185,120,58,.2); }
.leg.past::before      { background: rgba(201,207,189,.35); }
#voCalendar[aria-busy="true"],#voCalendar.availability-load-error{min-height:130px;display:grid;place-items:center;padding:22px;text-align:center;color:var(--moss);font-size:.9rem;line-height:1.6}
#voCalendar.availability-load-error{border:1px solid var(--line);border-radius:10px;background:var(--cream);color:#7d493c}

/* ═══════════════════════════════════════════════════════════
   PERFORMANCE — GPU compositing, containment, tier overrides
   ═══════════════════════════════════════════════════════════ */

/* ── GPU layer promotion for critical animated elements ──── */
.hero-bg {
  /* Force composited layer — avoids layout during parallax */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;   /* permanent: hero is always visible */
}
.vo-panel {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ── Paint containment — isolate repaint to card boundaries  */
.card, .rate-card {
  contain: layout paint style;
}

/* ── Content-visibility: skip rendering off-screen sections  */
/* Only on sections that are definitely below the fold        */
.hall, .rates-section, .book, .directions,
.rules-section, .shoots, footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}
/* gallery and villas scroll-revealed — don't skip them       */
.gallery-section {
  content-visibility: auto;
  contain-intrinsic-size: 0 900px;
}

/* ── IO Reveal: CSS-only transitions for Tier 1 ─────────── */
.io-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.io-reveal.io-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger siblings via nth-child so it feels natural */
.io-reveal:nth-child(2) { transition-delay: 0.06s; }
.io-reveal:nth-child(3) { transition-delay: 0.12s; }
.io-reveal:nth-child(4) { transition-delay: 0.18s; }
.io-reveal:nth-child(5) { transition-delay: 0.24s; }
.io-reveal:nth-child(n+6) { transition-delay: 0.28s; }

/* CSS-only hero fade for Tier 1 */
.anim-fadein {
  animation: fadein 0.7s ease both;
}
.hero-sub.anim-fadein  { animation-delay: 0.3s; }
.hero-lead.anim-fadein { animation-delay: 0.5s; }
.hero-cta.anim-fadein  { animation-delay: 0.7s; }
@keyframes fadein {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Tier 0 (prefers-reduced-motion): show everything ────── */
[data-perf="0"] .io-reveal,
[data-perf="0"] .vo-animate {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* ── Tier 1: disable expensive CSS effects ──────────────── */
[data-perf="1"] .nav.solid        { backdrop-filter: none; }
[data-perf="1"] .vo-backdrop      { backdrop-filter: none; }
[data-perf="1"] .rate-card        { backdrop-filter: none; }
[data-perf="1"] .btn-ghost        { backdrop-filter: none; }
[data-perf="1"] .card-badge       { backdrop-filter: none; }
[data-perf="1"] .vo-arr           { backdrop-filter: none; }
[data-perf="1"] *, [data-perf="1"] *::before, [data-perf="1"] *::after {
  scroll-behavior: auto;
}
[data-perf="1"] .gal-cards-track,
[data-perf="1"] .gal-card,
[data-perf="1"] .gal-card img { transition-duration: .3s; }
[data-perf="2"] .gal-cards-track,
[data-perf="2"] .gal-card,
[data-perf="2"] .gal-card img { transition-duration: .45s; }
[data-perf="3"] .gal-cards-track,
[data-perf="3"] .gal-card,
[data-perf="3"] .gal-card img { transition-duration: .65s; }
[data-perf="1"] .hall-img-wrap img { transition: none; }

/* ── Tier 2: disable parallax-related will-change on hero   */
[data-perf="2"] .hero-bg { will-change: auto; }

/* ════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile-first, covering:
   • Foldable closed  ~280px
   • Foldable open / small phone ~360-414px
   • Large phone      ~430-480px
   • Tablet portrait  ~600-768px
   • Tablet landscape ~900-1024px
   • Laptop           ~1280px
   • Desktop          ~1440px+
   ═══════════════════════════════════════════════════════════ */

/* ── NAV: hide desktop links at ≤860, show hamburger ──────── */
@media (max-width: 860px) {
  .nav { padding: .8rem 4vw; }
  .nav .btn.sm { display: none; }   /* hide "Check dates" pill */
  .hamburger { display: flex; }

  #mainNav {
    position: fixed;
    inset: 0;
    background: rgba(47,53,41,.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    font-size: 1.1rem;
    display: none;
    z-index: 190;
  }
  #mainNav.open { display: flex; }
  #mainNav a { font-size: 1.3rem; }
}

/* ── HERO: safe bottom padding so text never hides behind corners */
@media (max-width: 860px) {
  .hero-text { padding: 0 5vw 8vh; }
  .hero-sub   { letter-spacing: .18em; font-size: .72rem; }
  .hero-lead  { font-size: .95rem; max-width: 38ch; }
  .hero-scroll { display: none; }
}

/* ── STORY ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .story {
    grid-template-columns: 1fr;
    padding: 8vh 5vw 6vh;
    gap: 3rem;
  }
}
@media (max-width: 480px) {
  .story { padding: 6vh 5vw; gap: 2rem; }
  .facts li { flex-direction: column; gap: .3rem; }
  .facts li b { min-width: auto; }
}

/* ── VILLAS GRID ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .villas { padding: 6vh 4vw; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .filters { gap: .4rem; }
  .filters button { padding: .4em 1em; font-size: .75rem; }
}

/* ── GALLERY ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .gal-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .gal-info-col {
    max-width: 650px;
  }
  .gal-headline {
    min-height: auto;
  }
  .gal-lead-p {
    min-height: auto;
    margin-bottom: 1.6rem;
  }
  .gal-villa-badge {
    margin-bottom: 2rem;
  }
  .gal-stage {
    min-height: 480px;
    height: 500px;
  }
}
@media (max-width: 600px) {
  .gallery-section {
    padding: 4rem 1.2rem;
  }
  .gal-stage {
    min-height: 420px;
    height: 440px;
  }
  .gal-card.is-active {
    width: 270px;
    height: 380px;
    border-width: 5px;
  }
  .gal-card.is-next-1 {
    width: 210px;
    height: 330px;
  }
  .gal-card.is-next-2 {
    width: 170px;
    height: 290px;
  }
  .gal-nav-row {
    gap: .8rem;
  }
  .gal-nav-btn {
    font-size: .78rem;
  }
  .lb-arr {
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
  }
  .lb-prev { left: .5rem; }
  .lb-next { right: .5rem; }
}

/* ── FUNCTION HALL ───────────────────────────────────────── */
@media (max-width: 900px) {
  .hall {
    grid-template-columns: 1fr;
    padding: 8vh 5vw;
    gap: 3rem;
  }
  .hall-photos {
    order: -1;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 240px;
    min-height: 480px;
  }
  .hall-img-tall {
    grid-row: auto;
    height: 100%;
    min-height: 240px;
  }
}
@media (max-width: 480px) {
  .hall {
    padding: 6vh 4vw;
    gap: 2rem;
  }
  .hall-photos {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: .8rem;
    min-height: auto;
  }
  .hall-photos .hall-img-wrap {
    height: 220px;
  }
  .hall-stats { gap: 1.5rem; }
}

/* ── RATES ───────────────────────────────────────────────── */
@media (max-width: 860px) {
  .rate-cards { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (max-width: 480px) {
  .rate-cards { grid-template-columns: 1fr; gap: .9rem; }
  .rates-section { padding: 6vh 4vw; }
  .rate-card { padding: 1.4rem 1.2rem; }
  .rc-price { font-size: 1.8rem; }
}

/* ── BOOKING ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .book-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 480px) {
  .book { padding: 6vh 4vw; }
  .book-form-col form { grid-template-columns: 1fr; }
  .book-info-col { padding: 1.4rem 1.2rem; }
}

/* ── DIRECTIONS ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .dir-cta-card { flex-wrap: wrap; gap: .75rem 1.5rem; }
}
@media (max-width: 480px) {
  .directions { padding: 6vh 4vw; }
  .dir-guide { border-radius: 12px; }
  .dir-guide-frame { min-height: 900px; height: 1020px; }
  .dir-cta-card { align-items: flex-start; flex-direction: column; padding: 1.5rem; }
}

/* ── HOUSE RULES ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .rules-section {
    grid-template-columns: 1fr;
    padding: 8vh 5vw;
    gap: 3rem;
  }
  .rules-img-wrap { order: -1; }
}
@media (max-width: 480px) {
  .rules-section { padding: 6vh 4vw; }
}

/* ── PHOTO SHOOTS ────────────────────────────────────────── */
@media (max-width: 860px) {
  .shoots {
    grid-template-columns: 1fr;
    padding: 8vh 5vw;
    gap: 3rem;
  }
}
@media (max-width: 480px) {
  .shoots { padding: 6vh 4vw; gap: 2rem; }
  .shoot-rates { grid-template-columns: 1fr; }
}

/* ── FOOTER ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 3vw; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: .4rem; }
}

/* ── VILLA OVERLAY ───────────────────────────────────────── */
@media (max-width: 860px) {
  .vo-panel { width: 100vw; }
}
@media (max-width: 480px) {
  .vo-carousel-wrap { height: 36%; min-height: 220px; }
  .vo-header { padding: 1rem 1rem .6rem; flex-direction: column; }
  .vo-price-col { text-align: left; }
  #voName { font-size: 1.9rem; }
  #voPrice { font-size: 1.6rem; }
  #voDesc { padding: 0 1rem .8rem; font-size: .88rem; }
  .vo-tabs { padding: 0 .5rem; overflow-x: auto; gap: 0; }
  .vo-tab { padding: .75em .9em; font-size: .78rem; white-space: nowrap; }
  .vo-tab-panel { padding: 1rem 1rem 2rem; }
  .vo-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: .4rem; }
  #voAmenities { grid-template-columns: 1fr; }
  .vo-rules-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ── FOLDABLE / TINY (≤360px) ──────────────────────────────── */
@media (max-width: 360px) {
  html { font-size: 15px; }
  .hero-text { padding: 0 4vw 7vh; }
  .hero-lead { display: none; }   /* too cramped — hide on tiny fold */
  .btn { padding: .65em 1.4em; font-size: .78rem; }
  .rate-cards { grid-template-columns: 1fr; }
  .hall-photos { grid-template-columns: 1fr; }
  .hall-photos img { height: 180px; }
}

/* ── ULTRA-TINY FOLD CLOSED (≤280px) ───────────────────────── */
@media (max-width: 280px) {
  html { font-size: 13px; }
  .nav { padding: .7rem 3vw; }
  .brand { font-size: 1.5rem; }
  .hero-text { padding: 0 3vw 6vh; }
  .hero-sub { letter-spacing: .1em; }
  .villas, .gallery-section, .book, .directions,
  .rules-section, .shoots, .rates-section, .hall {
    padding: 5vh 3vw;
  }
}

/* ── LARGE DESKTOP (≥1440px) ────────────────────────────────── */
@media (min-width: 1440px) {
  .hero-text { max-width: 1100px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .masonry { columns: 5 220px; }
  .rate-cards { grid-template-columns: repeat(5, 1fr); }
}

/* ── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Compact responsive layouts for the public page. */
footer {
  padding: 2.25rem 5vw 1.25rem;
}
.footer-inner {
  gap: 2rem;
  padding-bottom: 1.25rem;
}
.footer-brand .brand { font-size: 2rem; margin-bottom: .25rem; }
.footer-col h5 { margin-bottom: .55rem; }
.footer-col ul { gap: .25rem; }
.footer-col ul li, .footer-brand p { font-size: .8rem; }
.footer-bottom { margin-top: 1rem; font-size: .7rem; }

@media (max-width: 900px) {
  .hall-copy { order: 0; }
  .hall-photos { order: 1; }
}

@media (max-width: 600px) {
  .gallery-section { padding: 1.5rem 1rem 1.75rem; }
  .gal-container { gap: .65rem; }
  .gal-info-col { max-width: none; }
  .gal-meta-header { margin-bottom: .55rem; padding-bottom: .35rem; }
  .gal-counter { display: none; }
  .gal-headline {
    font-size: clamp(1.7rem, 8vw, 2.25rem);
    line-height: 1.02;
    margin-bottom: .35rem;
  }
  .gal-lead-p {
    font-size: .78rem;
    line-height: 1.45;
    margin-bottom: .55rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .gal-villa-badge { margin: 0; padding: .35rem .7rem .35rem .4rem; gap: .55rem; }
  .gal-badge-thumb { width: 32px; height: 32px; }
  .gal-badge-info strong { font-size: .76rem; }
  .gal-badge-info span { font-size: .65rem; }
  .gal-stage { height: clamp(205px, 34vh, 270px); min-height: 205px; }
  .gal-card.is-active { width: min(57vw, 220px); height: clamp(190px, 32vh, 250px); border-width: 4px; }
  .gal-card.is-next-1 { width: min(42vw, 165px); height: clamp(165px, 27vh, 220px); }
  .gal-card.is-next-2 { width: min(32vw, 125px); height: clamp(145px, 23vh, 190px); }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: 1rem; }
  .villas { padding: 3rem 4vw; }
  .card { border-radius: 12px; }
  .card-img-wrap { aspect-ratio: 4 / 3; margin: .45rem .45rem 0; }
  .card-body { padding: .65rem .7rem .75rem; gap: .2rem; }
  .card-name { font-size: 1.25rem; }
  .card-price { font-size: 1.1rem; }
  .card-tag, .card-pax { font-size: .68rem; }
  .card-cta { gap: .35rem; padding-top: .45rem; }
  .card-cta .btn { padding: .55em .8em; font-size: .68rem; }

  .hall { gap: 1.25rem; padding: 3rem 4vw; }
  .hall-copy { order: 0; }
  .hall-photos { order: 1; grid-template-columns: 1fr 1fr; grid-template-rows: 145px 145px; gap: .55rem; min-height: 0; }
  .hall-photos .hall-img-wrap { height: auto; min-height: 0; }
  .hall-stats { margin: 1rem 0 1.25rem; padding-top: 1rem; gap: 1rem; }
  .hall-stat b { font-size: 2.1rem; }

  .rates-section { padding: 3rem 4vw; }
  .rates-section h2 { margin-bottom: 1.25rem; }
  .rate-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .rate-card { padding: .85rem .75rem; border-radius: 12px; gap: .2rem; }
  .rc-label { font-size: .58rem; letter-spacing: .1em; }
  .rc-title { font-size: 1.25rem; }
  .rc-price { font-size: 1.4rem; margin-top: .2rem; }
  .rc-unit, .rc-pax { font-size: .66rem; }
  .rc-pax { padding-top: .45rem; margin-top: .25rem; }
  .rates-note { margin-top: .85rem; font-size: .72rem; }

  .directions { padding: 3rem 4vw; }
  .dir-address { font-size: .8rem; margin-bottom: .8rem; }
  .dir-guide-frame { height: 720px; min-height: 0; }
  .dir-cta-card { gap: .6rem; margin-top: .85rem; padding: 1rem; }
  .dir-cta-card h4 { font-size: 1.15rem; }
  .dir-cta-card p { font-size: .8rem; }

  footer { padding: 1.5rem 5vw .85rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: .9rem; padding-bottom: .9rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand .brand { font-size: 1.65rem; }
  .footer-brand p, .footer-col ul li { font-size: .7rem; }
  .footer-col h5 { font-size: .62rem; letter-spacing: .12em; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .15rem; text-align: left; font-size: .62rem; }
}

@media (max-width: 360px) {
  .grid { grid-template-columns: 1fr; }
  .card-img-wrap { aspect-ratio: 16 / 9; }
  .rate-cards { grid-template-columns: 1fr 1fr; }
  .hall-photos { grid-template-columns: 1fr; grid-template-rows: repeat(3, 150px); }
  .dir-guide-frame { height: 760px; }
}

@media (max-width: 600px) {
  .story { padding: 2.5rem 4vw; gap: 1rem; }
  .story-col-left h2 { font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.02; margin: .25rem 0 0; }
  .story-col-left p { font-size: .82rem; line-height: 1.55; margin-top: .7rem; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: 0; }
  .facts li {
    flex-direction: row;
    align-items: flex-start;
    gap: .5rem;
    padding: .65rem .6rem;
    border-radius: 9px;
    font-size: .69rem;
    line-height: 1.4;
  }
  .facts li b { min-width: 1.15rem; font-size: 1.2rem; }
}

@media (max-width: 340px) {
  .story { padding-inline: 3vw; }
  .facts { gap: .35rem; }
  .facts li { padding: .5rem .45rem; font-size: .64rem; }
}

/* One viewport per public section, with a gentle native snap between them. */
html { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
body > section {
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.hero { height: 100svh; min-height: 100svh; }
.story { padding: clamp(4rem, 8vh, 6rem) 6vw; gap: clamp(2rem, 5vw, 5rem); }
.story-col-left h2 { font-size: clamp(2.8rem, 5vw, 4.2rem); }
.facts { gap: .7rem; margin-top: 0; }
.facts li { padding: .75rem .9rem; font-size: .82rem; }
.villas { display: flex; flex-direction: column; justify-content: center; padding: 5rem 5vw; }
.grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; margin-top: 1.2rem; }
.card { border-radius: 12px; }
.card-img-wrap { aspect-ratio: 16 / 10; margin: .5rem .5rem 0; }
.card-body { padding: .65rem .7rem .75rem; gap: .18rem; }
.card-name { font-size: clamp(1.25rem, 1.7vw, 1.65rem); }
.card-pax, .card-tag { font-size: .68rem; }
.card-price { font-size: 1.08rem; }
.card-cta { gap: .3rem; padding-top: .4rem; }
.card-cta .btn { padding: .55em .7em; font-size: .66rem; }
.gallery-section { min-height: 100svh; display: flex; align-items: center; padding: 5rem 5vw; }
.gal-container { width: 100%; }
.gal-stage { height: min(62svh, 560px); min-height: 400px; }
.hall { min-height: 100svh; padding: 5rem 5vw; gap: 3vw; }
.hall-photos { grid-template-rows: minmax(190px, 26svh) minmax(190px, 26svh); gap: .7rem; }
.hall-copy h2 { font-size: clamp(2.5rem, 4.5vw, 3.7rem); }
.hall-copy p { font-size: .9rem; margin-bottom: .65rem; }
.hall-copy ul { gap: .35rem; margin-bottom: .8rem; }
.hall-copy ul li { font-size: .8rem; }
.hall-stats { margin: .75rem 0; padding-top: .75rem; gap: 1.5rem; }
.hall-stat b { font-size: 2.35rem; }
.rates-section, .book, .directions { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.rates-section { padding: 5rem 5vw; }
.rates-section h2 { margin-bottom: 1.35rem; }
.rate-cards { gap: .8rem; }
.rate-card { padding: 1.15rem 1.25rem; }
.rc-title { font-size: 1.45rem; }
.rc-price { font-size: 1.8rem; }
.rates-note { margin-top: 1rem; }
.book { padding: 5rem 5vw; }
.book > p { margin-bottom: 1.1rem; font-size: .84rem; }
.book-inner { gap: 2rem; }
.book-form-col form { gap: .65rem .8rem; }
.book-info-col { padding: 1.2rem 1.4rem; }
.book-info-col h4 { margin-bottom: .55rem; font-size: 1.1rem; }
.book-info-col ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem .8rem; }
.book-info-col ul li { font-size: .72rem; }
.directions { padding: 5rem 5vw; }
.dir-address { margin-bottom: .75rem; }
.dir-guide-frame { height: 660px; min-height: 0; }
.dir-cta-card { margin-top: .8rem; padding: .9rem 1.2rem; }
.rules-section { min-height: 100svh; padding: 5rem 5vw; gap: 4vw; }
.rules-list { gap: .45rem; }
.rules-list li { font-size: .8rem; }
.rules-img-wrap { max-height: 68svh; }
.rules-img-wrap img { width: 100%; height: 100%; max-height: 68svh; object-fit: contain; }
.shoots { min-height: 100svh; padding: 5rem 5vw; gap: 4vw; }
.shoots-copy p { margin-bottom: .8rem; }
.shoot-rates { gap: .65rem; margin-bottom: .8rem; }
.shoot-rate { padding: .8rem .85rem; }
.shoot-rate b { font-size: 1.7rem; }
.shoot-rate small { font-size: .7rem; }
.shoots-img { max-height: 62svh; }
.shoots-img img { width: 100%; height: 62svh; object-fit: cover; }
.grid:not(.rooms-ready) { visibility: hidden; }
.rate-card[hidden] { display: none; }

@media (min-width: 861px) and (max-width: 1200px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-cta { flex-wrap: wrap; }
  .gal-container { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 3vw; }
  .gal-stage { min-height: 350px; }
}

@media (max-width: 860px) {
  .villas { min-height: 100svh; padding: 4.5rem 4vw 2rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-top: .75rem; }
  .card-img-wrap { aspect-ratio: 16 / 9; }
  .card-body { padding: .5rem .55rem .6rem; }
  .card-name { font-size: 1.2rem; }
  .card-cta .btn { padding: .5em .55em; font-size: .62rem; }
  .story { padding: 3.5rem 5vw; gap: 1.1rem; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-section { padding: 1.5rem 1rem; }
  .gal-stage { height: clamp(205px, 32vh, 270px); min-height: 205px; }
  .hall { padding: 3.5rem 5vw 2rem; gap: .9rem; }
  .hall-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(95px, 16vh, 145px)); min-height: 0; }
  .hall-photos .hall-img-wrap { height: auto; min-height: 0; }
  .rates-section, .book, .directions { padding: 3.5rem 5vw 2rem; }
  .rate-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rate-card { padding: .8rem .7rem; }
  .book-inner { grid-template-columns: 1.2fr 1fr; gap: 1rem; }
  .book-form-col form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .book-info-col ul { grid-template-columns: 1fr; }
  .dir-guide-frame { height: 620px; }
  .rules-section, .shoots { padding: 3.5rem 5vw 2rem; gap: 1.5rem; }
}

@media (max-width: 600px) {
  html { scroll-snap-type: y mandatory; }
  body > section { min-height: 100svh; }
  .story { padding: 3.25rem 4vw 2rem; }
  .story-col-left h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .story-col-left p { font-size: .78rem; line-height: 1.45; margin-top: .55rem; }
  .facts li { padding: .5rem .45rem; font-size: .64rem; }
  .villas { padding: 4.4rem 4vw 1.25rem; justify-content: flex-start; }
  .villas .section-head { gap: .5rem; margin-bottom: .4rem; }
  .villas .section-head h2 { font-size: 2rem; }
  .filters { gap: .3rem; }
  .filters button { padding: .35em .7em; font-size: .65rem; }
  .grid { gap: .45rem; margin-top: .4rem; }
  .card-img-wrap { aspect-ratio: 16 / 9; margin: .35rem .35rem 0; }
  .card-badge { top: .45rem; left: .45rem; padding: .25em .55em; font-size: .56rem; }
  .card-meta { align-items: center; flex-direction: row; justify-content: space-between; }
  .card-price { font-size: .9rem; }
  .card-name { font-size: 1.08rem; }
  .card-tag { display: none; }
  .card-cta { flex-wrap: nowrap; }
  .card-cta .btn { padding: .45em .5em; font-size: .56rem; }
  .gallery-section { padding: 1rem .85rem; }
  .hall { padding: 3.5rem 4vw 1.5rem; }
  .hall-copy h2 { font-size: 2.2rem; margin-bottom: .4rem; }
  .hall-copy p { font-size: .78rem; line-height: 1.45; }
  .hall-copy ul li { font-size: .7rem; }
  .hall-photos { grid-template-rows: repeat(2, clamp(88px, 14vh, 120px)); }
  .hall-stats { margin: .5rem 0; padding-top: .5rem; }
  .hall-stat b { font-size: 1.8rem; }
  .rates-section, .book, .directions { padding: 3.5rem 4vw 1.5rem; }
  .rate-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
  .rate-card { padding: .65rem .55rem; }
  .rc-title { font-size: 1.1rem; }
  .rc-price { font-size: 1.25rem; }
  .book-inner { grid-template-columns: 1fr; gap: .75rem; }
  .book > p { font-size: .74rem; margin-bottom: .65rem; }
  .book-form-col form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem .5rem; }
  .book-form-col form label { font-size: .66rem; gap: .15rem; }
  .book-form-col form input, .book-form-col form select, .book-form-col form textarea { padding: .55em .65em; font-size: .75rem; }
  .book-form-col form label.full, .book-form-col form .form-submit { grid-column: 1 / -1; }
  .book-form-col form textarea { min-height: 44px; }
  .book-info-col { padding: .7rem .8rem; }
  .book-info-col ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-info-col ul li { font-size: .62rem; line-height: 1.3; }
  .dir-guide-frame { height: 540px; }
  .directions { padding: 3rem 4vw 1rem; }
  .directions h2 { font-size: 2.2rem; }
  .dir-cta-card { padding: .7rem; }
  .rules-section { grid-template-columns: 1fr; padding: 3.5rem 5vw 1.5rem; gap: .75rem; }
  .rules-col h2 { font-size: 2.2rem; margin-bottom: .7rem; }
  .rules-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem .5rem; }
  .rules-list li { font-size: .65rem; line-height: 1.35; padding-left: 1rem; }
  .rules-img-wrap { max-height: 23svh; }
  .rules-img-wrap img { max-height: 23svh; object-fit: contain; }
  .shoots { grid-template-columns: 1fr; padding: 3.5rem 5vw 1.5rem; gap: .7rem; }
  .shoots-copy h2 { font-size: 2.2rem; margin-bottom: .4rem; }
  .shoots-copy p { font-size: .74rem; line-height: 1.4; margin-bottom: .55rem; }
  .shoot-rates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin-bottom: .5rem; }
  .shoot-rate { padding: .55rem .6rem; }
  .shoot-rate span, .shoot-rate small { font-size: .62rem; }
  .shoot-rate b { font-size: 1.4rem; }
  .shoots-img, .shoots-img img { max-height: 25svh; height: 25svh; }
}

@media (max-width: 360px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-cta .btn { font-size: .52rem; padding-inline: .35em; }
  .dir-guide-frame { height: 560px; }
}

/* Give the accommodation cards more room while keeping their section to one viewport. */
.villas {
  justify-content: flex-start;
  padding: 5rem 5vw 1.5rem;
}
.villas .section-head {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: .35rem;
  text-align: center;
}
.villas .section-head h2 { font-size: clamp(2.25rem, 4vw, 3.35rem); }
.villas .filters { justify-content: center; }
.villas .grid {
  width: 100%;
  max-width: 1500px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin: .65rem auto 0;
}
.villas .card-img-wrap { aspect-ratio: 16 / 10; }
.villas .card-body { padding: .75rem .85rem .85rem; }
.villas .card-name { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.villas .card-cta .btn { font-size: .7rem; }

@media (max-width: 860px) {
  .villas { padding: 4.25rem 4vw 1.25rem; }
  .villas .section-head { gap: .4rem; }
  .villas .section-head h2 { font-size: 2.15rem; }
  .villas .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .villas .card-img-wrap { aspect-ratio: 4 / 3; }
  .villas .card-body { padding: .55rem .65rem .7rem; }
}

@media (max-width: 600px) {
  .villas { padding: 4rem 4vw .75rem; }
  .villas .section-head { align-items: center; text-align: center; }
  .villas .section-head h2 { font-size: 2rem; }
  .villas .filters { justify-content: center; }
  .villas .grid { gap: .5rem; margin-top: .4rem; }
  .villas .card-img-wrap { aspect-ratio: 4 / 3; }
  .villas .card-body { padding: .45rem .5rem .55rem; }
  .villas .card-name { font-size: 1.08rem; }
}

@media (max-height: 800px) and (min-width: 601px) {
  .villas { padding: 4rem 4vw .75rem; }
  .villas .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
  .villas .card-img-wrap { aspect-ratio: 16 / 10; }
  .villas .card-body { padding: .45rem .5rem .55rem; }
  .villas .card-cta { flex-wrap: wrap; }
}

@media (max-height: 800px) and (min-width: 1201px) {
  .villas .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-height: 800px) and (max-width: 600px) {
  .villas { padding-top: 3.5rem; }
  .villas .card-img-wrap { aspect-ratio: 16 / 9; }
}

/* Keep the section heading and filters side by side on wider screens. */
.villas .section-head {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
}
.villas .section-head h2 { text-align: left; }
.villas .filters { justify-content: flex-end; }
@media (max-width: 860px) {
  .villas .section-head {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .villas .filters { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .villas .section-head { align-items: flex-start; text-align: left; }
}

@media (min-width: 1201px) {
  .villas .grid {
    max-width: 1600px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-inline: auto;
  }
  .villas .grid[data-room-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .villas .card {
    height: clamp(330px, 64svh, 570px);
    min-height: 0;
  }
  .villas .card-img-wrap {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: auto;
    margin: .65rem .65rem 0;
  }
  .villas .card-body { flex: 0 0 auto; padding: .8rem .9rem 1rem; }
}

@media (min-width: 861px) and (max-width: 1200px) {
  .villas .card { height: clamp(250px, 34svh, 360px); min-height: 0; }
  .villas .card-img-wrap { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; }
  .villas .card-body { flex: 0 0 auto; }
}

@media (max-width: 860px) {
  .villas .card { height: auto; min-height: 0; }
  .villas .card-img-wrap { flex: 0 0 auto; }
}

/* Modern villa-first reservation flow */
.book { gap: .6rem; }
.booking-intro { display:flex; align-items:flex-end; justify-content:space-between; gap:1.5rem; margin-bottom:.25rem; }
.booking-intro h2 { margin:0; }
.booking-intro > p { max-width:42ch; margin:0 0 .35rem; color:var(--moss); font-size:.86rem; }
.booking-progress { display:flex; align-items:center; gap:.8rem; margin:.25rem 0 .8rem; color:#858c7d; }
.booking-progress > i { height:1px; flex:1; max-width:100px; background:var(--line); }
.booking-step { display:flex; align-items:center; gap:.5rem; font-size:.72rem; white-space:nowrap; }
.booking-step span { display:grid; width:25px; height:25px; place-items:center; border:1px solid var(--line); border-radius:50%; font-size:.68rem; }
.booking-step.is-current { color:var(--ink); }
.booking-step.is-current span,.booking-step.is-complete span { border-color:var(--moss); background:var(--moss); color:#fff; }
#bookForm { width:100%; }
.booking-trap { position:absolute!important; left:-10000px!important; width:1px!important; height:1px!important; overflow:hidden!important; }
.booking-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(245px,.75fr); gap:1.2rem; align-items:start; }
.booking-main-panel,.booking-summary-panel { min-width:0; border:1px solid #d7ddcf; border-radius:15px; background:#fff; box-shadow:0 10px 30px rgba(47,53,41,.05); }
.booking-main-panel { padding:1rem 1.15rem; }
.booking-villa-label { display:block; margin-bottom:.35rem; font-size:.78rem; font-weight:500; }
#villaSelect { width:100%; border:1px solid #bdc8b3; border-radius:9px; background:#f8f9f5; padding:.7rem .85rem; color:var(--ink); font:400 .88rem Poppins,sans-serif; }
#villaSelect:focus { outline:2px solid rgba(91,106,74,.25); border-color:var(--moss); }
.booking-calendar-panel,.booking-guest-panel { margin-top:.85rem; padding-top:.8rem; border-top:1px solid #e8ebe3; }
.booking-calendar-panel[hidden],.booking-guest-panel[hidden] { display:none; }
.booking-calendar-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.booking-calendar-head .section-label,.booking-panel-title .section-label { margin-bottom:.1rem; font-size:.62rem; }
.booking-calendar-head h3,.booking-panel-title h3 { font:400 1.5rem/1.1 "Cormorant Garamond",serif; }
.booking-calendar-nav { display:flex; align-items:center; gap:.55rem; }
.booking-calendar-nav strong { min-width:120px; text-align:center; font-size:.78rem; font-weight:500; }
.booking-calendar-nav button { display:grid; width:32px; height:32px; place-items:center; border:1px solid var(--line); border-radius:50%; background:#fff; color:var(--ink); font-size:1.25rem; transition:background .18s,border-color .18s; }
.booking-calendar-nav button:hover { background:var(--mist); border-color:var(--sage); }
.booking-calendar-help { margin:.35rem 0 .45rem; color:#737b6d; font-size:.68rem; }
.booking-calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; }
.booking-calendar-grid.is-entering { animation:booking-calendar-in .18s ease both; }
@keyframes booking-calendar-in { from{opacity:.65;transform:translateY(3px)} to{opacity:1;transform:translateY(0)} }
.booking-day-head { padding:.25rem 0; color:#7a8273; text-align:center; font-size:.62rem; font-weight:500; }
.booking-day { position:relative; min-width:0; height:38px; border:1px solid transparent; border-radius:8px; background:#f3f5ef; color:var(--ink); font:400 .76rem Poppins,sans-serif; transition:background .15s,border-color .15s,transform .15s; }
.booking-day:hover:not(:disabled) { border-color:#91a27d; background:#eaf0e3; transform:translateY(-1px); }
.booking-day.is-past,.booking-day.is-booked { background:#f3f3f0; color:#b5b9ae; cursor:not-allowed; text-decoration:line-through; }
.booking-day.is-booked::after { position:absolute; right:4px; bottom:3px; width:4px; height:4px; border-radius:50%; background:#bd8f7e; content:""; }
.booking-day.is-selected,.booking-day.is-start,.booking-day.is-end { background:var(--moss); color:#fff; }
.booking-day.is-range { border-radius:0; background:#e8eee1; color:var(--ink); }
.booking-day.is-start { border-radius:8px 0 0 8px; }
.booking-day.is-end { border-radius:0 8px 8px 0; }
.booking-day.is-start.is-end { border-radius:8px; }
.booking-day:disabled:not(.is-past):not(.is-booked) { opacity:.35; cursor:not-allowed; }
.booking-calendar-legend { display:flex; flex-wrap:wrap; gap:.8rem; margin-top:.5rem; color:#72796c; font-size:.62rem; }
.booking-calendar-legend span { display:flex; align-items:center; gap:.3rem; }
.booking-calendar-legend i { width:9px; height:9px; border-radius:3px; background:#f3f5ef; }
.booking-calendar-legend .date-blocked { background:#d8c3bb; }
.booking-calendar-legend .date-selected { background:var(--moss); }
.booking-date-summary { min-height:1.3em; margin:.4rem 0 0; color:var(--moss); font-size:.7rem; font-weight:500; }
.booking-guest-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem .75rem; margin-top:.65rem; }
.booking-guest-fields label { gap:.2rem; font-size:.68rem; font-weight:500; }
.booking-guest-fields input,.booking-guest-fields textarea { width:100%; min-width:0; border:1px solid #cbd3c3; border-radius:8px; background:#f9faf7; padding:.6rem .7rem; color:var(--ink); font:400 .78rem Poppins,sans-serif; }
.booking-guest-fields input:focus,.booking-guest-fields textarea:focus { outline:0; border-color:var(--moss); box-shadow:0 0 0 3px rgba(91,106,74,.12); background:#fff; }
.booking-request-field { grid-column:1/-1; }
.booking-guest-fields textarea { min-height:66px; resize:vertical; }
.booking-submit { display:flex; align-items:center; justify-content:center; gap:.8rem; width:100%; margin-top:.7rem; border:0; }
.booking-submit:disabled { opacity:.65; cursor:wait; }
.booking-privacy-note { margin:.35rem 0 0; color:#818879; text-align:center; font-size:.6rem; }
.booking-result { min-height:0; margin:.55rem 0 0; font-size:.76rem; }
.booking-result:empty { display:none; }
.booking-summary-panel { position:sticky; top:5rem; padding:1rem; }
.booking-summary-panel .section-label { margin-bottom:.2rem; font-size:.62rem; }
.booking-summary-panel h3 { margin:0 0 .7rem; font:400 1.6rem/1.1 "Cormorant Garamond",serif; }
.booking-summary-photo { display:grid; height:150px; place-items:center; overflow:hidden; border-radius:10px; background:#e8ebe3 center/cover no-repeat; color:#818a76; }
.booking-summary-photo span { padding:.25rem .5rem; border:1px solid currentColor; border-radius:99px; font-size:.65rem; letter-spacing:.15em; }
.booking-summary-photo.has-image span { display:none; }
.booking-summary-panel dl { display:grid; gap:.45rem; margin:.8rem 0; }
.booking-summary-panel dl div { display:flex; justify-content:space-between; gap:.7rem; font-size:.68rem; }
.booking-summary-panel dt { color:#757d70; }
.booking-summary-panel dd { margin:0; color:var(--ink); text-align:right; font-weight:500; }
.booking-summary-note { margin:0; padding-top:.65rem; border-top:1px solid #e8ebe3; color:#737b6d; font-size:.66rem; line-height:1.55; }
.booking-calendar-panel.is-revealed,.booking-guest-panel.is-revealed { animation:booking-panel-in .28s ease both; }
@keyframes booking-panel-in { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* Keep the complete reservation flow compact within its section. */
.book { padding:4.25rem 5vw 1.5rem; gap:.4rem; }
.booking-intro { gap:1rem; }
.booking-intro h2 { font-size:clamp(2.2rem,3.2vw,3.15rem); }
.booking-intro > p { font-size:.76rem; }
.booking-progress { margin:.1rem 0 .5rem; gap:.55rem; }
.booking-layout { gap:.8rem; }
.booking-main-panel,.booking-summary-panel { border-radius:12px; }
.booking-main-panel { padding:.7rem .85rem; }
.booking-villa-label { margin-bottom:.25rem; font-size:.7rem; }
#villaSelect { padding:.52rem .7rem; font-size:.78rem; }
.booking-calendar-panel,.booking-guest-panel { margin-top:.55rem; padding-top:.55rem; }
.booking-calendar-head h3,.booking-panel-title h3 { font-size:1.3rem; }
.booking-calendar-help { margin:.2rem 0 .3rem; font-size:.63rem; }
.booking-calendar-grid { column-gap:0; row-gap:3px; }
.booking-day { height:33px; border:1px solid transparent; border-radius:11px; }
.booking-day.is-loading { animation:booking-day-pulse 1s ease-in-out infinite alternate; background:#e9ede5; color:#838b7c; }
@keyframes booking-day-pulse { from{opacity:.58} to{opacity:1} }
.booking-day.is-booked { border-color:#e6b3ad; background:#fbe5e2; color:#a82c27; font-weight:500; text-decoration:none; }
.booking-day.is-booked::after { right:50%; bottom:3px; width:4px; height:4px; transform:translateX(50%); background:#c53c34; }
.booking-day.is-selected,.booking-day.is-start,.booking-day.is-end { border-color:var(--moss); background:var(--moss); color:#fff; text-decoration:none; }
.booking-day.is-booked.is-selected::after { display:none; }
.booking-day.is-past.is-booked { background:#f4e8e6; color:#bb827d; }
.booking-day.is-range { position:relative; z-index:0; border-radius:0; background:#e7eddf; color:var(--ink); }
.booking-day.is-range::before { position:absolute; z-index:-1; top:50%; right:0; left:0; height:14px; transform:translateY(-50%); background:#dce6d2; content:""; }
.booking-day.is-start { border-radius:8px 0 0 8px; }
.booking-day.is-end { border-radius:0 8px 8px 0; }
.booking-day.is-start.is-end { border-radius:8px; }
.booking-calendar-legend { gap:.6rem; margin-top:.35rem; font-size:.59rem; }
.booking-date-summary { margin:.25rem 0 0; font-size:.65rem; }
.booking-guest-fields { gap:.4rem .6rem; margin-top:.45rem; }
.booking-guest-fields label { gap:.15rem; font-size:.62rem; }
.booking-guest-fields input,.booking-guest-fields textarea { padding:.45rem .55rem; font-size:.7rem; }
.booking-guest-fields textarea { min-height:48px; }
.booking-submit { min-height:38px; margin-top:.5rem; }
.booking-privacy-note { margin-top:.25rem; }
.booking-summary-panel { top:4.25rem; padding:.75rem; }
.booking-summary-panel h3 { margin-bottom:.45rem; font-size:1.4rem; }
.booking-summary-photo { height:112px; }
.booking-summary-panel dl { gap:.3rem; margin:.55rem 0; }
.booking-summary-panel dl div { font-size:.63rem; }
.booking-summary-note { padding-top:.45rem; font-size:.61rem; }

@media (max-width: 860px) {
  .book { padding:4rem 4vw 1.25rem; }
  .booking-layout { grid-template-columns:minmax(0,1.25fr) minmax(190px,.75fr); gap:.6rem; }
  .booking-main-panel { padding:.65rem; }
  .booking-summary-panel { padding:.65rem; }
  .booking-summary-photo { height:90px; }
  .booking-day { height:29px; }
}
@media (max-width: 600px) {
  .book { min-height:100svh; padding:4.2rem 4vw .8rem; gap:.25rem; }
  .booking-intro { align-items:flex-start; flex-direction:row; justify-content:space-between; gap:.45rem; }
  .booking-intro h2 { font-size:1.85rem; }
  .booking-intro > p { max-width:23ch; margin:0; font-size:.62rem; line-height:1.4; }
  .booking-progress { gap:.25rem; margin:.1rem 0 .35rem; }
  .booking-step { gap:.2rem; font-size:.51rem; }
  .booking-step span { width:19px; height:19px; font-size:.58rem; }
  .booking-progress > i { max-width:24px; }
  .booking-layout { grid-template-columns:1fr; gap:.35rem; }
  .booking-summary-panel { position:static; display:grid; grid-template-columns:minmax(0,1fr) 56px; column-gap:.45rem; padding:.45rem .55rem; }
  .booking-summary-panel .section-label,.booking-summary-panel h3,.booking-summary-panel dl { grid-column:1; }
  .booking-summary-panel .section-label { font-size:.52rem; }
  .booking-summary-panel h3 { margin:0; font-size:1.12rem; }
  .booking-summary-photo { grid-column:2; grid-row:1/4; height:56px; border-radius:7px; }
  .booking-summary-panel dl { display:flex; flex-wrap:wrap; gap:.15rem .55rem; margin:.2rem 0 0; }
  .booking-summary-panel dl div { gap:.2rem; font-size:.52rem; }
  .booking-summary-panel dd { text-align:left; }
  .booking-summary-note { display:none; }
  .booking-main-panel { padding:.55rem; }
  .booking-villa-label { font-size:.63rem; }
  #villaSelect { padding:.4rem .55rem; font-size:.7rem; }
  .booking-calendar-panel,.booking-guest-panel { margin-top:.4rem; padding-top:.4rem; }
  .booking-calendar-head h3,.booking-panel-title h3 { font-size:1.12rem; }
  .booking-calendar-nav { gap:.2rem; }
  .booking-calendar-nav strong { min-width:88px; font-size:.62rem; }
  .booking-calendar-nav button { width:25px; height:25px; font-size:1rem; }
  .booking-calendar-help { font-size:.56rem; }
  .booking-day-head { padding:.1rem 0; font-size:.52rem; }
  .booking-day { height:29px; border-radius:10px; font-size:.6rem; }
  .booking-day.is-range::before { height:11px; }
  .booking-calendar-legend { gap:.4rem; margin-top:.2rem; font-size:.52rem; }
  .booking-calendar-legend i { width:7px; height:7px; }
.booking-discount-group { margin-top:.4rem; }
.booking-discount-row { display:flex; gap:.4rem; margin-top:.2rem; }
.booking-discount-row input { flex:1; text-transform:uppercase; font-family:monospace; letter-spacing:1.5px; font-weight:600; padding:.45rem .6rem; border:1px solid #bdc8b3; border-radius:7px; font-size:.82rem; background:#fbfcf9; }
.booking-discount-row input:focus { outline:2px solid rgba(91,106,74,.25); border-color:var(--moss); }
.booking-discount-row button { padding:0 .9rem; font-size:.75rem; white-space:nowrap; }
.booking-discount-msg { margin:.25rem 0 0; font-size:.65rem; min-height:1.1em; line-height:1.3; }
.booking-discount-msg.is-valid { color:#2e6b21; font-weight:500; }
.booking-discount-msg.is-error { color:#b0362c; font-weight:500; }

  .booking-date-summary { min-height:1em; margin:.15rem 0 0; font-size:.56rem; }
  .booking-guest-fields { gap:.3rem .45rem; margin-top:.35rem; }
  .booking-guest-fields label { gap:.1rem; font-size:.55rem; }
  .booking-guest-fields input,.booking-guest-fields textarea { padding:.35rem .45rem; font-size:.62rem; }
  .booking-guest-fields textarea { min-height:38px; }
  .booking-submit { min-height:34px; margin-top:.35rem; font-size:.7rem; }
  .booking-privacy-note { font-size:.51rem; }
  .booking-result { margin:.3rem 0 0; font-size:.62rem; }
}
