﻿:root {
  color-scheme: light;
  --bg: #fff7f7;
  --bg-accent: #ffe9ec;
  --text: #1b1416;
  --muted: #6f5a5f;
  --card: #ffffff;
  --border: #f1cfd4;
  --blue: #1f5fff;
  --green: #26a36b;
  --accent: #c5162e;
  --shadow: 0 12px 30px rgba(197, 22, 46, 0.12);
  --radius: 18px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}



* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, var(--bg-accent), var(--bg));
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #cc0000;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
}

.logo-img {
  height: 64px;
  width: auto;
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.nav a {
  color: #ffffff;
  font-weight: 600;
}

.nav a:hover {
  color: #ffffff;
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 12px;
  background: #fff3b0;
  color: #5a1d26;
  font-weight: 600;
  border: 1px solid transparent;
}

.hero {
  padding: 80px 0 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin: 0 0 16px;
  line-height: 1.1;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 24px 0 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn.ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--card);
}

.btn:hover {
  transform: translateY(-1px);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-title {
  font-size: 0.85rem;
  color: var(--muted);
}

.stat-value {
  font-size: 1.8rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.stat-note {
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-map {
  display: grid;
  gap: 24px;
}

.map-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
}

.official-map {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: center;
  transition: transform 0.2s ease;
}

.map-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.map-viewport {
  width: 100%;
  max-height: 70vh;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px;
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 16px;
}

.map-header a {
  font-size: 0.85rem;
  color: var(--accent);
}

.mini-map {
  position: relative;
  height: 240px;
  background: linear-gradient(130deg, #f7e8d0, #f3f0ec);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.mini-map svg {
  width: 100%;
  height: 100%;
}

.map-bg {
  fill: #fff2f4;
}

.map-line {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.map-line.blue {
  stroke: var(--blue);
}

.map-line.green {
  stroke: var(--green);
}

.map-stop {
  fill: #ffffff;
  stroke: #2b2325;
  stroke-width: 2;
}

.map-stop.interchange {
  fill: var(--accent);
  stroke: #ffffff;
}

.map-label {
  font-size: 10px;
  fill: #5a1d26;
  font-family: var(--font-body);
}

.map-legend {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  font-size: 0.85rem;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.legend-dot.blue {
  background: var(--blue);
}

.legend-dot.green {
  background: var(--green);
}

.legend-dot.interchange {
  background: var(--accent);
}

.line-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.line-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: var(--shadow);
}

.line-card.blue {
  border-left: 6px solid var(--blue);
}

.line-card.green {
  border-left: 6px solid var(--green);
}

.section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}

.section-lede {
  color: var(--muted);
  max-width: 640px;
}

.route-planner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.2fr);
  gap: 24px;
}

.planner-form {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.planner-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--muted);
}

select,
input[type="search"],
input[type="range"] {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

.planner-result {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 260px;
}

.placeholder {
  color: var(--muted);
}

.station-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 6px 14px;
  background: var(--card);
  cursor: pointer;
  font-size: 0.85rem;
}

.chip.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.line-list {
  padding-left: 18px;
  margin: 16px 0 0;
}

