/* --- Map Expand Button & In-Page Expansion --- */
.map-expand-btn {
  /* Sized and styled to match .leaflet-bar a — the container provides shadow + border-radius */
  width: 30px;
  height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: none;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  box-shadow: none;
  color: #2c2c2c;
  cursor: pointer;
  transition: background 0.15s ease;
}

.map-expand-btn:first-child {
  border-radius: 4px 4px 0 0;
}

.map-expand-btn:last-child {
  border-bottom: none;
  border-radius: 0 0 4px 4px;
}

.map-expand-btn:only-child {
  border-bottom: none;
  border-radius: 4px;
}

.map-expand-btn svg {
  width: 18px;
  height: 18px;
}

.map-expand-btn:hover,
.map-expand-btn:focus {
  background: #f4f4f4;
}

.map-expand-btn:focus-visible {
  outline: 2px solid rgba(56, 132, 255, 0.55);
  outline-offset: 1px;
}

.station-map-refresh-control {
  margin-top: 6px;
}

.station-map-refresh-control-hidden {
  display: none;
}

.station-map-refresh-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.24);
  backdrop-filter: blur(10px);
  color: #dbe7f5;
}

.station-map-refresh-spinner {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: #2dd4bf;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.station-map-refresh-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}

#map-card.map-card-expanded {
  animation: map-fade-in 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.module-grid.map-layout-expanded {
  grid-template-columns: 1fr;
}

.module-grid.map-layout-expanded .module-map-col,
.module-grid.map-layout-expanded .module-table-col {
  grid-column: 1 / -1;
}

#map-card.map-card-expanded #leaflet-map {
  height: clamp(420px, 68vh, 820px);
}

#map-card.map-card-expanded .map-header {
  border-bottom-color: rgba(154, 178, 213, 0.14);
}

@keyframes map-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

#map-card.map-card-expanded .map-expand-btn {
  background: #f4f4f4;
  border-color: #b8b8b8;
  color: #1f2937;
}

#map-card.map-card-expanded .map-expand-btn:hover,
#map-card.map-card-expanded .map-expand-btn:focus {
  background: #ebebeb;
}

@media (max-width: 960px) {
  #map-card.map-card-expanded #leaflet-map {
    height: clamp(360px, 62vh, 680px);
  }
}
/* --- Station Finder Legal Note --- */
.station-finder-legal-note {
  margin-top: 0.2rem;
}
.station-finder-legal-note small {
  font-size: 11px;
  color: #64748b;
  line-height: 1.32;
  display: block;
  text-align: center;
}
.station-finder-legal-note a {
  color: #64748b;
  text-decoration: underline;
  transition: color 0.18s;
}
.station-finder-legal-note a:hover {
  color: #0f766e;
}
/* Align hero CTA and freshness note perfectly */
.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.hero-cta {
  margin: 0 !important;
}
.hero-live-note {
  margin: 0 !important;
  min-height: 46px;
}
/* --- Station Finder Modal --- */
.station-finder-modal-backdrop {
  z-index: 1000;
}

.station-finder-modal-shell {
  width: min(100%, 520px);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-height: min(92vh, 860px);
  overflow: hidden;
}
.station-finder-modal-shell[hidden],
.station-finder-state-input[hidden],
.station-finder-state-result[hidden],
.station-finder-modal-backdrop[hidden] {
  display: none !important;
}
.station-finder-modal-open {
  overflow: hidden;
}
.station-finder-state-input,
.station-finder-state-result {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 0;
}

.station-finder-state-result {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}
.station-finder-modal-kicker {
  align-self: center;
}
.station-finder-modal-title {
  text-align: center;
  line-height: 0.98;
}
.station-finder-modal-copy {
  text-align: center;
  max-width: 28rem;
  margin: 0 auto;
  color: #cbd5e1;
  font-size: 0.98rem;
}
.station-finder-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}
.station-finder-modal-close {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  backdrop-filter: blur(12px);
}

.station-finder-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
}
.station-finder-input-wrap {
  position: relative;
}
.station-finder-modal-input {
  width: 100%;
}
.station-finder-modal-input:focus {
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.12);
}
.station-finder-modal-actions {
  display: flex;
  gap: 0.7rem;
  justify-content: stretch;
}
.station-finder-modal-search {
  flex: 1 1 0;
  min-width: 0;
}
.station-finder-modal-geolocate {
  flex: 1 1 0;
  min-width: 0;
}
.station-finder-autocomplete {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 20;
  background: rgba(11, 18, 32, 0.98);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: none;
  max-height: 220px;
  overflow-y: auto;
  margin-top: -0.3rem;
  font-size: 1rem;
  color: #f4f8ff;
}
.station-finder-autocomplete[hidden] {
  display: none !important;
}
.station-finder-autocomplete-item,
.station-finder-autocomplete-empty {
  width: 100%;
  padding: 0.8rem 1rem;
  transition: background 0.14s;
}

.station-finder-autocomplete-item {
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: 0.2rem;
  font: inherit;
  color: inherit;
}

.station-finder-autocomplete-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #f4f8ff;
}

.station-finder-autocomplete-subtitle {
  font-size: 0.85rem;
  color: #aeb9cc;
  line-height: 1.45;
}

