/* =========================================================
   Villa Elaia & Villa Ruzarija — styles.css
   Designed for Pimcore integration. No frameworks.
   ========================================================= */

:root {
  --bg: #f4efe6;
  --bg-deep: #ece5d8;
  --ink: #1f1d18;
  --ink-soft: #5a564d;
  --rule: #d9d1c0;
  --olive: oklch(0.52 0.06 120);
  --olive-soft: oklch(0.78 0.04 120);
  --rose:  oklch(0.58 0.08 30);
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans:  'Manrope', system-ui, sans-serif;
  --mono:  'DM Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
.fit-img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Utilities ---------- */
.container { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

/* Section heading rhythm — replaces all inline style="margin-top: 28px" */
.eyebrow + h2,
.eyebrow + h3 { margin-top: 24px; }

/* Section lead paragraph — replaces inline style="font-size: 18px; max-width: 48ch" */
.section-lead {
  font-size: clamp(15px, 1.8vw, 18px);
  max-width: 48ch;
  line-height: 1.65;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--ink-soft);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink);
}
h1 { font-size: clamp(48px, 7.5vw, 112px); }
h2 { font-size: clamp(36px, 4.5vw, 68px); }
h3 { font-size: clamp(24px, 2.4vw, 36px); }
p  { color: var(--ink-soft); text-wrap: pretty; }
em { font-style: italic; color: var(--ink); }
a  { color: inherit; text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .35s ease, color .35s ease, padding .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
  color: #f4efe6;
}
.nav.scrolled {
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(12px);
  color: var(--ink);
  border-bottom-color: var(--rule);
  padding: 14px clamp(16px, 4vw, 48px);
}
.nav.scrolled .nav-brand { font-size: 22px; }
.nav-brand {
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.nav-brand span { font-style: normal; opacity: .55; }
.nav-logo {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter .35s ease;
}
.nav.scrolled .nav-logo { filter: none; }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav-links a {
  position: relative;
  opacity: 1;
  color: inherit;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width .35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-links a:hover::after,
.nav-links a[style*="opacity:1"]::after {
  width: 100%;
}
.nav-links a:not([style*="opacity:1"]) {
  opacity: .7;
  transition: opacity .25s;
}
.nav-links a:hover {
  opacity: 1 !important;
}
.nav-cta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid rgba(244,239,230,0.3);
  border-radius: 999px;
  background: rgba(20,18,14,0.55);
  color: #f4efe6;
  backdrop-filter: blur(10px);
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.nav-cta:hover {
  background: rgba(20,18,14,0.75);
  border-color: rgba(244,239,230,0.5);
  color: #f4efe6;
}
.nav.scrolled .nav-cta {
  border-color: rgba(31,29,24,0.3);
  background: rgba(244,239,230,0.55);
  color: var(--ink);
}
.nav.scrolled .nav-cta:hover {
  background: rgba(244,239,230,0.85);
  border-color: rgba(31,29,24,0.5);
  color: var(--ink);
}

/* ---------- Nav right group ---------- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ---------- Nav dropdown (Vile) ---------- */
.nav-has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  list-style: none;
  background: var(--ink);
  min-width: 180px;
  padding: 8px 0;
  margin-top: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  box-shadow: 0 20px 48px rgba(20,18,14,0.25);
}
.nav-has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown li { width: 100%; }
.nav-dropdown a {
  display: block;
  padding: 12px 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  font-weight: 300;
  color: #f4efe6 !important;
  opacity: 0.85 !important;
  white-space: nowrap;
  transition: opacity .2s, background .2s;
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover { opacity: 1 !important; background: rgba(244,239,230,0.08); }

/* ---------- Language selector ---------- */
.nav-lang { position: relative; }
.nav-lang-current {
  background: none;
  border: none;
  color: inherit;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  transition: opacity .2s;
}
.nav-lang-current:hover { opacity: 0.7; }
.nav-lang-caret { font-size: 9px; transition: transform .3s ease; }
.nav-lang:hover .nav-lang-caret { transform: rotate(180deg); }
.nav-lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  list-style: none;
  background: var(--ink);
  min-width: 70px;
  padding: 6px 0;
  margin-top: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  box-shadow: 0 16px 40px rgba(20,18,14,0.25);
}
.nav-lang:hover .nav-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-lang-menu a {
  display: block;
  padding: 9px 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #f4efe6;
  opacity: 0.8;
  transition: opacity .2s, background .2s;
}
.nav-lang-menu a:hover { opacity: 1; background: rgba(244,239,230,0.08); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  width: 100%;
  overflow: hidden;
  color: #f4efe6;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(20,18,14,0.7) 0%, rgba(20,18,14,0) 100%);
  z-index: 10;
  pointer-events: none;
}
.hero--split {
  display: flex;
  background: var(--bg);
}
.hero-left {
  flex: 0 0 42%;
  background: var(--bg);
  color: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.hero-right {
  position: absolute;
  left: 32%;
  right: 0;
  top: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
}
.hero-right::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to right,
    var(--bg)                      0%,
    rgba(244,239,230,0.95)         3%,
    rgba(244,239,230,0.75)         7%,
    rgba(244,239,230,0.40)        13%,
    rgba(244,239,230,0.10)        18%,
    transparent                   22%
  );
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 78%; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,18,14,0.1) 0%, rgba(20,18,14,0.0) 50%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(16px, 4vw, 48px);
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0.95;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}
.hero-left .hero-eyebrow {
  color: var(--ink-soft);
  text-shadow: none;
}
.hero h1 {
  color: #faf6ee;
  font-weight: 400;
  max-width: 26ch;
  font-size: clamp(36px, 5vw, 80px);
  text-shadow: 0 2px 40px rgba(0,0,0,0.35), 0 1px 3px rgba(0,0,0,0.25);
}
.hero h1 em {
  color: #faf6ee;
  font-weight: 300;
}
.hero-left h1 {
  color: var(--ink);
  text-shadow: none;
  font-style: italic;
  font-weight: 400;
}
.hero-left h1 em {
  color: var(--ink);
  text-shadow: none;
}
.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 56px;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 16px;
  margin-top: 40px;
  background: var(--olive);
  color: #f4efe6;
  border: 1px solid var(--olive);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 20px 40px;
  transition: background .3s ease, color .3s ease;
}
.hero-cta-btn:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: #f4efe6;
}
.hero-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 2.2vw, 23px);
  line-height: 1.4;
  max-width: 38ch;
  color: #f4efe6;
  font-weight: 400;
  text-shadow: 0 1px 18px rgba(0,0,0,0.45);
}
.hero-left .hero-lead {
  color: var(--ink-soft);
  text-shadow: none;
}
.hero-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.9;
  opacity: 0.95;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}
.hero-left .hero-meta {
  color: var(--ink);
  text-shadow: none;
}
.hero-meta strong { font-weight: 500; opacity: 1; }
.hero-scroll {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.8;
}
.hero--split .hero-scroll {
  bottom: 24px;
  font-size: 13px;
  font-weight: 900;
  opacity: 0.9;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(244,239,230,0.8), 0 0 24px rgba(244,239,230,0.4);
}
.hero--split .hero-scroll::after {
  width: 2px;
  box-shadow: 0 0 8px rgba(244,239,230,0.9);
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 40px;
  background: currentColor;
  animation: scrollPulse 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Hero location pin ---------- */
.hero-meta { cursor: crosshair; }

.hero-pin {
  position: absolute;
  top: calc(80% - -15px);
  left: calc(52% - 40px);
  width: 0;
  height: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease;
}
.hero-pin.visible,
.hero:has(.hero-meta:hover) .hero-pin { opacity: 1; }

/* Center dot */
.hero-pin-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f4efe6;
  top: -4px;
  left: -4px;
  box-shadow: 0 0 12px rgba(244,239,230,0.9), 0 0 0 2px rgba(244,239,230,0.3);
}

/* 4 radiating rings */
.hero-pin-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,252,245,1);
  opacity: 0;
  box-shadow: 0 0 8px rgba(255,252,245,0.5);
}
.hero-pin-ring--1 { width: 60px;  height: 60px;  top: -30px;  left: -30px; }
.hero-pin-ring--2 { width: 110px; height: 110px; top: -55px;  left: -55px; }
.hero-pin-ring--3 { width: 170px; height: 170px; top: -85px;  left: -85px; }
.hero-pin-ring--4 { width: 240px; height: 240px; top: -120px; left: -120px; }

.hero-pin.visible .hero-pin-ring--1,
.hero:has(.hero-meta:hover) .hero-pin .hero-pin-ring--1 { animation: pinRing 3s ease-out 0s infinite; }
.hero-pin.visible .hero-pin-ring--2,
.hero:has(.hero-meta:hover) .hero-pin .hero-pin-ring--2 { animation: pinRing 3s ease-out 1.5s infinite; }
.hero-pin-ring--3,
.hero-pin-ring--4 { display: none; }

