:root {
  --bg: #0a0e1a;
  --bg-2: #0f1424;
  --surface: #131a2c;
  --surface-2: #1a2138;
  --border: #232c4a;
  --border-2: #2c3760;
  --text: #f3f5fb;
  --text-mute: #8a93b0;
  --text-faint: #5b6385;
  --accent: #ffd60a;        /* fare callout yellow */
  --accent-2: #34d399;      /* secondary green */
  --accent-3: #ff5d3b;      /* CTA orange */
  --link: #7dd3fc;
  --link-hover: #38bdf8;
  --shadow: 0 10px 40px -16px rgba(0, 0, 0, 0.6);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Helvetica Neue', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

/* ----- Layout container ----- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ----- Header / nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand-name { background: linear-gradient(180deg, #fff 0%, #d8e0ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav-links a { color: var(--text-mute); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.cta {
  background: var(--accent);
  color: #1a1300;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.nav-links a.cta:hover { background: #ffe14a; }

/* ----- Sticky search bar ----- */
.search-strip {
  position: sticky;
  top: 62px;
  z-index: 40;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.search-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 6px;
  max-width: 720px;
  margin: 0 auto;
}
.search-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 10px 18px;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
}
.search-form input::placeholder { color: var(--text-faint); }
.search-form button {
  background: var(--accent);
  color: #1a1300;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
}
.search-form button:hover { background: #ffe14a; }

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at top right, rgba(52, 211, 153, 0.10), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(255, 214, 10, 0.08), transparent 55%),
    linear-gradient(180deg, #0a0e1a 0%, #0f1424 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 14, 26, 0.96) 0%, rgba(10, 14, 26, 0.55) 60%, rgba(10, 14, 26, 0.85) 100%),
    url('/assets/hero.png') center / cover no-repeat;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; padding: 72px 0 80px; width: 100%; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; background: var(--accent-2); border-radius: 50%; box-shadow: 0 0 12px var(--accent-2); }
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  max-width: 920px;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lede {
  font-size: 1.18rem;
  color: #c9d0e6;
  max-width: 640px;
  margin: 0 0 32px;
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.05s ease;
}
.btn-primary { background: var(--accent); color: #1a1300; }
.btn-primary:hover { background: #ffe14a; text-decoration: none; color: #1a1300; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.btn:active { transform: translateY(1px); }

/* ----- Sections ----- */
section.block { padding: 64px 0; border-top: 1px solid var(--border); }
section.block:first-of-type { border-top: none; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-head p { color: var(--text-mute); margin: 8px 0 0; max-width: 520px; }
.section-head a.more { color: var(--accent-2); font-weight: 600; font-size: 0.95rem; }

/* ----- Card grid ----- */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
  color: var(--text);
}
.card:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-2px); text-decoration: none; color: var(--text); }
.card .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card .label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.card h3 { margin: 0; font-size: 1.1rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.card .meta { color: var(--text-mute); font-size: 0.9rem; display: flex; gap: 14px; flex-wrap: wrap; }
.card .meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ----- Fare pill (yellow/green callout) ----- */
.fare-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: var(--accent);
  color: #1a1300;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.95rem;
}
.fare-pill .from { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.fare-pill.green { background: var(--accent-2); }

/* ----- Stats strip ----- */
.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { text-align: center; }
.stat .num { font-size: 2.2rem; font-weight: 900; letter-spacing: -0.02em; color: var(--accent); }
.stat .label { color: var(--text-mute); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

/* ----- Detail page (route, city, hub, operator, guide) ----- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding: 56px 0; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; gap: 32px; } }
.crumbs { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 16px; }
.crumbs a { color: var(--text-mute); }
.detail h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 14px; font-weight: 800; }
.detail .lede { color: var(--text-mute); font-size: 1.08rem; max-width: 640px; line-height: 1.55; margin: 0 0 28px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 28px 0 36px; }
.fact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.fact .k { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.fact .v { font-size: 1.2rem; font-weight: 800; margin-top: 4px; letter-spacing: -0.01em; }
.fact.fare .v { color: var(--accent); }
.fact.green .v { color: var(--accent-2); }

.prose { font-size: 1.04rem; color: #d6dcef; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 14px; letter-spacing: -0.015em; color: var(--text); font-weight: 800; }
.prose h3 { font-size: 1.18rem; margin: 28px 0 10px; color: var(--text); font-weight: 700; }
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 22px; margin: 0 0 18px; }
.prose ul li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose .pullquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin: 24px 0;
  color: #e6eaf6;
  font-style: italic;
}

/* ----- Schedule table ----- */
.sched-table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.sched-table th, .sched-table td { padding: 12px 16px; text-align: left; font-size: 0.95rem; border-bottom: 1px solid var(--border); }
.sched-table th { background: var(--surface-2); color: var(--text-mute); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.sched-table tr:last-child td { border-bottom: none; }

/* ----- Sidebar ----- */
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.side-card h3 { margin: 0 0 14px; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); }
.side-list { display: flex; flex-direction: column; gap: 10px; }
.side-list a { color: var(--text); font-size: 0.95rem; display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.side-list a:last-child { border-bottom: none; }
.side-list a:hover { color: var(--accent-2); text-decoration: none; }
.side-list .small { font-size: 0.78rem; color: var(--text-faint); }

/* Recommended (PBN) editorial block */
.rec-block { background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 22px; }
.rec-block h3 { margin: 0 0 16px; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-2); }
.rec-block ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.rec-block ul li { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.rec-block ul li:last-child { border-bottom: none; padding-bottom: 0; }
.rec-block .rec-title { color: var(--text); font-weight: 600; font-size: 0.98rem; line-height: 1.35; display: block; }
.rec-block .rec-source { display: block; color: var(--text-faint); font-size: 0.78rem; margin-top: 4px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ----- Inline editorial link styling ----- */
.inline-rec { background: var(--surface); border-left: 3px solid var(--accent-2); padding: 14px 18px; margin: 22px 0; border-radius: var(--radius-sm); color: #cfd5ec; font-size: 0.98rem; }
.inline-rec a { color: var(--accent-2); font-weight: 600; }

/* ----- Footer ----- */
.site-footer { background: #06080f; border-top: 1px solid var(--border); padding: 56px 0 30px; margin-top: 48px; color: var(--text-mute); font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--text); margin: 0 0 14px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--text-mute); }
.footer-grid a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: var(--text-faint); }

/* Tag/badge */
.tag { display: inline-block; font-size: 0.72rem; padding: 3px 8px; border-radius: 4px; background: var(--surface-2); color: var(--text-mute); border: 1px solid var(--border); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* Ad placeholder */
.ad { background: var(--surface); border: 1px dashed var(--border-2); border-radius: var(--radius-sm); padding: 24px; text-align: center; color: var(--text-faint); margin: 24px 0; font-size: 0.85rem; }

/* Dense list (route index) */
.route-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.route-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
}
.route-row:hover { background: var(--surface-2); border-color: var(--border-2); text-decoration: none; color: var(--text); }
.route-row .route-line { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.route-row .route-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--text-mute); font-size: 0.84rem; }

/* Region heading */
.region-heading { color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 800; margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 0.9rem; }
.pagination a:hover { background: var(--surface-2); text-decoration: none; }
.pagination .active { background: var(--accent); color: #1a1300; border-color: var(--accent); }

/* Hub hero */
.hub-hero { background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%); border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 38px; margin-top: 8px; }
.hub-hero .label { color: var(--accent-2); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; }
.hub-hero h1 { margin: 8px 0 12px; }

/* Compact responsive tweaks */
@media (max-width: 600px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.88rem; }
  .nav-links a.cta { display: none; }
  section.block { padding: 44px 0; }
  .detail { padding: 36px 0; }
  .hero-inner { padding: 56px 0; }
  .footer-grid { gap: 24px; }
  .stats-strip .stat .num { font-size: 1.6rem; }
  .search-strip { top: 56px; }
}
