/* ─────────────────────────────────────────────────────────
   Smart City Stays — v2 Design System
   Source of truth: SCS Brand Bible v1.0, March 2026
   (Tokens imported from scs-tokens.css)
   ───────────────────────────────────────────────────────── */

@import url('scs-tokens.css');

:root {
  /* Aliases the rest of main.css uses — mapped to brand tokens */
  --black: var(--scs-black);
  --white: var(--scs-white);
  --silver: var(--scs-silver);
  --navy: var(--scs-navy);
  --charcoal: var(--fg-body);   /* #2A2A2A — body text */
  --grey-text: var(--fg-muted); /* #5A5A5A — charcoal */
  --grey-bg: var(--bg-card);    /* #F7F9FC */
  --hairline: var(--border-subtle); /* #E6E8EC */

  --container: 1280px;
  --gutter: 24px;

  --t-fast: var(--motion-micro) var(--ease-standard);
  --t-med: var(--motion-short) var(--ease-out);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: var(--lh-relaxed);
  color: var(--fg-body);
  background: var(--scs-white);
}
p { color: var(--fg-body); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--scs-black); font-weight: 700; line-height: var(--lh-snug); }
h1 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; letter-spacing: var(--tr-display); line-height: var(--lh-tight); }
h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: var(--tr-heading); }
h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }
h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--scs-navy);
  margin-bottom: 16px;
  display: inline-block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(64px, 8vw, 96px) 0; }
.section-tight { padding: clamp(48px, 6vw, 64px) 0; }
.section-dark { background: var(--scs-black); color: var(--scs-white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--scs-white); }
.section-dark .eyebrow { color: var(--silver); }

/* The Narrative — black contrast block (per brand kit) */
.narrative {
  background: var(--scs-black);
  color: var(--scs-white);
  padding: 96px 0;
  text-align: center;
}
.narrative-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
}
.narrative-quote {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.45;
  color: var(--scs-white);
  max-width: 880px;
  margin: 0 auto;
  letter-spacing: -0.005em;
}
@media (max-width: 980px) {
  .narrative { padding: 72px 0; }
}

/* ───── TOP UTILITY BAR (call our reservations team) ───── */
.top-bar {
  background: var(--black);
  color: var(--white);
  padding: 8px 0;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: sticky;
  top: 0;
  z-index: 101;
}
.top-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.top-bar a {
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity var(--t-fast);
}
.top-bar a:hover { opacity: 0.7; }
.top-bar .phone-cta svg {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 8px;
  color: currentColor;
}
.top-bar .left { color: var(--silver); }

/* ───── NAV ───── */
.nav {
  position: sticky;
  top: 30px;
  z-index: 100;
  background: var(--white);
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
  transition: box-shadow var(--t-fast);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 44px; transition: height var(--t-fast); }
.nav-menu { display: flex; gap: 40px; align-items: center; list-style: none; }
.nav-menu a {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--charcoal);
  position: relative;
  transition: color var(--t-fast);
}
.nav-menu a:hover { color: var(--navy); }
.nav-menu .dropdown { position: relative; }
.nav-menu .dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--hairline);
  min-width: 280px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
  box-shadow: 0 24px 48px rgba(0,0,0,0.08);
  margin-top: 0;
}
.nav-menu .dropdown:hover .dropdown-content,
.nav-menu .dropdown:focus-within .dropdown-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 180ms ease, visibility 0s linear 0s;
}
/* Invisible hover-bridge so cursor doesn't break the dropdown */
.nav-menu .dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 18px;
  display: none;
}
.nav-menu .dropdown:hover::after { display: block; }
.nav-menu .dropdown-content a {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 500;
  border-bottom: 1px solid var(--hairline);
}
.nav-menu .dropdown-content a:last-child { border-bottom: none; }
.nav-menu .dropdown-content a:hover { background: var(--grey-bg); color: var(--navy); }
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 22px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: background var(--t-fast), transform var(--t-fast);
}
.nav-cta:hover { background: var(--black); transform: translateY(-1px); }

