:root {
  --asphalt: #0d0f11;
  --asphalt-2: #15181b;
  --limestone: #eeeae1;
  --paper: #d8d4ca;
  --steel: #87919a;
  --steel-dark: #4d565d;
  --taxi: #f5c518;
  --signal: #d74735;
  --copper: #6da99c;
  --moss: #7f9a68;
  --rust: #b75d3f;
  --ink: #111315;
  --line: rgba(238, 234, 225, .18);
  --line-strong: rgba(238, 234, 225, .38);
  --header-height: 118px;
  --page-pad: clamp(18px, 3vw, 48px);
  --display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease-city: cubic-bezier(.2, .75, .2, 1);
  --accent: var(--taxi);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  background: var(--asphalt);
  scroll-behavior: smooth;
  scrollbar-color: var(--steel-dark) var(--asphalt);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--asphalt);
  color: var(--limestone);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.is-dialog-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }

::selection { background: var(--taxi); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--taxi);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--taxi);
  color: var(--ink);
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

#ambient-stage {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .72;
}

.noise {
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.global-header {
  position: sticky;
  z-index: 80;
  top: 0;
  width: 100%;
  background: rgba(13, 15, 17, .9);
  border-bottom: 1px solid var(--line-strong);
  backdrop-filter: blur(20px) saturate(125%);
}

.brand-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(260px, 1fr) auto;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 var(--page-pad);
  border-right: 1px solid var(--line);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .16em;
  transition: background .2s ease;
}
.wordmark:hover { background: rgba(255, 255, 255, .035); }
.wordmark-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--limestone);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: .08em;
}

.city-tabs { display: flex; min-width: 0; }
.city-tab {
  position: relative;
  min-width: 230px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(18px, 2.5vw, 38px);
  border-right: 1px solid var(--line);
  color: var(--steel);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease;
}
.city-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--taxi);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease-city);
}
.city-tab:hover { color: var(--limestone); background: rgba(255, 255, 255, .025); }
.city-tab.is-active { color: var(--limestone); background: rgba(245, 197, 24, .045); }
.city-tab.is-active::after { transform: scaleX(1); }
.tab-index { color: var(--taxi); font: 700 10px/1 var(--body); letter-spacing: .1em; }

.header-tools { display: flex; }
.icon-button {
  min-width: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  color: var(--limestone);
  font-size: 18px;
  transition: background .2s ease;
}
.icon-button:hover { background: rgba(255, 255, 255, .05); }
.tool-label { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.motion-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 4px rgba(109, 169, 156, .12); }
.motion-toggle[aria-pressed="false"] .motion-dot { background: var(--steel-dark); box-shadow: none; }

.guide-row {
  height: 49px;
  display: grid;
  grid-template-columns: minmax(210px, .55fr) 1fr auto;
  align-items: center;
}
.guide-row[hidden] { display: none; }
.guide-coordinate {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 var(--page-pad);
  border-right: 1px solid var(--line);
  color: var(--steel);
  font: 650 9px/1 var(--body);
  letter-spacing: .16em;
}
.guide-nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 36px);
  padding: 0 clamp(18px, 2.5vw, 38px);
  overflow-x: auto;
  scrollbar-width: none;
}
.guide-nav::-webkit-scrollbar { display: none; }
.guide-nav a {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  height: 100%;
  align-items: center;
  color: var(--steel);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.guide-nav a:hover, .guide-nav a.is-active { color: var(--limestone); }
.guide-nav a.is-active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--taxi);
  content: "";
}
.local-time {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 var(--page-pad);
  border-left: 1px solid var(--line);
  color: var(--steel);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  white-space: nowrap;
}
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 8px var(--copper); }

