/* ==========================================================
   South Hyderabad Projects — Iteration 3
   - BIG bold site header with Ashwin Kumar
   - Boxed map (not full viewport, scrollable past)
   - Tier 1 = purple
   - No zone polygons (removed)
   ========================================================== */

:root {
  --ink:          #0a0a0a;
  --ink-90:       #1a1a1a;
  --ink-70:       rgba(10,10,10,0.70);
  --ink-50:       rgba(10,10,10,0.50);
  --ink-30:       rgba(10,10,10,0.30);
  --ink-15:       rgba(10,10,10,0.15);
  --ink-08:       rgba(10,10,10,0.08);

  --paper:        #f5f1ea;
  --paper-soft:   #faf6ee;
  --paper-pure:   #ffffff;

  --accent:       #b85c2e;          /* terracotta accent */

  /* Tier colors — T1 is now PURPLE */
  --tier-1-pin:   #5b2d8c;          /* deep royal purple */
  --tier-2-pin:   #5a7d6a;          /* sage */
  --tier-3-pin:   #a89878;          /* taupe */
  --tier-4-pin:   #c08858;          /* clay */

  --line:         var(--ink-08);
  --line-strong:  var(--ink-15);

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg:    0 24px 60px -12px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-overlay: 0 8px 32px rgba(0,0,0,0.10), 0 1px 0 rgba(0,0,0,0.04);
  --shadow-panel: -20px 0 60px -12px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04);

  --sans:  'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:  'Geist Mono', 'SF Mono', Menlo, monospace;
  --serif: 'Instrument Serif', Georgia, serif;

  --max-w: 1280px;
  --pad-x: 32px;
  --pad-x-mobile: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02";
  font-variant-numeric: tabular-nums;
}

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

/* ============ BRAND MARK ============ */
.brand-mark {
  display: inline-block;
  width: 32px; height: 32px;
  background: var(--ink);
  border-radius: 6px;
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 12px;
  background: var(--paper);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* ============ BIG HEADER ============ */
.site-header {
  background: var(--ink);
  color: var(--paper);
  padding: 22px 0;
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(245,241,234,0.08);
}
.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-header .brand-mark {
  background: var(--paper);
}
.site-header .brand-mark::after {
  background: var(--ink);
}
.site-header-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.site-header-name {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper);
}
.site-header-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.7);
  margin-top: 4px;
  font-weight: 500;
}

.site-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.site-header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,255,255,0.15);
}
.site-header-phone {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--paper);
  padding: 10px 14px;
  border: 1px solid rgba(245,241,234,0.25);
  border-radius: 100px;
  transition: all 0.2s;
}
.site-header-phone:hover {
  background: rgba(245,241,234,0.1);
  border-color: rgba(245,241,234,0.4);
}

/* ============ HERO INTRO STRIP ============ */
.hero-strip {
  background: var(--paper);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.hero-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 20px;
  font-weight: 500;
}
.hero-title {
  font-family: var(--sans);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 22ch;
  margin-bottom: 20px;
}
.hero-title .serif {
  display: inline;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
}
.hero-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 660px;
}
.hero-lead strong {
  color: var(--ink);
  font-weight: 600;
}

/* ============ MAP — BOXED ============ */
.map-section {
  padding: 40px var(--pad-x) 60px;
  background: var(--paper);
}
.map-box {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  height: 75vh;
  min-height: 560px;
  max-height: 800px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
#map.map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--paper-soft);
}
.map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-50);
  font-size: 14px;
  font-style: italic;
  font-family: var(--serif);
}
.map-help {
  text-align: center;
  font-size: 13px;
  color: var(--ink-50);
  margin-top: 16px;
  font-family: var(--serif);
  font-style: italic;
}

/* Floating overlay header (now smaller — just stats) */
.map-overlay-header {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  pointer-events: none;
}
.map-overlay-stats {
  display: flex;
  background: rgba(245,241,234,0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  padding: 12px 4px;
  border-radius: 14px;
  box-shadow: var(--shadow-overlay);
  pointer-events: auto;
}
.overlay-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 18px;
  border-right: 1px solid var(--ink-08);
}
.overlay-stat:last-child { border-right: none; }
.overlay-stat-num {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  font-feature-settings: "tnum";
}
.overlay-stat-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-top: 5px;
  font-weight: 500;
}

