
/* ==========================================================================
    Транспорт63 — Core Stylesheet (Zero-CLS, Mobile First, High Performance)
   ========================================================================== */
:root {
  /* Транспорт63 — «Премиум-индикатор»: графит + бордовый сигнал, тёплая бумага */
  --primary: #1a1c22;
  --primary-hover: #8f1d2c;
  --primary-light: #f1ede4;
  --accent: #8f1d2c;
  --accent-hover: #6f1622;
  --brass: #a8842c;
  --ink-deep: #14161b;
  --text-main: #1a1c22;
  --text-muted: #5d5f66;
  --border: #e3ded2;
  --bg-page: #f5f2ec;
  --bg-card: #fffdf8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(26,28,34,0.05), 0 2px 8px rgba(26,28,34,0.05);
  --shadow-hover: 0 2px 6px rgba(26,28,34,0.07), 0 12px 28px -8px rgba(26,28,34,0.16);
  --font: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Oswald", "Golos Text", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

/* Тонкое зерно поверх фона — уходит «стерильность» вектора */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

a { color: var(--primary); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--primary-hover); text-decoration: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* Типографика контента: заголовки — signage-гротеск */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.25;
  color: var(--text-main);
  text-wrap: balance;
}
h1 { font-size: 34px; letter-spacing: -0.005em; margin: 6px 0 12px; }
h2 { font-size: 24px; margin: 28px 0 12px; }
h3 { font-size: 18px; margin: 20px 0 8px; }
p { text-wrap: pretty; }
time, .timeline-time, .flight-time { font-variant-numeric: tabular-nums; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* Header */
.site-header {
  background: var(--ink-deep);
  border-bottom: 1px solid #262932;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(143,29,44,0.9), 0 6px 18px -10px rgba(20,22,27,0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(180deg, #262a33 0%, #14161b 100%);
  border: 1px solid #333742;
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.brand-text .brand-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: 0.01em;
  display: block;
  text-transform: uppercase;
}

.brand-text p {
  font-size: 10.5px;
  color: #8b8f99;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 18px;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a { color: #c9c5bc; }
.nav-links a:hover { color: #ffffff; text-decoration: none; }

/* Breadcrumbs */
.breadcrumbs {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 6px;
}

.breadcrumbs li+li:before {
  content: "›";
  margin-right: 6px;
  color: #8f8d86;
}

/* Search Bar */
.search-section {
  background:
    radial-gradient(1100px 420px at 50% -140px, rgba(143,29,44,0.35), transparent 62%),
    radial-gradient(700px 300px at 85% 100%, rgba(168,132,44,0.12), transparent 60%),
    linear-gradient(180deg, #1c1f26 0%, #14161b 100%);
  color: #fff;
  padding: 52px 0 44px;
  margin-bottom: 28px;
  border-bottom: 1px solid #2c2f38;
}

.search-box {
  max-width: 920px;
  margin: 0;
  text-align: left;
}

/* Киккер в стиле вылетного табло */
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #e8b93f;
  margin-bottom: 16px;
}

.hero-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.hero-title, .search-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin-bottom: 14px;
  line-height: 1.04;
  text-wrap: balance;
  max-width: 900px;
}

.search-subtitle {
  font-size: 15.5px;
  color: #a8a99f;
  margin-bottom: 26px;
  letter-spacing: 0.01em;
  max-width: 640px;
}

.search-input-wrap {
  position: relative;
  max-width: 720px;
  margin: 0;
}

.search-input {
  width: 100%;
  padding: 18px 20px 18px 52px;
  border-radius: 10px;
  border: 1px solid #3a3e48;
  background: #fffdf8;
  color: var(--text-main);
  font-size: 16px;
  font-family: var(--font);
  outline: none;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.8);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: var(--brass);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.6), 0 0 0 3px rgba(168,132,44,0.25);
}

.search-input::placeholder { color: #9a978d; }

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8f8d86;
  font-size: 18px;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  margin-top: 6px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 50;
  max-height: 380px;
  overflow-y: auto;
  text-align: left;
  display: none;
}

.search-result-item {
  padding: 10px 16px;
  border-bottom: 1px solid #f1ede4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-main);
}

.search-result-item:hover {
  background: #f7f4ec;
  text-decoration: none;
}

.search-result-title {
  font-weight: 600;
  font-size: 14px;
}