/* ───── HERO ───── */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: var(--black) center / cover no-repeat;
  background-position: center 30%;
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.20) 35%, rgba(0,0,0,0.78) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px var(--gutter);
}
/* Frosted glass "window pane" behind the hero text */
.hero-pane {
  display: inline-block;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  padding: 36px 44px 40px;
  max-width: 720px;
  border-left: 2px solid rgba(255,255,255,0.7);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}
.hero h1 {
  color: var(--white);
  max-width: 14ch;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hero .lead {
  font-size: 18px;
  max-width: 50ch;
  opacity: 0.95;
  margin-bottom: 32px;
  color: var(--white);
}
.hero-tag {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--silver);
  margin-bottom: 24px;
}
.hero-mini {
  min-height: 52vh;
  align-items: flex-end;
}
.hero-mini h1 { font-size: clamp(32px, 4vw, 56px); }

/* HOMEPAGE HERO — rotating background layers */
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  z-index: 0;
}
.hero-bg.is-active { opacity: 1; }
.hero.hero-home { background: var(--black); }
.hero.hero-home::after { z-index: 1; }
.hero.hero-home .hero-inner { z-index: 2; }

/* HOMEPAGE HERO — lighter glaze so the image breathes */
.hero.hero-home::after {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.05) 60%, rgba(0,0,0,0.45) 100%);
}
.hero.hero-home .hero-pane {
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(4px) saturate(105%);
  -webkit-backdrop-filter: blur(4px) saturate(105%);
  border-left: 2px solid rgba(255,255,255,0.5);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}
.hero.hero-home h1 {
  text-shadow: 0 2px 16px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.3);
}
.hero.hero-home .lead {
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

/* ───── FACTS GRID (per-building) ───── */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.fact {
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 28px 24px;
  transition: background var(--t-fast);
  position: relative;
}
.fact::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 28px;
  height: 2px;
  background: var(--navy);
}
.fact:hover { background: var(--grey-bg); }
.fact .label {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--grey-text);
  margin-bottom: 10px;
}
.fact .value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.35;
}

/* ───── GALLERY ───── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.gallery .img {
  aspect-ratio: 4 / 3;
  background: var(--grey-bg) center / cover no-repeat;
  cursor: pointer;
  transition: transform var(--t-fast);
}
.gallery .img:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1 / 1;
}
.gallery .img:hover { transform: scale(1.01); }

/* ───── PRICE CHIP ON BUILDING TILES ───── */
.building-card .price-chip {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  background: var(--scs-white);
  color: var(--scs-black);
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--border-subtle);
}
.building-card .price-chip strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--scs-navy);
}
.building-card .price-chip span {
  color: var(--fg-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ───── WHATSAPP FLOATING ACTION BUTTON ───── */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 95;
  background: #25D366;
  color: #FFF;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 200ms, box-shadow 200ms;
  text-decoration: none;
}
.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5), 0 6px 16px rgba(0,0,0,0.2);
}
.wa-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.3);
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
@media (max-width: 980px) {
  .wa-fab { bottom: 88px; width: 54px; height: 54px; }  /* clear sticky-book button */
  .wa-fab svg { width: 24px; height: 24px; }
}

/* ───── COOKIE BANNER (POPIA — slim single-line) ───── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--black);
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.18);
}
.cookie-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.cookie-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  color: var(--silver);
  flex: 1;
  min-width: 0;
}
.cookie-text a { color: #FFF; text-decoration: underline; }
.cookie-buttons { display: flex; gap: 6px; flex-shrink: 0; }
.cookie-buttons button {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 8px 14px;
  cursor: pointer;
  transition: opacity 180ms;
}
.cookie-essential { background: transparent; color: var(--silver); border: 1px solid rgba(255,255,255,0.25); }
.cookie-essential:hover { color: #FFF; border-color: #FFF; }
.cookie-accept { background: var(--white); color: var(--black); border: none; }
.cookie-accept:hover { opacity: 0.85; }
@media (max-width: 560px) {
  .cookie-inner { padding: 9px var(--gutter); gap: 8px; flex-wrap: nowrap; }
  .cookie-text { font-size: 11px; }
  .cookie-buttons button { padding: 7px 10px; font-size: 9px; letter-spacing: 0.8px; }
}
@media (max-width: 380px) {
  /* Hide the longer "Essential" on tiny screens — Accept all is enough */
  .cookie-essential { display: none; }
}

