/* ================================
   Keturah Al Adawi Park — Damascus
   Interactive site study
   ================================ */

:root {
  --sand-50:  #fbf6ec;
  --sand-100: #f3ead6;
  --sand-200: #e9dabf;
  --sand-300: #d9c39a;
  --sand-400: #c4a577;
  --sand-500: #a98558;
  --stone-700:#5a4a35;
  --stone-800:#3b3022;
  --stone-900:#221b13;
  --ink:      #15110b;
  --ink-soft: #2c2418;
  --jasmine:  #f8f3e7;
  --olive:    #6e7a3f;
  --olive-d:  #4d5728;
  --gold:     #c79546;
  --gold-d:   #a07327;
  --water:    #6b95a8;
  --build:    #b8a487;
  --road:     #6b6155;
  --nature:   #8aa362;
  --tree:     #5f7a3a;
  --shadow:   0 30px 60px -30px rgba(34,27,19,.45);
  --radius:   10px;
  --maxw:     1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }

/* ============ LOADER (white logo on black) ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: grid;
  place-items: center;
  gap: 36px;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .7s ease, visibility 0s linear .7s;
  visibility: visible;
}
.loader.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.loader-logo {
  width: clamp(180px, 26vw, 320px);
  height: auto;
  display: block;
  animation: loaderBreathe 2.4s ease-in-out infinite;
}
@keyframes loaderBreathe {
  0%, 100% { opacity: 0.55; transform: scale(0.985); }
  50%      { opacity: 1.00; transform: scale(1.000); }
}
.loader-bar {
  width: clamp(160px, 22vw, 240px);
  height: 1px;
  background: rgba(248, 243, 231, 0.12);
  overflow: hidden;
  position: relative;
}
.loader-bar span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-100%);
  animation: loaderSweep 1.6s ease-in-out infinite;
}
@keyframes loaderSweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%);  }
}
@media (prefers-reduced-motion: reduce) {
  .loader-logo { animation: none; opacity: 1; }
  .loader-bar span { animation: none; transform: translateX(0); opacity: .5; }
}

img { max-width: 100%; display: block; }

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

/* ============ NAV (transparent by default, solid after scroll) ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease, padding .35s ease;
}
.nav.scrolled {
  padding: 12px 32px;
  background: rgba(15, 11, 7, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(248, 243, 231, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--jasmine);            /* white by default — drives currentColor on the SVG */
  text-decoration: none;
  transition: color .35s ease, transform .25s ease;
}
.nav-brand:hover { transform: translateY(-1px); }

.nav-logo {
  height: 38px;
  width: auto;
  display: block;
  color: inherit;                    /* SVG paths use fill="currentColor" */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
  transition: height .35s ease, filter .35s ease;
}
.nav.scrolled .nav-logo {
  height: 32px;
  filter: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 26px;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--jasmine);             /* white by default over hero */
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color .2s ease;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  opacity: 0.92;
}
.nav-links a:hover { color: var(--gold); opacity: 1; }
.nav.scrolled .nav-links a {
  color: var(--sand-200);
  text-shadow: none;
  opacity: 1;
}
.nav.scrolled .nav-links a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-logo { height: 32px; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  color: var(--jasmine);
  display: flex;
  align-items: flex-end;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15,11,7,0.20) 0%,
    rgba(15,11,7,0.00) 40%,
    rgba(15,11,7,0.55) 80%,
    rgba(15,11,7,0.92) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px 90px;
  width: 100%;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--gold);
  font-weight: 500;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(56px, 9vw, 124px);
  font-weight: 500;
  line-height: 0.97;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--sand-200);
}
.hero-subtitle {
  font-size: clamp(16px, 1.6vw, 20px);
  max-width: 580px;
  color: var(--sand-100);
  margin: 0 0 40px;
  font-weight: 300;
  line-height: 1.5;
}
.hero-stats {
  display: flex;
  gap: 52px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 500;
  color: var(--jasmine);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-300);
  margin-top: 8px;
}
.hero-cta {
  display: inline-block;
  padding: 16px 28px;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: all .2s;
}
.hero-cta:hover { background: var(--jasmine); transform: translateY(-2px); }

/* ============ SECTIONS ============ */
.section {
  padding: 110px 0;
  background: var(--sand-50);
}
.section.dark {
  background: var(--ink);
  color: var(--sand-100);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-d);
  font-weight: 600;
  margin: 0 0 20px;
}
.section.dark .eyebrow { color: var(--gold); }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  max-width: 18ch;
}
.lead {
  font-size: 19px;
  line-height: 1.7;
  max-width: 720px;
  color: var(--stone-700);
  font-weight: 300;
  margin: 0 0 30px;
}
.section.dark .lead { color: var(--sand-200); }
.lead-narrow {
  font-size: 17px;
  line-height: 1.65;
  max-width: 640px;
  color: var(--stone-700);
  font-weight: 300;
  margin: 0 0 50px;
}
.section.dark .lead-narrow { color: var(--sand-200); }

