/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --blue-50:     #eff6ff;
  --blue-100:    #dbeafe;
  --blue-400:    #60a5fa;
  --blue-500:    #3b82f6;
  --gray-900:    #111827;
  --gray-700:    #374151;
  --gray-600:    #4b5563;
  --gray-500:    #6b7280;
  --gray-400:    #9ca3af;
  --gray-300:    #d1d5db;
  --gray-200:    #e5e7eb;
  --gray-100:    #f3f4f6;
  --gray-50:     #f9fafb;
  --gray-800:    #1f2937;
  --gray-950:    #030712;
  --white:       #ffffff;
  --border:      #e5e7eb;
  --border-dark: #334155;
  --radius:      0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow:      0 4px 12px rgba(0,0,0,.12);
  --shadow-lg:   0 20px 40px rgba(0,0,0,.18);
  --shadow-2xl:  0 25px 50px rgba(0,0,0,.25);
  --hdr:         4rem;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  color: var(--gray-900); background: var(--white); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Utilities ───────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1100;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--border);
  height: var(--hdr);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 1rem;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.25rem; font-weight: 700; color: var(--gray-900);
  white-space: nowrap; flex-shrink: 0; letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; color: var(--gray-900); }
.logo-pin-icon { width: 1.25rem; height: 1.25rem; color: var(--blue-500); flex-shrink: 0; }

/* Desktop nav */
.site-nav { display: flex; align-items: center; gap: 0.125rem; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.5rem 0.75rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; color: var(--gray-900);
  background: transparent; border: none; cursor: pointer;
  transition: background 0.15s; white-space: nowrap; text-decoration: none;
}
.nav-link { display: inline-flex; }
.nav-dropdown-btn { display: inline-flex; }
.nav-btn:hover,
a.nav-btn:hover { background: var(--gray-100); text-decoration: none; color: var(--gray-900); }
.nav-chevron { width: 1rem; height: 1rem; transition: transform 0.2s; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 0.25rem); left: 0;
  min-width: 12rem; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 0.25rem;
  z-index: 1200; display: none;
}
.nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-item {
  display: block; padding: 0.5rem 0.75rem;
  font-size: 0.875rem; color: var(--gray-900);
  border-radius: var(--radius); transition: background 0.1s;
}
.dropdown-item:hover { background: var(--gray-100); text-decoration: none; color: var(--gray-900); }

/* Mobile nav button */
.mobile-nav-btn {
  display: none; padding: 0.4rem; background: transparent;
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; color: var(--gray-900); align-items: center;
  justify-content: center; flex-shrink: 0;
}
.hamburger-icon, .close-icon { width: 1.25rem; height: 1.25rem; }

/* Mobile nav drawer */
.mobile-nav-drawer {
  background: var(--white); border-top: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.mobile-nav-inner {
  display: flex; flex-direction: column; gap: 0.125rem;
  padding: 1rem 1.25rem 1.25rem;
}
.mobile-nav-logo { margin-bottom: 1rem; font-size: 1.125rem; }
.mobile-nav-section {
  padding: 0.5rem 0.75rem; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gray-500); margin-top: 0.5rem;
}
.mobile-nav-link {
  display: block; padding: 0.5rem 0.75rem;
  font-size: 0.9375rem; color: var(--gray-900);
  border-radius: var(--radius); transition: background 0.1s;
}
.mobile-nav-link:hover { background: var(--gray-100); text-decoration: none; color: var(--gray-900); }

@media (max-width: 767px) {
  .site-nav { display: none; }
  .mobile-nav-btn { display: flex; }
}

/* ── Suggestions dropdown ─────────────────────────────────────────────────── */
.suggestions {
  position: absolute; top: calc(100% + 2px); left: 0; right: 0; z-index: 2000;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  list-style: none; max-height: 200px; overflow-y: auto;
  box-shadow: var(--shadow); font-size: 0.875rem; color: var(--gray-900);
}
.suggestions:empty { display: none; }
.suggestions li { padding: 0.55rem 0.9rem; cursor: pointer; }
.suggestions li:hover, .suggestions li.active { background: var(--gray-100); }
.sug-country { color: var(--gray-500); font-size: 0.78rem; margin-left: 0.35rem; }