/* ───── LIGHTBOX (gallery fullscreen) ───── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.lightbox[hidden] { display: none; }
.lb-img { max-width: 92vw; max-height: 88vh; object-fit: contain; box-shadow: 0 16px 48px rgba(0,0,0,0.5); }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  color: #FFF;
  border: none;
  width: 56px; height: 56px;
  font-size: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms;
  font-family: var(--font-display);
  font-weight: 200;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.2); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--silver);
  background: rgba(0,0,0,0.4);
  padding: 8px 14px;
}
.gallery .img { cursor: zoom-in; }
.gallery .img:focus { outline: 2px solid var(--navy); outline-offset: 2px; }

/* ───── 360° WALKTHROUGH PLACEHOLDER ───── */
.vr-placeholder {
  background: #FFF;
  border: 2px dashed var(--silver);
  padding: 56px 32px;
  text-align: center;
  margin-top: 32px;
}
.vr-icon { color: var(--navy); margin-bottom: 16px; display: inline-block; }
.vr-placeholder h3 { margin-bottom: 8px; }
.vr-placeholder p { color: var(--grey-text); }
.vr-placeholder a { color: var(--navy); text-decoration: underline; }

/* ───── STICKY MOBILE BOOK NOW ───── */
.sticky-book {
  display: none;
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  z-index: 90;
  background: var(--navy);
  color: var(--white);
  padding: 16px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  box-shadow: 0 12px 32px rgba(0,33,96,0.4);
  transition: transform var(--t-fast), background var(--t-fast);
}
.sticky-book:active { transform: scale(0.98); }
.sticky-book::after {
  content: ' →';
  font-weight: 400;
}

/* ───── HERO CTA GROUP (replaces booking widget) ───── */
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-cta-group .meta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--silver);
  margin-left: 8px;
}
.hero-cta-group .meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--silver); display: inline-block; }

/* ───── BUILDING GRID (homepage) ───── */
.buildings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.buildings-grid .featured {
  grid-column: 1 / -1;
}
.building-card {
  display: block;
  position: relative;
  background: var(--scs-white);
  color: var(--fg);
  border: 1px solid var(--border-subtle);
  transition: transform var(--t-med), box-shadow var(--t-med);
  text-decoration: none;
}
.building-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.building-card .img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-card) center / cover no-repeat;
  overflow: hidden;
}
.building-card .img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 800ms ease-out;
}
.building-card:hover .img img { transform: scale(1.03); }

/* FEATURED tile — keeps the overlay style (image-led full-bleed, info on top) */
.building-card.featured {
  background: var(--scs-black);
  color: var(--scs-white);
  border: none;
  overflow: hidden;
}
.building-card.featured .img { aspect-ratio: 21 / 9; }
.building-card.featured .img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.30) 65%, rgba(0,0,0,0.78) 100%);
  z-index: 1;
}
.building-card.featured .img img { filter: brightness(0.94); }
.building-card.featured:hover .img img { filter: brightness(1); }
.building-card.featured .info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
  z-index: 2;
}
.building-card.featured .pin { color: var(--scs-white); text-shadow: 0 1px 6px rgba(0,0,0,0.55); }
.building-card.featured .pin svg { color: var(--scs-white); }
.building-card.featured h3 { color: var(--scs-white); text-shadow: 0 2px 12px rgba(0,0,0,0.55); }
.building-card.featured .diff span {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
  color: var(--scs-white);
  backdrop-filter: blur(4px);
}
.building-card.featured .tile-ctas { border-top-color: rgba(255,255,255,0.18); }
.building-card.featured .arrow { color: var(--scs-white); border-left-color: rgba(255,255,255,0.18); }