@keyframes pinRing {
  0%   { opacity: 0;   transform: scale(0.15); }
  20%  { opacity: 1; }
  100% { opacity: 0;   transform: scale(1.4); }
}

/* Crosshair lines */
.hero-pin-cross-h,
.hero-pin-cross-v {
  position: absolute;
  transform-origin: center;
}
.hero-pin-cross-h {
  width: 48px; height: 1px;
  top: -0.5px; left: -24px;
  transform: scaleX(0);
  transition: transform .5s ease .15s;
  background: rgba(244,239,230,0.35);
}
.hero-pin-cross-v {
  width: 1px; height: 48px;
  left: -0.5px; top: -24px;
  transform: scaleY(0);
  transition: transform .5s ease .15s;
  background: rgba(244,239,230,0.35);
}
.hero-pin.visible .hero-pin-cross-h,
.hero:has(.hero-meta:hover) .hero-pin .hero-pin-cross-h { transform: scaleX(1); }
.hero-pin.visible .hero-pin-cross-v,
.hero:has(.hero-meta:hover) .hero-pin .hero-pin-cross-v { transform: scaleY(1); }

/* Connecting line canvas — positioned to cover from pin to meta area */
.hero-pin-line {
  position: absolute;
  pointer-events: none;
  top: 0; left: 0;
  width: 0; height: 0;
}

/* ---------- Intro ---------- */
.intro { padding-top: clamp(72px, 10vw, 160px); padding-bottom: clamp(48px, 6vw, 80px); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 96px;
  align-items: start;
}
.intro h2 { font-style: italic; font-weight: 300; }
.intro h2 strong { font-style: normal; font-weight: 400; }
.intro-body p + p { margin-top: 22px; }

/* ---------- Villas duo ---------- */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--rule);
  margin: 80px 0 0;
}
.villa-card {
  background: var(--bg);
  padding: 36px 40px 36px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  transition: box-shadow 1.2s ease, transform 1.2s ease;
}
.villa-card:hover {
  box-shadow: 0 12px 48px rgba(20,18,14,0.12);
  transform: translateY(-2px);
}
.villa-img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-deep);
}
.villa-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
  will-change: transform;
  backface-visibility: hidden;
}
.villa-card:hover .villa-img img { transform: scale(1.015); }
.villa-text { padding-top: 8px; }
.villa-name {
  font-family: var(--serif);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 300;
  margin-bottom: 16px;
}
.villa-name strong { font-weight: 400; font-style: normal; color: var(--ink); }
.villa-name em { font-style: italic; font-weight: 400; color: var(--olive); }
.villa-card.rose .villa-name em { color: var(--rose); }
.villa-meta {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 16px;
  padding-bottom: 16px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.villa-meta strong { color: var(--ink); font-weight: 400; font-size: 18px; }
.villa-desc {
  color: var(--ink-soft);
  margin-top: 14px;
  max-width: 42ch;
}
.villa-cta {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 18px 24px;
  border: 1px solid var(--olive);
  text-align: center;
  transition: background 1.2s ease, color 1.2s ease, border-color 1.2s ease;
  color: var(--ink);
}
.villa-card.rose .villa-cta { border-color: var(--rose); }
.villa-card:hover .villa-cta {
  background: var(--olive);
  color: #f4efe6;
  border-color: var(--olive);
}
.villa-card.rose:hover .villa-cta {
  background: var(--rose);
  color: #f4efe6;
  border-color: var(--rose);
}

/* ---------- Moments ---------- */
.moments { background: var(--bg-deep); padding-top: clamp(64px, 9vw, 140px); padding-bottom: clamp(64px, 9vw, 140px); }
.moments-head {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 96px;
  align-items: end;
  margin-bottom: 80px;
}
.moments-head h2 { font-style: italic; font-weight: 300; }
.moments-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.moment {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.moment img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s ease;
}
.moment:hover img { transform: scale(1.05); }
.moment::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20,18,14,0.7));
  pointer-events: none;
}
.moment-caption {
  position: absolute;
  bottom: 24px; left: 24px;
  color: #f4efe6;
  z-index: 2;
}
.moment-number {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  opacity: 0.8;
  margin-bottom: 8px;
}
.moment-title {
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 28px);
  font-style: italic;
  font-weight: 300;
}
.m-1 { grid-column: span 5; aspect-ratio: 4/5; }
.m-2 { grid-column: span 7; aspect-ratio: 4/3; align-self: end; }
.m-3 { grid-column: span 7; aspect-ratio: 16/10; }
.m-4 { grid-column: span 5; aspect-ratio: 4/5; }

/* ---------- Gallery ---------- */
.gallery-section { padding-top: clamp(64px, 9vw, 140px); padding-bottom: clamp(56px, 7vw, 100px); }
.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
  gap: 48px;
  flex-wrap: wrap;
}
.gallery-head h2 { max-width: 14ch; font-style: italic; font-weight: 300; }
.gallery-filter {
  display: flex;
  gap: 4px;
  background: var(--bg-deep);
  padding: 4px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.gallery-filter button {
  background: none;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: background .25s, color .25s;
}
.gallery-filter button.active {
  background: var(--ink);
  color: var(--bg);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 130px;
  grid-auto-flow: dense;
  gap: 16px;
}
.g-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  cursor: pointer;
  transition: opacity .4s ease;
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.g-item:hover img { transform: scale(1.06); }
.g-item::after {
  content: "+";
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,18,14,0.4);
  color: #f4efe6;
  font-family: var(--serif);
  font-size: 32px;
  opacity: 0;
  transition: opacity .3s;
}
.g-item:hover::after { opacity: 1; }
.g-item.hidden { display: none; }

.g-1 { grid-column: span 5; grid-row: span 4; }
.g-2 { grid-column: span 4; grid-row: span 3; }
.g-3 { grid-column: span 3; grid-row: span 3; }
.g-4 { grid-column: span 3; grid-row: span 4; }
.g-5 { grid-column: span 4; grid-row: span 4; }
.g-6 { grid-column: span 5; grid-row: span 3; }
.g-7 { grid-column: span 4; grid-row: span 3; }
.g-8 { grid-column: span 4; grid-row: span 3; }
.g-9 { grid-column: span 4; grid-row: span 3; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20,18,14,0.96);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 64px);
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: min(1400px, 92vw);
  max-height: 85vh;
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(244,239,230,0.08);
  border: 1px solid rgba(244,239,230,0.2);
  color: #f4efe6;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  transition: background .2s;
}
.lightbox-close { font-size: 30px; }
.lightbox-prev, .lightbox-next { font-size: 32px; }
/* optical centering for asymmetric glyphs */
.lightbox-prev  { padding-right: 2px; }
.lightbox-next  { padding-left: 2px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(244,239,230,0.18);
}
.lightbox-close { top: 32px; right: 32px; }
.lightbox-prev  { left: 32px;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 32px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  color: rgba(244,239,230,0.7);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
}

/* ---------- Location ---------- */
.location { background: var(--ink); color: #f4efe6; padding-top: clamp(64px, 9vw, 140px); padding-bottom: clamp(64px, 9vw, 140px); }
.location h2, .location h3 { color: #f4efe6; }
.location p { color: rgba(244,239,230,0.7); }
.location .eyebrow { color: rgba(244,239,230,0.6); }
.location .eyebrow::before { background: rgba(244,239,230,0.5); }
.location-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 96px;
  align-items: start;
}
.location-head h2 { font-style: italic; font-weight: 300; margin-top: 18px; }
.location-head p { margin-top: 28px; font-size: clamp(15px, 1.8vw, 18px); }
.amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(16px, 4vw, 56px);
  margin-top: 48px;
}
.amenity {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(10px, 2vw, 20px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(244,239,230,0.12);
}
.amenity-img-edit {
  width: 100%;
  margin-bottom: 6px;
  flex-basis: 100%;
}
.amenity-img-edit img {
  width: 100%;
  max-height: 100px;
  object-fit: cover;
  display: block;
}
.amenity-name {
  font-family: var(--serif);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 300;
  flex: 1;
}
.amenity-dist {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(244,239,230,0.55);
  white-space: nowrap;
  flex-shrink: 0;
}
.map-frame {
  position: relative;
  aspect-ratio: 4/5;
  background: #2a2620;
  overflow: hidden;
  border: 1px solid rgba(244,239,230,0.12);
  display: block;
}
.map-frame-inner {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 130%;
  will-change: transform;
  /* Static fallback (no-JS / reduced motion): villa visible at bottom-middle */
  transform: translateY(-23.08%);
}
.map-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.85; }
.map-pin {
  position: absolute;
  top: 80%; left: 50%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 3;
}
.map-pin-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--olive);
  border: 3px solid #f4efe6;
  box-shadow: 0 0 0 8px rgba(244,239,230,0.15);
  animation: pinPulse 2s ease-in-out infinite;
}
@keyframes pinPulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(244,239,230,0.15); }
  50% { box-shadow: 0 0 0 18px rgba(244,239,230,0.05); }
}
.map-pin-label {
  background: #f4efe6;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  white-space: nowrap;
}
.map-overlay {
  position: absolute;
  bottom: 20px; left: 20px;
  background: rgba(20,18,14,0.85);
  color: #f4efe6;
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(244,239,230,0.18);
}
.map-overlay strong { font-weight: 500; color: var(--olive-soft); }

