:root {
  --ink: #10243f;
  --ink-deep: #09172a;
  --muted: #637187;
  --paper: #f7f5ef;
  --white: #ffffff;
  --line: #dce2e8;
  --red: #e3002c;
  --blue: #0070bd;
  --green: #008659;
  --orange: #f8b61c;
  --brown: #9b702a;
  --yellow: #ffdb00;
  --shadow: 0 24px 70px rgba(12, 34, 61, 0.13);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

.skip-link {
  position: fixed;
  top: -80px;
  left: 24px;
  z-index: 1000;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transition: top .2s ease;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 72px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--ink);
  background: rgba(247, 245, 239, .88);
  border-bottom: 1px solid rgba(16, 36, 63, .1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  display: inline-block;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.brand-mark i {
  position: absolute;
  top: 13px;
  left: -4px;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  transform-origin: center;
}

.brand-mark i:nth-child(1) { background: var(--red); transform: rotate(0); }
.brand-mark i:nth-child(2) { background: var(--blue); transform: rotate(60deg); }
.brand-mark i:nth-child(3) { background: var(--green); transform: rotate(-60deg); }

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 38px);
  margin-left: auto;
}

.site-header nav a {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--red);
  transition: right .2s ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after { right: 0; }

.live-pill {
  padding: 6px 11px;
  border: 1px solid rgba(16, 36, 63, .15);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.live-pill span {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 5px;
  background: #1fa56f;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(31, 165, 111, .13);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr);
  background: var(--paper);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(70px, 9vw, 140px) clamp(28px, 6vw, 104px);
  align-self: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: #dd3f37;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(42px, 5.1vw, 78px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.12;
}

.hero h1 span { display: block; color: var(--blue); }

.hero-lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--ink); box-shadow: 0 12px 28px rgba(16, 36, 63, .2); }
.button-ghost { color: var(--ink); background: transparent; }
.button-ghost:hover { background: #fff; }

.hero-stats {
  display: flex;
  gap: clamp(24px, 4vw, 58px);
  margin: 56px 0 0;
}

.hero-stats div { display: grid; }
.hero-stats dt { font-family: "Space Grotesk", sans-serif; font-size: 30px; font-weight: 700; line-height: 1; }
.hero-stats dd { margin: 7px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; }

.hero-visual {
  position: relative;
  min-height: 640px;
  isolation: isolate;
  background:
    linear-gradient(145deg, rgba(8, 21, 39, .94), rgba(13, 41, 69, .91)),
    radial-gradient(circle at 45% 40%, #294d6a, #0b1d31 68%);
  overflow: hidden;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  opacity: .6;
}

.hero-visual::before {
  left: 0;
  right: 0;
  bottom: -2px;
  height: 42%;
  background:
    linear-gradient(75deg, transparent 48%, rgba(255,255,255,.08) 49% 50%, transparent 51%) 0 0/140px 100%,
    linear-gradient(105deg, transparent 48%, rgba(255,255,255,.06) 49% 50%, transparent 51%) 0 0/180px 100%,
    linear-gradient(to top, rgba(5, 16, 29, .9), transparent);
  clip-path: polygon(0 65%, 6% 50%, 11% 66%, 18% 36%, 24% 58%, 31% 45%, 36% 68%, 43% 28%, 50% 47%, 57% 18%, 64% 57%, 71% 34%, 78% 68%, 87% 38%, 93% 55%, 100% 28%, 100% 100%, 0 100%);
}

.hero-visual::after {
  width: 460px;
  height: 460px;
  right: -180px;
  top: -160px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
}

.city-grid {
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.23) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.23) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: perspective(600px) rotateX(58deg) scale(1.4) translateY(90px);
}

.route-orbit {
  position: absolute;
  display: block;
  height: 18px;
  border-radius: 999px;
  box-shadow: 0 0 24px currentColor;
}

.route-orbit::before,
.route-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 21px;
  height: 21px;
  background: #fff;
  border: 5px solid currentColor;
  border-radius: 50%;
  transform: translateY(-50%);
}