/* ── Home hero ───────────────────────────────────────────────────────────── */
.home-hero {
  position: relative;
  height: calc(100vh - var(--hdr));
  overflow: hidden;
}
.home-hero-map {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.home-hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(0,0,0,.25) 0%,
    transparent 40%,
    rgba(0,0,0,.35) 100%
  );
}
.home-hero-center {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 1rem;
  pointer-events: none;
}
.home-hero-card-wrap { width: 100%; max-width: 36rem; pointer-events: auto; }
.home-hero-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 1.5rem;
}
@media (min-width: 768px) { .home-hero-card { padding: 2rem; } }

.hero-card-title-row {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem;
}
.hero-card-pin { width: 1.25rem; height: 1.25rem; color: var(--blue-500); flex-shrink: 0; }
.home-hero-card h1 {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 700; line-height: 1.25; letter-spacing: -0.02em;
}
.hero-card-sub {
  font-size: 0.875rem; color: var(--gray-500);
  margin-bottom: 1.25rem; margin-left: 1.75rem;
}

/* Distance form (home) */
.distance-form { width: 100%; }
.form-row {
  display: flex; gap: 0.5rem; align-items: flex-end;
  flex-wrap: wrap; margin-bottom: 0.75rem;
}
.autocomplete-wrap { flex: 1; position: relative; min-width: 130px; }
.autocomplete-wrap label {
  display: block; font-size: 0.75rem; font-weight: 700;
  color: var(--gray-500); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 0.3rem;
}
.autocomplete-wrap input {
  width: 100%; padding: 0.625rem 0.875rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 1rem; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--white); color: var(--gray-900);
}
.autocomplete-wrap input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.autocomplete-wrap input::placeholder { color: var(--gray-400); }
.swap-btn {
  padding: 0.625rem 0.75rem; background: var(--gray-100);
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; flex-shrink: 0; transition: background 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.swap-btn svg { width: 1rem; height: 1rem; color: var(--gray-500); }
.swap-btn:hover { background: var(--border); }
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.75rem 1rem;
  background: var(--blue); color: var(--white);
  border: none; border-radius: var(--radius);
  font-size: 0.9375rem; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.btn-primary-icon { display: flex; }

/* Quick-link pills */
.hero-quick-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1rem;
}
.quick-pill {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.75rem; font-weight: 500;
  padding: 0.375rem 0.75rem; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
  color: var(--gray-900); transition: background 0.15s;
}
.quick-pill:hover { background: var(--white); text-decoration: none; color: var(--gray-900); }
.quick-arrow { opacity: 0.5; }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 1000; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  color: rgba(255,255,255,.7);
}
.hero-scroll-hint span { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.hero-scroll-chevron { width: 1rem; height: 1rem; animation: bounce 1.5s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ── Home sections ───────────────────────────────────────────────────────── */
.home-section { padding: 3.5rem 0; }
.home-section-muted { background: var(--gray-50); }
.section-title {
  font-size: 1.5rem; font-weight: 700;
  text-align: center; margin-bottom: 0.25rem; color: var(--gray-900);
}
.section-sub {
  color: var(--gray-500); text-align: center;
  font-size: 0.875rem; margin-bottom: 2rem;
}

/* ── Route cards (image/gradient style) ──────────────────────────────────── */
.route-cards-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
}
@media (min-width: 640px) { .route-cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .route-cards-grid { grid-template-columns: repeat(4, 1fr); } }

.route-card-img {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); height: 7rem;
  display: block; box-shadow: 0 1px 3px rgba(0,0,0,.12);
  transition: box-shadow 0.2s, transform 0.2s;
}
.route-card-img:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.2); transform: translateY(-1px); text-decoration: none;
}
.route-card-flag {
  position: absolute; top: 0.5rem; right: 0.5rem; z-index: 2;
  border-radius: 2px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.route-card-flag img { display: block; }
.route-card-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.5s;
}
.route-card-img:hover .route-card-photo { transform: scale(1.05); }
.route-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.1) 100%);
  transition: opacity 0.2s;
}
.route-card-img:hover .route-card-overlay { opacity: 0.85; }
.route-card-body {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 0.625rem;
}
.route-card-from {
  color: var(--white); font-weight: 600; font-size: 0.75rem;
  line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.route-card-to-row {
  display: flex; align-items: center; gap: 0.25rem;
  color: rgba(255,255,255,.8); margin-top: 0.125rem;
}
.route-card-arrow-icon { width: 0.625rem; height: 0.625rem; flex-shrink: 0; }
.route-card-to { font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Feature cards (icon + text) ─────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.75rem;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  display: flex; gap: 1rem; align-items: flex-start;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem; background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.feature-card:hover { border-color: var(--blue-400); box-shadow: var(--shadow-sm); text-decoration: none; }
.feature-icon-wrap {
  padding: 0.5rem; background: var(--blue-50);
  border-radius: var(--radius); flex-shrink: 0; transition: background 0.15s;
}
.feature-icon-wrap svg { width: 1.25rem; height: 1.25rem; color: var(--blue-500); display: block; }
.feature-card:hover .feature-icon-wrap { background: var(--blue-100); }
.feature-text h3 {
  font-weight: 600; font-size: 0.875rem; margin-bottom: 0.25rem;
  color: var(--gray-900); transition: color 0.15s;
}
.feature-card:hover .feature-text h3 { color: var(--blue); }
.feature-text p { font-size: 0.75rem; color: var(--gray-500); line-height: 1.625; }

/* ── Browse by region ────────────────────────────────────────────────────── */
.continents-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
@media (min-width: 640px) { .continents-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .continents-grid { grid-template-columns: repeat(6, 1fr); } }

.continent-title {
  display: flex; align-items: center; gap: 0.375rem;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gray-500); margin-bottom: 0.75rem;
}
.continent-pin { width: 0.75rem; height: 0.75rem; flex-shrink: 0; }
.continent-col ul { list-style: none; }
.continent-col li + li { margin-top: 0.375rem; }
.continent-col a { font-size: 0.875rem; color: var(--gray-900); }
.continent-col a:hover { color: var(--blue); text-decoration: none; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--gray-950); color: var(--gray-300); margin-top: 4rem; }
.footer-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; padding: 3rem 0;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-col h3 { font-weight: 600; color: var(--white); margin-bottom: 0.75rem; font-size: 0.875rem; }
.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 0.5rem; }
.footer-col a { font-size: 0.875rem; color: var(--gray-300); transition: color 0.15s; }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom-bar { border-top: 1px solid var(--gray-800); }
.footer-bottom-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; padding: 1rem 0; font-size: 0.875rem; color: var(--gray-400);
}
@media (min-width: 640px) {
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; }
}
.footer-bottom-logo { display: flex; align-items: center; gap: 0.5rem; }
.footer-bottom-logo .logo-pin-icon { width: 1rem; height: 1rem; }
.footer-bottom-links { display: flex; align-items: center; gap: 1rem; }
.footer-bottom-links a { color: var(--gray-400); transition: color 0.15s; }
.footer-bottom-links a:hover { color: var(--white); text-decoration: none; }
.footer-powered { color: var(--gray-600); }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; padding: 0.15rem 0.55rem;
  border-radius: 9999px; font-size: 0.78rem; font-weight: 600; white-space: nowrap;
}
.badge-primary { background: var(--blue); color: var(--white); }
.badge-outline { background: transparent; border: 1px solid var(--border); color: var(--gray-900); }