/* ---------- Parks ---------- */
.parks { padding-top: clamp(64px, 9vw, 140px); padding-bottom: clamp(64px, 9vw, 140px); }
.parks-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 96px;
  align-items: end;
  margin-bottom: 72px;
}
.parks-head h2 { font-style: italic; font-weight: 300; max-width: 14ch; }
.parks-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.park {
  background: var(--bg);
  transition: transform .4s ease;
  display: block;
}
.park-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-deep);
  position: relative;
}
.park-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.park:hover .park-img img { transform: scale(1.02); }
.park-num {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 6px 10px;
  z-index: 2;
}
.park-body { padding: 24px 4px 0; }
.park-name {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 400;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  min-height: 2.4em;
  justify-content: space-between;
  gap: 12px;
}
.park-name .arrow {
  font-family: var(--sans);
  font-size: 24px;
  color: var(--ink-soft);
  transition: transform .3s;
}
.park:hover .park-name .arrow { transform: translateX(4px); color: var(--olive); }
.park-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.parks-foot {
  margin-top: 56px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
  font-weight: 300;
}

/* ---------- Arrive ---------- */
.arrive { background: var(--bg-deep); padding-top: clamp(64px, 9vw, 140px); padding-bottom: clamp(64px, 9vw, 140px); }
.arrive-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 96px;
  align-items: start;
}
.arrive h2 { font-style: italic; font-weight: 300; }
.arrive-modes {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.mode {
  background: var(--bg-deep);
  padding: 36px 4px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
.mode-icon {
  font-family: var(--serif);
  font-size: 40px;
  font-style: italic;
  color: var(--olive);
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mode-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.mode-title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  margin-bottom: 4px;
}
.mode-desc {
  color: var(--ink-soft);
  font-size: 14px;
}
.mode-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  padding: 8px 14px;
  border-radius: 999px;
}

/* ---------- Contact ---------- */
.contact { padding-top: clamp(40px, 5vw, 88px); padding-bottom: clamp(56px, 7vw, 100px); text-align: center; }
.contact .eyebrow { margin: 0 auto 32px; justify-content: center; }
.contact .eyebrow::before { display: none; }
.contact h2 { font-style: italic; font-weight: 300; max-width: 34ch; margin: 0 auto; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--rule);
  margin: 80px auto 0;
  max-width: 1100px;
}
.contact-card { background: var(--bg); padding: 56px 48px; text-align: left; }
.contact-name {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 28px;
}
.contact-name em { font-style: italic; color: var(--olive); }
.contact-card.rose .contact-name em { color: var(--rose); }
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
}
.contact-row:first-of-type { border-top: none; }
.contact-row .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  min-width: 64px;
}
.contact-row a:hover { color: var(--olive); }
.contact-card.rose .contact-row a:hover { color: var(--rose); }
.contact-card-cta {
  display: block;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 18px 24px;
  border: 1px solid var(--rule);
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: background 1.2s ease, color 1.2s ease, border-color 1.2s ease;
}
.contact-card-cta:hover { background: var(--olive); color: #f4efe6; border-color: var(--olive); }
.contact-card.rose .contact-card-cta:hover { background: var(--rose); color: #f4efe6; border-color: var(--rose); }
.contact-phone {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
}
.contact-phone a {
  font-style: normal;
  color: var(--ink);
  margin-left: 12px;
  letter-spacing: 0.02em;
}

/* ---------- Villa Pick ---------- */
.villa-pick-invite {
  margin-top: 64px;
  text-align: center;
}
.villa-pick-invite p {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.villa-pick-invite p::before,
.villa-pick-invite p::after {
  content: '';
  width: 48px;
  height: 1px;
  background: var(--rule);
  display: block;
}
.villa-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: transparent;
  margin: 32px auto 0;
  max-width: 1100px;
}
.villa-pick-radio { display: none; }
.villa-pick-card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.6s ease;
  position: relative;
  user-select: none;
}
.villa-pick-card:hover { box-shadow: 0 8px 40px rgba(20,18,14,0.10); }
.villa-pick-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: clamp(240px, 27vw, 380px);
  gap: 2px;
  background: var(--rule);
  overflow: hidden;
}
.villa-pick-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s ease;
  will-change: transform;
  backface-visibility: hidden;
}
.villa-pick-card:hover .villa-pick-img img,
.villa-pick-card.selected .villa-pick-img img { transform: scale(1.04); }
.villa-pick-body {
  padding: 32px 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  flex: 1;
  border-top: 3px solid transparent;
  transition: border-color 0.4s ease, opacity 0.4s ease;
}
.villa-pick-card.selected .villa-pick-body { border-top-color: var(--olive); }
.villa-pick-card.rose.selected .villa-pick-body { border-top-color: var(--rose); }
.villa-pick-dot {
  position: absolute;
  top: 34px;
  right: 40px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.villa-pick-card.selected .villa-pick-dot {
  background: var(--olive);
  border-color: var(--olive);
  transform: scale(1.1);
}
.villa-pick-card.rose.selected .villa-pick-dot {
  background: var(--rose);
  border-color: var(--rose);
}
.villa-pick-card.selected .villa-pick-dot::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 7px; height: 4px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: translate(-50%, -65%) rotate(-45deg);
}
.villa-pick-name {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 300;
  line-height: 1.1;
}
.villa-pick-name strong { font-weight: 400; color: var(--ink); }
.villa-pick-name em { font-style: italic; color: var(--olive); }
.villa-pick-card.rose .villa-pick-name em { color: var(--rose); }
.villa-pick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.villa-pick.has-selection .villa-pick-card:not(.selected) .villa-pick-body {
  opacity: 0.45;
  transition: opacity 0.4s ease;
}
.villa-pick.has-selection .villa-pick-card:not(.selected):hover .villa-pick-body { opacity: 0.75; }
.villa-pick-action {
  margin: 20px auto 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.5s ease, opacity 0.45s ease;
  display: flex;
  justify-content: center;
}
.villa-pick-action.visible {
  max-height: 100px;
  opacity: 1;
  pointer-events: auto;
}
.villa-pick-btn {
  display: inline-block;
  background: var(--bg);
  padding: 18px 48px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--olive);
  transition: background 0.8s ease, color 0.8s ease, border-color 0.4s ease;
}
.villa-pick-btn.rose-cta { border-color: var(--rose); }
.villa-pick-btn:hover { background: var(--olive); color: #f4efe6; border-color: var(--olive); }
.villa-pick-btn.rose-cta:hover { background: var(--rose); color: #f4efe6; border-color: var(--rose); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(244,239,230,0.7); padding: 80px 0 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
  color: #f4efe6;
  font-weight: 300;
  margin-bottom: 16px;
}
.footer-brand span { font-style: normal; opacity: 0.5; }
.site-footer h4 {
  color: #f4efe6;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 20px;
}
.site-footer ul { list-style: none; }
.site-footer li { padding: 6px 0; font-size: 14px; }
.site-footer a:hover { color: #f4efe6; }
.footer-bot {
  border-top: 1px solid rgba(244,239,230,0.14);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.85);
}

.footer-legal { display: flex; gap: 12px; align-items: center; }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { opacity: 1; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-slow {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 2.2s cubic-bezier(.16,1,.3,1), transform 2.4s cubic-bezier(.16,1,.3,1);
}
.reveal-slow.in { opacity: 1; transform: none; }

/* ---------- Image placeholder fallback ---------- */
.img-ph {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(31,29,24,0.04) 0 12px, transparent 12px 24px),
    var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}

/* ============================================================
   VILLA DETAIL PAGES — Elaia / Ruzarija
   ============================================================ */

/* Page-level accent switching */
/* Villa Elaia — cool olive, airy Mediterranean */
.page-elaia {
  --accent: var(--olive);
  --bg: #f2efe8;
  --bg-deep: #e8e3d6;
  --rule: #d4ccb8;
}
.page-elaia .sub-hero-content h1 em { color: oklch(0.78 0.06 120); }
.page-elaia .nav.scrolled { background: rgba(242,239,232,0.93); }
.page-elaia .availability { background: var(--bg-deep); }

/* Villa Ruzarija — warm rose, intimate, terracotta */
.page-ruzarija {
  --accent: var(--rose);
  --bg: #f5efea;
  --bg-deep: #ede4db;
  --rule: #d9cec4;
}
.page-ruzarija .sub-hero-content h1 em { color: oklch(0.82 0.05 30); }
.page-ruzarija .nav.scrolled { background: rgba(245,239,234,0.93); }
.page-ruzarija .availability { background: var(--bg-deep); }
@media (min-width: 769px) {
  .page-ruzarija .facts { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Sub-hero (detail pages) ---------- */
.sub-hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  color: #f4efe6;
}
.sub-hero .hero-media { position: absolute; inset: 0; }
.sub-hero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-elaia .sub-hero .hero-media img { object-position: center 39%; }
.sub-hero .hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,18,14,0.55) 0%, rgba(20,18,14,0.15) 32%, rgba(20,18,14,0.4) 60%, rgba(20,18,14,0.9) 100%),
    linear-gradient(90deg, rgba(20,18,14,0.5) 0%, rgba(20,18,14,0) 55%);
}
.sub-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  padding: 0 48px 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 24px;
  display: flex;
  gap: 14px;
  align-items: center;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}
