/* Premium Apple / Tesla theme — previous teal theme: style.legacy.css */
:root {
  --bg: #050505;
  --bg-elevated: #0c0c0c;
  --panel: #0e0e0e;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --muted: #8b8b92;
  --soft: #b7b7be;
  --brand: #f5f5f7;
  --brand-2: #a1a1a6;
  --accent: #e31937;
  --warn: #ff9f0a;
  --danger: #ff453a;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Syne", "Outfit", "Avenir Next", sans-serif;
  --font-body: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: rgba(255,255,255,0.18); color: #fff; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* Atmospheric depth — soft light, not neon */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 18% -8%, rgba(255,255,255,0.085), transparent 58%),
    radial-gradient(700px 480px at 92% 8%, rgba(227,25,55,0.07), transparent 55%),
    radial-gradient(1000px 700px at 50% 100%, rgba(255,255,255,0.03), transparent 50%),
    linear-gradient(180deg, #000 0%, #050505 40%, #080808 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.22);
  transition: color .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease);
}
a:hover { border-bottom-color: rgba(255,255,255,0.65); }
img { max-width: 100%; }

.container { width: min(1120px, calc(100% - 2.75rem)); margin: 0 auto; }
.container-wide { width: min(1280px, calc(100% - 2.75rem)); margin: 0 auto; }

/* ——— Header ——— */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(22px);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
  background: rgba(5, 5, 5, 0.62);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; padding: 1rem 0;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.12rem;
  color: var(--text); letter-spacing: -0.04em;
  border-bottom: 0;
}
.logo:hover { opacity: 0.72; border-bottom: 0; }
.logo span {
  font-weight: 500; color: var(--muted);
  margin-left: 0.2rem; letter-spacing: -0.02em;
}
.nav { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.nav a {
  color: var(--muted); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.02em; text-transform: uppercase;
  border-bottom: 0; position: relative;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: #fff;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--text); border-bottom: 0; }
.nav a:hover::after { transform: scaleX(1); }

/* ——— Hero ——— */
.hero {
  padding: 5.5rem 0 2.75rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: end;
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin: 0 0 1rem;
  background: linear-gradient(180deg, #fff 20%, #bdbdc4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.9s var(--ease) both;
}
.hero h1,
.hero .hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--soft);
  margin: 0 0 1.15rem;
  max-width: 22ch;
  animation: rise 0.9s var(--ease) 0.08s both;
}
.hero p.lead {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 400;
  max-width: 30rem;
  margin: 0 0 1.85rem;
  line-height: 1.5;
  animation: rise 0.9s var(--ease) 0.14s both;
}
.hero-actions {
  display: flex; gap: 0.8rem; flex-wrap: wrap;
  animation: rise 0.9s var(--ease) 0.22s both;
}
.hero .badge {
  margin-bottom: 1rem;
  animation: rise 0.9s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ——— Buttons ——— */
a.btn,
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.78rem 1.35rem;
  border-radius: 980px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  letter-spacing: -0.015em;
  transition: transform .35s var(--ease), background .25s ease, box-shadow .35s var(--ease), opacity .25s ease, border-color .25s ease, color .25s ease;
  text-decoration: none !important;
  border-bottom: 1px solid transparent !important;
  white-space: nowrap;
}
a.btn:hover,
.btn:hover {
  transform: translateY(-1px);
  text-decoration: none !important;
  border-bottom-style: solid !important;
}

a.btn-primary,
.btn-primary,
.prose a.btn-primary,
.cta-pair a.btn-primary {
  background: linear-gradient(180deg, #ffffff 0%, #e8e8ed 100%) !important;
  color: #0a0a0a !important;
  border: 1px solid rgba(255,255,255,0.55) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.65) inset,
    0 8px 24px rgba(0,0,0,0.28);
}
a.btn-primary:hover,
.btn-primary:hover,
.prose a.btn-primary:hover,
.cta-pair a.btn-primary:hover {
  color: #000 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f2f2f5 100%) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.75) inset,
    0 12px 32px rgba(0,0,0,0.34);
}

a.btn-ghost,
.btn-ghost,
.prose a.btn-ghost,
.cta-pair a.btn-ghost {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.42) !important;
  color: #f5f5f7 !important;
  box-shadow: none;
}
a.btn-ghost:hover,
.btn-ghost:hover,
.prose a.btn-ghost:hover,
.cta-pair a.btn-ghost:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.55) !important;
  color: #fff !important;
}

.cta-pair {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.35rem 0 1.75rem;
}
.cta-pair .btn {
  position: relative;
  z-index: 1;
}

/* ——— Stats ——— */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin: 1.5rem 0 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}
.stat {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 1.55rem 1.2rem;
}
.stat:last-child { border-right: 0; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.45rem;
}
.stat span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 500;
}

