/* Programatik transit SEO — Inter (self-hosted /css/fonts-inter.css) */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f3f5f7;
  --bg-glow-1: rgba(15, 118, 110, 0.10);
  --bg-glow-2: rgba(135, 0, 252, 0.08);
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --border: rgba(15, 27, 45, 0.09);
  --text: #0c1222;
  --text-muted: #5a6578;
  --primary: #8700fc;
  --primary-hover: #7200d6;
  --primary-grad: linear-gradient(135deg, #6d28d9 0%, #8700fc 55%, #a855f7 100%);
  --primary-weak: rgba(135, 0, 252, 0.10);
  --live: #0d9488;
  --live-hover: #0a5f56;
  --live-weak: rgba(13, 148, 136, 0.12);
  --success: #16a34a;
  --success-weak: rgba(22, 163, 74, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 8px 28px rgba(15, 27, 45, 0.06);
  --nav-height: 68px;
  --container: min(960px, calc(100% - 32px));
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --route-color: var(--primary);
}

html {
  scroll-behavior: smooth;
}

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

body.seo-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(900px 420px at 8% -10%, var(--bg-glow-1), transparent 55%),
    radial-gradient(720px 380px at 92% 0%, var(--bg-glow-2), transparent 50%),
    var(--bg);
  line-height: 1.55;
}

.seo-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface-solid);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.seo-skip:focus {
  left: 1rem;
  top: 1rem;
}

.seo-container {
  width: var(--container);
  margin-inline: auto;
}

.seo-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-height);
  backdrop-filter: blur(16px) saturate(1.3);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}

.seo-nav__inner {
  width: var(--container);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.seo-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

.seo-nav__logo {
  border-radius: 10px;
}

.seo-nav__links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.92rem;
}

.seo-nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.seo-nav__links a:hover {
  color: var(--primary);
}

.seo-nav__cta {
  padding: 0.45rem 0.9rem !important;
  border-radius: 999px;
  background: var(--primary-grad);
  color: #fff !important;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--primary) 28%, transparent);
}

.seo-main {
  padding: 1.25rem 0 4rem;
}

.seo-bc {
  margin: 0 0 1.25rem;
}

.seo-bc__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.seo-bc__item:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  opacity: 0.45;
}

.seo-bc a {
  color: var(--text-muted);
  text-decoration: none;
}
.seo-bc a:hover {
  color: var(--primary);
}

.seo-hero {
  padding: 1.5rem 0 1.75rem;
  animation: seo-rise 0.55s ease both;
}

.seo-hero--line {
  border-left: 4px solid var(--route-color);
  padding-left: 1.15rem;
}

@keyframes seo-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.seo-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--live-hover);
}

.seo-h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.seo-h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.seo-lead {
  margin: 0 0 1.25rem;
  max-width: 42rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.seo-muted {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.seo-line-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  padding: 0.4rem 0.85rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: var(--shadow);
}

.seo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.seo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.seo-btn:hover {
  transform: translateY(-1px);
}

.seo-btn--primary {
  background: var(--primary-grad);
  color: #fff;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--primary) 28%, transparent);
}

.seo-btn--live {
  background: var(--live-weak);
  color: var(--live-hover);
  border-color: color-mix(in srgb, var(--live) 28%, transparent);
}

.seo-btn--ghost {
  background: var(--surface-solid);
  color: var(--text);
  border-color: var(--border);
}

.seo-panel {
  margin-top: 1.75rem;
  padding: 1.35rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: seo-rise 0.65s ease both;
  animation-delay: 0.08s;
}

.seo-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.seo-route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.65rem;
}

.seo-route-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-solid);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.seo-route-card:hover {
  border-color: color-mix(in srgb, var(--card-color, var(--primary)) 40%, var(--border));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--card-color, var(--primary)) 12%, transparent);
}

.seo-route-card__code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--card-color, var(--primary));
}