.breadcrumb a { opacity: 0.7; transition: opacity .2s; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb .sep { opacity: 0.4; }
.sub-hero h1 {
  font-size: clamp(56px, 9vw, 140px);
  color: #faf6ee;
  font-weight: 400;
  line-height: 0.95;
  max-width: 14ch;
  text-shadow: 0 2px 40px rgba(0,0,0,0.35), 0 1px 3px rgba(0,0,0,0.25);
}
.sub-hero h1 em { font-style: italic; color: #faf6ee; font-weight: 600; }
.sub-hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 44px;
  gap: 48px;
  flex-wrap: wrap;
}
.sub-hero-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: #f4efe6;
  max-width: 34ch;
  text-shadow: 0 1px 16px rgba(0,0,0,0.5);
}
.sub-hero-stats {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(20px, 4vw, 56px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.95;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}
.sub-hero-stats div { line-height: 1.5; }
.sub-hero-stats strong {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #faf6ee;
  margin-bottom: 4px;
}

/* ---------- Property intro (overview) ---------- */
.overview { padding-top: clamp(64px, 9vw, 140px); padding-bottom: clamp(56px, 7vw, 100px); }
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 96px;
  align-items: start;
}
.overview h2 {
  font-style: italic;
  font-weight: 300;
  margin-top: 28px;
}
.overview h2 em { color: var(--accent); }
.overview-body p:first-child {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.45;
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
}
.overview-body p + p { margin-top: 22px; }

/* Quick-facts strip */
.facts {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 80px 0 0;
}
.fact {
  padding: 36px 4px 36px 24px;
  border-left: 1px solid var(--rule);
  text-align: left;
}
.fact:first-child { border-left: none; }
.fact-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.fact-num { display: none; }
.fact-val {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--accent);
}
.fact-val em { font-style: italic; color: var(--accent); }
.fact-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Feature rows (alternating image + text) ---------- */
.features { padding-top: clamp(32px, 5vw, 60px); padding-bottom: clamp(64px, 9vw, 140px); }
.feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 96px;
  align-items: center;
  margin-bottom: 140px;
}
.feature:last-child { margin-bottom: 0; }
.feature.reverse { grid-template-columns: 1fr 1.2fr; }
.feature.reverse .feature-img { order: 2; }
.feature-img {
  overflow: hidden;
  background: var(--bg-deep);
}
.feature-img img {
  width: 100%; height: auto; object-fit: contain;
  transition: transform 1.4s ease;
}
.feature:hover .feature-img img { transform: scale(1.015); }
.feature-img-pair {
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: transparent;
}
.feature-img-pair img {
  height: auto;
}
/* Optional third image: spans full width, centered below the pair */
.feature-img-pair img:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 6px);
}
.feature-text .eyebrow { color: var(--accent); }
.feature-text .eyebrow::before { background: var(--accent); }
.feature-text h3 {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px, 4vw, 52px);
  margin: 24px 0 24px;
}
.feature-text h3 em { color: var(--accent); font-style: italic; }
.feature-text p { max-width: 42ch; font-size: 17px; }
.feature-text p + p { margin-top: 16px; }

/* ---------- Amenities (typographic — no emoji) ---------- */
.amenities-section {
  background: var(--bg-deep);
  padding-top: clamp(64px, 9vw, 140px);
  padding-bottom: clamp(64px, 9vw, 140px);
}
.amenities-section h2 { font-style: italic; font-weight: 300; }
.amenities-section h2 em { color: var(--accent); }
.amenities-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 96px;
  align-items: end;
  margin-bottom: 72px;
}
.amenities-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.am {
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  padding: 28px 4px 28px 32px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: baseline;
}
.am:nth-child(3n) { border-right: none; }
.am-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}
.am-label {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
}
.am-label small {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--ink-soft);
  margin-top: 4px;
  letter-spacing: 0;
}

/* ---------- Inquiry form ---------- */
.inquiry { padding-top: clamp(64px, 9vw, 140px); padding-bottom: clamp(64px, 9vw, 140px); background: var(--ink); color: #f4efe6; }
.inquiry .container { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.inquiry h2 { color: #f4efe6; font-style: italic; font-weight: 300; }
.inquiry h2 em { color: var(--accent); }
.inquiry .eyebrow { color: rgba(244,239,230,0.6); }
.inquiry .eyebrow::before { background: rgba(244,239,230,0.5); }
.inquiry-lead {
  margin-top: 24px;
  color: rgba(244,239,230,0.75);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  max-width: 32ch;
}
.inquiry-meta {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(244,239,230,0.14);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.6);
  line-height: 2;
}
.inquiry-meta a { color: #f4efe6; }
.inquiry-meta a:hover { color: var(--accent); }
.inquiry-meta strong {
  display: block;
  margin-bottom: 4px;
  color: rgba(244,239,230,0.45);
  font-weight: 400;
}

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(244,239,230,0.18);
}
.field {
  border-bottom: 1px solid rgba(244,239,230,0.18);
  padding: 22px 0;
  position: relative;
}
.field-half { padding-right: 24px; }
.form-grid .field-half:nth-of-type(even) {
  padding-right: 0;
  padding-left: 24px;
}
.field-full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.5);
  margin-bottom: 10px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #f4efe6;
  font-family: var(--serif);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300;
  padding: 0;
  font-style: italic;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(244,239,230,0.35);
  font-style: italic;
}
/* Autofill — dark inquiry/availability sections */
.inquiry .field input:-webkit-autofill,
.inquiry .field input:-webkit-autofill:hover,
.inquiry .field input:-webkit-autofill:focus,
.availability .field input:-webkit-autofill,
.availability .field input:-webkit-autofill:hover,
.availability .field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px var(--ink) inset;
  box-shadow: 0 0 0 100px var(--ink) inset;
  -webkit-text-fill-color: #f4efe6;
  caret-color: #f4efe6;
  transition: background-color 9999s ease-in-out 0s;
}
/* Autofill — light review form */
.review-form .field input:-webkit-autofill,
.review-form .field input:-webkit-autofill:hover,
.review-form .field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px #fff inset;
  box-shadow: 0 0 0 100px #fff inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  transition: background-color 9999s ease-in-out 0s;
}
/* Selection highlight — dark fields */
.inquiry .field input::selection,
.inquiry .field textarea::selection {
  background: rgba(244,239,230,0.2);
  color: #f4efe6;
}
/* Selection highlight — light fields */
.review-form .field input::selection,
.review-form .field textarea::selection {
  background: rgba(31,29,24,0.15);
  color: var(--ink);
}
.field textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.45;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(244,239,230,0.6) 50%),
                    linear-gradient(135deg, rgba(244,239,230,0.6) 50%, transparent 50%);
  background-position: calc(100% - 14px) center, calc(100% - 8px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
  cursor: pointer;
}
.field select option { background: var(--ink); color: #f4efe6; font-family: var(--sans); }

/* Date pickers */
.date-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.date-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--accent);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.field:focus-within .date-icon { opacity: 1; }
.date-wrap input[type="date"] {
  padding-left: 26px;
  color-scheme: dark;
  accent-color: var(--accent);
  cursor: pointer;
  width: 100%;
}
/* Stretch native picker trigger to make the whole field clickable */
.date-wrap input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.field:focus-within label { color: var(--accent); }
.field::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .4s ease;
}
.field:focus-within::after { width: 100%; }
.field-half:focus-within::after { width: calc(100% - 24px); }
.form-grid .field-half:nth-of-type(even):focus-within::after { left: 24px; width: calc(100% - 24px); }