/* Filter bar - top-right of map */
.map-controls-floating {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(245,241,234,0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: var(--shadow-overlay);
  flex-wrap: wrap;
  max-width: calc(100% - 32px - 280px);  /* leave room for stats */
}
.map-search {
  font-family: var(--sans);
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper-pure);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  min-width: 180px;
  width: 200px;
}
.map-search:focus { border-color: var(--ink); }
.map-search::placeholder { color: var(--ink-50); }
.filter-select {
  font-family: var(--sans);
  font-size: 12px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper-pure);
  color: var(--ink);
  outline: none;
  cursor: pointer;
  font-weight: 500;
}
.filter-chips {
  display: flex;
  gap: 3px;
  background: var(--paper);
  border-radius: 8px;
  padding: 3px;
  border: 1px solid var(--line);
}
.chip {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-70);
  transition: all 0.15s;
  white-space: nowrap;
}
.chip:hover { color: var(--ink); }
.chip.active {
  background: var(--ink);
  color: var(--paper);
}

/* Floating legend bottom-left */
.map-legend {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 10;
  background: rgba(245,241,234,0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-overlay);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-70);
}
.legend-title {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-50);
  font-weight: 500;
  margin-bottom: 4px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--ink-15);
  flex-shrink: 0;
}
.dot.t1 { background: var(--tier-1-pin); }
.dot.t2 { background: var(--tier-2-pin); }
.dot.t3 { background: var(--tier-3-pin); }
.dot.t4 { background: var(--tier-4-pin); }

/* Custom Google InfoWindow */
.gm-style .gm-style-iw-c {
  border-radius: 14px !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 0 !important;
  max-width: 320px !important;
}
.gm-style-iw-d { overflow: hidden !important; }

/* ============ ZONE SLIDE-IN PANEL ============ */
.zone-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(480px, 100%);
  height: 100vh;
  background: var(--paper);
  z-index: 90;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  box-shadow: var(--shadow-panel);
}
.zone-panel.open {
  transform: translateX(0);
}
.zone-panel-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper-pure);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.zone-panel-close:hover { background: var(--ink); color: var(--paper); }
.zone-panel-content { padding: 56px 40px 80px; }

.zone-panel-hero {
  position: relative;
  margin: -56px -40px 28px;
  height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 24px 40px;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
}
.zone-panel-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 30%, rgba(184,92,46,0.25), transparent 60%);
  pointer-events: none;
}
.zone-panel-hero-num {
  position: absolute;
  top: 24px;
  right: 40px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: rgba(245,241,234,0.55);
  font-feature-settings: "tnum";
}
.zone-panel-hero-content { position: relative; }
.zone-panel-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 8px;
}
.zone-panel-hero .zone-panel-eyebrow { color: rgba(245,241,234,0.6); }
.zone-panel-title {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 8px;
}
.zone-panel-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  line-height: 1.3;
  margin-bottom: 20px;
}
.zone-panel-hero .zone-panel-tagline { color: rgba(245,241,234,0.85); }
.zone-panel-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-70);
  margin-bottom: 28px;
}
.zone-panel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin-bottom: 28px;
}
.zone-panel-stat { text-align: center; border-right: 1px solid var(--line); }
.zone-panel-stat:last-child { border-right: none; }
.zone-panel-stat-num {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  color: var(--ink);
  font-feature-settings: "tnum";
}
.zone-panel-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-top: 6px;
  font-weight: 500;
}
.zone-panel-section { margin-bottom: 28px; }
.zone-panel-section-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.zone-panel-builder-list { display: flex; flex-direction: column; gap: 8px; }
.zone-panel-builder {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 10px 14px;
  background: var(--paper-pure);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
}
.zone-panel-builder-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-50);
  font-weight: 400;
}
.zone-panel-amenity-list { display: flex; flex-direction: column; gap: 6px; }
.zone-panel-amenity {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.zone-panel-amenity-name { color: var(--ink); }
.zone-panel-amenity-rating {
  font-family: var(--mono);
  color: var(--ink-50);
  white-space: nowrap;
  font-size: 11px;
}
.zone-panel-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-top: 8px;
  transition: all 0.2s;
}
.zone-panel-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.zone-panel-cta-arrow {
  font-family: var(--serif);
  font-size: 22px;
  transition: transform 0.2s;
}
.zone-panel-cta:hover .zone-panel-cta-arrow {
  transform: translateX(4px);
}