/* STANDARD tile — image on top, info below in flow (per brand bible) */
.building-card .info { padding: 20px 22px 0; }
.building-card .pin {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
}
.building-card .pin svg { color: var(--scs-navy); opacity: 1; width: 11px; height: 13px; }
.building-card h3 {
  color: var(--scs-black);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: var(--tr-heading);
  line-height: var(--lh-snug);
  margin-bottom: 10px;
}
.building-card.featured h3 { font-size: 32px; }
.building-card .pin { text-shadow: 0 1px 6px rgba(0,0,0,0.55); }
.building-card .tag { font-size: 14px; opacity: 0.95; max-width: 32ch; margin-bottom: 14px; text-shadow: 0 1px 6px rgba(0,0,0,0.55); }
.building-card .diff {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.building-card .diff span {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--scs-navy);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 5px 9px;
}
.building-card .tile-ctas {
  display: flex;
  align-items: stretch;
  margin: 0 -22px -1px;
  border-top: 1px solid var(--border-subtle);
}
.building-card.featured .tile-ctas { margin: 0; }
.building-card .tile-book {
  flex: 1;
  background: var(--scs-navy);
  color: var(--scs-white);
  text-align: center;
  padding: 14px 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background var(--motion-micro) var(--ease-standard);
}
.building-card .tile-book:hover { background: var(--interactive-hover); }
.building-card .tile-book.is-soon {
  background: var(--fg-muted);
  opacity: 0.92;
  cursor: default;
}
.building-card .tile-book.is-soon:hover { background: var(--fg-muted); }
/* (Legacy .arrow rules for the old Explore-tab CTA removed — they were injecting
   '→' via ::after into any .arrow element and conflicting with the new CSS chevron.) */
.building-card .badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--white);
  color: var(--black);
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 3;
}

/* ───── UNIT TYPES (per-building) ───── */
.units-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.unit-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.unit-card:hover {
  transform: translateY(-3px);
  border-color: var(--silver);
  box-shadow: 0 24px 48px rgba(0,0,0,0.06);
}
.unit-card .img {
  aspect-ratio: 4 / 3;
  background: var(--grey-bg) center / cover no-repeat;
}
.unit-card .body { padding: 24px; }
.unit-card .meta {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--grey-text);
  margin-bottom: 8px;
}
.unit-card h3 { font-size: 20px; margin-bottom: 8px; }
.unit-card p { color: var(--grey-text); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.unit-card .view {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
}

/* ───── CHARACTER BLOCKS ───── */
.character {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.character-block .img {
  aspect-ratio: 4 / 5;
  background: var(--grey-bg) center / cover no-repeat;
  margin-bottom: 20px;
}
.character-block h3 { margin-bottom: 8px; font-size: 22px; }
.character-block p { color: var(--grey-text); font-size: 15px; }

/* ───── AMENITIES ───── */
.amenities-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 32px;
  margin-top: 32px;
}
.amenity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.amenity .ico {
  width: 36px; height: 36px;
  border: 1px solid var(--silver);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--navy);
  flex-shrink: 0;
}
.amenity-name { font-size: 14px; font-weight: 500; color: var(--charcoal); }

/* ───── MAP LOCATOR ───── */
.map-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 48px;
}
.map-img {
  aspect-ratio: 4 / 3;
  background: var(--grey-bg);
  position: relative;
  overflow: hidden;
  /* Placeholder until Mapbox token lands — grayscale grid pattern */
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  filter: grayscale(100%);
}
.map-img::after {
  content: '📍';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  filter: grayscale(100%);
}
.map-info h3 { margin-bottom: 16px; }
.map-info .addr { color: var(--grey-text); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }

/* ───── NEIGHBOURHOOD GUIDE ───── */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.guide-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0,0,0,0.05); }
.guide-card .img {
  aspect-ratio: 4 / 3;
  background: var(--grey-bg) center / cover no-repeat;
}
.guide-card .body { padding: 20px; }
.guide-card .cat {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--navy);
  margin-bottom: 6px;
}
.guide-card h4 {
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--black);
}