.form-foot {
  grid-column: 1 / -1;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.form-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.4);
  max-width: 36ch;
  line-height: 1.7;
}
.submit-btn {
  background: var(--accent);
  color: #faf6ee;
  border: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 20px 36px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: opacity .25s, transform .25s;
  font-weight: 500;
}
.submit-btn:hover { opacity: 0.88; transform: translateX(4px); }
.submit-btn::after {
  content: "→";
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0;
}

/* Honeypot — must be visually hidden without display:none (bots detect that) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.field--error input,
.field--error select,
.field--error textarea {
  color: #e07070;
}
.field--error::after {
  background: #e07070 !important;
  width: 100% !important;
}
.field-half.field--error::after { width: calc(100% - 24px) !important; }
.form-grid .field-half:nth-of-type(even).field--error::after { left: 24px; width: calc(100% - 24px) !important; }
.field--error label { color: #e07070 !important; }
.field-error-msg {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e07070;
  margin-top: 6px;
}

.form-success {
  display: none;
  grid-column: 1 / -1;
  margin-top: 32px;
  padding: 32px;
  border: 1px solid var(--accent);
  background: rgba(0,0,0,0.2);
}
.form-success.visible { display: block; }
.form-success h4 {
  color: var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
}
.form-success p { color: rgba(244,239,230,0.7); }

/* ---------- Sister-villa cross-promo ---------- */
.sister {
  padding-top: clamp(56px, 8vw, 120px);
  padding-bottom: clamp(56px, 8vw, 120px);
  background: var(--bg);
}
.sister-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-deep);
  overflow: hidden;
  min-height: 460px;
}
.sister-img { overflow: hidden; }
.sister-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s; }
.sister-card:hover .sister-img img { transform: scale(1.015); }
.sister-body {
  padding: clamp(20px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sister-body .eyebrow { color: var(--ink-soft); }
.sister-body h3 {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  font-style: italic;
  margin: 20px 0 16px;
}
.sister-body h3 em { color: var(--accent); }
.sister-body p { max-width: 38ch; }
.sister-link {
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  align-self: flex-start;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: gap .25s, border-color .25s;
}
.sister-link:hover { gap: 18px; border-color: var(--accent); color: var(--accent); }

/* ---------- Responsive ---------- */
/* legacy 980px block removed — handled by new responsive system below */

/* ============================================================
   AVAILABILITY CALENDAR
   ============================================================ */

.availability { padding-top: clamp(56px, 7vw, 100px); padding-bottom: clamp(56px, 7vw, 100px); background: var(--bg); }
.availability h2 { font-style: italic; font-weight: 300; }
.availability h2 em { color: var(--accent); }
.availability-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 96px;
  align-items: end;
  margin-bottom: 72px;
}

/* Calendar grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.cal-month { }
.cal-month-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}
.cal-day-name {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  padding: 4px 0;
  opacity: 0.6;
}
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-day {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  border-radius: 2px;
  position: relative;
}
.cal-day.empty { }
.cal-day.past {
  color: var(--rule);
}
.cal-day.available {
  color: var(--ink);
}
.cal-day.today {
  color: var(--accent);
  font-weight: 500;
  outline: 1px solid var(--accent);
  outline-offset: -2px;
}
.cal-day.booked {
  background: var(--bg-deep);
  color: var(--ink-soft);
  text-decoration: none;
}
.cal-day.booked::before,
.cal-day.booked::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 1px;
  background: var(--ink-soft);
  opacity: 0.4;
}
.cal-day.booked::before {
  transform: rotate(45deg);
}
.cal-day.booked::after {
  transform: rotate(-45deg);
}
.cal-day.booked-start { border-radius: 2px 0 0 2px; }
.cal-day.booked-end   { border-radius: 0 2px 2px 0; }

/* Booked periods list */
.booked-list {
  border-top: 1px solid var(--rule);
  margin-top: 16px;
}
.booked-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.booked-dates {
  font-family: var(--serif);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300;
  font-style: italic;
}
.booked-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.booked-empty {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
  padding: 32px 0;
}

/* legacy calendar 980px block removed — handled by new responsive system */

/* ========== REVIEWS ========== */
.reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
  gap: 32px;
  flex-wrap: wrap;
}
.review-write-btn {
  background: none;
  border: 1px solid var(--ink-soft);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 28px;
  cursor: pointer;
  transition: background .25s, color .25s;
  white-space: nowrap;
}
.review-write-btn:hover { background: var(--ink); color: var(--bg); }

.reviews-slider {
  overflow: hidden;
  margin-bottom: 32px;
}
.reviews-track {
  display: flex;
  transition: transform .45s cubic-bezier(.65,0,.35,1);
}
.reviews-page {
  flex: 0 0 100%;
  min-width: 100%;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}
.review-card {
  padding: 36px;
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-rating { font-size: 18px; }
.star-filled { color: var(--accent); }
.star-empty  { color: var(--rule); }
.review-comment {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  flex: 1;
}
.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.review-name { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; }
.review-stay { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); white-space: nowrap; }

.reviews-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.reviews-pagination .page-nums {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.reviews-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.reviews-pagination .page-num {
  min-width: 38px;
  height: 38px;
  padding: 0 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.reviews-pagination .page-num:hover { border-color: var(--ink-soft); }
.reviews-pagination .page-num.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.reviews-pagination .page-arrow {
  width: 38px;
  height: 38px;
  font-size: 16px;
  color: var(--ink);
  border: 1px solid var(--ink-soft);
}
.reviews-pagination .page-arrow:hover:not(:disabled) { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.reviews-pagination .page-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
  border-color: var(--rule);
}

.review-form-wrap { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--rule); }
.review-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }

/* Star picker */
.star-picker { display: flex; gap: 4px; margin-top: 8px; }
.star-picker button {
  background: none; border: none; font-size: 28px; cursor: pointer;
  color: var(--rule); padding: 0 2px; transition: color .15s;
}
.star-picker button.active,
.star-picker button.hover { color: var(--accent); }

/* Review form — light background overrides */
.review-form .field {
  border-bottom: 1px solid var(--rule);
}
.review-form .field-half + .field-half {
  border-left: 1px solid var(--rule);
}
.review-form .field label {
  color: var(--ink-soft);
}
.review-form .field input,
.review-form .field textarea {
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 12px 14px;
  font-size: 16px;
  background: #fff;
  margin-top: 6px;
}
.review-form .field input::placeholder,
.review-form .field textarea::placeholder {
  color: var(--ink-soft);
  font-style: italic;
}
.review-form .field input:focus,
.review-form .field textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.review-form .field::after { display: none; }

/* Review submission confirmation */
.review-confirmation {
  display: none;
  padding: 48px 40px;
  border: 1px solid var(--rule);
  text-align: center;
  margin-top: 48px;
}
.review-confirmation h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 32px;
  margin: 0 0 16px;
}
.review-confirmation p {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 42ch;
  margin: 0 auto;
  line-height: 1.7;
}
.review-confirmation .confirm-icon {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--accent);
}

/* Stay date pickers */
.stay-pickers {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.stay-picker-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.stay-picker-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.stay-date-input {
  width: 100%;
  border: 1px solid var(--rule) !important;
  border-radius: 2px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  font-family: var(--mono) !important;
  color: var(--ink) !important;
  background: #fff !important;
  cursor: pointer;
}
.stay-date-input:focus {
  border-color: var(--accent) !important;
  outline: none;
}
.stay-picker-sep {
  font-family: var(--serif);
  color: var(--ink-soft);
  padding-top: 20px;
  flex-shrink: 0;
}

/* Calendar date range selection */
.cal-day.available { cursor: pointer; }
.cal-day.available:hover {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--ink);
  font-weight: 600;
}

.cal-day.sel-from,
.cal-day.sel-to,
.cal-day.sel-hover-end {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 4px;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 45%, transparent);
  z-index: 1;
}
.cal-day.sel-range {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--ink);
  font-weight: 600;
  border-radius: 0;
}
.cal-day.sel-hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--ink);
  opacity: 1;
}

/* Calendar selection hint */
.cal-hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 24px;
  text-align: center;
}


/* =============================================================
   RESPONSIVE SYSTEM
   Breakpoints:
     1024px — large tablet
      768px — tablet / small laptop
      480px — mobile
      360px — small phone
   All section padding uses clamp() for fluid scaling.
   ============================================================= */

