/* ─────────────────────────────────────────────────────────
   TEMPLATE ENGINE STYLES
   All values read from CSS custom properties injected by engine.js
   ───────────────────────────────────────────────────────── */

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text, #1a1a2e);
  background: var(--color-surface, #fff);
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  line-height: var(--lh-head, 1.15);
  letter-spacing: var(--ls-head, -0.02em);
}

/* ─── CSS Variables (fallbacks — engine.js injects the real values) ─── */
:root {
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --color-primary: #0b1f35;
  --color-primary-dark: #060f1a;
  --color-surface: #ffffff;
  --color-surface-alt: #f5f4f0;
  --color-surface-dark: #0b1f35;
  --color-gold: #c9a96e;
  --color-gold-dark: #a8843e;
  --color-gold-light: #e2c99a;
  --color-gold-faint: rgba(201,169,110,0.12);
  --color-text: #1a1a2e;
  --color-text-light: #f0ece4;
  --color-text-muted: #6b7280;
  --color-text-inverse: #ffffff;
  --color-border: rgba(0,0,0,0.08);
  --color-border-light: rgba(255,255,255,0.12);
  --color-success: #16a34a;
  --color-error: #dc2626;
  --color-overlay: rgba(6,15,26,0.72);
  --gradient-hero: linear-gradient(160deg, rgba(6,15,26,0.95) 0%, rgba(11,31,53,0.75) 60%, rgba(11,31,53,0.3) 100%);
  --gradient-gold: linear-gradient(135deg, #c9a96e 0%, #e2c99a 50%, #a8843e 100%);
  --section-padding-y: 100px;
  --section-padding-y-sm: 60px;
  --container-max-width: 1200px;
  --container-padding-x: 24px;
  --card-padding: 32px;
  --radius-card: 14px;
  --radius-button: 8px;
  --radius-badge: 6px;
  --radius-input: 8px;
  --radius-image: 10px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-card-hover: 0 16px 48px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-button: 0 4px 16px rgba(201,169,110,0.3);
  --shadow-header: 0 2px 32px rgba(0,0,0,0.18);
  --shadow-lightbox: 0 32px 80px rgba(0,0,0,0.6);
  --duration-fast: 150ms;
  --duration-base: 280ms;
  --duration-slow: 500ms;
  --duration-reveal: 700ms;
  --easing-default: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-height: 72px;
  --header-height-scrolled: 60px;
  --backdrop-blur: 18px;
}

/* ─── Utilities ──────────────────────────────────────────── */
.container {
  max-width: var(--container-max-width);
  padding-inline: var(--container-padding-x);
  margin-inline: auto;
  width: 100%;
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100%; left: 1rem; padding: .5rem 1rem; background: var(--color-gold); color: var(--color-primary); border-radius: var(--radius-button); font-weight: 600; z-index: 9999; }
.skip-link:focus { top: 1rem; }

/* ─── Reveal Animations ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-reveal) var(--easing-out),
              transform var(--duration-reveal) var(--easing-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ─── Scroll Progress ────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 1000;
  background: var(--color-border);
}
.scroll-progress span {
  display: block; height: 100%;
  background: var(--gradient-gold);
  transition: width 100ms linear;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-button);
  font-weight: 600; font-size: .9375rem; letter-spacing: .01em;
  transition: all var(--duration-base) var(--easing-default);
  white-space: nowrap; cursor: pointer;
}
.btn--gold {
  background: var(--gradient-gold);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-button);
}
.btn--gold:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,169,110,0.45); }
.btn--ghost {
  border: 1.5px solid var(--color-border-light);
  color: var(--color-text-light);
  background: transparent;
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
.btn--ghost-dark {
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
}
.btn--ghost-dark:hover { background: var(--color-surface-alt); }
.btn--whats {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
}
.btn--whats:hover { filter: brightness(1.05); transform: translateY(-2px); }

/* ─── Eyebrow ────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--color-text-muted);
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .75rem;
}
.eyebrow--gold { color: var(--color-gold-light); }
.eyebrow__dot {
  display: block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-gold);
}

/* ─── Section Head ───────────────────────────────────────── */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-head--left { text-align: left; margin-left: 0; }
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; color: var(--color-primary);
  margin-bottom: .75rem;
}
.section-title em { font-style: italic; color: var(--color-gold-dark); }
.section-desc { color: var(--color-text-muted); line-height: 1.7; }
.lead { font-size: 1.0625rem; line-height: 1.75; color: var(--color-text-muted); margin-bottom: 1.5rem; }

