/* ============================================================
   GoHome Planner — styles
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FFF7EC;
  --bg-panel: #FFFFFF;
  --ink: #2B1E3F;
  --ink-soft: #6A5F7C;
  --accent: #7C4DFF;
  --accent-2: #FF6E9C;
  --sun: #FFC93C;
  --sky: #4FC3F7;
  --grass: #66BB6A;
  --line: #EDE6D6;
  --shadow: 0 4px 0 0 rgba(43, 30, 63, 0.08), 0 16px 32px -12px rgba(43, 30, 63, 0.18);
  --shadow-hard: 0 6px 0 0 rgba(43, 30, 63, 0.14);
  --radius: 20px;
  --radius-sm: 12px;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito', 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

body {
  padding: 24px;
}

button { font-family: inherit; cursor: pointer; border: none; }

/* ============================================================
   Design Canvas wrapper
   ============================================================ */
.app-root {
  width: 100%;
  height: 100vh;
}

/* ============================================================
   Variation 1: "Playful Timeline" — napló-szerű, játékos
   ============================================================ */

.v1 {
  --card-bg: #FFFFFF;
  background: var(--bg);
  padding: 24px 32px;
  min-height: 100vh;
  font-family: 'Nunito', sans-serif;
  max-width: 1400px;
  margin: 0 auto;
}

.v1-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  gap: 24px;
}