/* --- Global base --- */
*, *::before, *::after { box-sizing: border-box; }
img, video { max-width: 100%; display: block; }

/* --- Fluid section spacing helper --- */
.intro, .moments, .gallery-section, .location, .parks, .arrive,
.overview, .features, .amenities-section, .inquiry, .sister,
.reviews-section { padding-top: clamp(56px, 8vw, 140px); padding-bottom: clamp(56px, 8vw, 140px); }
.availability { padding-top: clamp(56px, 8vw, 140px); padding-bottom: clamp(56px, 8vw, 140px); }

/* --- Hamburger button (hidden on desktop) --- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: relative;
  z-index: 60;
  color: inherit;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-hamburger.open { color: #f4efe6; }
.nav.scrolled .nav-hamburger.open { color: #f4efe6; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   ≤1024px  Large tablet
   ============================================================ */
@media (max-width: 1024px) {
  /* Nav */
  .nav-hamburger {
    display: flex;
    position: fixed;
    top: 18px;
    right: clamp(16px, 4vw, 48px);
    z-index: 70;
  }
  .nav-cta { display: none; }
  .nav-lang {
    position: fixed;
    top: 18px;
    right: calc(clamp(16px, 4vw, 48px) + 44px);
    z-index: 70;
  }
  .nav-lang-current {
    font-size: 11px;
    padding: 6px 8px;
    letter-spacing: 0.12em;
  }
  .nav-lang.open .nav-lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-lang.drawer-open { opacity: 0; pointer-events: none; }

  /* Dropdown in drawer — tap to expand */
  .nav-has-dropdown > a { display: flex; align-items: center; justify-content: space-between; }
  .nav-has-dropdown > a::after { content: "▾"; font-style: normal; font-size: 13px; opacity: 0.5; transition: transform 0.2s; }
  .nav-has-dropdown.open > a::after { transform: rotate(180deg); opacity: 1; }
  .nav-has-dropdown .nav-dropdown {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
    min-width: 0;
    transition: opacity 0.25s, max-height 0.25s, visibility 0.25s;
  }
  .nav-has-dropdown.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    max-height: 160px;
    padding: 0 0 8px 16px;
  }
  .nav-has-dropdown.open .nav-dropdown a { font-size: 16px; padding: 10px 0; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 100%;
    height: 100vh;
    background: var(--ink);
    color: #f4efe6;
    flex-direction: column;
    padding: 88px 36px 48px;
    gap: 0;
    transform: translateX(100%);
    transition: transform .38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 55;
    align-items: flex-start;
    font-size: 20px;
    font-family: var(--serif);
    font-style: italic;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; border-bottom: 1px solid rgba(244,239,230,0.1); }
  .nav-links a,
  .nav-links a:not([style*="opacity:1"]) {
    display: block;
    padding: 16px 0;
    color: #f4efe6 !important;
    opacity: 1 !important;
    font-size: 20px;
    opacity: 1;
  }
  .nav-links a:not([style*="opacity:1"]) { opacity: 0.55; }
  .nav-links a::after { display: none; }

  /* Intro grid */
  .intro-grid { grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); }

  /* Moments */
  .moments-grid { gap: 16px; }

  /* Gallery — collapse 12-col to 2-col at tablet */
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 10px; }
  .g-1, .g-2, .g-3, .g-4, .g-5, .g-6, .g-7, .g-8, .g-9 { grid-column: span 1; grid-row: span 1; }

  /* Location */
  .location-grid { gap: clamp(32px, 5vw, 64px); }

  /* Features */
  .feature { gap: clamp(32px, 5vw, 64px); }

  /* Parks */
  .parks-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Facts */
  .facts { gap: 0; }

  /* Arrive grid */
  .arrive-grid { gap: clamp(32px, 5vw, 64px); }
}

/* ============================================================
   ≤768px  Tablet / small laptop
   ============================================================ */