/* ─── Rule ────────────────────────────────────────────────── */
.rule {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.5rem 0;
}
.rule span {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-gold); font-weight: 600;
}
.rule::before, .rule::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: .4;
}

/* ─── Badges ────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: .25rem .75rem;
  border-radius: var(--radius-badge);
  font-size: .75rem; font-weight: 600;
}
.badge--avail { background: rgba(22,163,74,.12); color: #166534; }
.badge--sold  { background: rgba(220,38,38,.1);  color: #991b1b; }
.badge--reserved { background: rgba(217,119,6,.12); color: #92400e; }

/* ─── Header / Nav ───────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--header-height);
  transition: height var(--duration-base) var(--easing-default),
              background var(--duration-base),
              box-shadow var(--duration-base),
              transform var(--duration-base) var(--easing-default);
}
.site-header[data-state="top"] { background: transparent; }
.site-header[data-state="scrolled"] {
  background: rgba(6,15,26,0.88);
  backdrop-filter: blur(var(--backdrop-blur));
  box-shadow: var(--shadow-header);
  height: var(--header-height-scrolled);
}
.site-header.is-hidden { transform: translateY(-100%); }

.nav-row {
  display: flex; align-items: center; gap: 2rem;
  height: 100%; padding-block: .5rem;
}
.brand {
  display: flex; align-items: center; gap: .75rem;
  color: var(--color-text-inverse); flex-shrink: 0;
}
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 600; letter-spacing: .1em;
  line-height: 1.1; white-space: nowrap;
}
.brand-name small {
  display: block; font-size: .65rem;
  letter-spacing: .2em; text-transform: uppercase;
  font-weight: 300; opacity: .75; font-style: normal;
}
.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-nav ul { display: flex; gap: .25rem; }
.primary-nav a {
  padding: .5rem .75rem; border-radius: 6px;
  font-size: .875rem; font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color var(--duration-fast), background var(--duration-fast);
}
.primary-nav a:hover,
.primary-nav a.is-active { color: #fff; background: rgba(255,255,255,0.1); }
.nav-cta { flex-shrink: 0; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 8px;
  color: var(--color-text-inverse);
}
.hamburger { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.hamburger span {
  display: block; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform var(--duration-base), opacity var(--duration-fast);
}
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw);
  background: var(--color-primary-dark);
  padding: 5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--easing-default);
  z-index: 850;
  display: flex; flex-direction: column; gap: 1rem;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav nav { display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav a {
  padding: .875rem 1rem; border-radius: 8px;
  color: rgba(255,255,255,0.85); font-weight: 500;
  transition: background var(--duration-fast);
}
.mobile-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.mobile-nav .btn { margin-top: .5rem; text-align: center; justify-content: center; }
.mobile-nav__footer { margin-top: auto; padding-top: 2rem; border-top: 1px solid var(--color-border-light); }
.mobile-nav__footer a { font-size: .875rem; color: var(--color-gold-light); }
.mobile-nav__backdrop {
  position: fixed; inset: 0; background: var(--color-overlay);
  z-index: 840; opacity: 0; pointer-events: none;
  transition: opacity var(--duration-slow);
}
.mobile-nav__backdrop.is-visible { opacity: 1; pointer-events: all; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-height);
  background: var(--color-primary-dark);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__gradient {
  position: absolute; inset: 0;
  background: var(--gradient-hero);
}
.hero__noise {
  position: absolute; inset: 0; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__waves { position: absolute; bottom: 0; left: 0; right: 0; width: 100%; pointer-events: none; }

.hero__inner {
  position: relative; z-index: 2;
  padding-top: 4rem; padding-bottom: 2rem;
  max-width: 720px;
}
.hero__title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300; color: var(--color-text-inverse);
  line-height: 1.05; margin-bottom: .75rem;
  display: flex; flex-direction: column; gap: .1em;
}
.hero__title span { letter-spacing: .08em; }
.hero__title em { color: var(--color-gold-light); font-style: italic; font-weight: 300; }
.hero__address { color: rgba(255,255,255,0.55); font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero__lead { font-size: 1.0625rem; color: rgba(255,255,255,0.75); line-height: 1.75; max-width: 560px; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero Stats */
.hero__stats {
  position: relative; z-index: 2;
  display: flex; gap: 0;
  margin-top: auto;
  border-top: 1px solid var(--color-border-light);
}
.stat {
  flex: 1; padding: 1.5rem var(--container-padding-x);
  border-right: 1px solid var(--color-border-light);
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
}
.stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300; color: var(--color-gold-light);
  line-height: 1;
}
.stat__label { font-size: .75rem; color: rgba(255,255,255,0.5); text-align: center; }