.search-result-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* Modes Pills */
.modes-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 20px 0 4px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.mode-pill {
  background: var(--bg-card);
  color: #2c2e35;
  border: 1px solid var(--border);
  padding: 7px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.mode-pill:hover {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  box-shadow: 0 4px 12px -4px rgba(26,28,34,0.4);
  transform: translateY(-1px);
  text-decoration: none;
}

.mode-pill:active { transform: translateY(0) scale(0.98); }

/* Inside hero search section — вывесочные указатели направлений */
.search-section .mode-pill {
  background: rgba(255, 255, 255, 0.06);
  color: #d8d5cd;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  backdrop-filter: blur(4px);
  box-shadow: none;
}

.search-section .mode-pill:hover {
  background: #fffdf8;
  color: var(--primary) !important;
  border-color: #fffdf8;
}

/* Badges: квадратные таблички-указатели маршрутов */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #4a4c53;
  color: #ffffff;
  border: none;
}

.badge-bus { background: #33415c; }
.badge-tram { background: #8c2f2f; }
.badge-trolley { background: #2f5d3a; }
.badge-metro { background: #8a6110; }
.badge-river { background: #3d4785; }
.badge-suburban { background: #23565a; }
.badge-train { background: #7c2d46; }
.badge-plane { background: #26506b; }

/* Grid & Cards */
.main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: 0 1px 2px rgba(26,28,34,0.06), 0 8px 22px -14px rgba(26,28,34,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(26,28,34,0.08), 0 18px 34px -16px rgba(26,28,34,0.3);
}

.card:active { transform: translateY(0); }

/* Feature-карточка: асимметрия сетки (только десктоп) */
@media (min-width: 769px) {
  .card-feature { grid-column: span 2; }
  .card-feature .card-title { font-size: 21px; }
  .card-feature .card-desc { font-size: 14.5px; max-width: 62ch; }
}

/* Заголовок секции с редакционной линейкой */
.section-title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text-main);
  margin: 42px 0 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-title:first-of-type { margin-top: 8px; }

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-title a { color: var(--text-main); }
.card-title a:hover { color: var(--primary-hover); }

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-grow: 1;
  line-height: 1.55;
}

.card-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-hover);
  border-top: 1px solid var(--border);
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.kpi-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--brass));
  opacity: 0.55;
}

.kpi-val {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.kpi-label {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Длинное текстовое значение KPI (режим работы, интервал) — не «кричит» дисплеем */
.kpi-val-text {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  padding-top: 2px;
}

/* Tabs */
.stop-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.stop-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.stop-filter-btn:hover {
  background: var(--bg-body);
  color: var(--text-main);
  border-color: #d9d3c6;
}
.stop-filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.tab-btn:hover { color: var(--text-main); }

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Timeline */
.timeline {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}


/* Competitor-Grade Stop List & Search Bar */
.timeline-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.timeline-heading {
  font-size: 18px;
  font-weight: 700;
  color: #1a1c22;
  margin: 0;
}
.timeline-search-wrap {
  position: relative;
  min-width: 240px;
}
.timeline-search-input {
  width: 100%;
  padding: 8px 14px 8px 34px;
  background: #f7f4ec;
  border: 1px solid #d9d3c6;
  border-radius: 8px;
  font-size: 13px;
  color: #2c2e35;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.timeline-search-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.timeline-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #8f8d86;
  pointer-events: none;
}
.timeline-table-header {
  display: grid;
  grid-template-columns: 44px 90px 1fr 100px;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #f1ede4;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b6d72;
  margin-bottom: 6px;
}
.tl-row {
  display: grid;
  grid-template-columns: 44px 90px 1fr 100px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1ede4;
  transition: background 0.15s;
}
.tl-row:hover {
  background: #f7f4ec;
}
.tl-col-num {
  font-size: 13px;
  font-weight: 700;
  color: #6b6d72;
}
.tl-col-offset {
  display: flex;
  align-items: center;
}
.tl-offset-badge {
  display: inline-block;
  padding: 3px 8px;
  background: #f5efdf;
  color: #0369a1;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.tl-offset-badge.start {
  background: #e3ded2;
  color: #5d5f66;
}
.tl-col-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tl-stop-link {
  font-size: 15px;
  font-weight: 700;
  color: #1a1c22;
  text-decoration: none;
}
.tl-stop-link:hover {
  color: var(--primary);
  text-decoration: underline;
}
.tl-col-time {
  text-align: right;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}
@media (max-width: 640px) {
  .timeline-table-header {
    display: none;
  }
  .tl-row {
    grid-template-columns: 36px 1fr auto;
    gap: 8px;
    padding: 10px 8px;
  }
  .tl-col-offset {
    display: none;
  }
}

.timeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1ede4;
  gap: 12px;
}

.timeline-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
}

.timeline-order {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.timeline-info {
  flex-grow: 1;
}

.timeline-stop-link {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
  text-decoration: none;
}

.timeline-stop-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.timeline-street {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.timeline-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  min-width: 80px;
}

.timeline-est {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

.timeline-offset {
  font-size: 11px;
  color: var(--text-muted);
  background: #f1ede4;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
  font-weight: 600;
}

/* Flight Board Styles */
.flight-card {
  background:
    radial-gradient(600px 240px at 85% -80px, rgba(143,29,44,0.3), transparent 60%),
    linear-gradient(160deg, #22252d 0%, #14161b 100%);
  color: #fff;
  border: 1px solid #2c2f38;
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: 0 14px 34px -14px rgba(20,22,27,0.55);
}

.flight-route-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.flight-point {
  flex: 1;
}

.flight-point-dest {
  text-align: right;
}

.flight-city {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.flight-airport {
  font-size: 13px;
  color: #a8a99f;
  margin-top: 4px;
}

.flight-time {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  color: #e8b93f;
  font-variant-numeric: tabular-nums;
  margin-top: 8px;
  line-height: 1.1;
}

.flight-meta {
  font-size: 12px;
  color: #9a9c94;
  margin-top: 4px;
}

.flight-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 0 16px;
}

.flight-duration {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #a8a99f;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.flight-line {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.22);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flight-plane-icon {
  background: #14161b;
  padding: 0 10px;
  font-size: 18px;
}

.flight-carrier {
  font-size: 13px;
  font-weight: 600;
  color: #e8b93f;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .flight-route-box {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .flight-point-dest {
    text-align: center;
  }
}

/* Timetable */
.timetable-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

.timetable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.timetable th {
  background: var(--ink-deep);
  color: #e8e5dd;
  text-align: left;
  padding: 11px 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent);
}

.timetable td {
  padding: 9px 14px;
  border-bottom: 1px solid #ece7db;
}

.timetable tr:nth-child(even) { background: #faf7f0; }
.timetable tr:hover { background: #f3efe4; }

/* Letter Group for Stations */
.letter-section {
  margin-bottom: 24px;
}

.letter-heading {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--border);
  padding-bottom: 4px;
  margin-bottom: 12px;
}

.stations-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
}

.station-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.station-item:hover {
  background: var(--primary-light);
  border-color: #cfc8b8;
  transform: translateX(2px);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #101217;
  color: #9a9c94;
  padding: 36px 0 20px;
  font-size: 13px;
  border-top: 2px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.footer-col h4 {
  color: #f0ede5;
  font-family: var(--font-display);
  font-size: 13px;
  margin-bottom: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: #9a9c94; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #23252c;
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
}

.footer-legal-links {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #23252c;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #9a9c94;
}

.footer-legal-links a {
  color: #9a9c94;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-legal-links a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .nav-links {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding-bottom: 6px;
    gap: 16px;
  }
  .search-title, .hero-title { font-size: 30px; line-height: 1.08; }
  .hero-kicker { letter-spacing: 0.18em; }
  .main-grid { grid-template-columns: 1fr; }
}


/* Direction Comparison & Horizontal Trip Cards */
.direction-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0 32px;
}
.direction-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 20px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.direction-card:hover {
  border-color: #d9d3c6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.dir-time-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dir-time-dep {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.dir-time-arr {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.dir-info-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dir-train-title {
  font-size: 16px;
  font-weight: 700;
  color: #2c2e35;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dir-train-title a {
  color: #2c2e35;
  text-decoration: none;
}
.dir-train-title a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.dir-meta-row {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.dir-action-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 140px;
}
.btn-direction-trip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: #f1ede4;
  color: #2c2e35;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn-direction-trip:hover {
  background: #e3ded2;
}
.btn-direction-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn-direction-buy:hover {
  background: var(--accent-hover);
}
.direction-banner {
  background: #f7f4ec;
  border: 1px solid #d9d3c6;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 768px) {
  .direction-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .dir-action-col {
    flex-direction: row;
    width: 100%;
  }
  .btn-direction-trip, .btn-direction-buy {
    flex: 1;
    text-align: center;
  }
  .direction-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Metro Master Hub Scheme & Badges */
.metro-scheme-container {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}
.metro-scheme-node {
  display: flex;
  gap: 18px;
  position: relative;
}
.metro-track-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
}
.metro-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 4px solid #8c2f2f;
  background: #ffffff;
  z-index: 2;
  flex-shrink: 0;
}
.metro-dot-active {
  border-color: #8c2f2f;
  background: #ffffff;
}
.metro-dot-building {
  border-color: #2f5d3a;
  border-style: dashed;
  background: #ebf1ec;
}
.metro-track-line {
  width: 6px;
  background: #8c2f2f;
  flex-grow: 1;
  min-height: 48px;
  margin: -2px 0;
}
.node-building .metro-track-line {
  background: repeating-linear-gradient(to bottom, #2f5d3a 0, #2f5d3a 6px, transparent 6px, transparent 12px);
}
.metro-node-info {
  padding-bottom: 24px;
  flex-grow: 1;
}
.metro-node-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.metro-st-name {
  font-size: 17px;
  font-weight: 800;
  color: #2c2e35;
}
.metro-time-badge {
  font-size: 11px;
  font-weight: 700;
  background: #f6ecec;
  color: #8c2f2f;
  padding: 2px 8px;
  border-radius: 12px;
}
.metro-opened-year {
  font-size: 12px;
  color: var(--text-muted);
}
.metro-node-location {
  font-size: 13px;
  color: #4a4c53;
  margin-bottom: 4px;
}
.metro-node-landmarks {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.metro-node-transfers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tf-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tf-train { background: #f4ebef; color: #7c2d46; border: 1px solid #e8dbe3; }
.tf-tram { background: #f6ecec; color: #8c2f2f; border: 1px solid #e6d3d3; }
.tf-trolley { background: #ebf1ec; color: #2f5d3a; border: 1px solid #cddbd0; }
.tf-bus { background: #f7f4ec; color: #5d5f66; border: 1px solid #d9d3c6; }
.tf-metro { background: #f5efe2; color: #8a6110; border: 1px solid #e6dcc3; }

/* FAQ Accordion Component (Schema.org FAQPage) */
.faq-section {
  margin: 40px 0;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover {
  border-color: #d9d3c6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.faq-item[open] {
  border-color: var(--brass);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.06);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #2c2e35;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  font-weight: 600;
  color: var(--primary);
  margin-left: 12px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-question::after {
  content: "−";
  color: #8c2f2f;
}
.faq-answer {
  padding: 0 20px 18px 20px;
  font-size: 14px;
  line-height: 1.65;
  color: #4a4c53;
  border-top: 1px solid #f1ede4;
  padding-top: 14px;
}
.faq-answer p {
  margin: 0 0 10px 0;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}
.faq-answer ul {
  margin: 6px 0 10px 0;
  padding-left: 20px;
}
.faq-answer li {
  margin-bottom: 4px;
}
@media (max-width: 768px) {
  .faq-question {
    padding: 14px 16px;
    font-size: 15px;
  }
  .faq-answer {
    padding: 0 16px 16px 16px;
    padding-top: 12px;
  }
}

/* Hourly Schedule Grid (Competitor-Grade UI) */
.schedule-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.schedule-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.schedule-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}
.sch-nav {
  display: flex;
  gap: 6px;
}
.sch-tab-btn {
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.sch-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.schedule-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding: 8px 12px;
  background: var(--bg-page);
  border-radius: 6px;
}
.summary-sep { color: var(--border); }
.hourly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.hourly-cell {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s ease;
}
.hourly-cell:hover {
  border-color: #d9d3c6;
}
.hour-tag {
  font-weight: 800;
  font-size: 15px;
  color: var(--primary);
  min-width: 24px;
  border-right: 1px solid var(--border);
  padding-right: 6px;
  line-height: 1;
}
.minutes-box {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.min-pill {
  font-size: 13px;
  font-weight: 700;
  color: #2c2e35;
  background: #fff;
  border: 1px solid #d9d3c6;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.3;
  outline: none;
}
.min-pill:hover {
  background: #f1ede4;
  border-color: #8f8d86;
  transform: translateY(-1px);
}
.min-pill.active {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 2px 5px rgba(30, 58, 138, 0.3);
}
.min-pill.nearest {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
}
.nearest-trip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ebf1ec;
  border: 1px solid #86efac;
  color: #2f5d3a;
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
}
.nearest-dot {
  color: #16a34a;
  font-size: 11px;
}
.timeline-trip-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: #f7f4ec;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 13px;
}
.timeline-trip-indicator strong {
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
}
.timeline-trip-hint {
  color: var(--text-muted);
  font-size: 12px;
}
.schedule-single-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow);
}
.schedule-single-time {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.schedule-single-info .schedule-single-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}
.schedule-single-info .schedule-single-days {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.hub-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .kpi-val { font-size: 28px; }
  .kpi-val-text { font-size: 13.5px; }
  .route-info-card { display: none; }
  .hourly-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .schedule-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