/* INTENT */
.intent { padding: 110px 0; background: var(--sand-100); }
.principles {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px 32px;
}
.principles li {
  font-size: 15px;
  color: var(--stone-700);
  padding: 16px 0;
  border-top: 1px solid rgba(58,48,34,0.18);
}
.principles strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

/* ============ TABS (Site Atlas) ============ */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.section:not(.dark) .tabs { border-bottom-color: rgba(58, 48, 34, 0.18); }
.tab {
  border: none;
  background: transparent;
  color: var(--sand-300);
  padding: 14px 22px;
  font-size: 13px;
  letter-spacing: 0.05em;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: color .2s;
}
.section:not(.dark) .tab { color: var(--stone-700); }
.tab::after {
  content: '';
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
  transition: left .25s, right .25s;
}
.tab:hover { color: var(--jasmine); }
.section:not(.dark) .tab:hover { color: var(--ink); }
.tab.active { color: var(--gold); }
.tab.active::after { left: 0; right: 0; }

.tab-panel {
  display: none;
  margin-top: 36px;
  animation: tabFade .35s ease-out;
}
.tab-panel.active { display: block; }
@keyframes tabFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tab-note {
  font-size: 13px;
  color: var(--sand-400);
  margin: 0 0 18px;
  letter-spacing: 0.02em;
}
.section:not(.dark) .tab-note { color: var(--stone-700); opacity: 0.7; }

.atlas-fig { margin: 0; }
.atlas-fig img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.atlas-fig figcaption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--sand-300);
  line-height: 1.55;
}
.atlas-fig figcaption strong { color: var(--jasmine); font-weight: 600; }

/* ============ MASTERPLAN OPTIONS (annotated overlays) ============ */
#options-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
#options-tabs .opt-tab {
  border: none;
  background: transparent;
  color: var(--sand-300);
  padding: 14px 22px;
  font-size: 13px;
  letter-spacing: 0.05em;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  transition: color .2s;
}
#options-tabs .opt-tab::after {
  content: '';
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
  transition: left .25s, right .25s;
}
#options-tabs .opt-tab:hover { color: var(--jasmine); }
#options-tabs .opt-tab.active { color: var(--gold); }
#options-tabs .opt-tab.active::after { left: 0; right: 0; }
.opt-tab-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 17px;
  opacity: 0.7;
}
.opt-tab-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
}

#options-panels { margin-top: 0; }
.opt-panel {
  display: none;
  animation: tabFade .35s ease-out;
}
.opt-panel.active { display: block; }

/* Option header (above the annotated image) */
.opt-header {
  max-width: var(--maxw);
  margin: 36px auto 22px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}
@media (max-width: 900px) { .opt-header { grid-template-columns: 1fr; } }
.opt-header-left .opt-tagline {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
  font-weight: 600;
}
.opt-header-left h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 500;
  margin: 0;
  line-height: 1;
  color: var(--jasmine);
}
.opt-header-right p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--sand-200);
}

/* The annotated image — full-bleed within section */
.opt-plate-wrap {
  position: relative;
  width: 100%;
  background: #0c0907;
}
.opt-plate {
  position: relative;
  width: 100%;
  /* Aspect ratio handled by the image */
  overflow: hidden;
}
.opt-plate img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
}
.opt-plate .opt-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.opt-plate .opt-svg * { pointer-events: auto; }

/* SVG annotation styling */
.opt-svg .zone-poly {
  fill: var(--zone-color, rgba(255,255,255,0.1));
  fill-opacity: 0.18;
  stroke: var(--zone-stroke, white);
  stroke-opacity: 0.85;
  stroke-width: 0.18;
  stroke-dasharray: 1.2, 0.8;
  transition: fill-opacity .2s, stroke-width .2s;
}
.opt-svg .zone-poly:hover { fill-opacity: 0.4; stroke-width: 0.32; }
.opt-svg .zone-label {
  fill: var(--jasmine);
  font-family: 'Inter', sans-serif;
  font-size: 1.4px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  font-weight: 500;
  paint-order: stroke;
  stroke: rgba(15,11,7,0.85);
  stroke-width: 0.6px;
  stroke-linejoin: round;
  pointer-events: none;
}

.opt-svg .axis-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.35;
  stroke-dasharray: 0.6, 0.8;
  opacity: 0.85;
}
.opt-svg .axis-label {
  fill: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 1.2px;
  text-transform: uppercase;
  letter-spacing: 0.18px;
  font-weight: 600;
  paint-order: stroke;
  stroke: rgba(15,11,7,0.92);
  stroke-width: 0.5px;
}