/* ——— Panels / Map ——— */
.panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 40%),
    var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4) inset,
    0 30px 80px rgba(0,0,0,0.45);
  overflow: hidden;
  position: relative;
  animation: rise 1s var(--ease) 0.18s both;
}
.panel::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.map-shell { min-height: 440px; position: relative; }
.map-shell .leaflet-container { height: 440px; width: 100%; background: #f2f2f2; }
.map-tall .leaflet-container { height: 72vh; min-height: 540px; }

/* ——— Sections ——— */
.section { padding: 4rem 0; }
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  margin: 0 0 0.5rem;
}
.section .sub {
  color: var(--muted);
  margin: 0 0 1.85rem;
  font-size: 1.05rem;
  max-width: 36rem;
}

.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.grid-2 {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card {
  display: block;
  background: var(--bg-elevated);
  border: 0;
  border-radius: 0;
  padding: 1.5rem 1.35rem;
  color: inherit;
  border-bottom: 0;
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.card:hover {
  background: #141414;
  color: inherit;
  border-bottom: 0;
}
.card h3 {
  margin: 0 0 0.45rem; font-size: 1.08rem;
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: -0.025em;
}
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }

.badge {
  display: inline-block;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.32rem 0.65rem; border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--soft);
  border: 1px solid rgba(255,255,255,0.1);
}
.badge-dc {
  background: rgba(227,25,55,0.1);
  color: #ff6b7a;
  border-color: rgba(227,25,55,0.28);
}
.badge-free {
  background: rgba(255,159,10,0.08);
  color: var(--warn);
  border-color: rgba(255,159,10,0.22);
}

.breadcrumbs {
  padding: 1.4rem 0 0;
  color: var(--muted); font-size: 0.84rem;
}
.breadcrumbs a { color: var(--muted); border-bottom: 0; }
.breadcrumbs a:hover { color: var(--text); }

.facts {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
}
.facts th, .facts td {
  text-align: left; padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.facts th {
  width: 38%; color: var(--muted); font-weight: 500; font-size: 0.9rem;
}
.facts td { font-weight: 500; }

/* Column-style variant: header row on top instead of a label column. */
.facts--cols th { width: auto; color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.facts--cols td { font-size: 0.95rem; }
.facts--cols tr td:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }

.prose .note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: -0.6rem;
}

.city-guide {
  margin: 1.25rem 0 1.5rem;
  padding: 1.1rem 1.25rem;
}

.city-guide h2 {
  margin-top: 0;
}

.station-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.75rem;
  padding: 1.75rem 0 3.25rem;
}

.prose h1 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.2vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  margin: 0.4rem 0 0.85rem;
  line-height: 1.05;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 2.25rem 0 0.75rem;
}
.prose p { color: var(--soft); }
.prose a { color: var(--text); }
.prose a.btn,
.prose a.btn:hover { border-bottom: none !important; }
.prose ul { color: var(--soft); padding-left: 1.15rem; }
.prose li { margin: 0.42rem 0; }

/* Blog */
.blog-index .sub { color: var(--muted); max-width: 38rem; }
.blog-list { display: grid; gap: 0; margin-top: 2.25rem; border-top: 1px solid var(--line); }
.blog-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 2rem 0;
  transition: padding .35s var(--ease);
}
.blog-card:hover { padding-left: 0.35rem; }
.blog-card h2 {
  margin: 0.45rem 0 0.6rem;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  letter-spacing: -0.035em;
  font-family: var(--font-display);
}
.blog-card h2 a { color: var(--text); border-bottom: 0; }
.blog-card h2 a:hover { opacity: 0.72; border-bottom: 0; }
.blog-card-meta {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem;
  color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.blog-tags { color: var(--brand-2); text-transform: none; letter-spacing: -0.01em; }
.blog-read {
  font-weight: 500; display: inline-block; margin-top: 0.65rem;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}
.blog-byline { color: var(--muted); margin: 0 0 1.65rem; font-size: 0.92rem; }
.blog-body { max-width: 42rem; }
.blog-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 2.75rem; }

