/* ═══════════════════════════════════════════════
   HILLTOP VILLA — Main Stylesheet
   Design: luxury · minimalist · modern
   ═══════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --navy:       #0d1117;
  --navy-mid:   #141b27;
  --navy-light: #1d2b3a;
  --gold:       #c9a96e;
  --gold-light: #e5cc9d;
  --white:      #ffffff;
  --cream:      #f7f3ee;
  --cream-dark: #ede8e1;
  --text:       #1a1a1a;
  --text-muted: #6b7280;
  --border:     rgba(0,0,0,0.08);

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --radius:  12px;
  --radius-lg: 20px;
  --shadow:  0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1200px;
}

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

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

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── UTILITY ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 96px 0; }
.bg-cream    { background: var(--cream); }
.bg-navy     { background: var(--navy); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.eyebrow.gold  { color: var(--gold); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-head h2 { font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); font-weight: 500; line-height: 1.2; color: var(--text); margin-bottom: 16px; }
.section-head h2.white { color: var(--white); }
.section-desc { color: var(--text-muted); font-size: 17px; line-height: 1.7; }
.section-desc.muted { color: rgba(255,255,255,0.55); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  min-height: 48px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--transition);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn-lg  { padding: 16px 36px; font-size: 13px; }
.btn-xl  { padding: 20px 48px; font-size: 14px; letter-spacing: 0.1em; }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

/* ── NAVIGATION ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 0;
}

#navbar.scrolled {
  background: rgba(13,17,23,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 24px;
  transition: padding var(--transition);
}

#navbar.scrolled .nav-inner { padding-top: 16px; padding-bottom: 16px; }

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}
.logo-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.01em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}
.logo-loc {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}
.nav-links a:hover { color: var(--white); }

.nav-cta { margin-left: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.25s;
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU: full-screen luxury overlay ── */
.nav-mobile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 900;                /* sits below navbar (z:1000), logo always visible */
  background: var(--navy);
  padding: 100px 48px 72px;

  /* Hidden state — use opacity so transitions work */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition:
    opacity    0.38s cubic-bezier(0.4,0,0.2,1),
    transform  0.38s cubic-bezier(0.4,0,0.2,1),
    visibility 0s   linear 0.38s;
}
.nav-mobile.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity    0.38s cubic-bezier(0.4,0,0.2,1),
    transform  0.38s cubic-bezier(0.4,0,0.2,1),
    visibility 0s   linear 0s;
}

/* Nav items — stagger in one by one */
.nav-mobile ul { padding: 0; }
.nav-mobile li {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1), transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.nav-mobile li:last-child    { border-bottom: none; margin-top: 44px; }
.nav-mobile.open li:nth-child(1) { opacity:1; transform:none; transition-delay: 0.13s; }
.nav-mobile.open li:nth-child(2) { opacity:1; transform:none; transition-delay: 0.19s; }
.nav-mobile.open li:nth-child(3) { opacity:1; transform:none; transition-delay: 0.25s; }
.nav-mobile.open li:nth-child(4) { opacity:1; transform:none; transition-delay: 0.31s; }
.nav-mobile.open li:nth-child(5) { opacity:1; transform:none; transition-delay: 0.37s; }
.nav-mobile.open li:nth-child(6) { opacity:1; transform:none; transition-delay: 0.43s; }

/* Navigation links — large serif */
.nav-mobile a {
  display: block;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: clamp(24px, 7vw, 34px);
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  letter-spacing: -0.01em;
  line-height: 1.15;
  transition: color 0.2s, letter-spacing 0.3s;
}
.nav-mobile a:hover { color: var(--gold); letter-spacing: 0.01em; }