.opt-svg .pt-line {
  stroke: var(--jasmine);
  stroke-width: 0.16;
  fill: none;
  opacity: 0.85;
}
.opt-svg .pt-dot {
  fill: var(--gold);
  stroke: var(--jasmine);
  stroke-width: 0.4;
}
.opt-svg .pt-num {
  fill: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.opt-svg .pt-callout-rect {
  fill: rgba(15, 11, 7, 0.88);
  stroke: var(--gold);
  stroke-width: 0.1;
  rx: 0.5;
}
.opt-svg .pt-callout-text {
  fill: var(--jasmine);
  font-family: 'Inter', sans-serif;
  font-size: 1.35px;
  font-weight: 500;
  dominant-baseline: central;
  pointer-events: none;
}

.opt-svg .access-marker {
  fill: var(--gold);
  stroke: var(--jasmine);
  stroke-width: 0.15;
}
.opt-svg .access-label {
  fill: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 1.1px;
  font-weight: 600;
  letter-spacing: 0.1px;
  text-transform: uppercase;
  paint-order: stroke;
  stroke: rgba(15,11,7,0.92);
  stroke-width: 0.45px;
  pointer-events: none;
}

/* Active state for selected feature */
.opt-svg .pt-group.selected .pt-dot { fill: var(--jasmine); stroke: var(--gold); stroke-width: 0.7; }
.opt-svg .pt-group.selected .pt-num { fill: var(--ink); }

/* Legend (zone categories) */
.opt-legend {
  max-width: var(--maxw);
  margin: 22px auto 0;
  padding: 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}
.opt-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand-300);
  font-weight: 500;
}
.opt-legend-swatch {
  width: 16px; height: 12px;
  border-radius: 2px;
  border: 1px dashed rgba(255,255,255,0.5);
  background: var(--sw, white);
  opacity: 0.7;
}

/* USP cards */
.opt-usps {
  max-width: var(--maxw);
  margin: 60px auto 0;
  padding: 0 32px;
}
.opt-usps-title {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 18px;
}
.opt-usps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.opt-usp {
  background: rgba(255,255,255,0.03);
  border-left: 2px solid var(--gold);
  padding: 22px 24px;
  border-radius: 0 4px 4px 0;
}
.opt-usp h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--jasmine);
  font-weight: 500;
  line-height: 1.15;
}
.opt-usp p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--sand-200);
  margin: 0;
}

/* Detail images strip */
.opt-details {
  max-width: var(--maxw);
  margin: 60px auto 0;
  padding: 0 32px;
}
.opt-details-title {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 20px;
}
.opt-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}
.opt-detail-fig {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1410;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}
.opt-detail-fig:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.5);
}
.opt-detail-fig img {
  width: 100%;
  display: block;
  aspect-ratio: 3/2;
  object-fit: cover;
}
.opt-detail-fig figcaption {
  padding: 14px 18px;
  font-size: 12px;
  color: var(--sand-300);
  letter-spacing: 0.03em;
}

@media (max-width: 700px) {
  .opt-plate .opt-svg .pt-callout-rect, .opt-plate .opt-svg .pt-callout-text { display: none; }
  .opt-plate .opt-svg .zone-label { font-size: 1.8px; }
}

/* ============ 3D BUILDINGS (F4Map / OSMBuildings) ============ */
.buildings-wrap {
  width: 100%;
  margin: 22px 0 0;
  background: #0c0907;
}
.three-d-map {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  background: #1a1410;
}
.three-d-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.osmb-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.buildings-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 32px;
  background: var(--ink);
  color: var(--sand-300);
  font-size: 12px;
  letter-spacing: 0.04em;
  max-width: var(--maxw);
  margin: 0 auto;
}
.buildings-footer strong { color: var(--gold); font-weight: 500; }
.bf-btn {
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: var(--sand-200);
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .15s;
}
.bf-btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* Numbered zone markers on the 3D buildings map */
.bldg-zone-icon { background: transparent !important; border: none !important; }
.bldg-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  border: 3px solid var(--jasmine);
  box-shadow: 0 0 0 0 rgba(199, 149, 70, 0.6), 0 6px 18px rgba(0,0,0,0.5);
  display: grid;
  place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  animation: pulse 2.4s infinite;
  transition: transform .15s;
}
.bldg-num:hover {
  transform: scale(1.15);
  animation: none;
  box-shadow: 0 0 0 6px rgba(199, 149, 70, 0.35), 0 8px 22px rgba(0,0,0,0.6);
}

/* Custom Leaflet popup styling for zone cards */
.bldg-leaflet-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--jasmine);
}
.bldg-leaflet-popup .leaflet-popup-content {
  margin: 0;
  width: 300px !important;
}
.bldg-leaflet-popup .leaflet-popup-tip { background: var(--jasmine); }
.bldg-popup img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}
.bldg-popup-body { padding: 16px 18px 18px; }
.bldg-popup-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-d);
  font-weight: 600;
  margin: 0 0 6px;
  font-family: 'Inter', sans-serif;
}
.bldg-popup h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.15;
}
.bldg-popup-body p:not(.bldg-popup-tag) {
  font-size: 13px;
  line-height: 1.55;
  color: var(--stone-700);
  margin: 0;
  font-family: 'Inter', sans-serif;
}