/* Help — visual guides */
.help-post .blog-body { max-width: 42rem; }
.help-post .help-figure {
  margin: 1.25rem 0 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  max-width: 100%;
}
.help-post .help-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vw, 22rem);
  object-fit: contain;
  object-position: center;
}
.help-post .help-figure--tall img { max-height: min(56vw, 24rem); }
.help-post .help-figure figcaption {
  padding: 0.7rem 0.95rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  border-top: 1px solid var(--line);
}
.help-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 2rem;
}
.help-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}
.help-dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 0.2rem;
}
.help-dot--green { background: #30d158; box-shadow: 0 0 12px rgba(48,209,88,0.45); }
.help-dot--amber { background: var(--warn); box-shadow: 0 0 12px rgba(255,159,10,0.4); }
.help-dot--red { background: var(--danger); box-shadow: 0 0 12px rgba(255,69,58,0.4); }
.help-dot--blue { background: #64d2ff; box-shadow: 0 0 12px rgba(100,210,255,0.35); }
.help-legend-item strong {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}
.help-legend-item span { color: var(--muted); font-size: 0.84rem; line-height: 1.45; }
.help-steps {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
  counter-reset: helpstep;
}
.help-step {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.85rem 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}
.help-step::before {
  counter-increment: helpstep;
  content: counter(helpstep);
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 0.95rem;
}
.help-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.help-step p { margin: 0; font-size: 0.92rem; }
.help-callout {
  margin: 1.75rem 0;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(227,25,55,0.06);
}
.help-callout--tip { border-left-color: #30d158; background: rgba(48,209,88,0.06); }
.help-callout strong { color: var(--text); }
.help-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
@media (max-width: 640px) { .help-compare { grid-template-columns: 1fr; } }
.help-compare-col {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}
.help-compare-col h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
}
.help-compare-col ul { margin: 0; padding-left: 1rem; }
.crumbs { color: var(--muted); font-size: 0.8rem; margin-bottom: 1.1rem; }
.crumbs a { color: var(--muted); border-bottom: 0; }
.crumbs a:hover { color: var(--text); }
.crumbs span { margin: 0 0.35rem; color: rgba(255,255,255,0.22); }

.faq details {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1.2rem 0;
  margin-bottom: 0;
  transition: background .25s ease;
}
.faq summary {
  cursor: pointer; font-weight: 600; letter-spacing: -0.025em;
  list-style: none; font-family: var(--font-display); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin: 0.75rem 0 0.25rem; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}
table.data {
  width: 100%; border-collapse: collapse; font-size: 0.92rem;
}
table.data th, table.data td {
  padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--line); text-align: left;
}
table.data th {
  color: var(--muted); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
}
table.data tr:hover td { background: rgba(255,255,255,0.025); }
table.data a { border-bottom: 0; }
table.data a:hover { opacity: 0.72; }

/* ——— Footer ——— */
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--line);
  padding: 3rem 0 3.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
}
.site-footer a { color: var(--muted); border-bottom: 0; }
.site-footer a:hover { color: var(--text); }
.site-footer strong {
  color: var(--text); font-weight: 600;
  font-family: var(--font-display); letter-spacing: -0.02em;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.25rem;
}
.attribution {
  margin-top: 1.75rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.76rem; color: #6e6e73;
}

/* ——— Map chrome ——— */
.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.88) !important;
  color: #6e6e73 !important;
  font-size: 10px !important;
  max-width: 70%;
}
.leaflet-control-attribution a { color: #424245 !important; border-bottom: 0; }
.leaflet-popup-content-wrapper {
  background: #fff !important;
  color: #1d1d1f !important;
  border-radius: 14px !important;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 18px 50px rgba(0,0,0,0.18) !important;
}
.leaflet-popup-tip { background: #fff; }
.leaflet-popup-content a {
  color: #1d1d1f; font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,0.28);
}
.marker-dc { background: var(--accent); box-shadow: 0 0 0 3px rgba(227,25,55,0.22); }
.marker-l2 { background: #1d1d1f; box-shadow: 0 0 0 3px rgba(0,0,0,0.12); }

.form-row { display: flex; gap: 0.65rem; flex-wrap: wrap; margin: 1.35rem 0; }
.form-row input, .form-row select, .form-row button {
  padding: 0.85rem 1.05rem; border-radius: 12px;
  border: 1px solid var(--line); background: #111; color: var(--text);
  font-family: inherit;
}
.form-row input:focus, .form-row select:focus {
  outline: none; border-color: rgba(255,255,255,0.35);
}
.form-row button {
  background: #f5f5f7; color: #000; font-weight: 600; cursor: pointer; border: none;
}
.form-row button:hover { opacity: 0.92; }

/* Map / Near Me filters */
.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
}
.map-toolbar-compact { margin-bottom: 0.75rem; }
.map-filter-count {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.filter-chip {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: 500 0.8rem var(--font-body);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1;
}
.filter-chip:hover { color: var(--text); border-color: rgba(255,255,255,0.28); }
.filter-chip.is-active {
  background: #f5f5f7;
  color: #0a0a0a;
  border-color: #f5f5f7;
  transform: translateY(-1px);
}
.filter-chip-count {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.55;
  min-width: 1.1em;
}
.filter-chip.is-active .filter-chip-count { opacity: 0.7; color: #333; }
.near-radios .filter-chip input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.near-radios .filter-chip { position: relative; }

.near-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 1.1rem;
  margin: 1.25rem 0 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}
.near-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.near-status { color: var(--muted); font-size: 0.9rem; }
.near-form { display: grid; gap: 0.95rem; }
.near-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.near-label {
  min-width: 4.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.near-row-sort select {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #111;
  color: var(--text);
  font-family: inherit;
}
.near-summary {
  color: var(--muted);
  margin: 0 0 1rem;
}
.near-summary strong { color: var(--text); }

@media (max-width: 900px) {
  .near-label { min-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .hero, .station-layout, .footer-grid, .stats { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .nav { display: none; }
  .map-shell .leaflet-container { height: 340px; }
  .hero { padding-top: 3.25rem; gap: 1.75rem; }
  .hero-brand { font-size: clamp(2.4rem, 11vw, 3.4rem); }
}