/* Hero scroll indicator */
.hero__scroll {
  position: absolute; bottom: 5.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
}
.hero__scroll span {
  display: block; width: 20px; height: 20px;
  border-right: 2px solid var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce { 0%,100%{transform:rotate(45deg) translateY(0)} 50%{transform:rotate(45deg) translateY(6px)} }

/* Wave mask */
.hero__wave-mask { position: absolute; bottom: -2px; left: 0; right: 0; }
.hero__wave-mask svg { width: 100%; display: block; }

/* ─── Gallery ─────────────────────────────────────────────── */
.gallery { padding-block: var(--section-padding-y); background: var(--color-surface); }

.gallery__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  margin-bottom: 14px;
}
.g-card {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  display: block;
  background: var(--color-primary-dark);
}
.g-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .6s ease;
}
.g-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.05) brightness(1.05);
}
.gallery__grid .g-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery__grid .g-card:nth-child(2) { grid-column: span 1; grid-row: span 2; }
.gallery__grid .g-card:nth-child(3) { grid-column: span 1; grid-row: span 2; }
.gallery__grid .g-card:nth-child(4) { grid-column: span 2; grid-row: span 1; }
.gallery__grid .g-card:nth-child(5) { grid-column: span 2; grid-row: span 1; }

.gallery__strip {
  display: flex; gap: 10px;
  overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin; scrollbar-color: var(--color-gold-dark) transparent;
}
.gallery__strip::-webkit-scrollbar { height: 4px; }
.gallery__strip::-webkit-scrollbar-thumb { background: var(--color-gold-dark); border-radius: 2px; }
.g-thumb {
  flex-shrink: 0; width: 180px; height: 130px;
  border-radius: var(--radius-image); overflow: hidden; cursor: pointer;
}
.g-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--easing-default); }
.g-thumb:hover img { transform: scale(1.06); }

/* Native Dialog Lightbox */
#native-lightbox {
  padding: 0; border: none; background: transparent;
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  margin: 0; overflow: hidden; opacity: 0;
  transition: opacity 240ms ease;
}
#native-lightbox[open] { opacity: 1; display: flex; }
#native-lightbox::backdrop {
  background: rgba(8,10,14,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lb-container { display: flex; flex-direction: column; width: 100%; height: 100%; position: relative; }
.lb-close-btn { position: absolute; top: 20px; right: 20px; background: none; border: none; color: white; font-size: 32px; cursor: pointer; z-index: 10; padding: 10px; line-height: 1; }
.lb-content { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; width: 100%; height: 100%; }
.lb-img { max-width: 90vw; max-height: 75vh; object-fit: contain; opacity: 0; transition: opacity .24s ease; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lb-img.active { opacity: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.3); color: white; border: none; padding: 15px; cursor: pointer; font-size: 24px; border-radius: 8px; transition: background .3s; z-index: 10; }
.lb-nav:hover { background: rgba(0,0,0,0.8); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-footer { height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; }
.lb-caption { display: none; }
.lb-counter { color: rgba(255,255,255,0.6); font-size: 12px; font-family: sans-serif; letter-spacing: .1em; }
body.lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
  .g-card img { transition: none !important; }
  .g-card:hover img { transform: none !important; }
  #native-lightbox { transition: none !important; }
}

/* ─── Floor Plans ─────────────────────────────────────────── */
.floorplans {
  padding-block: var(--section-padding-y);
  background: var(--color-surface-alt);
}
.floorplans__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.floorplans__tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.fp-tab {
  padding: .5rem 1.25rem; border-radius: 99px;
  border: 1.5px solid var(--color-border);
  font-size: .8rem; font-weight: 500; color: var(--color-text-muted);
  transition: all var(--duration-fast);
}
.fp-tab.is-active, .fp-tab:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
  background: var(--color-gold-faint);
}
.fp-frame {
  background: var(--color-surface); border-radius: var(--radius-card);
  overflow: hidden; cursor: zoom-in;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration-base);
  position: relative;
}
.fp-frame:hover { box-shadow: var(--shadow-card-hover); }
.fp-frame img { width: 100%; height: auto; transition: opacity var(--duration-base); }
.fp-frame__zoom {
  position: absolute; bottom: .75rem; right: .75rem;
  padding: .25rem .75rem; border-radius: 99px;
  background: var(--color-overlay);
  color: rgba(255,255,255,0.8); font-size: .75rem;
  opacity: 0; transition: opacity var(--duration-base);
}
.fp-frame:hover .fp-frame__zoom { opacity: 1; }