/* ============ MAP ============ */
.map {
  height: 540px;
  margin: 30px 0;
  background: #1a1a1a;
  position: relative;
}
.coop-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: rgba(15, 11, 7, 0.78);
  color: var(--jasmine);
  padding: 14px 22px;
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  z-index: 500;
}
.coop-hint.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Leaflet overrides for dark theme */
.leaflet-container { background: #1a1410; font-family: 'Inter', sans-serif; }
.leaflet-control-attribution {
  background: rgba(15, 11, 7, 0.78) !important;
  color: var(--sand-300) !important;
  font-size: 10px !important;
}
.leaflet-control-attribution a { color: var(--gold) !important; }
.leaflet-popup-content-wrapper {
  background: var(--jasmine);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.leaflet-popup-tip { background: var(--jasmine); }
.leaflet-control-zoom a {
  background: rgba(15, 11, 7, 0.86) !important;
  color: var(--jasmine) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}
.leaflet-control-zoom a:hover { background: var(--ink-soft) !important; color: var(--gold) !important; }
.lm-marker-icon, .site-marker-icon { background: transparent !important; border: none !important; }
.landmarks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.lm {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  font-size: 13px;
  color: var(--sand-200);
  cursor: pointer;
  transition: all .15s;
}
.lm:hover { background: rgba(255,255,255,0.15); transform: translateY(-1px); box-shadow: 0 4px 14px -6px rgba(0,0,0,.4); }
.lm.active {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  box-shadow: 0 6px 20px -8px rgba(199, 149, 70, 0.7);
}
.lm.active .lm-icon { background: var(--ink) !important; }
.lm-icon {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lm-icon.park { background: #6e7a3f; }
.lm-icon.heritage { background: #c79546; }
.lm-icon.square { background: #b8a487; }
.lm-icon.natural { background: #6b95a8; }
.lm-icon.institution { background: #5a4a35; }

/* ============ EXISTING ============ */
.existing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}
.existing-card { margin: 0; }
.existing-card img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.existing-card figcaption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--sand-300);
  line-height: 1.5;
}
.existing-card figcaption strong { color: var(--jasmine); font-weight: 600; }
@media (max-width: 800px) {
  .existing-grid { grid-template-columns: 1fr; }
}

/* ============ BEFORE / AFTER (clip-path standard) ============ */
.ba-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  user-select: none;
  cursor: ew-resize;
  touch-action: pan-y;     /* allow vertical page scroll, intercept horizontal */
  background: #1a1410;
}
.ba-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
}
.ba-after  { z-index: 1; }
.ba-before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  -webkit-clip-path: inset(0 50% 0 0);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 56px;
  transform: translateX(-50%);
  z-index: 3;
  cursor: ew-resize;
  display: grid;
  place-items: center;
  outline: none;
}
.ba-handle:focus-visible .ba-handle-grip {
  box-shadow: 0 0 0 4px var(--gold), 0 8px 28px rgba(0,0,0,.45);
}
.ba-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: var(--jasmine);
  box-shadow: 0 0 16px rgba(248, 243, 231, 0.4);
  pointer-events: none;
}
.ba-handle-grip {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--jasmine);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
  transition: transform .15s, box-shadow .15s;
  z-index: 1;
}
.ba-handle:hover .ba-handle-grip,
.ba-handle:active .ba-handle-grip { transform: scale(1.08); box-shadow: 0 8px 28px rgba(0,0,0,.5); }

.ba-label {
  position: absolute;
  top: 18px;
  padding: 6px 14px;
  background: rgba(15,11,7,0.72);
  color: var(--jasmine);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 3px;
  pointer-events: none;
  z-index: 4;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.ba-label-l { left: 18px; }
.ba-label-r { right: 18px; }

/* ============ ANALYSIS ============ */
.analysis-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 20px;
}
@media (max-width: 900px) {
  .analysis-wrap { grid-template-columns: 1fr; }
}
.analysis-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.analysis-controls label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--sand-200);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background .15s;
}
.analysis-controls label:hover { background: rgba(255,255,255,0.04); }
.analysis-controls label.invert {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.ac-title {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 6px;
  padding: 0 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.ac-sync {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--sand-400);
  font-weight: 400;
}
.ac-jump {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  text-decoration: none;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
  transition: all .15s;
}
.ac-jump:hover { background: var(--jasmine); transform: translateY(-1px); }
.ac-hint {
  font-size: 11px;
  color: var(--sand-400);
  margin: 0 0 12px;
  padding: 0 12px;
  line-height: 1.5;
}
.ac-hint em { color: var(--gold); font-style: normal; font-weight: 500; }

/* Click-to-highlight focus state on layer rows */
.analysis-controls label[data-layer-row] {
  position: relative;
}
.analysis-controls label[data-layer-row].focused {
  background: rgba(199, 149, 70, 0.16);
  box-shadow: inset 3px 0 0 var(--gold);
}
.analysis-controls label[data-layer-row].focused .dot {
  box-shadow: 0 0 0 2px var(--gold), 0 0 12px rgba(199, 149, 70, 0.8);
}
.analysis-controls.has-focus label[data-layer-row]:not(.focused) {
  opacity: 0.4;
}
.dot {
  width: 12px; height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.dot-build  { background: var(--build); }
.dot-road   { background: var(--road); }
.dot-nature { background: var(--nature); }
.dot-water  { background: var(--water); }
.dot-trees  { background: var(--tree); }
.dot-open   { background: rgba(199, 149, 70, 0.35); border: 1px dashed var(--gold); }
.analysis-canvas-wrap {
  background: #0c0907;
  border-radius: var(--radius);
  padding: 14px;
  overflow: hidden;
}
#site-canvas {
  width: 100%; height: auto;
  display: block;
  background: #0c0907;
}
.analysis-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 700px) {
  .analysis-stats { grid-template-columns: repeat(2, 1fr); }
}
.astat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.astat-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand-300);
  margin-top: 8px;
  display: block;
}