@media (max-width: 768px) {
  /* Hero */
  .hero-content { padding: 0 clamp(16px, 4vw, 32px) 56px; }
  .hero-foot { flex-direction: column; gap: 20px; }
  .hero-meta { display: none; }
  .hero-scroll { display: none; }
  .hero-cta-btn {
    align-self: center;
    margin: 20px auto 0;
    padding: 14px 28px;
    font-size: 12px;
  }

  /* Split hero → stacked: text top, image bottom */
  .hero--split {
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  .hero-left {
    flex: none;
    width: 100%;
    padding: 96px 24px 24px;
    min-height: 0;
    text-align: center;
    align-items: center;
  }
  .hero-left .hero-foot { margin-top: 24px; }
  .hero-left .hero-cta-btn { margin-top: 16px; }
  .hero-left h1 {
    font-size: clamp(32px, 9vw, 52px);
    text-align: center;
  }
  .hero-left .hero-eyebrow,
  .hero-left .hero-lead,
  .hero-left .hero-foot { text-align: center; }
  .hero-left .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-left .hero-foot { justify-content: center; }
  .hero-right {
    position: relative;
    left: auto; right: auto; top: auto; bottom: auto;
    width: 100%;
    height: 100vw;
    min-height: 420px;
    max-height: 640px;
  }
  .hero-right::before { display: none; }
  .hero--split .hero-scroll { display: none; }

  /* Sub-hero */
  .sub-hero { min-height: 60vh; }
  .sub-hero-content {
    padding: 0 clamp(16px, 4vw, 32px) 40px;
    align-items: center;
    text-align: center;
  }
  .breadcrumb { justify-content: center; }
  .sub-hero-foot { flex-direction: column; align-items: center; }
  .sub-hero-stats { flex-wrap: nowrap; gap: clamp(10px, 2.5vw, 32px); font-size: 9px; letter-spacing: 0.1em; justify-content: center; }
  .sub-hero-stats > div { min-width: 0; }
  .sub-hero-stats strong { font-size: clamp(20px, 3.5vw, 28px); }

  /* Grids → single column */
  .intro-grid,
  .moments-head,
  .location-grid,
  .parks-head,
  .arrive-grid,
  .overview-grid,
  .amenities-head,
  .feature,
  .feature.reverse,
  .sister-card { grid-template-columns: 1fr; gap: 28px; }

  .feature.reverse .feature-img { order: 0; }
  .feature-img { aspect-ratio: 16/9; }
  .feature { margin-bottom: 48px; }

  /* Duo cards */
  .duo { grid-template-columns: 1fr; gap: 20px; }
  /* Villa cards — self-contained with border, name before image */
  .duo { gap: 1px; }
  .villa-card {
    padding: 0;
    border: 1px solid var(--rule);
  }
  .villa-img { order: 2; aspect-ratio: 3/2; }
  .villa-text { order: 1; padding: 20px 20px 0; }
  .villa-meta { order: 3; margin: 0; }
  .villa-cta {
    order: 4;
    margin: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    background: var(--olive);
    color: #f4efe6;
  }
  .villa-card.rose .villa-cta { background: var(--rose); }

  /* Moments → 2-col */
  .moments-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .m-1, .m-2, .m-3, .m-4 { grid-column: span 1; grid-row: auto; aspect-ratio: 4/5; }

  /* Gallery → horizontal swipe strip */
  .gallery-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 12px;
    scrollbar-width: none;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-grid .g-item {
    flex: 0 0 75vw;
    max-width: 320px;
    height: 260px;
    scroll-snap-align: start;
    grid-column: unset;
    grid-row: unset;
  }
  .g-1, .g-2, .g-3, .g-4, .g-5, .g-6, .g-7, .g-8, .g-9 { grid-column: unset; grid-row: unset; }
  .gallery-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  /* Tab filter is a desktop affordance; mobile swipe strip shows every photo */
  .gallery-grid .g-item.hidden { display: block; }
  .gallery-filter { display: none; }

  /* Parks → 2-col */
  .parks-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Facts → 2-col */
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { border-left: none; border-bottom: 1px solid var(--rule); }
  .fact:nth-child(odd) { border-right: 1px solid var(--rule); }
  .fact:last-child { border-bottom: none; }

  /* Location amenities → sticky 4-per-row tabs on mobile/tablet */
  .amenities {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    position: sticky;
    top: 200px;
    z-index: 5;
    background: var(--ink);
    padding: 10px 0;
    margin-top: 24px;
  }
  .amenity {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    padding: 8px 2px;
    border-bottom: none;
  }
  .amenity-name {
    font-family: var(--sans, var(--mono));
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.2;
  }
  .amenity-dist {
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  /* Detail page amenities list */
  .amenities-list { grid-template-columns: 1fr 1fr; }
  .am:nth-child(3n) { border-right: 1px solid var(--rule); }
  .am:nth-child(2n) { border-right: none; }

  /* Form */
  .inquiry .container { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field-half,
  .field-half + .field-half,
  .form-grid .field-half:nth-of-type(even) { padding-left: 0; padding-right: 0; border-left: none; }
  .form-grid .field-half:nth-of-type(even):focus-within::after { left: 0; width: 100%; }
  .form-grid .field-half:nth-of-type(even).field--error::after { left: 0; width: 100% !important; }
  .review-form { grid-template-columns: 1fr; }
  .reviews-head { flex-direction: column; align-items: flex-start; gap: 20px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: clamp(24px, 4vw, 40px); }
  .inquiry-meta { flex-direction: column; gap: 12px; }

  /* Villa Pick */
  .villa-pick { grid-template-columns: 1fr; }
  .villa-pick-body { padding: 24px 28px 28px; }
  .villa-pick-dot { top: 26px; right: 28px; }

  /* Calendar */
  .cal-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .availability-head { grid-template-columns: 1fr; gap: 24px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Sister */
  .sister-body { padding: 28px clamp(16px, 4vw, 32px); }

  /* Lightbox buttons */
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-close { top: 16px; right: 16px; }
  .lightbox-img { max-width: 98vw; max-height: 80vh; }

  /* Arrive */
  .arrive-modes { gap: 0; }
  .mode {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
    gap: 8px;
  }
  .mode-tag { margin-left: 0; }

  /* Stay pickers */
  .stay-pickers { flex-direction: column; gap: 12px; }
  .stay-picker-sep { display: none; }
}

/* ============================================================
   ≤480px  Mobile
   ============================================================ */
@media (max-width: 480px) {
  /* Calendar single column */
  .cal-grid { grid-template-columns: 1fr; }

  /* Typography */
  h2 { font-size: clamp(26px, 7.5vw, 40px); }
  h3 { font-size: clamp(20px, 5.5vw, 28px); }

  /* Nav brand */
  .nav-brand { font-size: 18px; }

  /* Hero */
  .hero-eyebrow { display: none; }
  .hero-scroll { display: none; }

  /* Moments → single column */
  .moments-grid { grid-template-columns: 1fr; }
  .m-1, .m-2, .m-3, .m-4 { aspect-ratio: 3/2; }

  /* Gallery → narrower cards on small phones */
  .gallery-grid .g-item { flex: 0 0 85vw; max-width: 280px; height: 220px; }

  /* Parks → single column */
  .parks-grid { grid-template-columns: 1fr; }
  .park-img { aspect-ratio: 16/9; }

  /* Facts → single column */
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: none !important; border-bottom: 1px solid var(--rule); border-left: none; }
  .fact:last-child { border-bottom: none; }

  /* Amenities → single column */
  .amenities-list { grid-template-columns: 1fr; }
  .am { border-right: none !important; }
  .am-num { min-width: 32px; }

  /* Footer → single column */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bot { flex-direction: column; gap: 4px; text-align: center; }

  /* Reviews */
  .reviews-grid { grid-template-columns: 1fr; }
  .review-card { padding: 24px; }

  /* Sub-hero stats — single row */
  .sub-hero-stats { display: flex; flex-wrap: nowrap; gap: clamp(8px, 3vw, 20px); font-size: 8px; letter-spacing: 0.08em; }

  /* Breadcrumb */
  .breadcrumb { font-size: 10px; }

  /* Villa card meta */
  .villa-meta { flex-direction: column; gap: 10px; font-size: 12px; padding: 16px 20px; border: none; border-top: 1px solid var(--rule); margin: 0; }
  .villa-meta strong { font-size: 15px; }

  /* Cal hint */
  .cal-hint { font-size: 9px; }

  /* Mode tag */
  .mode-tag { width: 100%; }

  /* Gallery filter */
  .gallery-filter button { padding: 8px 12px; }

  /* Contact phone */
  .contact-phone { font-size: clamp(18px, 5vw, 28px); }
}

/* ============================================================
   ≤360px  Small phones
   ============================================================ */
@media (max-width: 360px) {
  .sub-hero-stats > div strong { font-size: clamp(18px, 5vw, 22px); }
  .fact-val em { font-size: clamp(28px, 8vw, 40px); }
  .review-card { padding: 20px 16px; }
  .nav-links { padding: 80px 24px 40px; }
  .gallery-filter { gap: 2px; }
  .gallery-filter button { font-size: 10px; padding: 8px 10px; }
}

/* Footer tagline */
.footer-tagline {
  max-width: 32ch;
  color: rgba(244,239,230,0.6);
  font-size: 14px;
}

/* Gallery show-more button */
.gallery-more-wrap { text-align: center; margin-top: 48px; }
.gallery-more-btn {
  background: none;
  border: 1px solid var(--ink-soft);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 32px;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.gallery-more-btn:hover { background: var(--ink); color: var(--bg); }

/* Swipe gallery — right fade hint on mobile */
@media (max-width: 1024px) {
  .gallery-section {
    position: relative;
  }
  .gallery-section::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: clamp(32px, 6vw, 64px);
    background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
  }
  /* Scroll strip needs padding-right so last card isn't hidden under fade */
  .gallery-grid { padding-right: clamp(32px, 6vw, 64px); }
}

/* ========== DEDICATED GALLERY PAGE ========== */
.gallery-page-header {
  padding-top: 140px;
  padding-bottom: 64px;
}
.gallery-page-header h1 { margin-top: 16px; }
.gallery-page-header .section-lead { margin-top: 16px; }
.gallery-page-header .gallery-all-btn { margin-top: 24px; }
.gallery-page-breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.gallery-page-breadcrumb .sep { opacity: 0.4; }

/* Filter pills */
.gallery-page-filter {
  display: flex;
  gap: 4px;
  padding-bottom: 48px;
  flex-wrap: wrap;
}
.gpf-btn {
  background: none;
  border: 1px solid var(--rule);
  padding: 10px 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink-soft);
  transition: background .25s, color .25s, border-color .25s;
}
.gpf-btn.active,
.gpf-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Bento grid */
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  grid-auto-flow: dense;
  gap: 4px;
  padding-bottom: 80px;
}
.gp-item {
  overflow: hidden;
  background: var(--bg-deep);
  cursor: pointer;
  position: relative;
}
.gp-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1) translateZ(0);
  transition: transform 1.2s ease;
  will-change: transform;
}
.gp-item:hover img { transform: scale(1.05) translateZ(0); }
.gp-item::after {
  content: '+';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,18,14,0.3);
  color: #f4efe6;
  font-family: var(--serif);
  font-size: 28px;
  opacity: 0;
  transition: opacity .3s;
}
.gp-item:hover::after { opacity: 1; }

/* Vary sizes — bento feel */
.gp-item:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
.gp-item:nth-child(11n+5) { grid-column: span 2; }
.gp-item:nth-child(13n+9) { grid-row: span 2; }

/* Villa cards section */
.gallery-page-villas {
  padding-top: clamp(56px, 8vw, 120px);
  padding-bottom: clamp(56px, 8vw, 120px);
  border-top: 1px solid var(--rule);
}
.gallery-page-villas-head {
  margin-bottom: 48px;
}
.gallery-page-villas-head h2 { margin-top: 16px; }

/* "See all" button on home */
.gallery-all-btn {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
  transition: color .25s, border-color .25s;
}
.gallery-all-btn:hover { color: var(--ink); border-color: var(--ink); }

@media (max-width: 768px) {
  .gallery-page-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gp-item:nth-child(7n+1),
  .gp-item:nth-child(11n+5),
  .gp-item:nth-child(13n+9) { grid-column: span 1; grid-row: span 1; }
}
@media (max-width: 480px) {
  .gallery-page-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; gap: 3px; }
}

/* Hero meta tooltip — Google Maps link */
.hero-meta { position: relative; }
.hero-meta-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  z-index: 20;
  white-space: nowrap;
  background: rgba(20,18,14,0.55);
  border: 1px solid rgba(244,239,230,0.3);
  color: #f4efe6;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .25s ease 0s, transform .25s ease 0s;
}
/* Show on meta hover */
.hero-meta:hover .hero-meta-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity .2s ease 0s, transform .2s ease 0s;
}
/* Keep visible when on tooltip — 400ms delay before hiding */
.hero-meta-tooltip {
  transition: opacity .2s ease .4s, transform .2s ease .4s;
}
/* Bridge the gap — invisible pseudo-element extending down from tooltip */
.hero-meta-tooltip::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 14px;
}
.hero-meta-tooltip-icon {
  font-size: 14px;
  line-height: 1;
}
.hero-meta-tooltip:hover {
  background: rgba(20,18,14,0.75);
  border-color: rgba(244,239,230,0.5);
}