.route-orbit::before { left: 14%; }
.route-orbit::after { right: 17%; }
.orbit-red { top: 24%; left: -18%; width: 95%; color: var(--red); background: var(--red); transform: rotate(15deg); }
.orbit-blue { top: 62%; left: -8%; width: 112%; color: #0c8cd4; background: #0c8cd4; transform: rotate(-8deg); }
.orbit-green { top: 44%; left: 8%; width: 100%; color: #00a770; background: #00a770; transform: rotate(55deg); }
.orbit-yellow { top: 71%; left: 35%; width: 78%; color: var(--yellow); background: var(--yellow); transform: rotate(-52deg); }

.hero-station-card {
  position: absolute;
  top: 42%;
  left: 50%;
  width: min(330px, 72%);
  padding: 28px 30px;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0,0,0,.33);
  transform: translate(-50%, -50%) rotate(-2deg);
  backdrop-filter: blur(14px);
}

.hero-station-code {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  margin-right: 6px;
  place-items: center;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.hero-station-code.blue { background: var(--blue); }
.hero-station-card strong { display: block; margin-top: 18px; font-size: 30px; letter-spacing: -.03em; }
.hero-station-card small { color: var(--muted); font-family: "Space Grotesk", sans-serif; font-weight: 600; letter-spacing: .08em; }

.pulse-dot {
  position: absolute;
  right: 24px;
  top: 27px;
  width: 10px;
  height: 10px;
  background: #1fa56f;
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(31, 165, 111, .14);
}

.hero-coordinate {
  position: absolute;
  right: 5vw;
  bottom: 4vw;
  margin: 0;
  color: rgba(255,255,255,.53);
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.75;
  text-align: right;
}

.map-section,
.guide-section {
  padding: 110px clamp(20px, 4.5vw, 76px);
}

.map-section { background: #eef1eb; }

.section-heading {
  max-width: 1500px;
  margin: 0 auto 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading h2,
.planner-copy h2 {
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -.045em;
  line-height: 1.15;
}

.station-search { position: relative; width: min(500px, 100%); }
.station-search > label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; }

.search-field {
  min-height: 52px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 5px 6px 5px 16px;
  background: #fff;
  border: 1px solid rgba(16,36,63,.15);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(16,36,63,.06);
}

.search-field > span { color: var(--muted); font-size: 24px; transform: rotate(-20deg); }
.search-field input { min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-field input::placeholder { color: #a0a9b6; }
.search-field button { width: 42px; height: 40px; border: 0; border-radius: 8px; color: #fff; background: var(--ink); cursor: pointer; }
.search-field button:disabled { cursor: wait; opacity: .65; }

.place-search-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 9px);
  right: 0;
  left: 0;
  max-height: 350px;
  overflow-y: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(16,36,63,.16);
  border-radius: 13px;
  box-shadow: 0 22px 55px rgba(16,36,63,.18);
}
.place-search-results[hidden] { display: none; }
.place-search-heading { padding: 7px 9px 9px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.place-search-option {
  width: 100%;
  padding: 11px 10px;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 9px;
  text-align: left;
  cursor: pointer;
}
.place-search-option:hover,
.place-search-option:focus-visible { background: #f1f6f7; outline: none; }
.place-search-option > i { width: 30px; height: 30px; display: grid; place-items: center; color: var(--blue); background: #e4f2f8; border-radius: 8px; font-style: normal; }
.place-search-option > span { min-width: 0; display: grid; gap: 3px; }
.place-search-option strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.place-search-option small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.place-search-option > b { color: var(--blue); font-size: 16px; }
.place-search-status { margin: 0; padding: 13px 12px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.place-search-status.is-error { color: #a7352f; background: #fff3ef; border-radius: 8px; }
.place-search-status a { color: var(--blue); font-weight: 800; }

.line-tabs {
  max-width: 1500px;
  margin: 0 auto 14px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.line-tab {
  min-width: max-content;
  min-height: 48px;
  padding: 6px 16px 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(16,36,63,.13);
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.line-tab:hover { transform: translateY(-2px); }
.line-tab[aria-selected="true"] { color: #fff; background: var(--ink); box-shadow: 0 10px 24px rgba(16,36,63,.2); }
.line-tab-overview { background: linear-gradient(135deg, #fff 40%, #edf2f4); }
.line-tab-overview .line-tab-code { min-width: 44px; }
.line-tab-code { min-width: 34px; height: 34px; padding: 0 6px; display: grid; place-items: center; color: var(--tab-text); background: var(--tab-color); border-radius: 9px; font-family: "Space Grotesk", sans-serif; font-size: 12px; }
.line-tab small { color: var(--muted); font-size: 10px; font-weight: 600; }
.line-tab[aria-selected="true"] small { color: rgba(255,255,255,.63); }

.map-shell {
  max-width: 1500px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(16,36,63,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-shell:fullscreen { width: 100vw; height: 100vh; border-radius: 0; }
.map-shell:fullscreen .map-layout { height: calc(100vh - 68px); }
.map-shell:fullscreen .map-stage { min-height: 100%; }
.map-shell.is-pseudo-fullscreen { position: fixed; inset: 0; z-index: 999; width: 100vw; height: 100vh; max-width: none; border-radius: 0; }
.map-shell.is-pseudo-fullscreen .map-layout { height: calc(100vh - 68px); }
.map-shell.is-pseudo-fullscreen .map-stage { min-height: 100%; }
.map-modal-open { overflow: hidden; }

.map-topbar {
  min-height: 68px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.map-topbar > div:first-child { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.map-topbar strong { font-size: 16px; }
.map-topbar #active-line-summary { color: var(--muted); font-size: 12px; }
.map-line-badge { min-width: 38px; height: 38px; padding: 0 7px; display: inline-grid; place-items: center; color: #fff; background: var(--red); border-radius: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 700; }
.map-hint { color: var(--muted); font-size: 12px; font-weight: 600; }

.map-layout {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.map-stage {
  position: relative;
  min-height: 620px;
  background: #f4f1e8;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  outline: none;
}

.map-stage:active { cursor: grabbing; }
.map-stage.is-dragging { cursor: grabbing; user-select: none; }
.map-stage:focus-visible { box-shadow: inset 0 0 0 4px rgba(0,112,189,.35); }

.map-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16,36,63,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,36,63,.055) 1px, transparent 1px);
  background-size: 44px 44px;
}

.map-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.85), transparent 26%),
    linear-gradient(to top, rgba(162, 184, 179, .2), transparent 50%);
}

#map-canvas {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.metro-svg { display: block; overflow: visible; }
.metro-svg .path-label { fill: #5f6d7f; font-size: 12px; font-weight: 800; letter-spacing: .09em; }
.metro-svg .overview-line-label { font-family: "Space Grotesk", sans-serif; font-size: 21px; font-weight: 900; }
.network-overview-svg .station-name { font-size: 12px; }
.network-overview-svg .station-code { font-size: 9px; }
.metro-svg .route-shadow { fill: none; stroke: rgba(255,255,255,.95); stroke-width: 22; stroke-linecap: round; }
.metro-svg .route-line { fill: none; stroke-width: 13; stroke-linecap: round; }
.metro-svg .route-highlight-halo { fill: none; stroke: var(--ink); stroke-width: 23; stroke-linecap: round; opacity: .9; }
.metro-svg .route-highlight { fill: none; stroke-width: 13; stroke-linecap: round; }
.metro-svg .station-node { cursor: pointer; outline: none; }
.metro-svg .station-hit { fill: transparent; }
.metro-svg .station-ring { fill: #fff; stroke-width: 5; filter: drop-shadow(0 4px 7px rgba(16,36,63,.15)); transition: transform .18s ease; transform-box: fill-box; transform-origin: center; }
.metro-svg .station-node:hover .station-ring,
.metro-svg .station-node:focus .station-ring { transform: scale(1.18); }
.metro-svg .station-node.is-route-stop .station-ring { fill: #fffbe9; stroke: var(--ink) !important; stroke-width: 6; transform: scale(1.14); filter: drop-shadow(0 0 6px rgba(16,36,63,.4)); }
.metro-svg .station-node.is-selected .station-ring { fill: var(--ink); stroke: #fff !important; stroke-width: 5; transform: scale(1.35); filter: drop-shadow(0 0 7px rgba(16,36,63,.45)); }
.metro-svg .station-node.is-selected .station-core { fill: #fff; }
.metro-svg .station-core { pointer-events: none; }
.metro-svg .station-name { fill: var(--ink); font-size: 14px; font-weight: 800; paint-order: stroke; stroke: #f4f1e8; stroke-width: 6px; stroke-linejoin: round; }
.metro-svg .station-code { fill: #617083; font-family: "Space Grotesk", sans-serif; font-size: 10px; font-weight: 700; paint-order: stroke; stroke: #f4f1e8; stroke-width: 4px; }
.metro-svg .transfer-mark { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.metro-svg .transfer-text { fill: #fff; font-size: 7px; font-weight: 900; pointer-events: none; }
.metro-svg .attraction-star { fill: #dd3f37; stroke: #fff; stroke-width: 2; }
.metro-svg .attraction-star-text { fill: #fff; font-size: 9px; pointer-events: none; }

.map-controls {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 5;
  display: grid;
  gap: 6px;
  touch-action: manipulation;
}

.map-controls button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(16,36,63,.2);
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(16,36,63,.1);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.map-controls button:hover { color: #fff; background: var(--ink); }

.map-legend {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 5;
  padding: 9px 12px;
  display: flex;
  gap: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(16,36,63,.12);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-selected { width: 12px; height: 12px; background: var(--ink); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); }
.legend-transfer-count { width: 16px; height: 16px; display: inline-grid; place-items: center; color: #fff; background: var(--ink); border-radius: 50%; font-size: 8px; font-style: normal; }
.legend-attraction { color: #dd3f37; font-style: normal; font-size: 13px; }

.station-panel {
  position: relative;
  padding: 30px 26px 26px;
  background: #fff;
  border-left: 1px solid var(--line);
  overflow-y: auto;
}

.station-panel-accent { position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--red); }
.station-panel.is-updated { animation: panel-update .48s ease-out; }
@keyframes panel-update {
  0% { background: #eaf4fb; }
  100% { background: #fff; }
}
.panel-kicker { margin: 0 0 20px; color: var(--muted); font-family: "Space Grotesk", sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.station-title-row { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.station-title-row h3 { margin: 10px 0 0; color: var(--ink-deep); font-size: 28px; line-height: 1.2; letter-spacing: -.035em; }
.station-codes { display: flex; flex-wrap: wrap; gap: 5px; }

.code-pill,
.inline-line-code {
  min-width: 38px;
  height: 28px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  color: var(--pill-text, #fff);
  background: var(--pill-color, var(--ink));
  border-radius: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.station-icon { width: 54px; height: 54px; display: grid; place-items: center; flex: 0 0 auto; background: #f3f1ea; border-radius: 16px; font-size: 27px; }
.station-intro { min-height: 50px; margin: 18px 0 22px; color: var(--muted); font-size: 13px; }
.panel-block { padding: 20px 0; border-top: 1px solid var(--line); }
.panel-block h4 { margin: 0 0 13px; font-size: 12px; letter-spacing: .08em; }
.station-lines { display: grid; gap: 8px; }

.station-line-button {
  width: 100%;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  background: #f7f7f4;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: left;
  cursor: pointer;
}

.station-line-button:hover { border-color: rgba(16,36,63,.2); background: #fff; }
.station-line-button span:last-child { font-size: 12px; font-weight: 700; }
.operator-note { margin-left: auto; color: var(--muted); font-size: 9px !important; font-weight: 500 !important; }

.attraction-list { display: flex; flex-wrap: wrap; gap: 7px; }
.attraction-chip { padding: 7px 9px; color: #9e332e; background: #fff1ec; border: 1px solid #f3d6cf; border-radius: 7px; font-size: 11px; font-weight: 700; }
.no-attractions { margin: 0; color: #8994a2; font-size: 12px; }

.place-guide { margin: 20px 0 6px; padding: 16px; background: linear-gradient(145deg, #eef8fb, #fff); border: 1px solid #b9dae8; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,112,189,.08); }
.place-guide[hidden] { display: none; }
.place-guide-heading { display: flex; align-items: center; gap: 11px; }
.place-guide-heading > div { min-width: 0; display: grid; gap: 2px; }
.place-guide-heading small { color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.place-guide-heading strong { font-size: 16px; }
.place-guide-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; background: #fff; border-radius: 10px; font-size: 21px; }
.place-guide > p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.place-guide-meta { margin-top: 11px; display: flex; gap: 7px; flex-wrap: wrap; }
.place-guide-meta span { padding: 6px 8px; color: #0b5c8e; background: #dff1f9; border-radius: 6px; font-size: 10px; font-weight: 800; }
.place-guide button { width: 100%; min-height: 40px; margin-top: 13px; color: #fff; background: var(--blue); border: 0; border-radius: 8px; font-size: 11px; font-weight: 900; cursor: pointer; }
.place-guide button:hover { background: #005d9d; }

.station-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.station-actions a,
.station-actions button { min-height: 41px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 8px; font-size: 11px; font-weight: 800; text-decoration: none; cursor: pointer; }
.panel-map-link { grid-column: 1 / -1; color: #fff; background: var(--ink); border: 1px solid var(--ink); }
.station-actions button { color: var(--ink); background: #fff; border: 1px solid rgba(16,36,63,.2); }
.station-actions button:hover { background: #f3f5f7; }

.planner-section {
  padding: 110px clamp(20px, 7vw, 120px);
  display: grid;
  grid-template-columns: minmax(320px, .75fr) minmax(460px, 1.25fr);
  gap: clamp(50px, 8vw, 130px);
  align-items: center;
  color: #fff;
  background: var(--ink-deep);
}

.planner-copy h2 { color: #fff; }
.planner-copy p:last-child { max-width: 550px; margin: 25px 0 0; color: #aab6c5; }
.planner-card { padding: clamp(22px, 3vw, 38px); color: var(--ink); background: #fff; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.planner-fields { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; }
.planner-fields label > span { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 800; }
.planner-fields label i { width: 23px; height: 23px; display: inline-grid; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; font-style: normal; font-size: 10px; }
.planner-fields label:last-child i { background: var(--red); }
.planner-fields select { width: 100%; min-height: 52px; padding: 0 40px 0 14px; color: var(--ink); background: #f6f6f3; border: 1px solid #d9dee5; border-radius: 9px; outline: none; }
.planner-fields select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,112,189,.12); }
.swap-button { width: 42px; height: 42px; margin-bottom: 5px; display: grid; place-items: center; color: var(--ink); background: #f3f4f4; border: 1px solid #d9dee5; border-radius: 50%; font-size: 18px; cursor: pointer; }
.swap-button:hover { color: #fff; background: var(--ink); }
.plan-submit { width: 100%; min-height: 52px; margin-top: 18px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; color: #fff; background: var(--blue); border: 0; border-radius: 9px; font-weight: 800; cursor: pointer; }
.plan-submit:hover { background: #005d9d; }

.route-result { min-height: 92px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.route-result > p { margin: 0; color: var(--muted); font-size: 13px; }
.route-options-heading { margin-bottom: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.route-options-heading strong { font-size: 15px; }
.route-options-heading span { color: var(--muted); font-size: 10px; }
.route-choice-list { display: grid; gap: 8px; }
.route-choice { width: 100%; padding: 12px 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--ink); text-align: left; background: #f6f7f5; border: 1px solid transparent; border-radius: 10px; cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.route-choice:hover { background: #f0f5f8; border-color: #b8cfdf; }
.route-choice.is-active { background: #edf7fc; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0,112,189,.08); }
.route-choice-copy { min-width: 0; display: flex; align-items: center; gap: 9px; }
.route-choice-copy b { flex: 0 0 auto; padding: 4px 7px; color: #fff; background: var(--blue); border-radius: 999px; font-size: 9px; }
.route-choice:not(.is-active) .route-choice-copy b { color: #526274; background: #e3e8eb; }
.route-choice-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.route-choice-metrics { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.route-choice-metrics i { color: var(--blue); font-size: 16px; font-style: normal; }
.route-detail { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.route-summary { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.route-summary strong { font-size: 20px; }
.route-metric { color: var(--muted); font-size: 11px; }
.route-metric b { color: var(--ink); font-size: 19px; }
.route-segments { display: grid; gap: 10px; margin-top: 15px; }
.route-segment { width: 100%; padding: 10px 12px; display: flex; align-items: center; gap: 9px; color: var(--ink); text-align: left; background: #f6f7f5; border: 1px solid transparent; border-radius: 9px; font-size: 12px; }
.route-segment-button { cursor: pointer; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.route-segment-button:hover { background: #eef7fb; border-color: #b5d2e3; }
.route-segment-button:focus-visible { outline: 3px solid rgba(0,112,189,.2); outline-offset: 2px; }
.route-segment-button.is-active { background: #e9f6fc; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0,112,189,.08); }
.route-segment .route-arrow { color: #a0a8b3; }
.route-segment-action { margin-left: auto; color: var(--blue); font-size: 10px; font-weight: 800; white-space: nowrap; }
.route-transfer-note { padding-left: 47px; color: #a66018; font-size: 10px; font-weight: 700; }
.destination-final-leg { margin-top: 12px; padding: 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; color: #fff; background: var(--ink); border-radius: 11px; }
.destination-final-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); background: #fff; border-radius: 10px; font-size: 20px; }
.destination-final-leg > div { min-width: 0; display: grid; gap: 4px; }
.destination-final-leg small { color: #7fc8ed; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.destination-final-leg strong { font-size: 12px; }
.destination-final-leg p { margin: 0; color: #c3cfdb; font-size: 10px; line-height: 1.55; }
.destination-final-leg div > span { color: #8f9eae; font-size: 9px; }
.destination-final-leg a { padding: 8px 10px; color: var(--ink); background: #fff; border-radius: 7px; font-size: 9px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.estimate-note { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.route-error { padding: 12px; color: #a33a31; background: #fff0ec; border-radius: 8px; }

.guide-section { background: #fff; }
.guide-heading { align-items: start; }
.guide-grid { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.guide-grid article { padding: 42px 36px; border-right: 1px solid var(--line); }
.guide-grid article:first-child { padding-left: 0; }
.guide-grid article:last-child { border-right: 0; }
.guide-grid article > span { color: #dd3f37; font-family: "Space Grotesk", sans-serif; font-size: 12px; font-weight: 700; }
.guide-grid h3 { margin: 15px 0 10px; font-size: 22px; }
.guide-grid p { margin: 0; color: var(--muted); font-size: 14px; }

footer {
  padding: 34px clamp(20px, 4.5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #d4dce5;
  background: #071321;
}

footer strong { color: #fff; }
footer p { margin: 5px 0 0; color: #7d8b9c; font-size: 11px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #c7d1dc; font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: #fff; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr 42%; }
  .hero-copy { padding-left: 5vw; padding-right: 5vw; }
  .hero h1 { font-size: clamp(40px, 5vw, 62px); }
  .map-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .planner-section { grid-template-columns: 1fr; }
  .planner-copy { max-width: 720px; }
}

@media (max-width: 820px) {
  .site-header { min-height: 62px; }
  .site-header nav { display: none; }
  .live-pill { margin-left: auto; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding: 72px 24px 64px; }
  .hero-visual { min-height: 500px; }
  .hero-stats { margin-top: 42px; }
  .map-section,
  .guide-section { padding: 76px 16px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .station-search { width: 100%; }
  .map-layout { display: block; }
  .map-stage { min-height: 520px; }
  .station-panel { border-top: 1px solid var(--line); border-left: 0; }
  .station-panel-accent { inset: 0 0 auto; width: auto; height: 5px; }
  .station-actions { grid-template-columns: repeat(3, 1fr); }
  .panel-map-link { grid-column: auto; }
  .planner-section { padding: 78px 18px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-grid article,
  .guide-grid article:first-child { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  footer { align-items: start; flex-direction: column; }
}

@media (max-width: 560px) {
  .brand { font-size: 13px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-mark i { top: 11px; left: -3px; width: 30px; }
  .live-pill { display: none; }
  .hero h1 { font-size: 42px; }
  .hero-lead { font-size: 16px; }
  .hero-stats { justify-content: space-between; gap: 12px; }
  .hero-stats dt { font-size: 25px; }
  .hero-stats dd { font-size: 10px; }
  .hero-visual { min-height: 420px; }
  .hero-station-card { padding: 22px; }
  .hero-station-card strong { font-size: 25px; }
  .route-orbit { height: 13px; }
  .map-section { padding-left: 10px; padding-right: 10px; }
  .section-heading { padding: 0 6px; }
  .section-heading h2,
  .planner-copy h2 { font-size: 35px; }
  .line-tabs { padding-left: 5px; }
  .line-tab { min-height: 44px; padding-right: 12px; font-size: 12px; }
  .line-tab small { display: none; }
  .map-shell { border-radius: 16px; }
  .map-topbar { align-items: flex-start; flex-direction: column; gap: 4px; }
  .map-hint { display: none; }
  .map-stage { min-height: 500px; }
  .map-controls { right: 10px; top: 10px; }
  .map-controls button { width: 38px; height: 38px; }
  .map-legend { left: 10px; bottom: 10px; }
  .station-panel { padding: 27px 20px 22px; }
  .station-actions { grid-template-columns: 1fr 1fr; }
  .panel-map-link { grid-column: 1 / -1; }
  .planner-fields { grid-template-columns: 1fr auto; }
  .planner-fields label:last-child { grid-column: 1 / -1; }
  .swap-button { grid-row: 1; grid-column: 2; }
  .route-summary { gap: 12px; }
  .route-choice { align-items: flex-start; flex-direction: column; gap: 8px; }
  .route-choice-metrics { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .route-choice-copy strong { white-space: normal; }
  .route-segment { align-items: flex-start; flex-wrap: wrap; }
  .route-segment-action { width: 100%; margin-left: 0; text-align: right; }
  .destination-final-leg { grid-template-columns: auto 1fr; }
  .destination-final-leg a { grid-column: 1 / -1; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