.fp-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem;
  margin-bottom: 1.5rem;
}
.fp-specs > div { display: flex; flex-direction: column; gap: .15rem; }
.fp-specs dt { font-size: .75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .05em; }
.fp-specs dd { font-size: .9375rem; font-weight: 500; color: var(--color-text); }
.fp-specs__price { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; color: var(--color-gold-dark); }
.fp-note { font-size: .875rem; color: var(--color-text-muted); margin-bottom: 1.5rem; line-height: 1.65; }

/* Floor plan zoom overlay */
.fp-zoom-overlay {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--duration-base);
}
.fp-zoom-overlay.is-open { opacity: 1; pointer-events: all; }
.fp-zoom-inner { max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.fp-zoom-inner img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: var(--radius-image); }
.fp-zoom-caption { color: rgba(255,255,255,0.6); font-size: .875rem; }
.fp-zoom-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #fff;
  font-size: 1.5rem;
}

/* ─── Highlights ──────────────────────────────────────────── */
.highlights { padding-block: var(--section-padding-y); background: var(--color-surface); }

.hl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.hl-card {
  padding: var(--card-padding);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  transition: box-shadow var(--duration-base), transform var(--duration-base);
}
.hl-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.hl-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--color-gold-faint); margin-bottom: 1.25rem;
}
.hl-card__icon svg { width: 24px; height: 24px; stroke: var(--color-gold-dark); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.hl-card h3 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 500; margin-bottom: .5rem; color: var(--color-primary); }
.hl-card p { font-size: .9rem; color: var(--color-text-muted); line-height: 1.65; }

/* ─── Units Table ─────────────────────────────────────────── */
.units {
  padding-block: var(--section-padding-y);
  background: var(--color-surface-alt);
}
.units-toolbar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chip {
  padding: .4rem 1rem; border-radius: 99px;
  border: 1.5px solid var(--color-border);
  font-size: .8rem; font-weight: 500; color: var(--color-text-muted);
  transition: all var(--duration-fast);
}
.chip.is-active, .chip:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
  background: var(--color-gold-faint);
}