/* ============ MASTERPLAN — FULL BLEED with NUMBERED HOTSPOTS ============ */
.masterplan-section { padding: 90px 0 70px; }
.masterplan-fullbleed {
  width: 100%;
  margin: 36px 0 28px;
  background: #1a140d;
}
.masterplan-wrap {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: visible;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
}
.masterplan-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.hotspots { position: absolute; inset: 0; pointer-events: none; }
.hs {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hs-dot {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--jasmine);
  box-shadow: 0 0 0 0 rgba(199, 149, 70, 0.6), 0 6px 18px rgba(0,0,0,0.5);
  animation: pulse 2.2s infinite;
  display: grid;
  place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  transition: transform .2s;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(199, 149, 70, 0.8), 0 6px 18px rgba(0,0,0,0.5); }
  70% { box-shadow: 0 0 0 22px rgba(199, 149, 70, 0), 0 6px 18px rgba(0,0,0,0.5); }
  100% { box-shadow: 0 0 0 0 rgba(199, 149, 70, 0), 0 6px 18px rgba(0,0,0,0.5); }
}
.hs:hover .hs-dot { transform: scale(1.12); animation: none; box-shadow: 0 0 0 6px rgba(199, 149, 70, 0.35), 0 8px 24px rgba(0,0,0,0.6); }
.hs-label {
  white-space: nowrap;
  background: rgba(15, 11, 7, 0.88);
  color: var(--jasmine);
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 500;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transform: translateX(0);
  transition: opacity .2s, transform .2s;
  opacity: 1;
}
.hs:hover .hs-label, .hs:focus .hs-label {
  background: var(--gold);
  color: var(--ink);
  transform: translateX(2px);
}

/* If hotspot is on the right half, label should be on the LEFT of the dot */
.hs.flip { flex-direction: row-reverse; }
.hs.flip .hs-label { transform: translateX(0); }
.hs.flip:hover .hs-label { transform: translateX(-2px); }

@media (max-width: 700px) {
  .hs-dot { width: 28px; height: 28px; font-size: 14px; border-width: 2px; }
  .hs-label { display: none; }  /* labels hide on small screens; tap dot for card */
}

/* ============ ZONE STRIP (always-visible cards below master plan) ============ */
.zone-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin: 30px 0 0;
}
@media (max-width: 1100px) {
  .zone-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
  .zone-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    margin: 30px -32px 0;
    padding: 0 32px 12px;
  }
  .zone-chip { flex: 0 0 220px; scroll-snap-align: start; }
}
.zone-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--sand-100);
  border: 1px solid var(--sand-200);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s;
}
.zone-chip:hover {
  background: var(--jasmine);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,0.2);
}
.zone-chip.active {
  background: var(--ink);
  color: var(--jasmine);
  border-color: var(--gold);
}
.zone-chip-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}
.zone-chip-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.zone-chip-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zone-chip-tag {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-700);
  opacity: 0.7;
}
.zone-chip.active .zone-chip-tag { color: var(--sand-300); opacity: 1; }
.hotspot-card {
  position: absolute;
  bottom: 24px; right: 24px;
  width: min(360px, 90%);
  background: var(--jasmine);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
  z-index: 10;
  animation: slideIn .25s ease-out;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.hotspot-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hotspot-card .hc-body { padding: 16px 20px 20px; }
.hc-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-d);
  font-weight: 600;
  margin: 0 0 8px;
}
.hotspot-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--ink);
}
.hotspot-card p { font-size: 14px; line-height: 1.55; color: var(--stone-700); margin: 0; }
.hotspot-close {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px;
  border: none;
  background: rgba(15,11,7,0.7);
  color: white;
  font-size: 20px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

/* ============ ZONES GRID ============ */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 28px;
  margin-top: 20px;
}
.zone-card {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
}
.zone-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.zone-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.zone-card-body { padding: 22px 24px 26px; }
.zone-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.zone-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  margin: 8px 0 10px;
  color: var(--jasmine);
  font-weight: 500;
}
.zone-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--sand-200);
  margin: 0;
}

/* ============ 3D VIEWER ============ */
.viewer-wrap {
  position: relative;
  background: linear-gradient(180deg, #f3ead6 0%, #d9c39a 100%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
#viewer {
  width: 100%;
  height: 70vh;
  min-height: 520px;
  display: block;
  background: transparent;
  --poster-color: transparent;
}
.viewer-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  text-align: center;
  padding: 40px;
  color: var(--stone-700);
}
.viewer-fallback small { display: block; margin-top: 10px; font-size: 12px; color: var(--stone-700); opacity: 0.7; }
.viewer-fallback code { background: rgba(0,0,0,0.08); padding: 2px 6px; border-radius: 3px; font-size: 11px; }
.viewer-controls {
  position: absolute;
  bottom: 18px; left: 18px;
  display: flex;
  gap: 6px;
  background: rgba(15,11,7,0.7);
  padding: 6px;
  border-radius: 6px;
  z-index: 2;
}