.v1-title {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.v1-subtitle {
  font-size: 18px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.v1-clock {
  background: var(--ink);
  color: #FFF7EC;
  border-radius: 24px;
  padding: 16px 22px;
  text-align: right;
  min-width: 180px;
  box-shadow: var(--shadow);
}
.v1-clock-label { font-size: 12px; opacity: 0.7; letter-spacing: 0.1em; text-transform: uppercase; }
.v1-clock-time { font-size: 36px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; margin-top: 4px; }
.v1-clock-date { font-size: 13px; opacity: 0.7; margin-top: 4px; }

.v1-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.v1-btn {
  background: var(--card-bg);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 2px solid var(--line);
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.v1-btn:hover { transform: translate(0, -2px); box-shadow: var(--shadow); }
.v1-btn.primary { background: var(--accent); color: white; border-color: var(--accent); }
.v1-btn.warn { background: var(--accent-2); color: white; border-color: var(--accent-2); }
.v1-btn.active { background: var(--ink); color: #FFF7EC; border-color: var(--ink); }

.v1-time-input { font-family: inherit; font-size: 15px; font-weight: 700; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--line); background: white; color: var(--ink); }

.v1-hero-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #5E35B1 100%);
  color: white;
  padding: 20px 26px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.v1-hero-banner::before {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
  border-radius: 50%;
}
.v1-hero-left { position: relative; z-index: 1; }
.v1-hero-label { font-size: 13px; opacity: 0.8; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.v1-hero-time { font-size: 56px; font-weight: 900; line-height: 1; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.v1-hero-sub { font-size: 16px; opacity: 0.9; }
.v1-hero-right { text-align: right; position: relative; z-index: 1; }
.v1-hero-countdown { font-size: 15px; opacity: 0.9; }
.v1-hero-count { font-size: 48px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }

.v1-routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) {
  .v1-routes { grid-template-columns: 1fr; }
}

.route-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: transform 0.15s;
}
.route-card.primary { border-color: var(--sun); background: linear-gradient(180deg, #FFFBEA 0%, #FFFFFF 40%); }
.route-card:hover { transform: translate(0, -2px); }

.route-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--line);
}
.route-card-badge {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.route-card.primary .route-card-badge {
  background: var(--sun);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 20px;
}
.route-card-total {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.route-steps { display: flex; flex-direction: column; }

.route-step {
  display: grid;
  grid-template-columns: 60px 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 4px 0;
}
.step-time {
  font-weight: 900;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
}
.step-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  font-weight: 900;
}
.bus-icon-regional { background: var(--accent); color: white; }
.bus-icon-local { font-size: 18px; }
.step-icon-home { background: var(--grass); }
.step-body { display: flex; flex-direction: column; }
.step-title { font-size: 15px; font-weight: 800; color: var(--ink); }
.step-sub { font-size: 13px; color: var(--ink-soft); font-weight: 600; }

.step-connector {
  display: grid;
  grid-template-columns: 60px 44px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 14px;
  padding: 0;
}
.connector-line {
  grid-column: 2;
  width: 3px;
  margin: 0 auto;
  height: 14px;
  background: repeating-linear-gradient(to bottom, var(--ink-soft) 0 4px, transparent 4px 8px);
  opacity: 0.4;
}
.connector-label {
  grid-column: 3;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 700;
  font-style: italic;
}

.wait-pill {
  display: inline-block;
  background: #FFE8E8;
  color: #C62828;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  margin-top: 4px;
}

.route-expand-btn {
  width: 100%;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 13px;
  padding: 10px;
  border-radius: 10px;
  margin-top: 12px;
  transition: background 0.15s;
}
.route-expand-btn:hover { background: var(--line); }

.route-details {
  margin-top: 14px;
  padding: 14px;
  background: #FAF7F0;
  border-radius: 14px;
}
.details-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.details-stops { display: flex; flex-direction: column; gap: 6px; }
.detail-stop {
  display: grid;
  grid-template-columns: 50px 16px 1fr;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.detail-stop-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-soft); }
.detail-stop-dot { width: 10px; height: 10px; border-radius: 50%; margin: 0 auto; }
.detail-stop-name { color: var(--ink); font-weight: 600; }
.detail-stop.home .detail-stop-name { font-weight: 900; color: var(--grass); }

.v1-empty {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.v1-empty-emoji { font-size: 60px; margin-bottom: 16px; }
.v1-empty-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.v1-empty-hint { color: var(--ink-soft); font-size: 15px; }

/* ============================================================
   Variation 2: "Mission Board" — játékos kártya design küldetés érzéssel
   ============================================================ */

.v2 {
  background: #0E1524;
  color: #F3E9D2;
  padding: 20px 24px;
  min-height: 100vh;
  font-family: 'Space Grotesk', 'Nunito', sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(124, 77, 255, 0.15), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(255, 110, 156, 0.12), transparent 40%);
}

.v2-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.v2-mission-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--sun);
  font-weight: 700;
  text-transform: uppercase;
}
.v2-mission-title {
  font-size: 30px;
  font-weight: 800;
  margin-top: 4px;
  line-height: 1.05;
}
.v2-mission-sub {
  font-size: 13px;
  color: rgba(243, 233, 210, 0.7);
  margin-top: 4px;
}

.v2-hud {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 16px;
  text-align: right;
  backdrop-filter: blur(12px);
}
.v2-hud-label { font-size: 10px; letter-spacing: 0.2em; opacity: 0.6; font-weight: 700; }
.v2-hud-time { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; margin-top: 2px; }

.v2-ready {
  background: linear-gradient(135deg, #FF6E9C 0%, #7C4DFF 100%);
  border-radius: 20px;
  padding: 18px 22px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.v2-ready-title { font-size: 12px; letter-spacing: 0.2em; opacity: 0.9; font-weight: 700; text-transform: uppercase; }
.v2-ready-time { font-size: 52px; font-weight: 900; line-height: 1; margin: 4px 0; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.v2-ready-state { font-size: 14px; opacity: 0.95; font-weight: 700; }

.v2-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.v2-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #F3E9D2;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.15s;
}
.v2-btn:hover { background: rgba(255, 255, 255, 0.14); }
.v2-btn.active { background: var(--sun); color: #0E1524; border-color: var(--sun); }
.v2-btn.warn { background: #FF6E9C; color: white; border-color: #FF6E9C; }

.v2-routes { display: flex; flex-direction: column; gap: 10px; }

.v2-route {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 18px;
  transition: all 0.2s;
}
.v2-route:hover { background: rgba(255, 255, 255, 0.08); }
.v2-route.primary { background: linear-gradient(135deg, rgba(124, 77, 255, 0.25), rgba(124, 77, 255, 0.05)); border-color: rgba(124, 77, 255, 0.4); }

.v2-route-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.v2-route-rank { display: flex; align-items: center; gap: 10px; }
.v2-rank-num {
  width: 28px; height: 28px;
  background: var(--sun);
  color: #0E1524;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
}
.v2-route.primary .v2-rank-num { background: var(--accent-2); color: white; }
.v2-rank-label { font-size: 12px; font-weight: 700; color: rgba(243, 233, 210, 0.8); }
.v2-route-eta {
  font-size: 13px;
  font-weight: 800;
  color: var(--sun);
  font-variant-numeric: tabular-nums;
}

.v2-timeline {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.v2-stop { text-align: center; min-width: 44px; }
.v2-stop-time { font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.v2-stop-label { font-size: 10px; opacity: 0.7; margin-top: 2px; white-space: nowrap; }
.v2-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.v2-connector-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: grid; place-items: center;
  background: var(--accent);
  color: white;
  font-weight: 800;
  font-size: 12px;
}
.v2-connector-icon.bus-local { font-size: 12px; }
.v2-connector-dur { font-size: 10px; opacity: 0.6; font-weight: 600; }

/* ============================================================
   Variation 3: "Quest Map" — térkép-szerű, függőleges út
   ============================================================ */

.v3 {
  background: linear-gradient(180deg, #E8F5FE 0%, #FFF7EC 100%);
  padding: 36px;
  min-height: 900px;
  font-family: 'Nunito', sans-serif;
  color: var(--ink);
}

.v3-header {
  text-align: center;
  margin-bottom: 28px;
}
.v3-title {
  font-size: 42px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.v3-subtitle {
  font-size: 17px;
  color: var(--ink-soft);
  margin-top: 6px;
}

.v3-big-clock {
  background: white;
  border-radius: 28px;
  padding: 24px 32px;
  text-align: center;
  margin: 0 auto 28px;
  max-width: 520px;
  box-shadow: var(--shadow);
  border: 3px solid var(--sun);
}
.v3-big-clock-now { font-size: 14px; color: var(--ink-soft); letter-spacing: 0.2em; font-weight: 700; text-transform: uppercase; }
.v3-big-clock-time { font-size: 72px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; margin: 6px 0; }
.v3-big-clock-date { color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.v3-big-clock-countdown { margin-top: 14px; padding-top: 14px; border-top: 2px dashed var(--line); font-size: 15px; color: var(--ink); font-weight: 700; }
.v3-big-clock-countdown span { color: var(--accent); font-weight: 900; }

.v3-toolbar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.v3-quest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.v3-quest {
  background: white;
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
  border: 3px solid transparent;
}
.v3-quest.primary { border-color: var(--sun); }

.v3-quest-ribbon {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.v3-quest.primary .v3-quest-ribbon { background: var(--sun); color: var(--ink); }

.v3-quest-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--line);
}
.v3-quest-go {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.v3-quest-go-time { font-size: 32px; font-weight: 900; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.v3-quest-arr { text-align: right; }
.v3-quest-arr-label { font-size: 12px; color: var(--ink-soft); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.v3-quest-arr-time { font-size: 32px; font-weight: 900; color: var(--grass); line-height: 1; font-variant-numeric: tabular-nums; }

.v3-map {
  position: relative;
  padding: 8px 0 8px 48px;
}
.v3-map::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 20px;
  bottom: 20px;
  width: 4px;
  background: repeating-linear-gradient(to bottom, var(--ink-soft) 0 6px, transparent 6px 14px);
  opacity: 0.4;
  border-radius: 4px;
}

.v3-pin {
  position: relative;
  padding: 8px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.v3-pin-dot {
  position: absolute;
  left: -34px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--ink);
  display: grid; place-items: center;
  font-size: 14px;
  z-index: 1;
}
.v3-pin-dot.start { background: var(--accent); border-color: var(--accent); color: white; }
.v3-pin-dot.bus { background: var(--accent); border-color: var(--accent); color: white; font-size: 12px; }
.v3-pin-dot.bus-local { color: white; font-size: 11px; }
.v3-pin-dot.transfer { background: var(--sun); border-color: var(--sun); }
.v3-pin-dot.home { background: var(--grass); border-color: var(--grass); color: white; }

.v3-pin-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.v3-pin-sub { font-size: 12px; color: var(--ink-soft); }
.v3-pin-time {
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 10px;
}
.v3-pin.wait .v3-pin-time { background: #FFE8E8; color: #C62828; }

/* ============================================================
   Combined Variation — V1 + V2 production UI
   ============================================================ */
.vc {
  background: var(--bg);
  padding: 32px;
  min-height: 100vh;
  font-family: 'Nunito', sans-serif;
  color: var(--ink);
  max-width: 1280px;
  margin: 0 auto;
}

.vc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 20px;
}
.vc-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}
.vc-subtitle {
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--ink-soft);
  margin-top: 6px;
}
.vc-clock {
  background: var(--ink);
  color: #FFF7EC;
  border-radius: 20px;
  padding: 14px 20px;
  text-align: right;
  min-width: 160px;
  box-shadow: var(--shadow);
}
.vc-clock-label { font-size: 11px; opacity: 0.7; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.vc-clock-time { font-size: 32px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; margin-top: 4px; }
.vc-clock-date { font-size: 12px; opacity: 0.7; margin-top: 4px; text-transform: capitalize; }

.vc-toolbar { margin-bottom: 22px; }
.vc-toolbar-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.vc-btn {
  background: #FFFFFF;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 2px solid var(--line);
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.vc-btn:hover { transform: translate(0, -1px); box-shadow: var(--shadow); }
.vc-btn.active { background: var(--ink); color: #FFF7EC; border-color: var(--ink); }
.vc-btn.warn { background: var(--accent-2); color: white; border-color: var(--accent-2); }
.vc-btn.ghost { background: transparent; border-color: transparent; color: var(--ink-soft); font-weight: 700; }
.vc-btn.ghost:hover { background: var(--line); box-shadow: none; transform: none; }
.vc-time-input {
  font-family: inherit; font-size: 14px; font-weight: 700;
  padding: 10px 12px; border-radius: 12px;
  border: 2px solid var(--line); background: white; color: var(--ink);
}

/* Mission-style hero banner */
.vc-hero {
  background: linear-gradient(135deg, #7C4DFF 0%, #5E35B1 100%);
  color: white;
  padding: 26px 30px;
  border-radius: 24px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.vc-hero::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.vc-hero-soon { background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%); }
.vc-hero-now { background: linear-gradient(135deg, #E53935 0%, #B71C1C 100%); animation: vc-pulse 1.6s ease-in-out infinite; }
@keyframes vc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.6), var(--shadow); }
  50% { box-shadow: 0 0 0 14px rgba(229, 57, 53, 0); }
}

.vc-hero-left { position: relative; z-index: 1; }
.vc-hero-label { font-size: 12px; opacity: 0.9; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 800; }
.vc-hero-time { font-size: clamp(48px, 7vw, 72px); font-weight: 900; line-height: 1; margin: 4px 0; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.vc-hero-state { font-size: 16px; opacity: 0.95; font-weight: 700; }

.vc-hero-right { text-align: right; position: relative; z-index: 1; }
.vc-hero-countdown-label { font-size: 12px; opacity: 0.85; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.vc-hero-countdown-val {
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin: 2px 0;
  display: flex; align-items: baseline; justify-content: flex-end; gap: 6px;
}
.vc-hero-countdown-unit { font-size: 18px; opacity: 0.8; font-weight: 700; }
.vc-hero-arrive { font-size: 13px; opacity: 0.9; font-weight: 700; }

/* Route cards */
.vc-routes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vc-route {
  background: #FFFFFF;
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  transition: all 0.15s;
  box-shadow: var(--shadow);
}
.vc-route:hover { transform: translate(0, -2px); }
.vc-route.primary {
  border-color: var(--sun);
  background: linear-gradient(180deg, #FFFBEA 0%, #FFFFFF 40%);
}

.vc-route-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--line);
}
.vc-route-rank { display: flex; align-items: center; gap: 10px; }
.vc-rank-num {
  width: 32px; height: 32px;
  background: var(--ink);
  color: white;
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 900;
  font-size: 16px;
}
.vc-route.primary .vc-rank-num { background: var(--sun); color: var(--ink); }
.vc-rank-label { font-size: 13px; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.vc-route.primary .vc-rank-label { color: var(--ink); }
.vc-route-eta { font-size: 14px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

.vc-timeline {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
}
.vc-stop { text-align: center; min-width: 60px; }
.vc-stop-time { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--ink); }
.vc-stop-label { font-size: 11px; color: var(--ink-soft); margin-top: 2px; font-weight: 700; white-space: nowrap; }
.vc-stop.home .vc-stop-time { color: var(--grass); }
.vc-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
}
.vc-connector::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--line) 0 4px, transparent 4px 8px);
  z-index: 0;
}
.vc-connector-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--accent);
  color: white;
  font-weight: 800;
  font-size: 14px;
  z-index: 1;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.vc-connector-icon.walk { background: var(--line); color: var(--ink); }
.vc-connector-icon.bus-local { font-size: 13px; }
.vc-connector-dur { font-size: 11px; color: var(--ink-soft); font-weight: 700; z-index: 1; position: relative; background: var(--bg); padding: 0 4px; }
.vc-route.primary .vc-connector-dur { background: #FFFBEA; }

.vc-wait-note {
  margin-top: 10px;
  background: #FFE8E8;
  color: #C62828;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 10px;
  display: inline-block;
}

.vc-empty {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.vc-empty-emoji { font-size: 60px; margin-bottom: 16px; }
.vc-empty-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.vc-empty-hint { color: var(--ink-soft); font-size: 15px; }

/* Mobile adjustments */
@media (max-width: 720px) {
  body { padding: 12px; }
  .vc { padding: 16px; }
  .vc-header { flex-direction: column; align-items: flex-start; }
  .vc-clock { align-self: stretch; text-align: left; }
  .vc-hero { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .vc-hero-right { text-align: left; }
  .vc-hero-countdown-val { justify-content: flex-start; }
  .vc-timeline {
    grid-template-columns: auto 1fr;
    grid-auto-flow: row;
  }
  .vc-timeline .vc-stop { text-align: left; }
  .vc-timeline .vc-connector { flex-direction: row; padding-left: 12px; }
  .vc-timeline .vc-connector::before {
    top: 0; bottom: 0; left: 15px; right: auto;
    width: 2px; height: auto;
    background: repeating-linear-gradient(to bottom, var(--line) 0 4px, transparent 4px 8px);
  }
  .vc-route-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============================================================
   Tweaks panel
   ============================================================ */
.tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: white;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.3);
  z-index: 9999;
  min-width: 260px;
  font-family: 'Nunito', sans-serif;
  color: var(--ink);
  border: 2px solid var(--line);
}
.tweaks-panel h3 { font-size: 14px; font-weight: 900; margin-bottom: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.tweaks-row { display: flex; justify-content: space-between; align-items: center; margin: 10px 0; gap: 12px; font-size: 13px; font-weight: 700; }
.tweaks-row input[type="range"] { flex: 1; }
.tweaks-row input[type="number"] { width: 60px; padding: 4px 8px; border-radius: 8px; border: 2px solid var(--line); font-family: inherit; font-weight: 700; }
.tweaks-pill-group { display: flex; gap: 4px; }
.tweaks-pill { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 10px; background: var(--line); color: var(--ink); border: none; cursor: pointer; }
.tweaks-pill.active { background: var(--ink); color: white; }