/* ============ SECTIONS BELOW MAP ============ */
.section {
  padding: 100px var(--pad-x);
  position: relative;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--sans);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 22ch;
  margin-bottom: 24px;
}
.section-title .serif {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.005em;
  color: var(--accent);
}
.section-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 640px;
  margin-bottom: 56px;
}

/* ============ ABOUT ============ */
.section-about {
  background: var(--paper-pure);
  border-top: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  margin-top: 48px;
}
.about-text p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-70);
  margin-bottom: 20px;
}
.about-text strong {
  color: var(--ink);
  font-weight: 600;
}
.about-card {
  background: var(--paper);
  border-radius: 20px;
  padding: 32px;
  position: sticky;
  top: 120px;
  height: fit-content;
}
.about-card-header {
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink-08);
  margin-bottom: 12px;
}
.about-card-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.about-card-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--accent);
  margin-top: 2px;
}
.about-card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink-08);
  gap: 16px;
}
.about-card-row:last-of-type { border-bottom: none; }
.about-card-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.about-card-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
  line-height: 1.4;
}
.about-card-value small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-50);
  margin-top: 2px;
}
.about-card-contacts {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--paper-pure);
  border: 1px solid var(--ink-08);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.2s;
}
.contact-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink);
}
.contact-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.contact-primary:hover { background: var(--ink); color: var(--paper); }

/* ============ REGIONS ============ */
.section-regions {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 16px;
}
.region-card {
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}
.region-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink-15);
  box-shadow: var(--shadow-lg);
}
.region-card-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-50);
  margin-bottom: 12px;
  font-weight: 500;
}
.region-card-title {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  color: var(--ink);
}
.region-card-tagline {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1.4;
}
.region-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-70);
  margin-bottom: 24px;
}
.region-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.region-stat { text-align: center; }
.region-stat-num {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  font-feature-settings: "tnum";
  display: block;
}
.region-stat-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-50);
  font-weight: 500;
}
.region-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.region-card-link::after {
  content: "→";
  transition: transform 0.2s;
  font-family: var(--serif);
}
.region-card:hover .region-card-link::after {
  transform: translateX(3px);
}