/* Mirrored layer panel on 3D viewer */
.viewer-layers {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 2;
  background: rgba(15, 11, 7, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 14px 14px 12px;
  min-width: 200px;
  color: var(--sand-100);
}
.viewer-layers .vl-title {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.vl-sync {
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--sand-400);
  font-weight: 400;
}
.viewer-layers label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--sand-200);
  cursor: pointer;
  padding: 5px 4px;
  border-radius: 4px;
  transition: background .15s;
}
.viewer-layers label:hover { background: rgba(255,255,255,0.05); }
.viewer-layers label input { accent-color: var(--gold); }
.viewer-layers .dot { width: 10px; height: 10px; }
.vl-jump {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: var(--gold);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
  transition: color .15s;
}
.vl-jump:hover { color: var(--jasmine); }

@media (max-width: 800px) {
  .viewer-layers {
    top: auto;
    bottom: 70px;
    right: 18px;
    left: 18px;
    min-width: 0;
    padding: 10px 12px;
  }
  .viewer-layers label { font-size: 11px; padding: 3px 4px; }
}
.vc-btn {
  border: none;
  background: transparent;
  color: var(--sand-200);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: all .15s;
}
.vc-btn:hover { background: rgba(255,255,255,0.06); color: var(--jasmine); }
.vc-btn.active { background: var(--gold); color: var(--ink); }

/* ============ VISION & CONTEXT ============ */
.vision-section { padding: 110px 0; }
.eyebrow-sub {
  margin-top: 80px !important;
  font-size: 10px !important;
}
.vision-principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px 28px;
  margin: 36px 0 0;
}
.vision-principle {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 14px;
}
.vision-principle h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--jasmine);
  font-weight: 500;
}
.vision-principle p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--sand-200);
  margin: 0;
}

.studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 22px;
}
@media (max-width: 900px) { .studies-grid { grid-template-columns: 1fr; } }
.study-card {
  background: rgba(255,255,255,0.04);
  border-left: 2px solid var(--gold);
  padding: 22px 24px 24px;
  border-radius: 0 4px 4px 0;
}
.study-card .study-title {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 16px;
}
.study-card .study-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.study-card .study-item:first-of-type { border-top: 0; }
.study-card .study-k {
  font-size: 12px;
  color: var(--sand-300);
  letter-spacing: 0.04em;
  flex: 1;
}
.study-card .study-v {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  color: var(--jasmine);
  font-weight: 500;
  line-height: 1;
}
.study-card .study-note {
  font-size: 10px;
  color: var(--sand-400);
  letter-spacing: 0.05em;
  font-style: italic;
  margin-top: 2px;
  text-align: right;
  flex-basis: 100%;
}

/* ============ SIGNATURE ATTRACTIONS ============ */
.attractions-section { padding: 100px 0; background: var(--sand-100); }
.attractions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 44px;
}
.attraction-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  box-shadow: 0 1px 0 rgba(58, 48, 34, 0.06);
}
.attraction-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -14px rgba(34, 27, 19, 0.3);
}
.attraction-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.attraction-body { padding: 22px 24px 26px; }
.attraction-code {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: var(--gold-d);
  letter-spacing: 0.12em;
  font-weight: 500;
  margin: 0;
}
.attraction-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  margin: 4px 0 4px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.15;
}
.attraction-tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-d);
  font-weight: 600;
  margin: 0 0 14px;
}
.attraction-hook {
  font-size: 14px;
  line-height: 1.6;
  color: var(--stone-700);
  margin: 0;
}

/* ============ ANNUAL PROGRAMME ============ */
.programme-section { padding: 100px 0; }
.programme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 44px;
}
@media (max-width: 900px)  { .programme-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .programme-grid { grid-template-columns: 1fr; } }

.month-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 22px 22px 24px;
  transition: background .25s, transform .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.month-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(199, 149, 70, 0.4);
  transform: translateY(-3px);
}
.month-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 32px;
  background: var(--gold);
}
.month-name {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 8px 0 4px;
}
.month-theme {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--jasmine);
  margin: 0 0 6px;
  font-weight: 500;
  line-height: 1.1;
}
.month-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand-200);
  background: rgba(199, 149, 70, 0.18);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
  font-weight: 500;
}
.month-events {
  list-style: none;
  padding: 0;
  margin: 0;
}
.month-events li {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--sand-200);
  padding: 4px 0 4px 16px;
  position: relative;
}
.month-events li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--gold);
  font-weight: 700;
}

/* ============ MOVEMENT & CAPACITY ============ */
.movement-section { padding: 100px 0; background: var(--sand-50); }
.capacity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 44px 0 60px;
}
@media (max-width: 900px) { .capacity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .capacity-grid { grid-template-columns: 1fr; } }