.units__table-wrap {
  overflow-x: auto; border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  background: var(--color-surface);
}
.units__table { width: 100%; border-collapse: collapse; }
.units__table thead {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.units__table th {
  padding: 1rem 1.25rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  text-align: left; white-space: nowrap;
}
.units__table td {
  padding: 1rem 1.25rem; font-size: .9375rem;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.units__table tbody tr:last-child td { border-bottom: none; }
.units__table tbody tr { transition: background var(--duration-fast); }
.units__table tbody tr:hover { background: var(--color-surface-alt); }
.units__table .price { font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 600; color: var(--color-gold-dark); }
.sort-icon { color: rgba(255,255,255,0.4); font-style: normal; }

/* Mobile cards */
.units__cards { display: none; flex-direction: column; gap: .75rem; }
.u-card {
  padding: 1rem 1.25rem; border-radius: var(--radius-card);
  background: var(--color-surface); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: .5rem;
}
.u-card > div { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.u-card b { font-size: .9375rem; }
.u-card span { font-size: .875rem; color: var(--color-text-muted); }
.u-card .price { font-family: var(--font-heading); font-weight: 600; color: var(--color-gold-dark); }

/* ─── Amenities ───────────────────────────────────────────── */
.amenities {
  padding-block: var(--section-padding-y);
  background: var(--color-surface-dark);
}
.amenities .section-title { color: var(--color-text-light); }
.amenities .section-desc  { color: rgba(255,255,255,0.5); }
.amenities .eyebrow       { color: var(--color-gold-light); }

.amenities__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.amenity {
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  padding: 1.5rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  transition: background var(--duration-base), transform var(--duration-base);
}
.amenity:hover { background: rgba(255,255,255,0.08); transform: translateY(-3px); }
.amenity svg { width: 28px; height: 28px; stroke: var(--color-gold-light); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.amenity span { font-size: .875rem; color: rgba(255,255,255,0.75); text-align: center; font-weight: 500; }

/* ─── Location ────────────────────────────────────────────── */
.location { padding-block: var(--section-padding-y); background: var(--color-surface); }
.location__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.location__list { margin: 1.5rem 0; display: flex; flex-direction: column; gap: .6rem; }
.location__list li {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .9375rem; color: var(--color-text-muted);
}
.location__list li::before {
  content: ''; display: block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-gold); margin-top: .45rem; flex-shrink: 0;
}
.location__map {
  border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-card); position: relative;
  aspect-ratio: 4/3;
}
.location__map iframe { width: 100%; height: 100%; border: none; display: block; }
.location__pin {
  position: absolute; bottom: 1rem; left: 1rem;
  background: var(--color-surface); padding: .75rem 1rem;
  border-radius: 8px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: .15rem;
  max-width: 240px;
}
.location__pin strong { font-size: .875rem; color: var(--color-primary); }
.location__pin span   { font-size: .75rem;  color: var(--color-text-muted); }

/* ─── Contact / CTA ───────────────────────────────────────── */
.cta { padding-block: var(--section-padding-y); background: var(--color-primary-dark); }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta .section-title { color: var(--color-text-light); }
.cta .section-desc  { color: rgba(255,255,255,0.5); }
.cta .eyebrow       { color: var(--color-gold-light); }
.cta .section-head  { margin-bottom: 2.5rem; }

.cta__form {
  width: 100%; max-width: 680px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .8125rem; font-weight: 500; color: rgba(255,255,255,0.7); }
.field input, .field select, .field textarea {
  padding: .75rem 1rem; border-radius: var(--radius-input);
  border: 1.5px solid var(--color-border-light);
  background: rgba(255,255,255,0.07);
  color: var(--color-text-inverse);
  transition: border-color var(--duration-fast), background var(--duration-fast);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.25); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(255,255,255,0.1);
}
.field input.is-error, .field textarea.is-error { border-color: var(--color-error); }
.field__error { font-size: .75rem; color: #fca5a5; min-height: 1rem; }
.field select option { background: var(--color-primary-dark); }
.cta__actions { grid-column: 1 / -1; display: flex; gap: 1rem; flex-wrap: wrap; }
.cta__note { grid-column: 1 / -1; font-size: .8rem; color: rgba(255,255,255,0.4); }
.cta__note a { color: var(--color-gold-light); text-decoration: underline; }
.form-success { color: #86efac; }
.form-error   { color: #fca5a5; }

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--color-primary-dark);
  border-top: 1px solid var(--color-border-light);
  padding-block: 3rem 1.5rem;
}
.site-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem;
  margin-bottom: 2rem;
}
.site-footer p { font-size: .875rem; color: rgba(255,255,255,0.45); line-height: 1.65; }
.site-footer h4 { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-gold-light); font-weight: 600; margin-bottom: .75rem; font-family: var(--font-body); }
.site-footer a { color: rgba(255,255,255,0.55); transition: color var(--duration-fast); }
.site-footer a:hover { color: var(--color-gold-light); }
.brand--footer .brand-name { color: var(--color-text-inverse); font-size: 1rem; margin-bottom: .5rem; }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.5rem; border-top: 1px solid var(--color-border-light);
}
.site-footer__bottom small { font-size: .75rem; color: rgba(255,255,255,0.25); }

/* ─── Floating WhatsApp ───────────────────────────────────── */
.float-whats {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 800;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--duration-base) var(--easing-spring), box-shadow var(--duration-base);
}
.float-whats:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
.float-whats svg { width: 28px; height: 28px; fill: #fff; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid .g-card:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery__grid .g-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery__grid .g-card:nth-child(4) { grid-column: span 2; }
  .floorplans__inner, .location__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hl-grid { grid-template-columns: repeat(2, 1fr); }
  .amenities__grid { grid-template-columns: repeat(4, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  :root { --section-padding-y: var(--section-padding-y-sm, 60px); }
  .primary-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hl-grid, .amenities__grid { grid-template-columns: repeat(2, 1fr); }
  .units__table-wrap { display: none; }
  .units__cards { display: flex; }
  .cta__form { grid-template-columns: 1fr; }
  .hero__stats { flex-wrap: wrap; }
  .stat { flex: 0 0 50%; border-right: none; border-bottom: 1px solid var(--color-border-light); }
  .stat:nth-child(odd) { border-right: 1px solid var(--color-border-light); }
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 480px) {
  .hl-grid { grid-template-columns: 1fr; }
  .amenities__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery__grid .g-card:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .hero__title { font-size: 2.5rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; }
}