.seo-route-card__name {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seo-dir {
  margin-bottom: 1.5rem;
}
.seo-dir:last-child {
  margin-bottom: 0;
}

.seo-dir__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.seo-dir__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

.seo-dir__meta {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.seo-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 420px;
  overflow: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-solid);
}

.seo-timeline__item {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.seo-timeline__item:last-child {
  border-bottom: 0;
}

.seo-timeline__seq {
  font-weight: 700;
  color: var(--route-color, var(--primary));
  font-variant-numeric: tabular-nums;
}

.seo-timeline a {
  color: inherit;
  text-decoration: none;
}
.seo-timeline a:hover {
  color: var(--primary);
}

.seo-day {
  margin-bottom: 1.35rem;
}
.seo-day:last-child {
  margin-bottom: 0;
}

.seo-day__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.seo-day__title {
  margin: 0;
  font-weight: 800;
  font-family: var(--font-display);
}

.seo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.seo-chip {
  display: inline-flex;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  background: var(--primary-weak);
  color: var(--primary-hover);
  font-weight: 700;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, transparent);
}

.seo-chip--edge {
  background: var(--live-weak);
  color: var(--live-hover);
  border-color: color-mix(in srgb, var(--live) 28%, transparent);
}

.seo-badge-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.seo-line-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--pill-fg, #fff);
  background: var(--pill-bg, var(--primary));
  box-shadow: var(--shadow);
}

.seo-summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.seo-stat {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  border: 1px solid var(--border);
}

.seo-stat__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.seo-stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

.seo-verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--success-weak);
  border: 1px solid color-mix(in srgb, var(--success) 28%, transparent);
}

.seo-verdict__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--success);
}

.seo-verdict__text {
  font-weight: 600;
}

.seo-faq details {
  border-top: 1px solid var(--border);
  padding: 0.75rem 0;
}
.seo-faq details:first-of-type {
  border-top: 0;
}
.seo-faq summary {
  cursor: pointer;
  font-weight: 700;
}
.seo-faq details p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
}

.seo-membership {
  display: grid;
  gap: 0.85rem;
}

.seo-membership__card {
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-solid);
}

.seo-membership__card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-family: var(--font-display);
}

.seo-membership__card p {
  margin: 0.25rem 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.seo-nearby {
  list-style: none;
  margin: 0;
  padding: 0;
}

.seo-nearby__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.seo-nearby__item:last-child {
  border-bottom: 0;
}

.seo-nearby__item a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.seo-nearby__item a:hover {
  color: var(--primary);
}

.seo-nearby__dist {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.seo-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.seo-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.seo-footer__brand {
  margin: 0;
}

.seo-footer__links {
  display: flex;
  gap: 1rem;
}
.seo-footer__links a {
  color: var(--text-muted);
  text-decoration: none;
}
.seo-footer__links a:hover {
  color: var(--primary);
}

.seo-empty {
  padding: 1rem;
  color: var(--text-muted);
}

/* ─── Embedded SEO map ─── */
.seo-map {
  margin: 1.25rem 0 1.75rem;
}

.seo-map__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.seo-map__head .seo-h2 {
  margin: 0;
}

.seo-map__open {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--live);
  text-decoration: none;
}

.seo-map__open:hover {
  text-decoration: underline;
}

.seo-map__dirs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.seo-map__dir {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.seo-map__dir.is-active {
  border-color: var(--route-color, var(--primary));
  background: var(--primary-weak);
  color: var(--primary);
}

.seo-map__frame {
  width: 100%;
  min-height: 300px;
  height: clamp(280px, 42vw, 380px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #e8eef3;
  z-index: 0;
}

.seo-map__frame .leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
}

@media (max-width: 640px) {
  .seo-nav__links a:not(.seo-nav__cta) {
    display: none;
  }
  .seo-panel {
    padding: 1.1rem;
  }
  .seo-map__frame {
    min-height: 260px;
    height: 300px;
    border-radius: var(--radius-sm);
  }
}