.station-finder-autocomplete-empty {
  color: #aeb9cc;
}

.station-finder-autocomplete-item:hover,
.station-finder-autocomplete-item.active {
  background: rgba(255, 255, 255, 0.06);
}
.station-finder-recent-searches {
  display: grid;
  gap: 0.75rem;
}
.station-finder-recent-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.station-finder-recent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.station-finder-recent-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f4f8ff;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.station-finder-recent-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.pop-in {
  animation: pop 0.25s ease;
}

@keyframes pop {
  0% { transform: scale(0.97); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.station-finder-loading-state,
.station-finder-empty-state {
  min-height: 260px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, rgba(248,250,252,0.94), rgba(255,255,255,0.98));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  color: #475569;
  text-align: center;
  padding: 2rem;
}

.station-finder-loading-state-location {
  gap: 0.9rem;
}

.station-finder-status-orb {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(45, 212, 191, 0.28), rgba(15, 23, 42, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 18px 36px rgba(15, 23, 42, 0.12);
}

.station-finder-status-orb::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.22);
  animation: station-finder-locate-pulse 1.9s ease-out infinite;
}

.station-finder-status-core {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2dd4bf, #0f766e);
  box-shadow: 0 0 0 8px rgba(45, 212, 191, 0.14);
}

@keyframes station-finder-locate-pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.68;
  }

  70% {
    transform: scale(1.06);
    opacity: 0;
  }

  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

.station-finder-loading-title,
.station-finder-empty-title {
  color: #0f172a;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1.12rem;
  line-height: 1.2;
  font-weight: 700;
}

.station-finder-loading-copy,
.station-finder-empty-copy {
  max-width: 24rem;
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.58;
}

.station-finder-empty-meta {
  max-width: 24rem;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.5;
}

.station-finder-empty-actions {
  width: min(100%, 270px);
  display: grid;
  gap: 0.65rem;
  margin-top: 0.2rem;
}

.station-finder-empty-actions .station-finder-search-link {
  justify-self: center;
}

.station-finder-result-card {
  border-radius: 28px;
  border: 1px solid #e2e8f0;
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
  max-height: 100%;
  overflow-y: auto;
}

.station-finder-result-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.station-finder-result-context {
  display: grid;
  gap: 0.25rem;
}

.station-finder-result-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f766e;
}

.station-finder-result-location-title {
  color: #0f172a;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1.08rem;
  line-height: 1.15;
  font-weight: 700;
}

.station-finder-result-location-subtitle {
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.station-finder-result-edit {
  border: none;
  background: transparent;
  color: #0f766e;
  font-weight: 800;
  font: inherit;
  cursor: pointer;
  padding: 0.15rem 0;
}

.station-finder-price-block {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
  color: #f8fafc;
  padding: 1.05rem 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.station-finder-price-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.station-finder-result-price {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.station-finder-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d1fae5;
  font-size: 11px;
  font-weight: 800;
}

.station-finder-live-pill-recent {
  color: #fde68a;
}

.station-finder-live-pill-old {
  color: #fdba74;
}

.station-finder-live-pill-unknown {
  color: #cbd5e1;
}

.station-finder-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2dd4bf;
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.4);
  animation: live-pulse 1.8s ease-out infinite;
}

.station-finder-live-pill-recent .station-finder-live-dot {
  background: #f59e0b;
  box-shadow: none;
  animation: none;
}

.station-finder-live-pill-old .station-finder-live-dot {
  background: #f97316;
  box-shadow: none;
  animation: none;
}

.station-finder-live-pill-unknown .station-finder-live-dot {
  background: #94a3b8;
  box-shadow: none;
  animation: none;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.42); }
  70% { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

.station-finder-savings {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #99f6e4;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.92;
}

.station-finder-dataset-warning {
  margin-top: 0.85rem;
  color: rgba(226, 232, 240, 0.88);
  font-size: 12px;
  line-height: 1.45;
}

.station-finder-result-station {
  color: #0f172a;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1.3rem;
  line-height: 1.15;
  font-weight: 700;
}

.station-finder-result-address {
  color: #475569;
  font-size: 1rem;
  line-height: 1.55;
}

.station-finder-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.station-finder-result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.station-finder-result-actions .station-finder-action-btn-primary {
  grid-column: 1 / -1;
  border: 1px solid rgba(14, 116, 144, 0.26);
  background: linear-gradient(135deg, #0f766e, #115e59 56%, #0b3b53);
  color: #ecfeff;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.station-finder-result-actions .station-finder-action-btn-primary:hover {
  border-color: rgba(15, 118, 110, 0.55);
  background: linear-gradient(135deg, #0f766e, #0f5f66 58%, #0b2f4d);
  color: #f0fdfa;
}

.station-finder-result-actions .station-finder-action-btn {
  min-width: 0;
  border-color: #d6deea;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  opacity: 1;
}

.station-finder-result-actions .station-finder-action-btn:hover {
  border-color: #9fb3c8;
  background: #ffffff;
  color: #0f172a;
}

.station-finder-conversion-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.96), rgba(255, 255, 255, 0.98));
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
}

.station-finder-conv-title {
  color: #0f172a;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1.2rem;
  line-height: 1.15;
  font-weight: 700;
}

.station-finder-conv-desc {
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.6;
}