/* ── Pair page ───────────────────────────────────────────────────────────── */
.pair-page { overflow: hidden; }
.pair-main { display: block; }
.pair-layout { display: flex; flex-direction: column; }

.pair-map-wrap { position: relative; height: 280px; flex-shrink: 0; }
.pair-map-wrap #map { height: 100%; width: 100%; }

.pair-sidebar {
  display: flex; flex-direction: column;
  background: var(--white); border-top: 1px solid var(--border); max-height: none;
}
.sidebar-head {
  padding: 0.85rem 1rem; border-bottom: 1px solid var(--border);
  background: var(--white); position: sticky; top: var(--hdr); z-index: 10;
}
.sidebar-title-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.sidebar-title { font-size: 0.9rem; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-title a { color: var(--gray-900); }
.sidebar-title a:hover { color: var(--blue); }
.sidebar-arrow { color: var(--gray-500); font-weight: 400; }
.reverse-btn { padding: 0.2rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.8rem; color: var(--gray-500); flex-shrink: 0; }
.reverse-btn:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.sidebar-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.sidebar-scroll { overflow-y: auto; flex: 1; padding: 0.75rem; }

@media (min-width: 768px) {
  .pair-main { position: fixed; inset: 0; top: var(--hdr); overflow: hidden; }
  .pair-layout { flex-direction: row; height: 100%; }
  .pair-map-wrap { flex: 1; height: 100%; min-width: 0; }
  .pair-sidebar {
    width: 380px; flex-shrink: 0; height: 100%; overflow: hidden;
    border-top: none; border-left: 1px solid var(--border);
    box-shadow: -4px 0 20px rgba(0,0,0,.08);
  }
  .sidebar-scroll { overflow-y: auto; flex: 1; }
  .sidebar-head { top: 0; }
}

/* Map overlay search (desktop on pair page) */
.map-overlay {
  position: absolute; top: 1rem; left: 1rem; z-index: 500;
  background: rgba(15,23,42,.92); border-radius: var(--radius-lg);
  padding: 0.75rem; backdrop-filter: blur(8px); display: none;
}
.map-overlay form { display: flex; align-items: center; gap: 0.5rem; }
.hdr-field { position: relative; flex: 1; }
.hdr-field input {
  width: 100%; padding: 0.4rem 0.75rem; background: #1e293b; color: #fff;
  border: 1px solid var(--border-dark); border-radius: var(--radius);
  font-size: 0.85rem; outline: none; transition: border-color 0.15s;
}
.hdr-field input::placeholder { color: #94a3b8; }
.hdr-field input:focus { border-color: var(--blue); }
.map-overlay .hdr-field input { width: 160px; }
.hdr-sep { color: #475569; font-size: 0.9rem; flex-shrink: 0; }
.hdr-go {
  padding: 0.4rem 0.9rem; background: var(--blue); color: var(--white);
  border: none; border-radius: var(--radius); cursor: pointer;
  font-size: 0.85rem; font-weight: 600; transition: background 0.15s; white-space: nowrap;
}
.hdr-go:hover { background: var(--blue-dark); }
.overlay-swap {
  padding: 0.35rem 0.5rem; background: #1e293b; color: #fff;
  border: 1px solid var(--border-dark); border-radius: var(--radius);
  cursor: pointer; font-size: 0.9rem;
}
.overlay-swap:hover { background: var(--border-dark); }
@media (min-width: 768px) { .map-overlay { display: block; } }

/* ── Cards (sidebar detail) ──────────────────────────────────────────────── */
.card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 0.5rem; }
.card-head {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.65rem 0.85rem;
  background: var(--gray-50); border-bottom: 1px solid var(--border); font-size: 0.8rem;
}
.card-label { font-weight: 600; color: var(--gray-900); }
.card-body { padding: 0.85rem; }
.card-sub { font-size: 0.78rem; color: var(--gray-500); margin-top: 0.5rem; }

.stat-row { display: flex; gap: 1.5rem; margin-bottom: 0.25rem; }
.stat { display: flex; align-items: baseline; gap: 0.3rem; }
.stat-val { font-size: 1.6rem; font-weight: 800; color: var(--gray-900); }
.stat-unit { font-size: 0.8rem; color: var(--gray-500); }

.city-banner {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem;
  border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}
.banner-city { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0; }
.banner-city:hover { text-decoration: none; }
.banner-city img { border-radius: 2px; object-fit: cover; flex-shrink: 0; }
.banner-name { font-weight: 700; font-size: 0.9rem; color: var(--gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner-country { font-size: 0.75rem; color: var(--gray-500); }
.banner-city--right { justify-content: flex-end; text-align: right; }
.banner-city--right > div { text-align: right; }
.banner-mid { text-align: center; flex-shrink: 0; padding: 0 0.5rem; }
.banner-km { font-size: 1.1rem; font-weight: 800; color: var(--blue); }
.banner-mi { font-size: 0.75rem; color: var(--gray-500); }
.banner-dir { font-size: 0.8rem; color: var(--gray-500); font-weight: 600; }

.travel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.travel-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
.ti-icon { font-size: 1rem; }
.ti-mode { color: var(--gray-500); flex: 1; }
.ti-time { font-weight: 600; color: var(--gray-900); }

.tz-row { display: flex; align-items: center; gap: 0.5rem; }
.tz-item { flex: 1; }
.tz-right { text-align: right; }
.tz-city { font-size: 0.8rem; font-weight: 600; }
.tz-offset { font-size: 1rem; font-weight: 700; color: var(--blue); }
.tz-time { font-size: 0.78rem; color: var(--gray-500); }
.tz-mid { flex-shrink: 0; text-align: center; }

.co2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.co2-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
.co2-mode { color: var(--gray-500); flex: 1; }
.co2-val { font-weight: 700; color: var(--gray-900); }

.faq-list { padding: 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 0.6rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item summary { font-size: 0.85rem; font-weight: 600; cursor: pointer; list-style: none; padding-right: 1rem; position: relative; color: var(--gray-900); }
.faq-item summary::after { content: '+'; position: absolute; right: 0; color: var(--gray-500); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { font-size: 0.825rem; color: var(--gray-500); margin-top: 0.4rem; line-height: 1.5; }

.nearby-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip { padding: 0.3rem 0.7rem; border: 1px solid var(--border); border-radius: 9999px; font-size: 0.8rem; color: var(--gray-900); }
.chip:hover { border-color: var(--blue); text-decoration: none; }
.chip-cc { color: var(--gray-500); margin-left: 0.3rem; font-size: 0.7rem; }

.sidebar-back { padding: 0.75rem 0; text-align: center; font-size: 0.8rem; color: var(--gray-500); }
.sidebar-back a { color: var(--gray-500); }
.sidebar-back a:hover { color: var(--blue); }
.sep-dot { margin: 0 0.35rem; }

.lf-marker { background: transparent; border: none; }
.lf-pin { width: 14px; height: 14px; background: var(--blue); border: 2.5px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--blue); }

/* ── City hub page ────────────────────────────────────────────────────────── */
.hub-layout { padding: 2rem 0 4rem; }
.hub-top { display: flex; gap: 2rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: 2rem; }
.hub-info { flex: 1; min-width: 250px; }
.hub-info h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-bottom: 0.75rem; }
.hub-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; color: var(--gray-500); font-size: 0.9rem; }
.hub-search-box { flex: 1; min-width: 240px; background: var(--gray-50); padding: 1.25rem; border-radius: var(--radius); }
.hub-search-label { font-weight: 600; margin-bottom: 0.5rem; }
.hub-search-box .autocomplete-wrap input { width: 100%; padding: 0.65rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; }
.hub-map-wrap { height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 2rem; }
.hub-map-wrap #map { height: 100%; }
.hub-section { margin-top: 2rem; }
.hub-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.nearby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.75rem; }
.nearby-card { padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; color: var(--gray-900); }
.nearby-card:hover { border-color: var(--blue); text-decoration: none; }
.nearby-name { font-weight: 700; font-size: 0.9rem; }
.nearby-country { font-size: 0.78rem; color: var(--gray-500); }
.nearby-dist { margin-top: auto; padding-top: 0.4rem; font-size: 0.85rem; color: var(--blue); font-weight: 700; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--gray-900); font-weight: 600; }

/* ── Error page ──────────────────────────────────────────────────────────── */
.error-page { padding: 5rem 0; text-align: center; }
.error-code { font-size: 6rem; font-weight: 900; color: var(--border); line-height: 1; margin-bottom: 1rem; }
.error-page h1 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.error-page p { color: var(--gray-500); margin-bottom: 1.5rem; }

/* ── Responsive tweaks ───────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .stat-val { font-size: 1.3rem; }
  .travel-grid, .co2-grid { grid-template-columns: 1fr; }
  .home-hero { height: calc(100svh - var(--hdr)); }
}
@media (max-width: 500px) {
  .pair-map-wrap { height: 220px; }
  .form-row { flex-wrap: nowrap; }
  .autocomplete-wrap { min-width: 110px; }
}

/* shimmer (loading skeleton) */
@keyframes shimmer { 100% { transform: translateX(200%); } }

/* ── Marketing page wrapper ──────────────────────────────────────────────── */
.marketing-page {
  max-width: 56rem; margin: 0 auto; padding: 3rem 1.25rem 5rem;
}

/* ── Prose typography ────────────────────────────────────────────────────── */
.prose { color: var(--gray-900); line-height: 1.75; }
.prose h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 1rem; line-height: 1.2;
}
.prose h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 700;
  letter-spacing: -0.02em; margin-top: 2.25rem; margin-bottom: 0.75rem; line-height: 1.3;
}
.prose h3 {
  font-size: 1.125rem; font-weight: 700;
  margin-top: 1.75rem; margin-bottom: 0.5rem; line-height: 1.4;
}
.prose p { margin-bottom: 1.25rem; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose ul li { list-style-type: disc; }
.prose ol li { list-style-type: decimal; }
.prose a { color: var(--blue); text-decoration: underline; }
.prose a:hover { color: var(--blue-dark); }
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose code {
  font-size: 0.875em; background: var(--gray-100);
  border-radius: 0.25rem; padding: 0.15em 0.4em;
  font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
}
.prose pre {
  background: var(--gray-900); color: #e5e7eb;
  padding: 1rem 1.25rem; border-radius: var(--radius-lg);
  overflow-x: auto; margin-bottom: 1.25rem; font-size: 0.875rem;
  font-family: 'Menlo', 'Monaco', 'Consolas', monospace; line-height: 1.6;
}
.prose pre code { background: transparent; padding: 0; font-size: inherit; color: inherit; }
.prose blockquote {
  border-left: 3px solid var(--blue-400); padding-left: 1rem;
  color: var(--gray-600); font-style: italic; margin: 1.5rem 0;
}
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.prose img { border-radius: var(--radius-lg); }

/* ── Blog listing page ───────────────────────────────────────────────────── */
.blog-page { max-width: 64rem; margin: 0 auto; padding: 2rem 1.25rem 5rem; }

.blog-page-header { text-align: center; padding-top: 1rem; margin-bottom: 3rem; }
.blog-page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 1rem;
}
.blog-page-header p {
  font-size: 1.1rem; color: var(--gray-500);
  max-width: 36rem; margin: 0 auto; line-height: 1.6;
}