/* Last item: featured gold booking CTA */
.nav-mobile li:last-child a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 16px 36px;
  border-radius: 4px;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
}
.nav-mobile li:last-child a:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Location tag at the bottom of the overlay */
.nav-mobile-loc {
  position: absolute;
  bottom: 36px;
  left: 48px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

/* ── HERO ── */
#hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -10% 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 62%, rgba(8,25,45,0.42) 0%, transparent 100%),
    linear-gradient(
      to bottom,
      rgba(8,25,45,0.52) 0%,
      rgba(8,25,45,0.08) 20%,
      rgba(8,25,45,0.12) 55%,
      rgba(8,25,45,0.78) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}
.hero-content .eyebrow {
  color: var(--gold-light);
  margin-bottom: 16px;
  text-shadow: 0 1px 20px rgba(0,0,0,0.9), 0 2px 6px rgba(0,0,0,0.7);
}
.hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.4);
}
.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255,255,255,0.9);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 40px;
  text-shadow: 0 1px 24px rgba(0,0,0,0.9), 0 2px 8px rgba(0,0,0,0.7);
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.6);
  /* bounce handled via combined animation below */
}
.scroll-cue svg { width: 28px; height: 28px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── HIGHLIGHTS ── */
#highlights {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.highlights-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.hl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 32px 36px;
  text-align: center;
}
.hl-val {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--white);
  line-height: 1;
}
.hl-lbl {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.hl-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* ── GALLERY ── */
.gallery-grid {
  columns: 3;
  column-gap: 12px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-light);
  cursor: zoom-in;
  position: relative;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s;
  border-radius: var(--radius);
}
.gallery-item:hover::after { background: rgba(0,0,0,0.12); }

/* ── LIGHTBOX ── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#lightbox.active { opacity: 1; pointer-events: all; }

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,10,14,0.95);
  backdrop-filter: blur(4px);
}
.lb-wrap {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
#lb-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
#lb-caption {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  z-index: 3;
  color: rgba(255,255,255,0.8);
  font-size: 32px;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  transition: all 0.2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.lb-close { top: 20px; right: 20px; font-size: 28px; }
.lb-prev  { left: 20px; top: 50%; transform: translateY(-50%); font-size: 36px; }
.lb-next  { right: 20px; top: 50%; transform: translateY(-50%); font-size: 36px; }

/* ── MAGAZINE PANELS (The Villa) ── */
#villa { background: var(--cream); }

.villa-intro-wrap { padding: 96px 0 56px; }

.mag-panel { margin-bottom: 0; }

.mag-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--navy-light);
}
.mag-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.mag-panel:hover .mag-img-wrap img { transform: scale(1.04); }

.mag-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,14,22,0.78) 0%,
    rgba(10,14,22,0.25) 35%,
    transparent 60%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 52px 60px;
}
.mag-num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.mag-img-overlay h3 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
  margin: 0;
}

.mag-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 52px 48px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.mag-body--alt { direction: rtl; }
.mag-body--alt > * { direction: ltr; }
.mag-body--last { padding-bottom: 96px; }

.mag-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--text);
  line-height: 1.4;
  font-weight: 400;
  padding-top: 4px;
}
.mag-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.85;
  border-left: 2px solid var(--gold);
  padding-left: 20px;
}

.mag-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.45;
  margin: 0 auto;
}

/* ── AMENITIES ── */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  margin-bottom: 64px;
}
.amenity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.am-icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
  flex-shrink: 0;
}
.amenity span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.rules-block {
  border-top: 1px solid var(--border);
  padding-top: 48px;
  max-width: 560px;
}
.rules-block h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 24px;
}
.rules-list { display: flex; flex-direction: column; gap: 14px; }
.rules-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
}
.rules-list svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-muted); }

/* ── PRICING TEASER ── */
.pricing-teaser {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
  margin-bottom: 28px;
}
.pt-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.pt-value {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  color: var(--white);
  line-height: 1;
}
.pt-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.pt-divider {
  width: 1px;
  height: 72px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.pt-note {
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}
.pricing-cta { text-align: center; }

/* ── LOCATION ── */
.location-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.location-map {
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
#villaMap {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
}
.leaflet-container { font-family: var(--sans); }

.loc-address {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.loc-address svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.loc-address strong { font-size: 16px; font-weight: 600; display: block; margin-bottom: 4px; }
.loc-address p { font-size: 14px; color: var(--text-muted); }

.loc-distances {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.loc-distances li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
}
.loc-distances li strong { color: var(--text); font-weight: 600; }
.loc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.loc-desc { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ── BOOK CTA ── */
#book {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.book-bg {
  position: absolute;
  inset: -10% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.book-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,14,22,0.82) 0%, rgba(10,14,22,0.65) 100%);
}
.book-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 24px;
  max-width: 640px;
}
.book-content .eyebrow { display: block; margin-bottom: 16px; }
.book-content h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.book-content p {
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  margin-bottom: 36px;
  line-height: 1.6;
}
.book-btns { display: flex; justify-content: center; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.4); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: flex-end;
}
.footer-nav a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-credit { width: 100%; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.06); text-align: center; }
.footer-credit a { color: rgba(255,255,255,0.38); transition: color 0.2s; }
.footer-credit a:hover { color: var(--gold); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── PARALLAX ── */
.parallax-bg { transform: translateY(0); }

/* ── SCROLL PROGRESS BAR ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  z-index: 9999;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ── HERO ENTRANCE ── */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content .eyebrow { animation: heroIn 0.9s cubic-bezier(0.4,0,0.2,1) 0.3s  both; }
.hero-content h1        { animation: heroIn 1.0s cubic-bezier(0.4,0,0.2,1) 0.5s  both; }
.hero-sub               { animation: heroIn 0.9s cubic-bezier(0.4,0,0.2,1) 0.7s  both; }
.hero-btns              { animation: heroIn 0.9s cubic-bezier(0.4,0,0.2,1) 0.9s  both; }
.scroll-cue             { animation: heroIn 0.9s cubic-bezier(0.4,0,0.2,1) 1.15s both, bounce 2s 2.2s infinite; }

/* ── REVEAL ANIMATION VARIANTS ── */
.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.85s cubic-bezier(0.4,0,0.2,1), transform 0.85s cubic-bezier(0.4,0,0.2,1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.85s cubic-bezier(0.4,0,0.2,1), transform 0.85s cubic-bezier(0.4,0,0.2,1);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.96) translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1), transform 0.9s cubic-bezier(0.4,0,0.2,1);
}
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible  { opacity: 1; transform: none; }