.station-finder-conv-button {
  margin-top: 0.25rem;
  width: 100%;
}

.station-finder-result-footer {
  display: flex;
  justify-content: flex-start;
}

.station-finder-search-again {
  border-color: #dbe4ef;
  background: #f8fafc;
  color: #0f172a;
}

.station-finder-empty-state .station-finder-search-again {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.station-finder-empty-state .station-finder-search-again:hover,
.station-finder-empty-state .station-finder-search-again:focus-visible {
  border-color: #94a3b8;
  background: #ffffff;
  color: #020617;
}

.station-finder-search-link {
  border: none;
  background: transparent;
  color: #0f766e;
  font: inherit;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
}

.station-finder-spinner {
  border-top-color: #14b8a6;
}

@media (max-width: 600px) {
  .station-finder-modal-shell {
    padding: 0.85rem 0.45rem 0.85rem 0.45rem;
    max-width: 100vw;
    max-height: 100vh;
  }

  .station-finder-price-head,
  .station-finder-result-topline,
  .station-finder-modal-actions,
  .station-finder-result-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .station-finder-price-head {
    gap: 0.75rem;
  }

  .station-finder-result-card {
    border-radius: 22px;
    padding: 1rem;
    gap: 0.8rem;
  }

  .station-finder-result-location-title {
    font-size: 1rem;
  }

  .station-finder-result-location-subtitle {
    font-size: 0.78rem;
  }

  .station-finder-price-block {
    border-radius: 20px;
    padding: 0.9rem;
  }

  .station-finder-result-price {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .station-finder-live-pill {
    min-height: 26px;
    padding: 0 8px;
    font-size: 10px;
  }

  .station-finder-savings {
    margin-top: 0.65rem;
    font-size: 12px;
  }

  .station-finder-result-station {
    font-size: 1.08rem;
  }

  .station-finder-result-address {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .station-finder-result-meta {
    gap: 0.45rem 0.8rem;
    font-size: 12px;
  }

  .station-finder-result-actions {
    gap: 0.55rem;
  }

  .station-finder-result-actions .station-finder-action-btn,
  .station-finder-conv-button {
    min-height: 42px;
    padding: 0 16px;
  }

  .station-finder-conversion-card {
    border-radius: 20px;
    padding: 0.85rem;
    gap: 0.55rem;
  }

  .station-finder-conv-title {
    font-size: 1.02rem;
  }

  .station-finder-conv-desc {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .station-finder-result-footer {
    padding-top: 0.1rem;
  }

  .station-finder-state-result {
    padding-right: 2px;
  }
}

@media (max-width: 420px) {
  .station-finder-modal-close {
    width: 36px;
    height: 36px;
  }

  .station-finder-loading-state,
  .station-finder-empty-state {
    min-height: 220px;
    padding: 1.25rem;
  }

  .station-finder-result-card {
    padding: 0.9rem;
  }

  .station-finder-price-block {
    padding: 0.8rem 0.85rem;
  }

  .station-finder-result-price {
    font-size: clamp(1.75rem, 10vw, 2.3rem);
  }

  .station-finder-modal-copy,
  .station-finder-conv-desc,
  .station-finder-result-address {
    font-size: 0.88rem;
  }

  .station-finder-search-link {
    font-size: 0.95rem;
  }
}

/* --- Local fallback tokens so the page still looks decent if base styles differ --- */
:root {
  --bg: #07111f;
  --surface: rgba(10, 20, 37, 0.84);
  --surface-2: rgba(14, 27, 48, 0.78);
  --text: #eef4ff;
  --muted: #a7b7d4;
  --soft: #7f93b6;
  --border: rgba(154, 178, 213, 0.12);
  --accent: #2dd4bf;
  --radius-xl: 28px;
  --radius-lg: 22px;
}
html, body {
  background:
    radial-gradient(circle at 18% 12%, rgba(25, 79, 196, 0.20), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(45, 212, 191, 0.08), transparent 20%),
    linear-gradient(180deg, #050c18 0%, #081325 48%, #091629 100%);
  color: var(--text);
}
body.explorer-page {
  min-height: 100vh;
  position: relative;
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.topbar .container {
  width: min(1120px, calc(100% - 40px));
}
.footer-stack {
  display: grid;
  gap: 14px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 2px;
}
.footer a { text-decoration: none; color: inherit; }
.btn {
  font: inherit; border: 1px solid rgba(154, 178, 213, 0.16); color: var(--text);
  background: rgba(255,255,255,0.04); border-radius: 999px; cursor: pointer;
}
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 20px; text-decoration:none; font-weight:700; }
.btn-primary { background: linear-gradient(to bottom, #2dd4bf, #14b8a6); color: #022a34; border-color: transparent; box-shadow: 0 6px 20px rgba(45, 212, 191, 0.25); cursor: pointer; }
.btn-secondary { background: rgba(255,255,255,0.04); }
.card {
  border-radius: 24px;
  border: 1px solid rgba(154, 178, 213, 0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)), rgba(9, 20, 37, 0.82);
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
}
.live-note {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.14); background: rgba(7, 27, 31, 0.72);
  color: #c7fff7; font-size: 12px; font-weight: 700;
}
.live-dot { width: 8px; height: 8px; border-radius: 999px; background: #2dd4bf; box-shadow: 0 0 0 6px rgba(45, 212, 191, 0.12); }
.section-heading { margin-bottom: 20px; }
.section-title { margin: 0; font-family: 'Sora', 'Segoe UI', sans-serif; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.04em; }
.section-subtitle { margin: 8px 0 0; color: var(--muted); max-width: 760px; line-height: 1.6; }
.footer { padding: 28px 0 40px; border-top: 1px solid rgba(154, 178, 213, 0.08); }
.footer-left, .footer-center, .footer-bottom { color: var(--soft); font-size: 13px; }
.footer-left {
  color: rgba(234, 242, 255, 0.92);
  font-weight: 700;
  max-width: 48ch;
  text-wrap: balance;
}
.footer-center { text-align: right; }
.footer-origin {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  flex-wrap: wrap;
}
.footer-origin-label {
  color: rgba(198, 206, 220, 0.76);
  font-size: 12px;
  font-weight: 600;
}
.footer-bottom {
  color: rgba(198, 206, 220, 0.72);
  font-size: 12px;
}
.explorer-footnote {
  margin-top: 10px;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.6;
}
@media (max-width: 820px) {
  .topbar-inner { flex-direction: column; align-items: flex-start; }
  .footer-stack { justify-items: center; text-align: center; }
  .footer-top { flex-direction: column; justify-content: center; text-align: center; }
  .footer-center { text-align: center; }
  .footer-origin { justify-content: center; }
  .footer-bottom { justify-content: center; }
  .nav { flex-wrap: wrap; }
}


/* ============================================================
   Explorer page — landing-integrated styles
   ============================================================ */

:root {
  --explorer-surface: rgba(8, 19, 39, 0.72);
  --explorer-surface-strong: rgba(8, 19, 39, 0.9);
  --explorer-border: rgba(154, 178, 213, 0.12);
  --explorer-border-strong: rgba(154, 178, 213, 0.22);
  --explorer-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  --explorer-shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.2);
  --explorer-accent: #2dd4bf;
  --explorer-accent-soft: rgba(45, 212, 191, 0.16);
}

html {
  scroll-behavior: smooth;
}

body.explorer-page {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 14%, rgba(31, 106, 255, 0.18), transparent 24%),
    radial-gradient(circle at 78% 16%, rgba(45, 212, 191, 0.12), transparent 22%),
    linear-gradient(180deg, #07111f 0%, #091428 42%, #081121 100%);
}

.explorer-page-glow {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.4;
  z-index: 0;
}

.explorer-page-glow-a {
  width: 360px;
  height: 360px;
  top: 110px;
  left: -120px;
  background: rgba(45, 212, 191, 0.12);
}

.explorer-page-glow-b {
  width: 400px;
  height: 400px;
  top: 280px;
  right: -120px;
  background: rgba(56, 189, 248, 0.12);
}

.explorer-main,
.explorer-footer {
  position: relative;
  z-index: 1;
}

.nav-active {
  color: #fff !important;
  position: relative;
}

.nav-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.7), rgba(56, 189, 248, 0.85));
}

.explorer-main {
  min-height: 100vh;
}

.explorer-hero {
  padding: 82px 0 30px;
}

.explorer-hero-shell {
  position: relative;
}

.explorer-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 38px;
  align-items: center;
}

.explorer-copy {
  max-width: 700px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.2);
  background: rgba(45, 212, 191, 0.08);
  color: #b9fff5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.explorer-title {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  margin: 0 0 18px;
  max-width: 720px;
}