/* Featured post */
.blog-featured { margin-bottom: 3rem; }
.blog-featured-link { display: block; text-decoration: none; }
.blog-featured-article {
  position: relative; border-radius: 1rem; overflow: hidden;
  box-shadow: var(--shadow-2xl);
}
.blog-featured-cover { position: relative; aspect-ratio: 21/9; overflow: hidden; background: var(--gray-900); }
.blog-featured-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.75);
  transition: transform 0.7s; display: block;
}
.blog-featured-link:hover .blog-featured-img { transform: scale(1.05); }
.blog-featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.25) 50%, transparent 100%);
}
.blog-featured-body {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.5rem 2rem;
}
.blog-featured-title {
  font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 700; color: #fff;
  margin: 0.5rem 0; line-height: 1.2; max-width: 44rem;
  transition: color 0.2s;
}
.blog-featured-link:hover .blog-featured-title { color: #93c5fd; }
.blog-featured-excerpt { color: #d1d5db; font-size: 0.95rem; margin-bottom: 1rem; max-width: 36rem; line-height: 1.5; }
.blog-featured-meta { display: flex; align-items: center; gap: 1.25rem; }
.blog-meta-item {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; color: #d1d5db;
}
.blog-meta-item svg { width: 0.875rem; height: 0.875rem; }
.blog-featured-read-cta { margin-left: auto; color: #93c5fd; font-size: 0.85rem; font-weight: 500; }

/* Tag badges */
.blog-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.blog-tag {
  font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.625rem;
  border-radius: 9999px; background: var(--blue-500); color: #fff;
}
.blog-tag-sm {
  font-size: 0.65rem; padding: 0.2rem 0.5rem;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
}

/* Blog grid */
.blog-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: 1fr 1fr 1fr; } }

.blog-card-link { display: block; text-decoration: none; }
.blog-card {
  height: 100%; display: flex; flex-direction: column;
  border-radius: 0.75rem; overflow: hidden; border: 1px solid var(--border);
  background: var(--white); transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-card-link:hover .blog-card { border-color: var(--blue-400); box-shadow: var(--shadow); }
.blog-card-cover { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--gray-200); }
.blog-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.blog-card-link:hover .blog-card-img { transform: scale(1.05); }
.blog-card-tags-overlay { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.375rem; }
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.blog-card-title {
  font-size: 1rem; font-weight: 700; line-height: 1.35;
  margin-bottom: 0.5rem; color: var(--gray-900);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.2s;
}
.blog-card-link:hover .blog-card-title { color: var(--blue); }
.blog-card-excerpt {
  font-size: 0.875rem; color: var(--gray-500); line-height: 1.5;
  margin-bottom: 1rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: auto;
}
.blog-card-meta {
  display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: var(--gray-500);
}
.blog-card-meta svg { width: 0.75rem; height: 0.75rem; vertical-align: -1px; }
.blog-card-read { font-size: 0.8rem; color: var(--blue); font-weight: 500; }
.blog-empty { text-align: center; color: var(--gray-500); padding: 3rem 0; }

/* ── Blog post page ──────────────────────────────────────────────────────── */
.blog-post-page {}
.blog-post-hero {
  position: relative; width: 100%; aspect-ratio: 21/9; max-height: 480px;
  overflow: hidden; background: var(--gray-900);
}
.blog-post-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.75); }
.blog-post-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
}
.blog-post-hero-content {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.5rem 1.25rem;
  max-width: 56rem; left: 50%; transform: translateX(-50%); right: auto; width: 100%;
}
.blog-post-hero-title {
  font-size: clamp(1.2rem, 3vw, 2.25rem); font-weight: 700;
  color: #fff; line-height: 1.2; max-width: 44rem;
}