#main-content { position: relative; z-index: 2; min-height: calc(100vh - var(--header-height)); }
.route-loading { min-height: calc(100vh - 118px); display: grid; place-content: center; gap: 14px; color: var(--steel); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.loading-line { width: 180px; height: 1px; overflow: hidden; background: var(--line-strong); }
.loading-line::after { display: block; width: 40%; height: 100%; background: var(--taxi); content: ""; animation: loading 1.2s ease-in-out infinite; }
@keyframes loading { from { transform: translateX(-120%); } to { transform: translateX(350%); } }

.page { min-height: calc(100vh - var(--header-height)); animation: page-in .42s var(--ease-city) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before { width: 28px; height: 1px; background: currentColor; content: ""; }

.display-title {
  max-width: 12ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(64px, 10vw, 148px);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .82;
  text-transform: uppercase;
}
.display-title em { color: transparent; font-style: normal; -webkit-text-stroke: 1px rgba(238, 234, 225, .72); }

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr);
  overflow: hidden;
}
.hero-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(46px, 7vw, 100px) var(--page-pad) 42px;
  border-right: 1px solid var(--line);
}
.hero-copy { max-width: 630px; margin: 38px 0 0; color: var(--paper); font-size: clamp(16px, 1.45vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  background: rgba(13, 15, 17, .3);
  color: var(--limestone);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: transform .2s var(--ease-city), background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); border-color: var(--limestone); background: rgba(238, 234, 225, .06); }