/* ───── FOOTER ───── */
.footer {
  background: var(--black);
  color: var(--silver);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand img { height: 48px; margin-bottom: 20px; }
.footer-brand p {
  font-size: 13px;
  font-family: var(--font-body);
  max-width: 32ch;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}
.footer-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 28px;
  color: rgba(255,255,255,0.5);
}
.footer h4 { color: var(--scs-white); font-size: 10px; letter-spacing: 0.18em; margin-bottom: 18px; font-weight: 600; text-transform: uppercase; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  transition: color var(--motion-micro) var(--ease-standard);
  font-family: var(--font-body);
}
.footer ul a:hover { color: var(--scs-white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 56px;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--scs-white); }

/* ───── UTILITIES ───── */
.section-header {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 24px;
}
.section-header.left { text-align: left; margin: 0 0 24px; max-width: 60ch; }
.section-header p { color: var(--grey-text); margin-top: 12px; font-size: 17px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  transition: background-color var(--motion-micro) var(--ease-standard), color var(--motion-micro) var(--ease-standard), border-color var(--motion-micro) var(--ease-standard);
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--scs-navy); color: var(--scs-white); border-color: var(--scs-navy); }
.btn-primary:hover { background: var(--interactive-hover); border-color: var(--interactive-hover); }
.btn-outline { background: transparent; border-color: var(--scs-navy); color: var(--scs-navy); }
.btn-outline:hover { background: var(--scs-navy); color: var(--scs-white); }
.btn-ghost { background: transparent; color: var(--scs-navy); text-decoration: underline; text-underline-offset: 4px; padding: 14px 0; border: none; }
.btn-ghost:hover { color: var(--interactive-hover); }

/* ───── HAMBURGER (mobile) ───── */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  position: relative;
}
.nav-burger span::before, .nav-burger span::after {
  content: ''; position: absolute; left: 0; width: 24px; height: 2px; background: var(--black);
  transition: transform var(--t-fast);
}
.nav-burger span::before { top: -7px; }
.nav-burger span::after { top: 7px; }
.nav.is-open .nav-burger span { background: transparent; }
.nav.is-open .nav-burger span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-burger span::after { top: 0; transform: rotate(-45deg); }