/* Honour reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-content .eyebrow,
  .hero-content h1,
  .hero-sub, .hero-btns, .scroll-cue { animation: none; opacity: 1; }
  .reveal-left, .reveal-right, .reveal-scale { transform: none; }
}

/* ── SEAMLESS SECTION FLOW ── */
/* Remove hard dividers, replace with intentional gold accent line */
#highlights { border-top: none; }
footer      { border-top: none; }

/* Highlights → Gallery: thin gold accent line — clean, on-brand luxury separator */
#gallery {
  border-top: 1px solid rgba(201, 169, 110, 0.18);
}

/* Pricing + Location need ::before for very subtle 20px edge-softeners (not blobs) */
#pricing, #location { position: relative; }

#pricing::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 20px;
  background: linear-gradient(to bottom, rgba(247,243,238,0.5), transparent);
  pointer-events: none;
  z-index: 1;
}
#pricing .container { position: relative; z-index: 2; }

#location::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 20px;
  background: linear-gradient(to bottom, rgba(13,17,23,0.3), transparent);
  pointer-events: none;
  z-index: 1;
}
#location .container { position: relative; z-index: 2; }

/* ── EYEBROW ACCENT LINE ── */
/* Tiny gold line that draws in under section eyebrows as they appear */
.section-head .eyebrow {
  display: inline-block;
  position: relative;
}
.section-head .eyebrow::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 1px;
  background: var(--gold);
  opacity: 0.55;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.25s;
}
.section-head .eyebrow.visible::after { width: 28px; }

/* ── VILLA IMAGE PARALLAX ── */
/* Images scale up slightly so translateY parallax never shows empty edges */
.mag-img-wrap img {
  transform: scale(1.08) translateY(0px);
  will-change: transform;
}
.mag-panel:hover .mag-img-wrap img {
  transform: scale(1.12) translateY(0px);
}

/* ── UNIFIED DARK PALETTE ── */
/* Gallery, Villa & Location become dark navy — page flows as one continuous canvas.
   Amenities stays light: the single intentional contrast moment (Apple technique). */
#gallery  { background: var(--navy); }
#villa    { background: var(--navy); }
#location { background: var(--navy); }

/* Gallery text on dark */
#gallery .section-head h2              { color: var(--white); }

/* Villa intro heading on dark */
.villa-intro-wrap .section-head h2     { color: var(--white); }

/* Villa panel body text on dark */
.mag-quote { color: var(--white); }
.mag-desc  { color: rgba(255,255,255,0.58); border-left-color: rgba(201,169,110,0.5); }

/* Location section text on dark */
#location .section-head h2             { color: var(--white); }
#location .section-head .section-desc  { color: rgba(255,255,255,0.55); }
.loc-address strong                    { color: var(--white); }
.loc-address p                         { color: rgba(255,255,255,0.52); }
.loc-distances li                      { color: rgba(255,255,255,0.62); }
.loc-distances li strong               { color: var(--white); }
.loc-desc                              { color: rgba(255,255,255,0.52); }
.loc-address svg                       { color: var(--gold); }
.location-map                          { box-shadow: 0 4px 40px rgba(0,0,0,0.5); }