.button-primary { border-color: var(--taxi); background: var(--taxi); color: var(--ink); }
.button-primary:hover { background: #ffd735; border-color: #ffd735; }
.button .arrow { font-size: 16px; }

.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 58px; border-top: 1px solid var(--line); }
.hero-stat { padding: 18px 16px 0 0; }
.hero-stat + .hero-stat { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-stat strong { display: block; font: 800 clamp(24px, 3vw, 42px)/1 var(--display); letter-spacing: -.03em; }
.hero-stat span { display: block; margin-top: 7px; color: var(--steel); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.hero-rail { position: relative; display: grid; grid-template-rows: 1fr auto; background: rgba(13, 15, 17, .18); }
.hero-image { position: relative; min-height: 430px; overflow: hidden; background: #1d2227; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.07); transform: scale(1.02); transition: transform 1.2s var(--ease-city); }
.hero:hover .hero-image img { transform: scale(1.055); }
.hero-image::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(13, 15, 17, .88)); content: ""; }
.image-index { position: absolute; z-index: 2; top: 22px; left: 22px; padding: 6px 8px; background: var(--limestone); color: var(--ink); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.image-caption { position: absolute; z-index: 2; right: 22px; bottom: 22px; left: 22px; font-size: 11px; line-height: 1.45; }
.image-caption span { display: block; margin-top: 5px; color: var(--steel); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.hero-ticker { padding: 22px; border-top: 1px solid var(--line); }
.ticker-label { color: var(--steel); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.ticker-place { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 10px; }
.ticker-place strong { font: 800 26px/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.ticker-place button { width: 42px; height: 42px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; }

.content-section { position: relative; padding: clamp(64px, 9vw, 128px) var(--page-pad); border-top: 1px solid var(--line); background: rgba(13, 15, 17, .78); }
.section-head { display: grid; grid-template-columns: 1fr minmax(280px, 4fr); gap: 36px; margin-bottom: 46px; }
.section-number { color: var(--steel); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.section-head h2 { max-width: 12ch; margin: 0; font: 900 clamp(42px, 6vw, 86px)/.9 var(--display); letter-spacing: -.055em; text-transform: uppercase; }
.section-head p { max-width: 560px; margin: 20px 0 0; color: var(--steel); }

.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.feature-block { position: relative; min-height: 270px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; overflow: hidden; }
.feature-block + .feature-block { border-left: 1px solid var(--line); }
.feature-block::before { position: absolute; inset: auto -40% -60% 30%; height: 230px; border: 1px solid color-mix(in srgb, var(--feature-accent) 45%, transparent); border-radius: 50%; content: ""; transition: transform .7s var(--ease-city); }
.feature-block:hover::before { transform: scale(1.2) translate(-10%, -10%); }
.feature-block .feature-icon { color: var(--feature-accent); font: 800 12px/1 var(--body); letter-spacing: .14em; }
.feature-block h3 { position: relative; margin: 46px 0 0; font: 850 clamp(28px, 3vw, 44px)/.95 var(--display); text-transform: uppercase; }
.feature-block p { position: relative; max-width: 34ch; margin: 12px 0 0; color: var(--steel); font-size: 13px; }
.feature-block a { position: relative; width: fit-content; margin-top: 28px; color: var(--feature-accent); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }

.page-header { position: relative; padding: clamp(56px, 8vw, 110px) var(--page-pad) 52px; border-bottom: 1px solid var(--line); background: rgba(13, 15, 17, .76); }
.page-header-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr); gap: 50px; align-items: end; }
.page-kicker { margin-bottom: 18px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.page-title { max-width: 12ch; margin: 0; font: 900 clamp(58px, 8.5vw, 120px)/.82 var(--display); letter-spacing: -.06em; text-transform: uppercase; }
.page-intro { max-width: 460px; margin: 0; color: var(--paper); font-size: clamp(16px, 1.4vw, 20px); }
.page-caption { display: block; margin-top: 22px; color: var(--steel); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.explore-controls { position: sticky; z-index: 20; top: var(--header-height); display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 20px; align-items: center; padding: 16px var(--page-pad); background: rgba(13, 15, 17, .94); border-bottom: 1px solid var(--line-strong); backdrop-filter: blur(18px); }
.search-field { position: relative; display: flex; align-items: center; }
.search-field > span { position: absolute; left: 16px; color: var(--steel); }
.search-field input { width: 100%; min-height: 46px; padding: 0 16px 0 44px; border: 1px solid var(--line); border-radius: 0; outline: none; background: var(--asphalt-2); color: var(--limestone); }
.search-field input:focus { border-color: var(--taxi); }
.filter-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filter-chip { min-height: 38px; flex: 0 0 auto; padding: 0 14px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--steel); font-size: 9px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.filter-chip:hover, .filter-chip.is-active { border-color: var(--taxi); background: var(--taxi); color: var(--ink); }

.catalog-wrap { padding: 0 var(--page-pad) 100px; background: rgba(13, 15, 17, .9); }
.catalog-meta { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; color: var(--steel); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.places-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.place-card { position: relative; min-height: 460px; display: flex; flex-direction: column; overflow: hidden; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--asphalt-2); cursor: pointer; transition: transform .25s var(--ease-city), background .25s ease; }
.place-card:hover { z-index: 2; transform: translateY(-5px); background: #1a1e21; }
.card-media { position: relative; height: 255px; overflow: hidden; background: #20252a; }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.18) saturate(.78); transition: transform .65s var(--ease-city), filter .35s ease; }
.place-card:hover .card-media img { transform: scale(1.045); filter: grayscale(0) saturate(.95); }
.card-number { position: absolute; z-index: 2; top: 14px; left: 14px; min-width: 34px; padding: 6px; background: rgba(13, 15, 17, .86); color: var(--limestone); font-size: 9px; font-weight: 900; text-align: center; }
.card-category { position: absolute; z-index: 2; top: 14px; right: 14px; padding: 6px 8px; background: var(--accent); color: var(--ink); font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.card-body { min-height: 205px; display: flex; flex: 1; flex-direction: column; padding: 22px; }
.card-location { color: var(--steel); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.card-body h2, .card-body h3 { margin: 10px 0 0; font: 850 clamp(25px, 2.3vw, 36px)/.96 var(--display); letter-spacing: -.025em; text-transform: uppercase; }
.card-body p { display: -webkit-box; margin: 12px 0 0; overflow: hidden; color: var(--steel); font-size: 13px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 18px; color: var(--paper); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.card-arrow { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); transition: background .2s ease, color .2s ease; }
.place-card:hover .card-arrow { background: var(--limestone); color: var(--ink); }
.empty-state { grid-column: 1 / -1; padding: 70px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--steel); text-align: center; }

.map-page { height: calc(100vh - var(--header-height)); min-height: 620px; display: grid; grid-template-columns: minmax(280px, 340px) 1fr; overflow: hidden; background: var(--asphalt); }
.map-sidebar { position: relative; z-index: 10; display: flex; flex-direction: column; overflow: hidden; border-right: 1px solid var(--line-strong); background: rgba(13, 15, 17, .96); }
.map-sidebar-head { padding: 24px; border-bottom: 1px solid var(--line); }
.map-sidebar-head h1 { margin: 8px 0 0; font: 900 40px/.9 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.map-sidebar-head p { margin: 12px 0 0; color: var(--steel); font-size: 12px; }
.map-list { flex: 1; overflow-y: auto; }
.map-list-item { width: 100%; display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 15px 20px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--paper); cursor: pointer; text-align: left; }
.map-list-item:hover, .map-list-item.is-hovered, .map-list-item.is-active { background: rgba(245, 197, 24, .08); }
.map-list-item.is-active { box-shadow: inset 3px 0 var(--taxi); }
.map-list-item .map-n { color: var(--steel); font-size: 9px; font-weight: 800; }
.map-list-item strong { font: 750 15px/1.1 var(--display); text-transform: uppercase; }
.map-list-item small { color: var(--steel); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.map-list-item .map-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--item-accent, var(--taxi)); }
.map-stage { position: relative; min-width: 0; }
#nyc-map, #park-map { position: absolute; inset: 0; }
.map-overlay-title { position: absolute; z-index: 5; top: 26px; left: 28px; pointer-events: none; color: rgba(238, 234, 225, .86); font: 900 clamp(42px, 6vw, 90px)/.8 var(--display); letter-spacing: -.065em; text-transform: uppercase; text-shadow: 0 2px 25px rgba(0, 0, 0, .55); }
.map-help { position: absolute; z-index: 8; right: 12px; bottom: 34px; max-width: 230px; padding: 10px 12px; background: rgba(13, 15, 17, .86); border: 1px solid var(--line); color: var(--steel); font-size: 9px; letter-spacing: .06em; }
.map-marker { width: 14px; height: 14px; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; background: var(--marker-accent, var(--taxi)); box-shadow: 0 0 0 3px rgba(13, 15, 17, .58), 0 3px 8px rgba(0, 0, 0, .55); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.map-marker::after { position: absolute; inset: 4px; border-radius: 50%; background: var(--ink); content: ""; }
.map-marker:hover, .map-marker.is-hovered, .map-marker.is-active { transform: scale(1.42); box-shadow: 0 0 0 3px rgba(13, 15, 17, .72), 0 0 0 6px color-mix(in srgb, var(--marker-accent, var(--taxi)) 42%, transparent), 0 4px 12px rgba(0,0,0,.65); }
.attraction-map-popup .maplibregl-popup-content { display: grid; gap: 3px; min-width: 150px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 0; background: rgba(13,15,17,.94); color: var(--paper); box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.attraction-map-popup strong { font: 800 13px/1.05 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.attraction-map-popup span { color: var(--steel); font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.attraction-map-popup .maplibregl-popup-tip { border-top-color: rgba(13,15,17,.94); }
.maplibregl-ctrl-group { border-radius: 0 !important; background: rgba(13, 15, 17, .9) !important; }
.maplibregl-ctrl-group button { filter: invert(1); }
.maplibregl-ctrl-attrib { background: rgba(13, 15, 17, .72) !important; color: #b9b9b9 !important; }
.maplibregl-ctrl-attrib a { color: #fff !important; }

.neighborhoods-layout { padding: 0 var(--page-pad) 100px; background: rgba(13,15,17,.9); }
.borough-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); }
.borough-tab { min-height: 70px; flex: 1 0 150px; padding: 0 18px; border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--steel); font: 850 15px/1 var(--display); text-transform: uppercase; }
.borough-tab:hover, .borough-tab.is-active { background: var(--limestone); color: var(--ink); }
.borough-panel { display: grid; grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr); min-height: 520px; border-bottom: 1px solid var(--line); }
.borough-copy { padding: clamp(34px, 5vw, 72px) clamp(20px, 4vw, 56px) clamp(34px, 5vw, 72px) 0; border-right: 1px solid var(--line); }
.borough-copy h2 { margin: 0; font: 900 clamp(52px, 7vw, 100px)/.82 var(--display); letter-spacing: -.055em; text-transform: uppercase; }
.borough-copy p { max-width: 44ch; margin: 28px 0 0; color: var(--paper); }
.borough-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 38px; background: var(--line); }
.borough-fact { padding: 16px; background: var(--asphalt); }
.borough-fact strong { display: block; color: var(--accent); font: 800 24px/1 var(--display); }
.borough-fact span { color: var(--steel); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.borough-places { display: grid; grid-template-columns: 1fr 1fr; align-content: start; padding: clamp(30px, 4vw, 58px); }
.borough-place { min-height: 120px; padding: 20px; border: 1px solid var(--line); margin: 0 -1px -1px 0; background: transparent; cursor: pointer; text-align: left; }
.borough-place:hover { background: rgba(238, 234, 225, .06); }
.borough-place strong { display: block; font: 800 20px/1.05 var(--display); text-transform: uppercase; }
.borough-place span { display: block; margin-top: 8px; color: var(--steel); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }

.routes-wrap { padding: 0 var(--page-pad) 100px; background: rgba(13,15,17,.9); }
.route-switcher { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.route-choice { min-height: 110px; padding: 22px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--steel); cursor: pointer; text-align: left; }
.route-choice:hover, .route-choice.is-active { background: var(--limestone); color: var(--ink); }
.route-choice small { display: block; font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.route-choice strong { display: block; margin-top: 9px; font: 850 clamp(22px, 2.5vw, 34px)/.95 var(--display); text-transform: uppercase; }
.route-board { display: grid; grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr); border-bottom: 1px solid var(--line); }
.route-summary { padding: clamp(34px, 5vw, 70px) clamp(24px, 4vw, 56px) clamp(34px, 5vw, 70px) 0; border-right: 1px solid var(--line); }
.route-summary h2 { margin: 0; font: 900 clamp(46px, 6vw, 82px)/.85 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
.route-summary p { color: var(--steel); }
.route-metrics { display: flex; gap: 22px; margin-top: 30px; }
.route-metric strong { display: block; font: 800 28px/1 var(--display); }
.route-metric span { color: var(--steel); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.timeline { padding: clamp(34px, 5vw, 70px); }
.timeline-stop { position: relative; display: grid; grid-template-columns: 72px 1fr auto; gap: 20px; padding: 0 0 34px; }
.timeline-stop::before { position: absolute; top: 14px; bottom: -2px; left: 80px; width: 1px; background: var(--line-strong); content: ""; }
.timeline-stop:last-child::before { display: none; }
.stop-time { color: var(--taxi); font: 800 12px/1 var(--body); letter-spacing: .08em; }
.stop-dot { position: absolute; top: 8px; left: 75px; z-index: 2; width: 11px; height: 11px; border: 2px solid var(--asphalt); border-radius: 50%; background: var(--taxi); box-shadow: 0 0 0 1px var(--taxi); }
.stop-copy { padding-left: 16px; }
.stop-copy strong { display: block; font: 800 24px/1 var(--display); text-transform: uppercase; }
.stop-copy p { max-width: 48ch; margin: 8px 0 0; color: var(--steel); font-size: 12px; }
.timeline-stop button { width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; cursor: pointer; }

.sources-wrap { padding: 0 var(--page-pad) 100px; background: rgba(13,15,17,.92); }
.source-summary { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.source-summary > div { padding: 24px; border-right: 1px solid var(--line); }
.source-summary strong { display: block; font: 850 32px/1 var(--display); }
.source-summary span { color: var(--steel); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.source-list { border-top: 1px solid var(--line); }
.source-row { display: grid; grid-template-columns: 40px minmax(180px, 1fr) minmax(220px, 2fr) auto; gap: 18px; align-items: center; min-height: 78px; padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.source-row:hover { background: rgba(238,234,225,.035); }
.source-row > span:first-child { color: var(--steel); font-size: 9px; }
.source-row strong { font: 750 16px/1.1 var(--display); text-transform: uppercase; }
.source-row p { margin: 0; color: var(--steel); font-size: 12px; }
.source-row a { color: var(--taxi); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.place-dialog, .command-dialog {
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--limestone);
}
.place-dialog { inset: 0 0 0 auto; width: min(680px, 100vw); height: 100vh; overflow: visible; }
.place-dialog::backdrop, .command-dialog::backdrop { background: rgba(5, 7, 9, .72); backdrop-filter: blur(8px); }
.dialog-shell { position: relative; width: 100%; height: 100%; overflow-y: auto; background: var(--asphalt); border-left: 1px solid var(--line-strong); box-shadow: -24px 0 70px rgba(0,0,0,.42); animation: dialog-in .34s var(--ease-city); }
@keyframes dialog-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.dialog-close { position: fixed; z-index: 20; top: 18px; right: 18px; width: 44px; height: 44px; border: 1px solid rgba(238,234,225,.45); background: rgba(13,15,17,.82); cursor: pointer; font-size: 24px; }
.dialog-close:hover { background: var(--limestone); color: var(--ink); }
.detail-hero { position: relative; height: 390px; overflow: hidden; background: #20252a; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,15,17,.08), rgba(13,15,17,.96)); content: ""; }
.detail-hero-copy { position: absolute; z-index: 2; right: 30px; bottom: 26px; left: 30px; }
.detail-hero-copy .eyebrow { margin-bottom: 12px; }
.detail-hero h2 { max-width: 12ch; margin: 0; font: 900 clamp(46px, 8vw, 76px)/.84 var(--display); letter-spacing: -.055em; text-transform: uppercase; }
.detail-body { padding: 34px clamp(22px, 5vw, 44px) 70px; }
.detail-lede { margin: 0; color: var(--paper); font-size: 18px; line-height: 1.6; }
.detail-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 30px 0; border: 1px solid var(--line); }
.detail-metric { min-height: 80px; padding: 14px; }
.detail-metric + .detail-metric { border-left: 1px solid var(--line); }
.detail-metric span { color: var(--steel); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.detail-metric strong { display: block; margin-top: 8px; font: 750 15px/1.2 var(--display); text-transform: uppercase; }
.detail-section { margin-top: 44px; }
.detail-section h3 { margin: 0 0 18px; color: var(--accent); font: 850 13px/1 var(--body); letter-spacing: .13em; text-transform: uppercase; }
.facts-list { list-style: none; padding: 0; margin: 0; counter-reset: facts; }
.facts-list li { position: relative; min-height: 72px; padding: 15px 10px 15px 52px; border-top: 1px solid var(--line); color: var(--paper); counter-increment: facts; }
.facts-list li::before { position: absolute; top: 17px; left: 4px; color: var(--accent); font: 850 18px/1 var(--display); content: "0" counter(facts); }
.media-gallery { display: grid; grid-template-columns: 1.25fr .75fr; grid-auto-rows: 180px; gap: 6px; }
.gallery-item { position: relative; overflow: hidden; background: #20252a; }
.gallery-item:first-child { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease-city); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 24px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; font-size: 8px; }
.video-facade { position: relative; aspect-ratio: 16/9; display: grid; place-items: center; overflow: hidden; border: 0; background: #16191c; cursor: pointer; }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .58; }
.video-facade::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.55)); content: ""; }
.video-play { position: relative; z-index: 2; width: 64px; height: 64px; display: grid; place-items: center; background: var(--taxi); color: var(--ink); font-size: 23px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.video-facade span:last-child { position: absolute; z-index: 2; right: 16px; bottom: 13px; left: 16px; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.video-frame { width: 100%; aspect-ratio: 16/9; border: 0; }
.detail-sources a { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--paper); font-size: 12px; }
.detail-sources a span:last-child { color: var(--taxi); }
.park-map-shell { position: relative; height: 420px; border: 1px solid var(--line); }

.command-dialog { inset: 0; width: min(760px, calc(100vw - 28px)); margin: 10vh auto auto; }
.command-shell { background: #131619; border: 1px solid var(--line-strong); box-shadow: 0 24px 80px rgba(0,0,0,.62); }
.command-input-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.command-input-row input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--limestone); font-size: 18px; }
.command-input-row kbd { padding: 4px 7px; border: 1px solid var(--line); color: var(--steel); font: 800 8px/1 var(--body); }
.command-results { max-height: 62vh; overflow-y: auto; padding: 8px; }
.command-result { width: 100%; display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 10px; border: 0; background: transparent; color: var(--limestone); cursor: pointer; text-align: left; }
.command-result:hover, .command-result.is-selected { background: rgba(245,197,24,.1); }
.command-result img { width: 48px; height: 48px; object-fit: cover; }
.command-result strong { display: block; font: 750 16px/1 var(--display); text-transform: uppercase; }
.command-result small { color: var(--steel); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.command-result > span:last-child { color: var(--taxi); }

.toast { position: fixed; z-index: 200; right: 20px; bottom: 20px; max-width: 320px; padding: 14px 18px; background: var(--limestone); color: var(--ink); font-size: 12px; font-weight: 700; box-shadow: 0 12px 40px rgba(0,0,0,.4); }

.index-page { min-height: calc(100vh - 69px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr); }
.index-intro { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(60px, 10vw, 140px) var(--page-pad) 42px; border-right: 1px solid var(--line); }
.index-title { margin: 0; font: 900 clamp(76px, 13vw, 190px)/.74 var(--display); letter-spacing: -.075em; text-transform: uppercase; }
.index-title span { display: block; color: transparent; -webkit-text-stroke: 1px rgba(238,234,225,.68); }
.index-bottom { max-width: 620px; margin-top: 58px; }
.index-bottom p { max-width: 50ch; color: var(--steel); }
.index-city { position: relative; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 34px; background: #20252a; }
.index-city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.6) contrast(1.08); transition: transform 1s var(--ease-city); }
.index-city:hover img { transform: scale(1.04); }
.index-city::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,15,17,.08), rgba(13,15,17,.94)); content: ""; }
.index-city-copy { position: relative; z-index: 2; }
.index-city h2 { margin: 0; font: 900 clamp(52px, 7vw, 100px)/.8 var(--display); letter-spacing: -.055em; text-transform: uppercase; }
.index-city-meta { display: flex; gap: 28px; margin-top: 22px; color: var(--steel); font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }

.not-found { min-height: calc(100vh - var(--header-height)); display: grid; place-content: center; padding: 60px var(--page-pad); text-align: center; }
.not-found strong { color: var(--taxi); font: 900 clamp(110px, 20vw, 260px)/.7 var(--display); letter-spacing: -.08em; }
.not-found h1 { margin: 38px 0 12px; font: 900 clamp(40px, 6vw, 72px)/.9 var(--display); text-transform: uppercase; }
.not-found p { color: var(--steel); }

@media (max-width: 1040px) {
  :root { --header-height: 118px; }
  .brand-row { grid-template-columns: 176px 1fr auto; }
  .wordmark { padding: 0 18px; }
  .wordmark > span:last-child { display: none; }
  .tool-label { display: none; }
  .guide-coordinate { display: none; }
  .guide-row { grid-template-columns: 1fr auto; }
  .places-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 7fr) minmax(260px, 4fr); }
  .feature-strip { grid-template-columns: 1fr; }
  .feature-block { min-height: 220px; }
  .feature-block + .feature-block { border-top: 1px solid var(--line); border-left: 0; }
  .section-head { grid-template-columns: 80px 1fr; }
}

@media (max-width: 760px) {
  :root { --header-height: 117px; }
  .brand-row { min-height: 66px; grid-template-columns: 62px minmax(0, 1fr) auto; }
  .wordmark { justify-content: center; padding: 0; }
  .wordmark-mark { width: 32px; height: 32px; }
  .city-tab { min-width: 0; width: 100%; padding: 0 14px; gap: 9px; font-size: 11px; }
  .header-tools .command-trigger { display: none; }
  .icon-button { min-width: 54px; padding: 0 12px; }
  .guide-row { height: 50px; grid-template-columns: 1fr; }
  .guide-nav { padding: 0 16px; gap: 22px; }
  .local-time { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-main { min-height: calc(100svh - var(--header-height)); border-right: 0; }
  .hero-rail { border-top: 1px solid var(--line); }
  .hero-image { min-height: 70svh; }
  .hero-meta { grid-template-columns: 1fr 1fr 1fr; }
  .hero-stat { padding-right: 8px; }
  .hero-stat + .hero-stat { padding-left: 10px; }
  .hero-stat strong { font-size: 25px; }
  .section-head { grid-template-columns: 1fr; gap: 14px; }
  .display-title { font-size: clamp(58px, 19vw, 92px); }
  .page-header-grid { grid-template-columns: 1fr; gap: 34px; }
  .page-title { font-size: clamp(54px, 17vw, 84px); }
  .explore-controls { top: var(--header-height); grid-template-columns: 1fr; gap: 10px; }
  .places-grid { grid-template-columns: 1fr; }
  .place-card { min-height: 440px; }
  .map-page { height: calc(100svh - var(--header-height)); min-height: 560px; grid-template-columns: 1fr; }
  .map-sidebar { position: absolute; z-index: 20; right: 10px; bottom: 10px; left: 10px; max-height: 38%; border: 1px solid var(--line-strong); }
  .map-sidebar-head { padding: 13px 16px; }
  .map-sidebar-head h1 { font-size: 26px; }
  .map-sidebar-head p { display: none; }
  .map-list-item { padding: 10px 14px; }
  .map-overlay-title { top: 22px; left: 18px; font-size: 52px; }
  .map-help { display: none; }
  .borough-panel, .route-board { grid-template-columns: 1fr; }
  .borough-copy, .route-summary { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .borough-places { padding: 24px 0; }
  .borough-places { grid-template-columns: 1fr; }
  .route-switcher { grid-template-columns: 1fr; }
  .route-choice { min-height: 76px; border-right: 0; border-bottom: 1px solid var(--line); }
  .timeline { padding: 30px 0; }
  .timeline-stop { grid-template-columns: 60px 1fr auto; gap: 12px; }
  .timeline-stop::before { left: 66px; }
  .stop-dot { left: 61px; }
  .source-summary { grid-template-columns: 1fr; }
  .source-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .source-row { grid-template-columns: 30px 1fr auto; gap: 10px; }
  .source-row p { grid-column: 2 / -1; }
  .place-dialog { width: 100vw; }
  .detail-hero { height: 350px; }
  .detail-metrics { grid-template-columns: 1fr; }
  .detail-metric + .detail-metric { border-top: 1px solid var(--line); border-left: 0; }
  .media-gallery { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .gallery-item:first-child { grid-row: auto; }
  .index-page { grid-template-columns: 1fr; }
  .index-intro { min-height: calc(100svh - 67px); border-right: 0; }
  .index-city { min-height: 76svh; border-top: 1px solid var(--line); }
}

@media (max-width: 440px) {
  .tab-index { display: none; }
  .city-tab { justify-content: center; text-align: center; }
  .hero-actions .button { width: 100%; }
  .page-header { padding-top: 44px; }
  .catalog-wrap { padding-right: 0; padding-left: 0; }
  .catalog-meta { padding-right: 18px; padding-left: 18px; }
  .content-section { padding-right: 18px; padding-left: 18px; }
  .source-row a { font-size: 0; }
  .source-row a::after { font-size: 16px; content: "↗"; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  #ambient-stage { opacity: .38; }
}