/* ============ MODAL ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 100;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  width: min(720px, 92vw);
  max-height: 88vh;
  background: var(--paper);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  z-index: 101;
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.15s;
}
.modal-close:hover { background: var(--ink); }
.modal-content { padding: 0; }
.modal-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--paper-soft);
  background-size: cover;
  background-position: center;
}
.modal-photo-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--paper), var(--paper-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-50);
  font-style: italic;
  font-family: var(--serif);
  font-size: 18px;
}
.modal-body { padding: 32px; }
.modal-eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 12px;
}
.modal-tier-pill {
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0.1em;
  font-family: var(--mono);
}
.modal-tier-pill.t1 { background: var(--tier-1-pin); }
.modal-tier-pill.t2 { background: var(--tier-2-pin); }
.modal-tier-pill.t3 { background: var(--tier-3-pin); }
.modal-tier-pill.t4 { background: var(--tier-4-pin); }
.modal-title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.modal-builder {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 20px;
}
.modal-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-70);
  margin-bottom: 20px;
}
.modal-rating-num {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
}
.modal-stars { color: #c8923a; letter-spacing: 0.08em; }
.modal-address {
  padding: 16px;
  background: var(--paper-soft);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-70);
  margin-bottom: 24px;
  line-height: 1.5;
}
.modal-section { margin-top: 28px; }
.modal-section-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.modal-conn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 24px;
}
.modal-conn-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.modal-conn-name { color: var(--ink-70); }
.modal-conn-time {
  font-family: var(--mono);
  color: var(--ink);
  font-weight: 500;
}
.modal-conn-time small { color: var(--ink-50); font-weight: 400; margin-left: 4px; }
.modal-amenity-list { display: flex; flex-direction: column; gap: 6px; }
.modal-amenity-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.modal-amenity-name { color: var(--ink); }
.modal-amenity-rating {
  font-family: var(--mono);
  color: var(--ink-50);
  white-space: nowrap;
  font-size: 11px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.modal-actions a { flex: 1; min-width: 140px; justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px var(--pad-x) 40px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 32px;
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand .brand-mark { background: var(--paper); width: 28px; height: 28px; }
.footer-brand .brand-mark::after { background: var(--ink); }
.footer-brand-name {
  font-size: 17px;
  font-weight: 600;
}
.footer-brand-meta {
  font-size: 13px;
  color: rgba(245,241,234,0.6);
  margin-top: 2px;
  font-family: var(--serif);
  font-style: italic;
}
.footer-cta {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.footer-cta .btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.footer-cta .btn-ghost {
  border-color: rgba(245,241,234,0.2);
  color: var(--paper);
}
.footer-cta .btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
}
.footer-meta {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(245,241,234,0.08);
  color: rgba(245,241,234,0.6);
  font-size: 13px;
  line-height: 1.6;
  max-width: 600px;
}
.footer-tiny {
  margin-top: 12px;
  font-size: 11px;
  color: rgba(245,241,234,0.4);
  font-family: var(--mono);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .map-controls-floating {
    position: static;
    max-width: none;
    margin: 16px;
    flex: 1;
  }
  .map-overlay-header {
    position: static;
    margin: 16px 16px 0;
  }
  .map-box {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: none;
    min-height: 0;
  }
  #map.map-canvas {
    position: relative;
    height: 60vh;
    min-height: 480px;
    inset: auto;
  }
  .map-legend {
    bottom: auto;
    left: auto;
    position: static;
    margin: 0 16px 16px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }
  .legend-title { width: 100%; margin-bottom: 0; }
}

@media (max-width: 900px) {
  :root { --pad-x: var(--pad-x-mobile); }

  /* Header */
  .site-header { padding: 16px 0; }
  .site-header-name { font-size: 20px; letter-spacing: 0.01em; }
  .site-header-role { font-size: 10px; letter-spacing: 0.1em; }
  .site-header-phone { display: none; }
  .site-header-cta { padding: 8px 14px; font-size: 12px; }
  .site-header-left { gap: 12px; }
  .site-header .brand-mark { width: 28px; height: 28px; }

  /* Hero strip */
  .hero-strip { padding: 32px 0 28px; }
  .hero-eyebrow { font-size: 10px; }

  /* Map */
  .map-section { padding: 24px var(--pad-x) 40px; }
  .map-box { border-radius: 16px; }
  #map.map-canvas { min-height: 420px; }
  .map-overlay-stats { padding: 8px 0; }
  .overlay-stat { padding: 0 12px; }
  .overlay-stat-num { font-size: 18px; }
  .overlay-stat-label { font-size: 9px; }
  .map-controls-floating {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 8px;
  }
  .map-search { min-width: 0; width: 100%; }
  .filter-chips { overflow-x: auto; flex-wrap: nowrap; }
  .chip { font-size: 11px; padding: 5px 10px; }

  /* Sections */
  .section { padding: 64px var(--pad-x); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-card { position: static; padding: 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cta { justify-content: flex-start; }
  .modal-conn-grid { grid-template-columns: 1fr; }

  /* Zone panel */
  .zone-panel-content { padding: 56px 24px 80px; }
  .zone-panel-hero { margin: -56px -24px 28px; padding: 24px; }
  .zone-panel-hero-num { right: 24px; }
}
@media (max-width: 600px) {
  .modal-body { padding: 20px; }
  .modal-title { font-size: 24px; }
  .site-header-name { font-size: 18px; }
}