.explorer-subtitle {
  margin: 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.62;
  color: var(--muted);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-cta {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(45, 212, 191, 0.18);
}

.hero-secondary-cta {
  min-height: 46px;
}

.hero-live-note {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
}

.hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(154, 178, 213, 0.12);
  background: rgba(10, 23, 44, 0.7);
  color: #d8e6fb;
  font-size: 12px;
  font-weight: 700;
}

.hero-showcase {
  display: flex;
  justify-content: flex-end;
}

.hero-showcase-card {
  width: min(100%, 470px);
  border-radius: 32px;
  border: 1px solid var(--explorer-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(8, 19, 39, 0.82);
  box-shadow: var(--explorer-shadow);
  backdrop-filter: blur(18px);
}

.hero-showcase-panel {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.hero-showcase-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(45, 212, 191, 0.24), rgba(255, 255, 255, 0.08), rgba(59, 130, 246, 0.18));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.showcase-panel-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.showcase-kicker,
.module-kicker {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soft);
  margin-bottom: 7px;
}

.showcase-title {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 21px;
  line-height: 1.18;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  color: #b9fff5;
  font-size: 12px;
  font-weight: 800;
}

.showcase-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.showcase-stat-card,
.showcase-chart-card {
  border-radius: 20px;
  border: 1px solid rgba(154, 178, 213, 0.11);
  background: rgba(255, 255, 255, 0.035);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.showcase-stat-label {
  font-size: 12px;
  color: var(--soft);
  font-weight: 700;
  margin-bottom: 10px;
}

.showcase-stat-value {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.15;
}

.showcase-stat-subvalue {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.1;
  color: rgba(154, 178, 213, 0.72);
  font-weight: 700;
}

.showcase-chart-card {
  margin-top: 12px;
}

.showcase-chart-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  color: #e8f2ff;
  font-size: 13px;
  font-weight: 700;
}