.cap-card {
  background: white;
  border-radius: 8px;
  padding: 26px 28px 28px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 1px 0 rgba(58,48,34,0.06);
}
.cap-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: 'Cormorant Garamond', serif;
  color: var(--ink);
  line-height: 1;
}
.cap-num {
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.cap-unit {
  font-size: 16px;
  color: var(--stone-700);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.cap-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-d);
  font-weight: 600;
  margin: 14px 0 6px;
}
.cap-note {
  font-size: 13px;
  color: var(--stone-700);
  margin: 0;
  font-style: italic;
}

.movement-detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .movement-detail { grid-template-columns: 1fr; } }
.movement-col .eyebrow-sub { margin-top: 0 !important; color: var(--gold-d) !important; }
.movement-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.movement-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(58,48,34,0.12);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--stone-700);
}
.movement-list li:first-child { border-top: 0; }
.movement-list .mv-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.movement-list .mv-code {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--gold-d);
  font-weight: 500;
  width: 30px;
  flex-shrink: 0;
}
.movement-list .mv-label {
  font-weight: 500;
  color: var(--ink);
  flex: 1;
}
.movement-list .mv-pill {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--sand-200);
  color: var(--stone-700);
  padding: 2px 10px;
  border-radius: 100px;
  font-weight: 600;
}
.movement-list .mv-pill.high { background: var(--gold); color: var(--ink); }
.movement-list .mv-pill.peak { background: var(--ink); color: var(--gold); }
.movement-list .mv-sub {
  font-size: 12.5px;
  color: var(--stone-700);
  margin: 4px 0 0;
}

/* ============ DAILY WELLNESS CYCLE ============ */
.cycle-section { padding: 100px 0; background: var(--sand-100); }
.cycle-rail {
  display: grid;
  grid-template-columns: repeat(8, minmax(280px, 1fr));
  gap: 8px;
  margin-top: 42px;
  padding: 0 32px;
  max-width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.cycle-rail::-webkit-scrollbar { height: 6px; }
.cycle-rail::-webkit-scrollbar-thumb { background: var(--sand-400); border-radius: 4px; }
.cycle-rail::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 1300px) {
  .cycle-rail { grid-template-columns: repeat(8, 280px); }
}
@media (max-width: 700px) {
  .cycle-rail { grid-template-columns: repeat(8, 220px); padding: 0 20px; }
}

.cycle-card {
  position: relative;
  scroll-snap-align: start;
  background: #1a140d;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  transition: transform .3s ease;
}
.cycle-card:hover { transform: translateY(-4px); }
.cycle-card-img {
  position: relative;
  height: 280px;
  overflow: hidden;
}
.cycle-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.cycle-card:hover .cycle-card-img img { transform: scale(1.05); }
.cycle-card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,11,7,0.85) 100%);
}
.cycle-card-meta {
  position: absolute;
  top: 16px; left: 16px; right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  color: var(--jasmine);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.cycle-card-time { color: var(--gold); }
.cycle-card-body {
  padding: 22px 22px 26px;
  flex: 1;
  background: var(--ink);
  color: var(--sand-200);
  display: flex;
  flex-direction: column;
}
.cycle-card-phase {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--jasmine);
  margin: 0 0 12px;
  line-height: 1;
}
.cycle-card-summary {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: var(--sand-300);
}
.cycle-hint {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold-d);
  text-transform: uppercase;
  text-align: center;
  margin-top: 18px;
  font-weight: 500;
}

/* ============ SIX WELLBEING PILLARS ============ */
.pillars-section { padding: 100px 0; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 44px;
}
.pillar-card {
  background: rgba(255,255,255,0.04);
  border-top: 3px solid var(--gold);
  padding: 32px 28px 30px;
  border-radius: 0 0 6px 6px;
  position: relative;
  transition: background .25s, transform .25s;
}
.pillar-card:hover { background: rgba(255,255,255,0.07); transform: translateY(-4px); }
.pillar-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 500;
  margin: 0;
}
.pillar-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 500;
  color: var(--jasmine);
  margin: 6px 0 4px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.pillar-tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-400);
  font-weight: 500;
  margin: 0 0 18px;
}
.pillar-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--sand-200);
  margin: 0;
}

/* ============ MATERIAL PALETTE ============ */
.materials-section { padding: 100px 0; background: var(--sand-50); }
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 44px;
}
.material-card {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 rgba(58, 48, 34, 0.06);
  transition: transform .25s, box-shadow .25s;
}
.material-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -12px rgba(34, 27, 19, 0.25);
}
.material-swatch {
  height: 200px;
  width: 100%;
  position: relative;
  background-color: var(--sw, #d9c39a);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.material-swatch::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.12) 100%);
  pointer-events: none;
}
.material-body { padding: 22px 24px 26px; }
.material-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.15;
}
.material-source {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-d);
  font-weight: 600;
  margin: 0 0 14px;
}
.material-use, .material-finish {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  color: var(--stone-700);
}
.material-use { margin-bottom: 6px; }
.material-finish { color: var(--stone-700); opacity: 0.75; font-style: italic; }