/* Subtle "hover me" hint — a gently pulsing dot beside the hero meta */
.hero-meta::before {
  content: "";
  position: absolute;
  top: 19px;
  left: calc(100% + 8px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: auto;
  cursor: crosshair;
  animation: metaHint 2.6s ease-in-out infinite;
  transition: opacity .3s ease;
}
.hero-meta:hover::before { animation: none; opacity: 0; }
@keyframes metaHint {
  0%, 100% { transform: scale(0.55); opacity: 0.4;  box-shadow: 0 0 0 0 rgba(31,29,24,0.35); }
  50%      { transform: scale(1);    opacity: 0.95; box-shadow: 0 0 0 8px rgba(31,29,24,0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-meta::before { animation: none; opacity: 0.6; }
}


/* Villa icons — on cards and sub-hero */
.villa-name {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.villa-name-icon {
  height: 36px;
  width: auto;
  opacity: 0.85;
  display: inline-block;
}
.sub-hero-villa-icon {
  height: 0.8em;
  width: auto;
  margin-left: 0.4em;
  display: inline-block;
  vertical-align: baseline;
  object-fit: contain;
}

/* Location hover preview */
.location-visual { position: relative; }
.location-preview {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition:
    opacity 1100ms cubic-bezier(.22,.61,.36,1),
    transform 1400ms cubic-bezier(.22,.61,.36,1),
    visibility 0s linear 1100ms;
  z-index: 3;
  overflow: hidden;
  will-change: opacity, transform;
}
.location-preview.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition:
    opacity 900ms cubic-bezier(.22,.61,.36,1),
    transform 1600ms cubic-bezier(.22,.61,.36,1),
    visibility 0s linear 0s;
}
.preview-layer {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 1;
  transform: scale(1.08);
  filter: saturate(.92) brightness(.96);
  transition: transform 1800ms cubic-bezier(.22,.61,.36,1), filter 900ms ease, opacity 450ms ease;
  will-change: transform, filter, opacity;
}
.location-preview.active .preview-layer {
  transform: scale(1);
  filter: saturate(1) brightness(1);
}
.preview-layer--top {
  opacity: 0;
  z-index: 2;
}
.location-preview-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(20,18,14,0.85), transparent);
  color: #f4efe6;
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  font-weight: 300;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 900ms cubic-bezier(.22,.61,.36,1) 150ms,
    transform 1100ms cubic-bezier(.22,.61,.36,1) 150ms;
}
.location-preview.active .location-preview-label {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .location-preview,
  .preview-layer,
  .location-preview-label {
    transition-duration: 200ms !important;
    transform: none !important;
  }
}
/* amenity hover affordance */
.amenity { cursor: default; transition: color .2s; }
.amenity:hover .amenity-name { color: #f4efe6; }
.location .amenity:hover { background: rgba(244,239,230,0.04); }
.amenity--active .amenity-name { color: #f4efe6; }
.location .amenity--active { background: rgba(244,239,230,0.06); }

/* ============================================================
   Scroll progress bar
   ============================================================ */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 2000;
  pointer-events: none;
  transition: width 80ms linear;
}


/* ============================================================
   Cookie consent
   ============================================================ */
.ck-overlay { display: none; }

/* Cookie trigger button */
.ck-trigger {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1480;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1c1812;
  border: 1px solid rgba(244,239,230,0.2);
  color: rgba(244,239,230,0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s, background .2s;
  padding: 0;
}
.ck-trigger svg { width: 26px; height: 26px; }
.ck-trigger:hover {
  background: #2a2519;
  border-color: rgba(244,239,230,0.5);
  color: #c8a96e;
}

.ck-box {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  width: min(680px, calc(100vw - 32px));
  background: #1c1812;
  border: 1px solid rgba(244,239,230,0.12);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(.22,.61,.36,1);
}
.ck-box.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Main panel */
.ck-main { padding: 32px 32px 24px; }
.ck-logo {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.ck-main h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  color: #f4efe6;
  margin: 0 0 10px;
}
.ck-main p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(244,239,230,0.6);
  margin: 0 0 6px;
}
.ck-main a { color: var(--accent); text-decoration: none; }
.ck-main a:hover { text-decoration: underline; }

.ck-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 32px 28px;
}
.ck-btn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  padding: 12px 22px;
  transition: background .2s, color .2s, opacity .2s;
  white-space: nowrap;
}
.ck-btn-accept,
.ck-btn-decline,
.ck-btn-customize {
  flex: 1;
  background: rgba(244,239,230,0.08);
  color: rgba(244,239,230,0.8);
  border: 1px solid rgba(244,239,230,0.18);
}
.ck-btn-accept:hover,
.ck-btn-decline:hover,
.ck-btn-customize:hover {
  background: rgba(244,239,230,0.15);
  color: #f4efe6;
  border-color: rgba(244,239,230,0.35);
}

/* Customize panel */
.ck-customize {
  display: none;
  border-top: 1px solid rgba(244,239,230,0.1);
  padding: 24px 32px 28px;
}
.ck-customize.open { display: block; }
.ck-customize-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.4);
  margin-bottom: 16px;
}
.ck-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(244,239,230,0.07);
}
.ck-toggle-row:last-child { border-bottom: none; }
.ck-toggle-info strong {
  display: block;
  font-size: 13px;
  color: #f4efe6;
  font-weight: 400;
  margin-bottom: 3px;
}
.ck-toggle-info span {
  font-size: 12px;
  color: rgba(244,239,230,0.45);
}
.ck-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  margin-left: 16px;
}
.ck-toggle input { opacity: 0; width: 0; height: 0; }
.ck-toggle-track {
  position: absolute;
  inset: 0;
  background: transparent;
  border: 2px solid #7a6e60;
  border-radius: 11px;
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.ck-toggle input:checked + .ck-toggle-track {
  background: #c8a96e;
  border-color: #c8a96e;
}
.ck-toggle-track::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  background: #7a6e60;
  border-radius: 50%;
  transition: transform .25s, background .25s;
}
.ck-toggle input:checked + .ck-toggle-track::after {
  transform: translateX(18px) translateY(-50%);
  background: #fff;
}
.ck-toggle input:disabled + .ck-toggle-track { cursor: not-allowed; }

.ck-save-btn {
  margin-top: 20px;
  width: 100%;
  padding: 13px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(244,239,230,0.08);
  color: rgba(244,239,230,0.7);
  border: 1px solid rgba(244,239,230,0.15);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.ck-save-btn:hover { background: rgba(244,239,230,0.14); color: #f4efe6; }

@media (max-width: 480px) {
  .ck-box { bottom: 0; width: 100%; }
  .ck-main, .ck-actions, .ck-customize { padding-left: 20px; padding-right: 20px; }
  .ck-actions { flex-direction: column; }
  .ck-btn-accept, .ck-btn-decline { flex: none; }
}


/* ============================================================
   Legal pages (Privacy & Cookies)
   ============================================================ */
.legal-page {
  padding-top: 120px;
  padding-bottom: 120px;
  min-height: 70vh;
}
.legal-body {
  max-width: 760px;
  margin: 0 auto;
}
.legal-body h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 8px;
  line-height: 1.1;
}
.legal-updated {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 56px;
}
.legal-body h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  margin: 48px 0 16px;
}
.legal-body p, .legal-body li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.legal-body ul {
  padding-left: 24px;
  margin: 12px 0 16px;
}
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--accent); }
.legal-body strong { color: var(--ink); font-weight: 500; }

/* Cookie table */
.cookie-table-wrap { overflow-x: auto; margin: 24px 0; }
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cookie-table th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
}
.cookie-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  vertical-align: top;
}
.cookie-table code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg-deep);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--ink);
}

/* Cookie banner policy link */
.ck-policy-link {
  color: inherit;
  opacity: 0.75;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.ck-policy-link:hover { opacity: 1; }

/* ============================================================
   404 error page
   ============================================================ */
.error-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #f4efe6;
  text-align: center;
  padding: 140px clamp(20px, 5vw, 48px) 80px;
}
.error-404-inner { max-width: 560px; }
.error-404-number {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(96px, 16vw, 180px);
  line-height: 1;
  color: var(--olive);
  margin-bottom: 8px;
}
.error-404 h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3.5vw, 32px);
  line-height: 1.3;
  margin-bottom: 20px;
  color: #f4efe6;
}
.error-404-lead {
  font-size: 15px;
  color: rgba(244,239,230,0.7);
  max-width: 46ch;
  margin: 0 auto 40px;
}
.error-404-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.error-404-actions .hero-cta-btn { align-self: center; margin: 0; }
.error-404-secondary {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.85);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .2s ease;
}
.error-404-secondary:hover { color: var(--rose); }