.station-card {
  background: #fff;
  border-radius: 24px;
  padding: 18px;
  border: 1px solid rgba(204, 6, 46, 0.15);
  box-shadow: 0 24px 45px rgba(204, 6, 46, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.station-card::after {
  content: "";
  position: absolute;
  inset: -40% auto auto 50%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(197, 22, 46, 0.35), transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.station-card h4 {
  margin: 0 0 6px;
  font-family: var(--font-display);
}

.station-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.station-card .helper {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--border) 80%, transparent);
  color: var(--text);
}

.tag.blue {
  background: color-mix(in oklab, var(--blue) 18%, #fff);
  color: #0b2d88;
}

.tag.green {
  background: color-mix(in oklab, var(--green) 18%, #fff);
  color: #0b5a3a;
}

.tag.interchange {
  background: color-mix(in oklab, var(--accent) 20%, #fff);
  color: #7a2d00;
}

.fare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.fare-card {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.fare-card ul {
  padding-left: 18px;
  margin-top: 10px;
  color: var(--muted);
}

.fare-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.fare-output {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-weight: 600;
}

.fare-compare {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.fare-compare label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--muted);
}

.fare-compare-result {
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: #ffeef0;
  border: 1px solid #f4c6cd;
  padding: 10px 12px;
  border-radius: 14px;
}

.pill-row .tag {
  background: #f7d9de;
  color: #5a1d26;
  border: none;
}

.fare-amount {
  font-size: 1.8rem;
  color: var(--accent);
  font-family: var(--font-display);
}

.helper {
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 60px;
  background: var(--bg-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.footer-title { font-weight: 600; margin-bottom: 8px; }

@media (max-width: 600px) {
  .hero {
    padding-top: 60px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .station-grid {
    grid-template-columns: 1fr;
  }

  .station-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .station-detail-grid {
    grid-template-columns: 1fr;
  }

  .station-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .station-tools input[type="search"] {
    width: 100%;
  }
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.station-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
}

.station-hero-actions {
  display: flex;
  gap: 12px;
}

.station-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 24px;
}

.nearby-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

@media (min-width: 960px) {
  .station-detail-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    align-items: start;
  }

  .station-detail-grid > section:first-child {
    grid-column: 1;
  }

  .station-detail-grid .nearby-section {
    grid-column: 2;
    grid-row: 1;
  }
}

.detail-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
}

.compare-section {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.2fr);
  gap: 24px;
  align-items: flex-start;
}

.compare-grid .planner-form {
  align-self: stretch;
}

.planner-form {
  background: #fff;
  border-radius: 26px;
  border: 1px solid rgba(204, 6, 46, 0.18);
  box-shadow: 0 28px 55px rgba(204, 6, 46, 0.12);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.planner-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: #402e32;
}

.planner-form select,
.planner-form input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(204, 6, 46, 0.2);
  background: #fff8f8;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.planner-form select:focus,
.planner-form input[type="text"]:focus {
  border-color: #c5162e;
  box-shadow: 0 0 0 3px rgba(197, 22, 46, 0.15);
  outline: none;
}

.planner-form .btn.primary {
  border-radius: 16px;
  padding: 16px 0;
  font-size: 1rem;
}

.compare-output {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-output .planner-result {
  min-height: 220px;
}

.compare-output .ad-slot {
  margin: 0;
}

.compare-output .planner-result {
  border-radius: 24px;
  border: 1px dashed rgba(204, 6, 46, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  padding: 18px;
  background: linear-gradient(180deg, #fff, #ffeef2);
}

.station-link {
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.station-link:hover {
  transform: translateY(-2px);
}

.station-link:hover .station-card {
  box-shadow: 0 32px 55px rgba(204, 6, 46, 0.15);
}

@media (max-width: 900px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .compare-grid > .planner-form {
    order: 1;
  }

  .compare-grid > .compare-output {
    order: 2;
  }
}

a.station-card {
  color: inherit;
}

.ad-slot {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 16px;
  background: color-mix(in oklab, var(--card) 80%, transparent);
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.ad-slot strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 6px;
}

.ad-inline {
  margin: 24px 0;
}

.ad-wide {
  margin: 32px 0;
}

.ad-footer {
  margin-top: 24px;
}

.ad-size {
  font-size: 0.85rem;
}

.ad-desktop {
  display: block;
}

.ad-mobile {
  display: none;
}

.ad-wide {
  min-height: 90px;
}

.ad-inline {
  min-height: 250px;
}

.ad-sidebar {
  min-height: 600px;
}

.ad-after {
  min-height: 250px;
  margin-top: 16px;
}

.station-layout,
.directory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  margin-top: 24px;
}

.station-sidebar,
.directory-sidebar {
  display: grid;
  gap: 16px;
}

@media (max-width: 900px) {
  .station-layout,
  .directory-layout {
    grid-template-columns: 1fr;
  }

  .ad-desktop {
    display: none;
  }

  .ad-mobile {
    display: block;
  }

  .ad-wide {
    min-height: 50px;
  }

  .ad-inline,
  .ad-after,
  .ad-sidebar {
    min-height: 120px;
  }
}


.site-footer {
  background: #cc0000;
  border-top: 1px solid #cc0000;
  padding: 14px 0;
  font-size: 0.9rem;
  color: #ffffff;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 700px) {
  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 64px 0 40px;
  }

  .fare-grid,
  .line-cards,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .map-card {
    padding: 16px;
  }
}

@media (max-width: 700px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section {
    padding: 40px 0;
  }

  .btn {
    width: 100%;
  }

  .planner-form {
    padding: 16px;
  }

  .planner-result {
    padding: 16px;
  }

  .fare-card {
    padding: 16px;
  }
}

.footer-social { display:flex; gap:12px; align-items:center; justify-content:flex-end; flex-wrap:wrap; }
.footer-social a { width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; border:1px solid rgba(12,16,32,0.12); color:inherit; transition:all .2s ease; }
.footer-social a:hover { color:#cc0000; border-color:rgba(204,0,0,0.4); background:#fff0f0; }
.footer-social svg { width:18px; height:18px; fill:currentColor; }
@media (max-width: 720px) { .footer-social { justify-content:flex-start; } }


.hero-route { margin-top: 18px; display:flex; gap:14px; align-items:flex-end; flex-wrap:wrap; }
.hero-route label { display:flex; flex-direction:column; gap:6px; font-size:0.9rem; color:#4a4f66; }
.hero-route select { min-width:180px; padding:12px 14px; border-radius:12px; border:1px solid rgba(12,16,32,0.15); background:#fff; font:inherit; }
.hero-route .btn { height:44px; }
@media (max-width: 720px) { .hero-route { flex-direction:column; align-items:stretch; } .hero-route select { width:100%; min-width:0; } }


.hero-route { margin-top: 18px; display:flex; gap:14px; align-items:flex-end; flex-wrap:wrap; }
.hero-route label { display:flex; flex-direction:column; gap:6px; font-size:0.9rem; color:#4a4f66; }
.hero-route select { min-width:220px; padding:12px 14px; border-radius:12px; border:1px solid rgba(12,16,32,0.15); background:#fff; font:inherit; }
.hero-route .btn { height:46px; padding:0 18px; }
.hero-compare-result { width:100%; margin-top:10px; }
.hero-compare-result .pill-row { display:flex; gap:10px; flex-wrap:wrap; padding:10px; border-radius:12px; background:#fff4f4; border:1px solid rgba(204,0,0,0.15); }
.hero-compare-result .placeholder { color:#6b7280; background:#fff; border-radius:10px; padding:10px 12px; border:1px dashed rgba(12,16,32,0.18); }
@media (max-width: 720px) { .hero-route { flex-direction:column; align-items:stretch; } .hero-route select { width:100%; min-width:0; } .hero-route .btn { width:100%; } }


.hero-compare-result .pill-row { background: linear-gradient(135deg, rgba(255,240,240,0.9), rgba(255,255,255,0.95)); border:1px solid rgba(204,0,0,0.2); box-shadow: 0 10px 30px rgba(204,0,0,0.08); padding:14px; border-radius:14px; }
.hero-compare-result .pill-row .tag { background:#ffffff; border:1px solid rgba(204,0,0,0.15); padding:8px 12px; border-radius:999px; font-weight:600; color:#9a0000; }
.hero-compare-result .pill-row .tag.interchange { background:#ffe6e6; color:#7a0000; border-color:rgba(204,0,0,0.25); }


/* NAV FIX START */
.nav-actions { display:flex; align-items:center; gap:18px; }
.nav { display:flex; gap:18px; font-size:0.95rem; }
.nav a { color:#ffffff; font-weight:600; }
.nav-toggle { display:none; background:transparent; border:1px solid rgba(255,255,255,0.4); border-radius:10px; padding:8px; gap:4px; flex-direction:column; align-items:center; justify-content:center; }
.nav-toggle span { display:block; width:20px; height:2px; background:#ffffff; border-radius:2px; }
@media (max-width: 900px) { .nav-toggle { display:inline-flex; } .nav-wrap { position:relative; } .nav-actions { position:absolute; top:100%; left:0; right:0; background:#cc0000; border-bottom:1px solid rgba(255,255,255,0.2); display:flex; flex-direction:column; align-items:stretch; gap:14px; max-height:0; overflow:hidden; padding:0 16px; opacity:0; pointer-events:none; transition:max-height .25s ease, opacity .2s ease, padding .2s ease; } .nav-actions.open { max-height:420px; padding:16px; opacity:1; pointer-events:auto; } .nav { flex-direction:column; gap:12px; } .nav-cta { width:100%; text-align:center; } }
/* NAV FIX END */



/* route-summary-fix */
.planner-result { overflow-wrap:anywhere; word-break:break-word; }
.planner-result p, .planner-result li { overflow-wrap:anywhere; word-break:break-word; }
.planner-result .station-meta { flex-wrap:wrap; }
@media (max-width: 720px) { .route-planner { gap:16px; } .planner-result { margin-left:0; } }


/* mobile route summary below form */
@media (max-width: 720px) { .route-planner { display:flex; flex-direction:column; } .planner-form { order:1; } .planner-result { order:2; } }

@media (max-width: 720px) {
  .compare-grid {
    gap: 18px;
  }

  .compare-output .planner-result,
  .compare-output .ad-slot {
    width: 100%;
  }
}