.showcase-chart-tag {
  color: var(--soft);
  font-size: 12px;
}

.showcase-chart-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  height: 148px;
  margin-top: 8px;
  padding-top: 4px;
}

.showcase-chart-note {
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: rgba(154, 178, 213, 0.62);
  text-align: right;
}

.hero-bar-item {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  height: 100%;
}

.hero-bar-value {
  font-size: 11px;
  line-height: 1;
  color: rgba(238, 244, 255, 0.86);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.hero-bar-track {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.hero-bar-column {
  display: block;
  width: 100%;
  min-height: 18px;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.95), rgba(45, 212, 191, 0.14));
  border: 1px solid rgba(45, 212, 191, 0.18);
}

.hero-bar-caption {
  font-size: 10px;
  line-height: 1;
  color: var(--soft);
  font-weight: 700;
}

.hero-bar-name {
  max-width: 100%;
  font-size: 9px;
  line-height: 1.15;
  color: rgba(154, 178, 213, 0.62);
  font-weight: 600;
  text-align: center;
  min-height: 2.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bar-name-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.explorer-shell {
  padding: 6px 0 66px;
}

.explorer-controls-wrap {
  border-radius: 34px;
  border: 1px solid var(--explorer-border);
  background: var(--explorer-surface);
  box-shadow: var(--explorer-shadow-soft);
  backdrop-filter: blur(18px);
  padding: 18px;
}

.explorer-controls-bar {
  position: sticky;
  top: 86px;
  z-index: 8;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(10, 23, 44, 0.96), rgba(10, 23, 44, 0.8));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  padding: 16px 18px;
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 20px 28px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.control-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.control-group-market {
  min-width: 180px;
}

.market-select {
  min-height: 34px;
  min-width: 180px;
  border-radius: 10px;
  border: 1px solid rgba(154, 178, 213, 0.24);
  background: rgba(255, 255, 255, 0.03);
  color: #e4edf9;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  padding: 0 10px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.market-select:focus {
  border-color: rgba(45, 212, 191, 0.52);
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.16);
}

.market-select option {
  color: #0f172a;
}

.seg-control {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(154, 178, 213, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

.seg-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.seg-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.seg-btn.active {
  background: rgba(45, 212, 191, 0.16);
  color: #c8fff8;
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.34);
}

/* ── Stations Toggle Button ────────────────────────── */
.stations-toggle-btn {
  border: 1px solid rgba(154, 178, 213, 0.12);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.20s ease, color 0.20s ease, box-shadow 0.20s ease, border-color 0.20s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stations-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: rgba(154, 178, 213, 0.24);
}

.stations-toggle-btn[data-active="true"] {
  background: rgba(37, 99, 235, 0.18);
  color: #87ceeb;
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.2);
}

.stations-toggle-btn[data-active="true"]:hover {
  background: rgba(37, 99, 235, 0.26);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.28);
}

/* ── City Marker Styles (Squares) ──────────────────── */
.city-marker-svg {
  width: 100%;
  height: 100%;
}

.section-heading {
  margin: 0 0 20px;
}

.compact-heading {
  padding: 24px 6px 0;
}

.section-title {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 10px;
}