/* ============ GALLERY ============ */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 40px;
}
.gf {
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: var(--sand-200);
  padding: 8px 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  cursor: pointer;
  transition: all .2s;
}
.gf:hover { background: rgba(255,255,255,0.06); }
.gf.active { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.g-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  background: #1a140d;
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.g-item:hover img { transform: scale(1.06); }
.g-item .g-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 18px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: var(--jasmine);
  font-size: 13px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(10px);
  transition: all .3s;
}
.g-item:hover .g-cap { opacity: 1; transform: translateY(0); }

/* ============ LIGHTBOX ============ */
.lightbox[hidden], .hotspot-card[hidden] { display: none !important; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,11,7,0.96);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 40px;
}
.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 6px;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
}
.lightbox p {
  margin-top: 18px;
  color: var(--sand-200);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  border: none;
  background: rgba(255,255,255,0.08);
  color: var(--jasmine);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.18); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ============ IDENTITY ============ */
.identity { background: var(--sand-100); }
.identity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
}
.id-card {
  padding: 30px 28px;
  background: var(--jasmine);
  border-radius: var(--radius);
  border-top: 3px solid var(--gold);
}
.id-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  margin: 0 0 14px;
  color: var(--ink);
  font-weight: 500;
}
.id-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--stone-700);
  margin: 0;
}

/* ============ DWG INVENTORY ============ */
.dwg-section { padding: 100px 0 70px; }
.dwg-method {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--stone-700);
  margin: 18px 0 0;
  padding: 14px 18px;
  background: rgba(58, 48, 34, 0.05);
  border-left: 2px solid var(--gold);
  border-radius: 0 4px 4px 0;
  max-width: 760px;
  font-style: italic;
}
.dwg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.dwg-card {
  background: white;
  border-radius: 8px;
  padding: 22px 22px 22px;
  cursor: pointer;
  border-top: 3px solid transparent;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  box-shadow: 0 1px 0 rgba(58, 48, 34, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dwg-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--gold);
  box-shadow: 0 14px 30px -12px rgba(34, 27, 19, 0.2);
}
.dwg-card.no-osm { background: var(--sand-100); }
.dwg-card.no-osm:hover { border-top-color: var(--sand-400); }

.dwg-card-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.dwg-icon {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--gold);
  width: 32px;
  flex-shrink: 0;
  line-height: 1;
}
.dwg-meta {
  flex: 1;
  min-width: 0;
}
.dwg-filename {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--stone-700);
  margin: 0;
  opacity: 0.7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dwg-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.15;
}
.dwg-subtitle {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-d);
  font-weight: 600;
  margin: 0;
}
.dwg-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--stone-700);
  margin: 4px 0 0;
}
.dwg-osm {
  font-size: 11px;
  line-height: 1.5;
  color: var(--stone-700);
  opacity: 0.75;
  margin: 4px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(58, 48, 34, 0.1);
  font-style: italic;
}
.dwg-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-d);
  font-weight: 600;
  transition: color .15s;
}
.dwg-card:hover .dwg-cta { color: var(--ink); }
.dwg-card.no-osm .dwg-cta {
  color: var(--stone-700);
  opacity: 0.6;
}
.dwg-size {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--stone-700);
  opacity: 0.7;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

/* ============ SITE INFRASTRUCTURE MAP ============ */
.infra-section { padding: 100px 0 80px; }
.infra-wrap {
  position: relative;
  max-width: var(--maxw);
  margin: 36px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 18px;
}
@media (max-width: 900px) {
  .infra-wrap { grid-template-columns: 1fr; }
}

.infra-map {
  height: 70vh;
  min-height: 520px;
  border-radius: 8px;
  overflow: hidden;
  background: #0c0907;
  box-shadow: var(--shadow);
}
.infra-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 16px 16px 20px;
  font-size: 12px;
  color: var(--sand-200);
  height: max-content;
  align-self: start;
}
.infra-title {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 10px;
}
.infra-panel label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s;
}
.infra-panel label:hover { background: rgba(255,255,255,0.06); }
.infra-panel label em {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--sand-400);
}
.infra-panel .dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.infra-panel .radio-line { font-size: 12px; }
.infra-credit {
  margin: 18px 0 0;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--sand-400);
  line-height: 1.6;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Custom numbered zone markers on the map */
.infra-zone { background: transparent !important; border: none !important; }
.infra-zone-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  border: 2px solid var(--jasmine);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  display: grid;
  place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 14px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: var(--sand-200);
  padding: 60px 0 40px;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.foot-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  margin: 0;
  color: var(--jasmine);
}
.foot-sub { margin: 4px 0 0; font-size: 13px; color: var(--sand-300); }
.foot-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--sand-300);
  letter-spacing: 0.04em;
}
.foot-credit {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: var(--sand-400);
  line-height: 1.6;
}
.foot-credit code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

/* ============ UTILITIES ============ */
::selection { background: var(--gold); color: var(--ink); }