/* ───── RESPONSIVE ───── */
@media (max-width: 980px) {
  .nav-inner { padding: 10px var(--gutter); }
  .nav-logo img { height: 56px; }
  .top-bar { font-size: 10px; padding: 7px 0; letter-spacing: 1.5px; }
  .top-bar-inner { gap: 8px; justify-content: center; }
  .top-bar .left { display: none; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px var(--gutter) 32px;
    gap: 0;
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 16px 32px rgba(0,0,0,0.06);
  }
  .nav.is-open .nav-menu { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block;
    padding: 16px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--hairline);
  }
  /* Mobile: collapse the 8-building sublist — "Buildings" just scrolls to the cards.
     Keeps the menu short so Map / Contact / Book Now stay on-screen. */
  .nav-menu .dropdown-content { display: none; }
  /* Safety net: if the open menu is ever taller than the screen, scroll it internally
     instead of letting the page scroll behind it. */
  .nav.is-open .nav-menu {
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-menu .nav-cta { background: var(--navy); color: var(--white) !important; text-align: center; padding: 14px 22px; margin-top: 8px; }
  .nav-burger { display: flex; }
  h1 { font-size: clamp(32px, 8vw, 44px); }
  .hero {
    min-height: 72vh;
    background-position: 60% 35%;  /* push Table Mountain peak into mobile frame */
  }
  .hero-inner { padding: 32px var(--gutter); }
  .hero-mini {
    min-height: 56vh;
    background-position: center center;
  }
  .buildings-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
  .building-card .info { padding: 20px; }
  .units-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
  .character { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .amenities-list { grid-template-columns: 1fr; gap: 0; margin-top: 24px; }
  .map-block { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .guide-grid { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .section { padding: 56px 0; }
  .hero-cta-group .meta { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery .img:first-child { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 10; }
  .sticky-book { display: block; }
  body { padding-bottom: 88px; } /* room for the sticky book button */
}

@media (max-width: 560px) {
  .nav-logo img { height: 50px; }
  .hero-pane { padding: 24px 24px 28px; max-width: 100%; }
  .guide-grid { grid-template-columns: 1fr; }
  .building-card.featured .img { aspect-ratio: 4/3; }
  h1 { font-size: clamp(28px, 9vw, 38px); }
}

/* iPhone SE / smallest phones — extra tightening so nothing overlaps */
@media (max-width: 400px) {
  .top-bar { font-size: 9px; padding: 6px 0; letter-spacing: 1px; }
  .top-bar .phone-cta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 95vw; }
  .top-bar .phone-cta svg { margin-right: 6px; flex-shrink: 0; }
  .nav-inner { padding: 8px var(--gutter); }
  .nav-logo img { height: 44px; }
  h1 { font-size: clamp(24px, 8.5vw, 32px); }
  .hero { min-height: 64vh; }
  .hero-mini { min-height: 48vh; }
  .hero-pane { padding: 18px 18px 22px; }
  .hero .lead { font-size: 14px; }
  .hero-cta-group { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  .hero-cta-group .btn { width: 100%; text-align: center; padding: 14px 16px; font-size: 11px; box-sizing: border-box; }
  .facts { grid-template-columns: 1fr; }
  .fact { padding: 22px 18px; }
  .fact .value { font-size: 15px; }
  .building-card .price-chip {
    top: 14px; right: 14px;
    padding: 6px 10px;
    font-size: 9px;
  }
  .building-card .price-chip strong { font-size: 12px; }
  .building-card .price-chip span { font-size: 9px; }
  .building-card .badge {
    top: 14px; left: 14px;
    padding: 5px 9px; font-size: 8px;
  }
  .building-card .info { padding: 18px; }
  .building-card h3 { font-size: 22px; }
  .building-card .pin { font-size: 11px; letter-spacing: 1.6px; }
  .building-card .diff span { font-size: 8px; padding: 4px 7px; letter-spacing: 1px; }
  .gallery { grid-template-columns: 1fr; gap: 8px; }
  .gallery .img:first-child { grid-column: span 1; aspect-ratio: 4/3; }
  .cookie-inner { padding: 14px var(--gutter); }
  .cookie-text strong { font-size: 11px; letter-spacing: 1.5px; }
  .cookie-text p { font-size: 11px; }
  .cookie-buttons button { font-size: 10px; padding: 11px 12px; letter-spacing: 1px; }
  .wa-fab { bottom: 96px; width: 50px; height: 50px; right: 16px; }
  .wa-fab svg { width: 22px; height: 22px; }
  .sticky-book { padding: 14px; font-size: 11px; letter-spacing: 1.8px; bottom: 12px; left: 12px; right: 12px; }
  body { padding-bottom: 76px; }
  .footer-brand img { height: 40px; }
  .container { padding: 0 16px; }
  .section { padding: 44px 0; }
  .section-header p { font-size: 14px; }
}

/* ───── CALL FLOATING ACTION BUTTON (replaces WhatsApp) ───── */
.call-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 95;
  background: var(--navy);
  color: #FFF;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,33,96,0.45), 0 4px 12px rgba(0,0,0,0.18);
  transition: transform 200ms, box-shadow 200ms, background 200ms;
  text-decoration: none;
}
.call-fab:hover {
  transform: scale(1.08);
  background: var(--black);
  box-shadow: 0 12px 32px rgba(0,33,96,0.5), 0 6px 16px rgba(0,0,0,0.22);
}
@media (max-width: 980px) {
  .call-fab { bottom: 88px; width: 54px; height: 54px; }  /* clear the sticky Book Now bar */
  .call-fab svg { width: 24px; height: 24px; }
}
@media (max-width: 400px) {
  .call-fab { bottom: 92px; width: 50px; height: 50px; right: 16px; }
  .call-fab svg { width: 22px; height: 22px; }
}

/* ───── "COMING SOON" RIBBON on not-yet-bookable cards ───── */
.building-card.is-soon { cursor: default; }
.soon-ribbon {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 4;
  background: rgba(0,0,0,0.72);
  color: #FFF;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 7px 12px;
}
@media (max-width: 400px) {
  .soon-ribbon { top: 14px; left: 14px; padding: 5px 9px; font-size: 8px; letter-spacing: 1.5px; }
}

/* ───── HOMEPAGE HERO — minimal (brand + Book Now only) ───── */
.hero-pane-home h1 { margin-bottom: 22px; }
.hero-pane-home .hero-cta-group { margin-top: 4px; }

/* ───── CARD SPACING — stop the title and tags touching ───── */
.building-card .diff { margin-top: 6px; }
@media (max-width: 560px) {
  .building-card.featured h3 { font-size: 26px; }
}

/* ───── TRUST STRIP — slim navy bar that sticks under the nav as you scroll ───── */
.trust-strip {
  position: sticky;
  top: 78px;                /* sits just below the top-bar + nav stack */
  z-index: 99;              /* under nav (z-index 100), above page content */
  background: #002160;      /* navy — hardcoded so it can't fail on variable resolution */
  color: #FFF;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.trust-strip-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  white-space: nowrap;
}
.trust-item { display: inline-flex; align-items: center; gap: 6px; }
.trust-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  color: #002160;
  background: #FFF;
  border-radius: 50%;
}
.trust-sep { opacity: 0.32; font-weight: 400; }
/* Desktop & tablet show the full labels; mobile uses the short ones */
.trust-label-short { display: none; }
@media (max-width: 980px) {
  .trust-strip { top: 70px; }
  .trust-strip-inner { font-size: 10px; gap: 14px; letter-spacing: 1.2px; padding: 8px var(--gutter); }
  .trust-label-full { display: none; }
  .trust-label-short { display: inline; }
  .trust-sep { display: inline; opacity: 0.4; }
}
@media (max-width: 380px) {
  .trust-strip-inner { font-size: 9px; gap: 10px; letter-spacing: 0.8px; padding: 7px 8px; }
  .trust-tick { width: 12px; height: 12px; font-size: 9px; }
  .trust-sep { display: none; }
}

/* ───── MINIMAL FOOTER — brand block only, no columns, no bottom row ───── */
.footer-minimal { padding: 56px 0; }
.footer-minimal .footer-brand { max-width: 480px; margin: 0 auto; text-align: center; }
.footer-minimal .footer-brand img { display: block; margin: 0 auto 16px; }
.footer-minimal .footer-brand p { margin: 0 auto 14px; }
.footer-minimal .footer-brand .footer-tagline { text-align: center; }

/* ───── VISUALLY-HIDDEN (SEO h1) ───── */
.vh {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ───── FIRST SECTION (no hero — go straight to buildings) ───── */
.section-first { padding-top: 32px; }
.section-first .section-header h2 { font-weight: 900; font-size: clamp(26px, 3.2vw, 34px); }
@media (max-width: 980px) { .section-first { padding-top: 24px; } }

/* ───── PER-CARD "BOOK NOW →" — text left, arrow right, fills the button cleanly ───── */
.building-card .info { padding-bottom: 22px; }
.building-card .card-book-cta {
  margin-top: 14px;
  padding: 13px 18px;
  background: var(--navy);
  color: #FFF;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  display: flex;
  align-items: center;
  justify-content: space-between;   /* Book Now left · arrow right · balanced */
  line-height: 1;
  transition: background 180ms;
}
/* CSS-border chevron — bulletproof "›" arrow tip, no font/SVG dependency */
.building-card .card-book-cta .arrow {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-right: 6px;   /* breathing room from the button edge */
}
/* Only apply hover on real hover devices (desktop) — stops mobile scroll from triggering
   the black hover state when a finger drags across the button. */
@media (hover: hover) {
  .building-card:hover .card-book-cta { background: var(--black); }
}