.section-subtitle {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.explorer-insights,
.explorer-conversion,
.explorer-module,
.explorer-trend {
  padding-top: 12px;
}

.conversion-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-color: rgba(45, 212, 191, 0.16);
  background:
    linear-gradient(180deg, rgba(45, 212, 191, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(9, 21, 41, 0.84);
}

.conversion-title {
  margin: 0;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.conversion-subtitle {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

.conversion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.insights-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.insights-social {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(154, 178, 213, 0.12);
  background: rgba(9, 21, 41, 0.52);
}

.insights-social-kicker {
  color: #d8f8f2;
  font-size: 12px;
  font-weight: 700;
}

.insights-social-link {
  color: #8ff1df;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.18s ease;
}

.insights-social-link:hover {
  color: #c8fff6;
}

.insight-card,
.map-card,
.table-card,
.trend-card {
  border-radius: 24px;
  border: 1px solid rgba(154, 178, 213, 0.11);
  background: rgba(9, 21, 41, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.insight-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  transition: transform 0.18s ease, border-color 0.2s ease;
}

.insight-card:hover {
  transform: translateY(-2px);
  border-color: rgba(154, 178, 213, 0.2);
}

.insight-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
}

.insight-icon-green { background: rgba(34, 197, 94, 0.16); color: #86efac; }
.insight-icon-red { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }
.insight-icon-teal { background: rgba(45, 212, 191, 0.14); color: #5eead4; }
.insight-icon-amber { background: rgba(251, 191, 36, 0.14); color: #fcd34d; }

.insight-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}

.insight-value {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.22;
}

.insight-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.module-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.module-map-col,
.module-table-col,
.table-card,
.table-scroll {
  min-width: 0;
}

.map-card,
.table-card,
.trend-card {
  position: relative;
}

.map-header,
.table-header,
.trend-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(154, 178, 213, 0.09);
}

.map-title,
.table-title,
.trend-title {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}

.map-zoom-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--soft);
  opacity: 0.78;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.map-zoom-hint-visible {
  opacity: 1;
  color: #d8e6fb;
}

.map-source-footnote {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 20px 14px;
  border-top: 1px solid rgba(154, 178, 213, 0.08);
}

.map-source-footnote-asterisk {
  color: rgba(163, 184, 208, 0.82);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.map-source-footnote-text {
  color: rgba(163, 184, 208, 0.78);
  font-size: 11px;
  line-height: 1.4;
}

.map-source-footnote-link {
  color: rgba(163, 184, 208, 0.9);
  font-size: 11px;
  text-decoration: none;
  border-bottom: 1px dotted rgba(163, 184, 208, 0.42);
  transition: color 0.16s ease, border-color 0.16s ease;
}

.map-source-footnote-link:hover {
  color: #d8e6fb;
  border-bottom-color: rgba(216, 230, 251, 0.6);
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.legend-swatch {
  width: 24px;
  height: 8px;
  border-radius: 4px;
}

.legend-low { background: linear-gradient(to right, #166534, #22c55e); }
.legend-high { background: linear-gradient(to right, #f97316, #dc2626); }

#leaflet-map {
  height: 520px;
  background: #0b1829;
}

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

.station-selector-rail {
  position: absolute;
  top: 88px;
  left: 16px;
  bottom: 64px;
  z-index: 460;
  width: min(320px, calc(100% - 32px));
  display: grid;
  grid-template-rows: auto auto auto minmax(120px, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(154, 178, 213, 0.22);
  background: rgba(8, 19, 39, 0.76);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.station-selector-rail-header {
  display: grid;
  gap: 4px;
}

.station-selector-rail-kicker {
  font-size: 11px;
  font-weight: 800;
  color: #8ff1df;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.station-selector-rail-title {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #f8fbff;
}

.station-selector-rail-sub {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.station-selector-level-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.station-selector-level-btn {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(154, 178, 213, 0.16);
  background: rgba(9, 21, 41, 0.52);
  color: #c8d8ee;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.station-selector-level-btn:hover {
  border-color: rgba(154, 178, 213, 0.28);
}

.station-selector-level-btn.active {
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(12, 45, 50, 0.72);
  color: #d8fff8;
}

.station-selector-search-wrap {
  display: block;
}

.station-selector-search-input {
  width: 100%;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(154, 178, 213, 0.18);
  background: rgba(9, 21, 41, 0.56);
  color: #e4edf9;
  padding: 0 10px;
  font-size: 13px;
}

.station-selector-search-input::placeholder {
  color: rgba(163, 184, 208, 0.72);
}

.station-selector-list {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 6px;
  padding-right: 2px;
}

.station-selector-list-empty {
  padding: 12px 10px;
  font-size: 12px;
  color: var(--soft);
  border-radius: 10px;
  background: rgba(9, 21, 41, 0.46);
  border: 1px dashed rgba(154, 178, 213, 0.2);
}

.station-selector-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(154, 178, 213, 0.14);
  background: rgba(9, 21, 41, 0.52);
  border-radius: 11px;
  padding: 8px 10px;
  display: grid;
  gap: 2px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.18s ease, background 0.18s ease;
}

.station-selector-item:hover {
  transform: translateY(-1px);
  border-color: rgba(154, 178, 213, 0.28);
}

.station-selector-item.active {
  border-color: rgba(45, 212, 191, 0.44);
  background: rgba(13, 47, 51, 0.68);
}

.station-selector-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #eaf2ff;
}

.station-selector-item-meta {
  font-size: 11px;
  color: var(--soft);
}

.station-selector-sheet-toggle {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 72px;
  z-index: 470;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.34);
  background: rgba(8, 19, 39, 0.84);
  color: #d8fff8;
  font-size: 12px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
}

.map-card.station-mode .station-selector-rail {
  display: grid;
}

.map-card.station-mode .station-selector-sheet-toggle {
  display: none;
}

.region-price-chip-wrap {
  background: transparent;
  border: 0;
}

.region-price-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 38px;
  padding: 5px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 18, 32, 0.84);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.region-price-chip-selected {
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(7, 31, 33, 0.9);
}

.region-price-chip-muted {
  opacity: 0.32;
  transform: scale(0.94);
}

.region-price-chip-value {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  color: #f8fbff;
}

.region-price-chip-unit {
  margin-top: 2px;
  font-size: 8px;
  line-height: 1;
  color: var(--soft);
  font-weight: 700;
}

.leaflet-container {
  background: #0b1829 !important;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
}

.leaflet-control-zoom {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(11, 18, 32, 0.88) !important;
  backdrop-filter: blur(8px);
  box-shadow: none !important;
}

.leaflet-control-zoom a {
  background: transparent !important;
  color: #c3d0e6 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.leaflet-control-zoom a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

.leaflet-control-attribution {
  background: rgba(11, 18, 32, 0.7) !important;
  color: rgba(195, 208, 230, 0.5) !important;
  font-size: 10px !important;
  backdrop-filter: blur(4px);
}

.leaflet-control-attribution a {
  color: rgba(195, 208, 230, 0.7) !important;
}

.leaflet-popup-dark .leaflet-popup-content-wrapper {
  background: rgba(9, 16, 32, 0.96);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.leaflet-popup-dark .leaflet-popup-content {
  margin: 12px 14px;
}

.leaflet-popup-dark .leaflet-popup-tip {
  background: rgba(9, 16, 32, 0.96);
}

.leaflet-popup-dark .leaflet-popup-close-button {
  color: #94a3b8;
}

.leaflet-popup-dark .leaflet-popup-close-button:hover {
  color: #e2e8f0;
}

.region-tooltip {
  background: rgba(9, 16, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  min-width: 160px;
}

.region-tooltip-name {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #eaf2ff;
  margin-bottom: 6px;
}

.region-tooltip-price {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.region-tooltip-unit {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.region-tooltip-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.region-tooltip-delta.up { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
.region-tooltip-delta.down { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.region-tooltip-delta.same { background: rgba(147, 197, 253, 0.14); color: #93c5fd; }
.region-tooltip-nodata { font-size: 12px; color: var(--soft); margin-top: 4px; }
.region-tooltip-stations {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6px;
}

.station-map-popup {
  min-width: 230px;
  display: grid;
  gap: 0.45rem;
}

.station-map-popup-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.station-map-popup-title-wrap {
  min-width: 0;
}

.station-map-popup-brand-badge {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: var(--badge-bg, rgba(148, 163, 184, 0.18));
  border: 1px solid var(--badge-border, rgba(148, 163, 184, 0.35));
  color: var(--badge-text, #dbe7f8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.station-map-popup-title {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
}

.station-map-popup-subtitle {
  margin-top: -0.22rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.2;
}

.station-map-popup-address {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.station-map-popup-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.station-map-popup-price {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
}

.station-map-popup-link {
  justify-self: start;
  font-size: 0.78rem;
  font-weight: 700;
  color: #7dd3fc;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 211, 252, 0.36);
}

.station-map-popup-link:hover {
  color: #bae6fd;
  border-bottom-color: rgba(186, 230, 253, 0.6);
}

.station-map-price-pin-wrap,
.station-map-cluster-wrap {
  background: transparent;
  border: 0;
}

.station-map-price-pin {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pin-color) 82%, #0b1220 18%) 0%, color-mix(in srgb, var(--pin-color) 64%, #081121 36%) 100%);
  border: 1px solid color-mix(in srgb, var(--pin-color) 52%, #ffffff 48%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.station-map-price-pin::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 11px;
  height: 11px;
  background: color-mix(in srgb, var(--pin-color) 70%, #081121 30%);
  border-right: 1px solid color-mix(in srgb, var(--pin-color) 48%, #ffffff 52%);
  border-bottom: 1px solid color-mix(in srgb, var(--pin-color) 48%, #ffffff 52%);
  transform: translateX(-50%) rotate(45deg);
}

.station-map-price-pin-value {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #f8fbff;
  letter-spacing: 0.01em;
  line-height: 1;
}

.station-map-cluster {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  gap: 2px;
  background: radial-gradient(circle at 30% 24%, color-mix(in srgb, var(--cluster-color) 72%, #ffffff 28%) 0%, color-mix(in srgb, var(--cluster-color) 64%, #0b1220 36%) 58%, color-mix(in srgb, var(--cluster-color) 52%, #071122 48%) 100%);
  border: 1px solid color-mix(in srgb, var(--cluster-color) 40%, #ffffff 60%);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.station-map-cluster-count {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #f8fbff;
  line-height: 1;
  text-align: center;
}

.station-map-cluster-price {
  font-size: 10px;
  font-weight: 700;
  color: rgba(241, 245, 249, 0.92);
  line-height: 1;
  text-align: center;
}

.map-state,
.chart-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(7, 20, 38, 0.82);
  z-index: 500;
  transition: opacity 0.25s ease;
}

.map-state {
  pointer-events: none;
}

#map-empty.map-state.map-state-compact {
  inset: auto 14px 86px 14px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(154, 178, 213, 0.2);
  background: rgba(8, 19, 39, 0.84);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  justify-content: space-between;
  padding: 8px 10px;
  gap: 10px;
}

#map-empty.map-state.map-state-compact span {
  font-size: 12px;
  color: #d0def2;
}

.map-state-action {
  pointer-events: auto;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.34);
  background: rgba(45, 212, 191, 0.14);
  color: #d8fff8;
  font-size: 11px;
  font-weight: 700;
  padding: 0 12px;
  cursor: pointer;
}

.map-state-action:hover {
  background: rgba(45, 212, 191, 0.2);
}

.map-state-hidden,
.chart-state-hidden {
  display: none;
}

.table-scroll {
  overflow-y: auto;
  max-height: 560px;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.rank-table thead tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rank-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.rank-table th:first-child,
.rank-table td:first-child {
  width: 42px;
  text-align: center;
}

.rank-table th:nth-child(2),
.rank-table td:nth-child(2) {
  width: 36%;
}

.rank-table th:nth-child(3),
.rank-table td:nth-child(3) {
  width: 18%;
}

.rank-table th:nth-child(4),
.rank-table td:nth-child(4) {
  width: 22%;
}

.rank-table th:nth-child(5),
.rank-table td:nth-child(5) {
  width: 24%;
}

.rank-table th:nth-child(3),
.rank-table th:nth-child(4),
.rank-table th:nth-child(5),
.rank-table td:nth-child(3),
.rank-table td:nth-child(4),
.rank-table td:nth-child(5) {
  text-align: right;
}

.rank-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.rank-table td:first-child {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.rank-table td:nth-child(3) {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-weight: 700;
  white-space: nowrap;
}

.rank-table td:nth-child(2) {
  overflow-wrap: anywhere;
}

.rank-table tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

.rank-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.rank-table tbody tr.row-selected {
  background: rgba(45, 212, 191, 0.08);
}

.rank-table tbody tr.row-selected td:nth-child(2) {
  color: #c8fff8;
}

.table-placeholder {
  text-align: center;
  padding: 42px 16px;
  color: var(--soft);
  font-size: 13px;
}

.delta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  max-width: 100%;
  text-align: center;
}

.delta-pill.up { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
.delta-pill.down { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.delta-pill.same { background: rgba(147, 197, 253, 0.14); color: #93c5fd; }
.delta-pill.none { color: var(--soft); }

.table-row-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid rgba(45, 212, 191, 0.18);
  background: rgba(45, 212, 191, 0.08);
  color: #b9fff5;
  border-radius: 999px;
  min-height: 36px;
  padding: 6px 8px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1.15;
  white-space: normal;
  text-align: center;
}

.table-row-cta:hover {
  background: rgba(45, 212, 191, 0.14);
}

.trend-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.trend-reset {
  font-size: 12px;
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
}

.trend-chart-wrap {
  position: relative;
  height: 260px;
  padding: 16px 18px 18px;
}

.trend-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px 18px;
}

.trend-cta-title {
  font-size: 14px;
  font-weight: 800;
  color: #f3f8ff;
}

.trend-cta-copy {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 620px;
}

#trend-canvas {
  width: 100%;
  height: 100%;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #2dd4bf;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.explorer-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 17, 31, 0.72);
  backdrop-filter: blur(12px);
}

.sticky-install-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 55;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(45, 212, 191, 0.18);
  background: rgba(8, 19, 39, 0.92);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}

.sticky-install-copy {
  display: grid;
  gap: 4px;
}

.sticky-install-title {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
}

.sticky-install-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.sticky-install-btn {
  flex-shrink: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.btn {
  font-size: 14px;
  line-height: 1.15;
}

@media (max-width: 1080px) {
  .explorer-hero-inner,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    justify-content: flex-start;
  }
}

@media (max-width: 940px) {
  .explorer-hero {
    padding-top: 58px;
  }

  .explorer-title {
    max-width: 560px;
  }

  .explorer-controls-wrap {
    border-radius: 26px;
    padding: 14px;
  }

  .explorer-controls-bar {
    position: static;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }

  .conversion-card,
  .trend-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-scroll {
    max-height: none;
  }

  #leaflet-map {
    height: 420px;
  }

  .map-card.station-mode .station-selector-rail {
    display: none;
  }

  .map-card.station-mode .station-selector-sheet-toggle {
    display: inline-flex;
  }

  .station-selector-rail {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 122px;
    width: auto;
    max-height: min(64vh, 440px);
    transform: translateY(calc(100% + 18px));
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
  }

  .map-card.station-mode.station-sheet-open .station-selector-rail {
    display: grid;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .region-price-chip {
    min-width: 56px;
    min-height: 34px;
    padding: 4px 7px;
  }

  .trend-chart-wrap {
    height: 230px;
  }

  .footer-bottom {
    justify-content: center;
  }

}

@media (max-width: 680px) {
  .conversion-card {
    padding: 18px;
  }

  .conversion-title {
    font-size: clamp(18px, 6vw, 24px);
  }

  .conversion-subtitle {
    font-size: 14px;
    line-height: 1.5;
  }

  .conversion-actions {
    width: 100%;
  }

  .conversion-actions .btn {
    min-height: 42px;
    padding: 0 16px;
    font-size: 13px;
  }

  .explorer-title {
    font-size: clamp(34px, 11vw, 50px);
  }

  .hero-showcase-card {
    width: 100%;
  }

  .hero-showcase-panel,
  .map-header,
  .table-header,
  .trend-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .showcase-mini-grid {
    grid-template-columns: 1fr;
  }

  .map-legend {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .rank-table th,
  .rank-table td {
    padding-left: 8px;
    padding-right: 8px;
  }

  .rank-table th {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .rank-table td {
    font-size: 12px;
  }

  .rank-table th:first-child,
  .rank-table td:first-child {
    width: 32px;
  }

  .rank-table th:nth-child(2),
  .rank-table td:nth-child(2) {
    width: 30%;
  }

  .rank-table th:nth-child(3),
  .rank-table td:nth-child(3) {
    width: 18%;
  }

  .rank-table th:nth-child(4),
  .rank-table td:nth-child(4) {
    width: 21%;
  }

  .rank-table th:nth-child(5),
  .rank-table td:nth-child(5) {
    width: 31%;
  }

  .delta-pill {
    padding: 2px 5px;
    font-size: 10px;
  }

  .table-row-cta {
    min-height: 34px;
    padding: 6px;
    font-size: 10px;
  }

  .trend-chart-wrap {
    padding-left: 10px;
    padding-right: 10px;
  }

}