/* Amenities: the one deliberate light break — add thin gold top line to mark it */
#amenities { border-top: 1px solid rgba(201,169,110,0.15); }

/* Remove the now-pointless location::before gradient (dark → dark) */
#location::before { display: none; }

/* ── RESPONSIVE ── */
/* ── TABLET ── */
@media (max-width: 1024px) {
  .amenities-grid { grid-template-columns: repeat(3, 1fr); }
  .mag-body { padding: 44px 40px 72px; gap: 40px; }
}

/* ── LARGE MOBILE / SMALL TABLET ── */
@media (max-width: 900px) {
  .location-layout    { grid-template-columns: 1fr; }
  .location-map       { height: 300px; }
  .mag-body           { grid-template-columns: 1fr; gap: 20px; padding: 32px 24px 56px; direction: ltr; }
  .mag-body--alt      { direction: ltr; }
  .mag-body--last     { padding-bottom: 72px; }
  .mag-desc           { border-left: none; padding-left: 0; border-top: 2px solid var(--gold); padding-top: 16px; }
  .villa-intro-wrap   { padding: 72px 0 40px; }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  /* Layout */
  .section-pad        { padding: 48px 0; }
  .container          { padding: 0 20px; }

  /* Nav */
  .nav-links, .nav-cta { display: none; }
  .nav-toggle         { display: flex; }
  .nav-inner          { padding: 18px 24px; }

  /* ── HERO: editorial bottom-aligned — aerial view, sea + house both visible ── */
  #hero               { align-items: flex-end; height: 70vh; min-height: 70vh; }
  .hero-bg            {
    inset: 0;
    transform: none !important;
    background-size: cover;
    background-position: 42% 46%;
  }
  .hero-content {
    padding: 0 24px 88px;
    text-align: left;
    max-width: 100%;
  }
  .hero-content .eyebrow { margin-bottom: 10px; }
  .hero-content h1    { font-size: clamp(36px, 10vw, 60px); margin-bottom: 10px; }
  .hero-sub           { font-size: 14px; margin-bottom: 24px; letter-spacing: 0.03em; }
  .hero-btns          { flex-direction: row; gap: 10px; justify-content: flex-start; flex-wrap: nowrap; }
  .btn-lg             { width: auto; padding: 13px 22px; font-size: 12px; }
  /* Heavier bottom gradient so text is legible on the lower house area */
  .hero-overlay {
    background:
      linear-gradient(
        to top,
        rgba(8,25,45,0.92) 0%,
        rgba(8,25,45,0.50) 28%,
        rgba(8,25,45,0.10) 55%,
        rgba(8,25,45,0.40) 100%
      );
  }

  /* ── HIGHLIGHTS: 2-row × 3-col grid — all 6 items visible at once ── */
  .highlights-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: unset;
    scroll-snap-type: unset;
    -webkit-overflow-scrolling: unset;
    padding: 0;
    gap: 1px;
    background: rgba(255,255,255,0.07); /* 1px gap becomes subtle grid line */
    justify-content: unset;
  }
  .highlights-inner::-webkit-scrollbar { display: none; }
  .hl-divider         { display: none; }
  .hl-item {
    flex: unset;
    min-width: unset;
    padding: 20px 8px;
    scroll-snap-align: unset;
    background: var(--navy);
  }
  .hl-val             { font-size: 20px; }
  .hl-lbl             { font-size: 9px; letter-spacing: 0.12em; }

  /* Section headings */
  .section-head       { margin-bottom: 28px; }
  .section-head h2    { font-size: clamp(26px, 7vw, 38px); }
  .section-desc       { font-size: 15px; }

  /* ── GALLERY: horizontal swipe carousel ── */
  .gallery-grid {
    columns: unset;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
    padding: 0 20px 4px;
    margin: 0 -20px;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-item {
    flex: 0 0 78vw;
    scroll-snap-align: start;
    margin-bottom: 0;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
  }
  .gallery-item img { width: 100%; height: 100%; object-fit: cover; }

  /* ── GALLERY COUNTER ── */
  .gallery-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
  }
  .gallery-counter-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
  }
  .gallery-dots { display: flex; gap: 5px; }
  .gallery-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transition: background 0.3s, transform 0.3s;
    flex-shrink: 0;
  }
  .gallery-dot.active { background: var(--gold); transform: scale(1.4); }

  /* ── VILLA PANELS: image + description text below ── */
  .villa-intro-wrap   { padding: 36px 0 8px; }
  .mag-panel          { margin-bottom: 0; }
  .mag-divider        { display: none; }
  .mag-img-wrap {
    aspect-ratio: unset;
    height: 58vh;
    min-height: 340px;
  }
  .mag-img-overlay {
    padding: 24px 24px 36px;
    background: linear-gradient(
      to top,
      rgba(10,14,22,0.85) 0%,
      rgba(10,14,22,0.30) 45%,
      transparent 70%
    );
  }
  .mag-img-overlay h3 { font-size: clamp(24px, 6.5vw, 38px); }
  .mag-num            { margin-bottom: 6px; }
  /* Show description text below each panel — single column, dark bg */
  .mag-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 24px 36px;
    direction: ltr;
    background: var(--navy);
  }
  .mag-body--alt      { direction: ltr; }
  .mag-body--last     { padding-bottom: 48px; }
  .mag-quote          { font-size: 17px; line-height: 1.45; color: var(--white); }
  .mag-desc {
    font-size: 14px;
    line-height: 1.8;
    border-left: none;
    padding-left: 0;
    border-top: 2px solid var(--gold);
    padding-top: 14px;
    color: rgba(255,255,255,0.6);
  }
  /* Villa dots not needed — text is now visible below each panel */
  .villa-dots         { display: none !important; }

  /* ── AMENITIES: 3-column grid — all 12 visible, cream section bg ── */
  #amenities          { background: var(--cream); }
  .amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    overflow-x: unset;
    scroll-snap-type: unset;
    padding: 0;
    margin: 0 0 40px;
  }
  .amenity {
    flex: unset;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 18px 8px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    gap: 8px;
    scroll-snap-align: unset;
  }
  .am-icon            { width: 24px; height: 24px; margin: 0 auto; }
  .amenity span       { font-size: 12px; line-height: 1.35; font-weight: 500; }
  .rules-block        { padding-top: 36px; border-top-color: var(--cream-dark); }

  /* Pricing — side by side on all mobile sizes */
  .pricing-teaser     { gap: 36px; }
  .pt-value           { font-size: clamp(28px, 7.5vw, 44px); }
  .pt-divider         { height: 48px; }

  /* Location — hide map on mobile (dead space from invisible reveal-left); distances only */
  .location-map       { display: none; }
  #location .section-desc { display: none; }
  .loc-address        { display: none; }
  .loc-distances li   { font-size: 15px; }
  .loc-desc           { display: none; }
  .location-info      { padding-bottom: 8px; }

  /* ── BOOK CTA: full-width photo, content-driven height ── */
  #book               { min-height: 0; background: var(--navy); }
  .book-bg            {
    inset: 0;
    transform: none !important;
    background-size: cover;
    background-position: center 35%;
  }
  .book-content {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 88px 24px 96px;
  }
  .book-content h2    { font-size: clamp(32px, 9vw, 48px); }
  .book-content p     { font-size: 15px; margin-bottom: 40px; }
  .btn-xl             { padding: 18px 36px; font-size: 13px; width: 100%; max-width: 300px; }

  /* Footer — centered, compact, intentional luxury layout */
  footer              { padding: 48px 0 28px; text-align: center; }
  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 28px;
  }
  .footer-brand       { text-align: center; }
  .footer-logo        { font-size: 22px; }
  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    justify-content: center;
  }
  .footer-nav a       { font-size: 12px; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  /* Lightbox */
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* ── SMALL PHONES ── */
@media (max-width: 480px) {
  .nav-inner          { padding: 16px 20px; }
  .scroll-cue         { bottom: 20px; }

  /* Hero */
  .hero-content       { padding-bottom: 72px; }
  .hero-content h1    { font-size: clamp(32px, 9.5vw, 48px); }
  .hero-btns          { gap: 8px; }
  .btn-lg             { padding: 11px 18px; font-size: 11px; }

  /* Gallery */
  .gallery-item       { flex: 0 0 88vw; }

  /* Amenities — keep 3 cols, slightly tighter on small phones */
  .amenities-grid     { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .amenity            { padding: 14px 6px 12px; }
  .amenity span       { font-size: 11px; }

  /* Pricing — side by side, slightly smaller */
  .pricing-teaser     { gap: 24px; }
  .pt-value           { font-size: clamp(22px, 6vw, 32px); }
  .pt-label           { font-size: 10px; }
  .pt-divider         { height: 40px; }

  /* Rules */
  .rules-list li      { font-size: 14px; }

  /* Location — map already hidden on mobile */
}