.blog-post-content { max-width: 48rem; margin: 0 auto; padding: 2.5rem 1.25rem 5rem; }

.blog-post-meta-bar {
  display: flex; flex-direction: column; gap: 1rem;
  border-bottom: 1px solid var(--border); padding-bottom: 2rem; margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .blog-post-meta-bar { flex-direction: row; align-items: center; justify-content: space-between; } }

.blog-breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--gray-500); }
.blog-breadcrumb a { display: flex; align-items: center; gap: 0.25rem; color: var(--gray-500); }
.blog-breadcrumb a:hover { color: var(--gray-900); text-decoration: none; }
.blog-breadcrumb svg { width: 0.875rem; height: 0.875rem; }
.blog-breadcrumb-current { color: var(--gray-900); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }

.blog-post-meta { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }

.blog-prev-next {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border);
}
.blog-prev-next-item {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1rem; border-radius: 0.75rem; border: 1px solid var(--border);
  color: var(--gray-900); text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-prev-next-item:hover { border-color: var(--blue-400); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--gray-900); }
.blog-prev-next-right { text-align: right; }
.blog-prev-next-label {
  display: flex; align-items: center; gap: 0.375rem;
  font-size: 0.75rem; color: var(--gray-500);
}
.blog-prev-next-label-right { justify-content: flex-end; }
.blog-prev-next-label svg { width: 0.75rem; height: 0.75rem; }
.blog-prev-next-title {
  font-size: 0.875rem; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-prev-next-item:hover .blog-prev-next-title { color: var(--blue); }

.blog-back { margin-top: 2.5rem; text-align: center; }
.blog-back a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--gray-500);
}
.blog-back a:hover { color: var(--blue); text-decoration: none; }
.blog-back svg { width: 1rem; height: 1rem; }

/* ── Contact page ────────────────────────────────────────────────────────── */
.contact-title { font-size: clamp(1.6rem, 3.5vw, 2rem); font-weight: 800; margin-bottom: 0.5rem; }
.contact-subtitle { color: var(--gray-500); margin-bottom: 2rem; }
.contact-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 1.75rem; max-width: 32rem;
}
.contact-card-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 1.25rem; }
.contact-success {
  display: flex; align-items: center; gap: 0.75rem;
  color: #16a34a; font-size: 0.95rem;
}
.contact-success svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.contact-error { color: #dc2626; font-size: 0.875rem; margin-bottom: 1rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label { font-size: 0.875rem; font-weight: 500; color: var(--gray-900); }
.form-input, .form-textarea {
  width: 100%; padding: 0.625rem 0.875rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.9rem; font-family: inherit; color: var(--gray-900);
  background: var(--white); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-textarea { resize: vertical; }
.contact-submit { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.25rem; }
.contact-submit svg { width: 1rem; height: 1rem; }

/* ── Blog & marketing responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .blog-featured-body { padding: 1rem 1.25rem; }
  .blog-featured-title { font-size: 1.1rem; }
  .blog-featured-excerpt { display: none; }
  .blog-post-hero { aspect-ratio: 16/9; }
  .blog-prev-next { grid-template-columns: 1fr; }
  .blog-post-hero-content { position: static; transform: none; left: auto; background: var(--gray-900); padding: 1.25rem; }
  .blog-post-hero-img { aspect-ratio: 16/9; filter: brightness(0.85); }
  .blog-post-hero-overlay { display: none; }
  .blog-post-hero-title { font-size: 1.2rem; }
}
