/* Kamyol — v0 stil tasarım sistemi */
:root {
  --bg: #ffffff;
  --bg-subtle: #f6f7f9;
  --bg-elev: #ffffff;
  --ink: #0a0f1e;
  --ink-muted: #5b6473;
  --ink-soft: #8a92a3;
  --line: #e6e8ef;
  --line-strong: #d2d6e0;
  --brand: #f59e0b;
  --brand-ink: #78350f;
  --brand-soft: #fff7ed;
  --accent: #2563eb;
  --ok: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;
  --info: #2563eb;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(10, 15, 30, .06);
  --shadow: 0 10px 24px -8px rgba(10, 15, 30, .15), 0 0 0 1px rgba(10, 15, 30, .04);
  --shadow-lg: 0 24px 48px -12px rgba(10, 15, 30, .22);
  --sp-1: 4px;  --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --fs-xs: 11px; --fs-sm: 13px; --fs-md: 15px; --fs-lg: 18px;
  --fs-xl: 22px; --fs-2xl: 28px; --fs-3xl: 36px;
  --dur: 200ms;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --header-h: 56px;
}
[data-theme="dark"] {
  --bg: #0b1220;
  --bg-subtle: #111a2e;
  --bg-elev: #14203a;
  --ink: #e5ecff;
  --ink-muted: #8392b0;
  --ink-soft: #5c6a87;
  --line: #1f2a44;
  --line-strong: #2a3860;
  --brand-soft: #2b1d04;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--fs-md);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select {
  font: inherit; color: inherit; background: none; border: none; outline: none;
}

/* Layout */
.container { max-width: 520px; margin: 0 auto; padding: 0 var(--sp-4); }
.stack > * + * { margin-top: var(--sp-3); }
.row { display: flex; gap: var(--sp-3); align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; }

/* Typography */
.h1 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.02em; }
.h2 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.015em; }
.h3 { font-size: var(--fs-lg); font-weight: 600; }
.muted { color: var(--ink-muted); }
.soft { color: var(--ink-soft); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.right { text-align: right; }
.center { text-align: center; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 10px 16px; min-height: 44px;
  border-radius: var(--radius); font-weight: 600; font-size: var(--fs-md);
  cursor: pointer; transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
  user-select: none; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #1a2440; }
[data-theme="dark"] .btn-primary { background: var(--brand); color: var(--brand-ink); }
[data-theme="dark"] .btn-primary:hover { background: #fbbf24; }
.btn-brand { background: var(--brand); color: var(--brand-ink); }
.btn-brand:hover { background: #fbbf24; }
.btn-ghost { background: var(--bg-subtle); color: var(--ink); }
.btn-ghost:hover { background: var(--line); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-sm { padding: 6px 12px; min-height: 32px; font-size: var(--fs-sm); border-radius: var(--radius-sm); }
.btn-block { width: 100%; }
.btn-icon { padding: 10px; min-width: 44px; }

/* Input */
.input, textarea.input {
  display: block; width: 100%;
  padding: 12px 14px; min-height: 48px;
  background: var(--bg-elev); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: var(--fs-md); transition: border var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input:focus, textarea.input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10,15,30,.06); }
textarea.input { min-height: 96px; resize: vertical; }
.input::placeholder { color: var(--ink-soft); }
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-muted); }

/* Chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--bg-subtle); color: var(--ink);
  font-size: var(--fs-sm); font-weight: 500;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background var(--dur) var(--ease), border var(--dur) var(--ease);
}
.chip.active, .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
[data-theme="dark"] .chip.active { background: var(--brand); color: var(--brand-ink); }
.chip-ok { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.chip-warn { background: #fffbeb; color: #92400e; border-color: #fcd34d; }
.chip-bad { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: var(--radius-pill);
  font-size: var(--fs-xs); font-weight: 600;
  background: var(--bg-subtle); color: var(--ink-muted);
}
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: #ecfdf5; color: #065f46; }
.badge-warn { background: #fffbeb; color: #92400e; }
.badge-bad { background: #fef2f2; color: #991b1b; }

/* Card */
.card {
  background: var(--bg-elev); border-radius: var(--radius-lg);
  border: 1px solid var(--line); padding: var(--sp-4);
  transition: border var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card-link { cursor: pointer; }
.card-link:active { transform: scale(0.99); }

/* Toast */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom) + 24px);
  background: var(--ink); color: var(--bg);
  padding: 12px 18px; border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight: 500; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease);
  z-index: 9999; max-width: 90vw;
}
.toast.show { opacity: 1; }

/* Bottom sheet */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(10,15,30,0.5);
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease);
  z-index: 900;
}
.sheet-backdrop.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 901;
  background: var(--bg-elev); color: var(--ink);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  padding: var(--sp-4) var(--sp-4) calc(var(--sp-4) + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform var(--dur) var(--ease);
  max-height: 92vh; overflow: auto; touch-action: pan-y;
}
.sheet.show { transform: translateY(0); }
.sheet-handle {
  width: 48px; height: 5px; background: var(--line-strong);
  border-radius: var(--radius-pill); margin: 0 auto var(--sp-4);
}

/* Header */
.app-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4) var(--sp-3);
  padding-top: calc(var(--sp-3) + env(safe-area-inset-top));
  background: rgba(255,255,255,0.8); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .app-header { background: rgba(11,18,32,0.8); }
.app-header .brand { font-weight: 800; font-size: var(--fs-lg); letter-spacing: -0.02em; }
.app-header .brand .dot { color: var(--brand); }

/* Nav tabs (bottom) */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255,255,255,0.9); backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
[data-theme="dark"] .tabbar { background: rgba(11,18,32,0.9); }
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px 8px; font-size: 10px; font-weight: 600; color: var(--ink-soft);
}
.tabbar a.active { color: var(--ink); }
.tabbar a svg { width: 22px; height: 22px; }

/* OTP pin input */
.otp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.otp-grid input {
  width: 100%; aspect-ratio: 1 / 1; max-height: 64px;
  text-align: center; font-size: var(--fs-2xl); font-weight: 700;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--bg-elev);
}
.otp-grid input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10,15,30,.06); }

/* Role picker cards */
.role-card {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4); border: 1.5px solid var(--line);
  border-radius: var(--radius-lg); cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.role-card:hover, .role-card[aria-pressed="true"] { border-color: var(--ink); background: var(--bg-subtle); }
.role-card .icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand-ink); font-size: 24px; }
.role-card h4 { font-size: var(--fs-md); font-weight: 700; margin-bottom: 2px; }
.role-card p { font-size: var(--fs-sm); color: var(--ink-muted); }

/* Auth page */
.auth-page {
  min-height: 100dvh; display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top) + var(--sp-6)) var(--sp-5) calc(env(safe-area-inset-bottom) + var(--sp-6));
}
.auth-page .brand-lg { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.03em; }
.auth-page .brand-lg .dot { color: var(--brand); }
.auth-logo { margin-bottom: var(--sp-6); }

/* Full-map layout */
.map-page { position: fixed; inset: 0; }
#map { position: absolute; inset: 0; }
.map-overlay-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  padding: calc(env(safe-area-inset-top) + var(--sp-3)) var(--sp-3) var(--sp-3);
  display: flex; flex-direction: column; gap: var(--sp-2);
  pointer-events: none;
}
.map-overlay-top > * { pointer-events: auto; }

.search-bar {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 10px 14px; min-height: 48px;
  background: rgba(255,255,255,0.92); backdrop-filter: saturate(1.6) blur(18px);
  border-radius: var(--radius-pill); box-shadow: var(--shadow);
  border: 1px solid var(--line);
  font-size: var(--fs-md); color: var(--ink-muted);
  cursor: pointer;
}
[data-theme="dark"] .search-bar { background: rgba(20,32,58,0.92); }
.search-bar .brand { font-weight: 800; color: var(--ink); }
.search-bar .brand .dot { color: var(--brand); }

.chip-scroll {
  display: flex; gap: var(--sp-2); overflow-x: auto;
  padding: 4px 0; scrollbar-width: none; -ms-overflow-style: none;
}
.chip-scroll::-webkit-scrollbar { display: none; }
.chip-scroll .chip { flex: 0 0 auto; background: rgba(255,255,255,0.92); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .chip-scroll .chip { background: rgba(20,32,58,0.92); }
.chip-scroll .chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.map-fab-group {
  position: absolute; right: var(--sp-3); bottom: calc(env(safe-area-inset-bottom) + 90px); z-index: 20;
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.map-fab {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(18px);
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
}
[data-theme="dark"] .map-fab { background: rgba(20,32,58,0.95); }
.map-stats {
  position: absolute; left: var(--sp-3); bottom: calc(env(safe-area-inset-bottom) + 90px); z-index: 20;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 8px 14px; font-size: var(--fs-sm); font-weight: 600;
  box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 6px;
}
[data-theme="dark"] .map-stats { background: rgba(20,32,58,0.95); }
.map-stats .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,.6); }
  70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* Truck pin marker — ikon her zaman dik; küçük chevron heading ile döner
   ÖNEMLİ: position/top/left TANIMLANMAZ — MapLibre .maplibregl-marker ile inline
   `position:absolute; top:0; left:0; transform: translate(x,y)` uygular. Burada
   override edilirse tüm markerlar DOM akışında üst üste yığılıp yanlış konumlanır. */
.truck-pin {
  width: 44px; height: 44px;
  cursor: pointer;
}
.truck-pin-icon {
  position: absolute; inset: 4px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: 2.5px solid #fff;
  box-shadow: 0 3px 8px rgba(10,15,30,.35);
  /* ikon rotasyonu YOK — her zaman dik */
}
.truck-pin-icon svg { width: 22px; height: 22px; display: block; }
.truck-pin[data-status="available"] .truck-pin-icon { background: #10b981; }
.truck-pin[data-status="loaded"]    .truck-pin-icon { background: #f59e0b; }
.truck-pin[data-status="offline"]   .truck-pin-icon { background: #94a3b8; opacity: 0.9; }

/* Heading chevron — pin kenarı boyunca döner, kamyonun gittiği yönü gösterir */
.truck-pin-heading {
  position: absolute; inset: 0;
  pointer-events: none;
  transform: rotate(var(--heading, 0deg));
}
.truck-pin-heading::before {
  content: ''; position: absolute;
  top: -2px; left: 50%;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 9px solid currentColor;
  transform: translateX(-50%);
  filter: drop-shadow(0 1px 2px rgba(10,15,30,.4));
}
.truck-pin[data-status="available"] .truck-pin-heading { color: #10b981; }
.truck-pin[data-status="loaded"]    .truck-pin-heading { color: #f59e0b; }
.truck-pin[data-status="offline"]   .truck-pin-heading { display: none; }
.truck-pin-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  background: #10b981; opacity: 0.25; animation: pulseRing 2.2s infinite;
  pointer-events: none;
}
.truck-pin[data-status="loaded"] .truck-pin-pulse { background: #f59e0b; }
.truck-pin[data-status="offline"] .truck-pin-pulse { display: none; }
@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 0.35; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(0.6); opacity: 0; }
}

/* Utilities */
.space-top-lg { margin-top: var(--sp-8); }
.space-top { margin-top: var(--sp-4); }
.flex-1 { flex: 1; min-width: 0; }
.hide { display: none !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.list-vert > * + * { border-top: 1px solid var(--line); }

/* Avatar */
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-subtle); display: grid; place-items: center; overflow: hidden; color: var(--ink-muted); font-weight: 700; flex: 0 0 44px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; flex-basis: 72px; font-size: var(--fs-xl); }

/* Message bubbles */
.msg-list { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); }
.msg { max-width: 78%; padding: 10px 14px; border-radius: var(--radius-lg); font-size: var(--fs-md); line-height: 1.4; word-wrap: break-word; }
.msg-self { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 6px; }
.msg-peer { align-self: flex-start; background: var(--bg-subtle); color: var(--ink); border-bottom-left-radius: 6px; }
.msg-system { align-self: center; background: var(--brand-soft); color: var(--brand-ink); border-radius: var(--radius-pill); padding: 6px 14px; font-size: var(--fs-sm); font-weight: 500; }
.msg-time { font-size: 10px; color: var(--ink-soft); margin-top: 2px; }

/* Photo gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.gallery .cell { aspect-ratio: 1; background: var(--bg-subtle); border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery .cell img { width: 100%; height: 100%; object-fit: cover; }

/* Skeleton loading */
.skel { background: linear-gradient(90deg, var(--bg-subtle) 0%, var(--line) 50%, var(--bg-subtle) 100%); background-size: 200% 100%; animation: skel 1.4s infinite; border-radius: var(--radius); }
@keyframes skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Photo carousel (popup) */
.carousel { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-subtle); }
.carousel img { width: 100%; height: 100%; object-fit: cover; }
.carousel-placeholder { display: grid; place-items: center; color: var(--ink-soft); height: 100%; }

/* Tab bar internal */
.seg { display: inline-flex; background: var(--bg-subtle); border-radius: var(--radius-pill); padding: 4px; gap: 2px; }
.seg button { padding: 6px 14px; border-radius: var(--radius-pill); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-muted); cursor: pointer; }
.seg button.active { background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow-sm); }

/* Toggle switch */
.switch { position: relative; width: 48px; height: 28px; background: var(--line); border-radius: var(--radius-pill); cursor: pointer; transition: background var(--dur) var(--ease); flex-shrink: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease); }
.switch.on { background: var(--ok); }
.switch.on::after { transform: translateX(20px); }

/* Safe bottom spacing for pages with tabbar */
.with-tabbar { padding-bottom: calc(env(safe-area-inset-bottom) + 72px); }

/* =========================
   v0 tarzı animasyonlu rota kartı — gerçek Türkiye haritası üzerinde
   ========================= */
.route-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--sp-3);
}
.route-map-gl {
  width: 100%;
  height: 220px;
  position: relative;
  background: var(--bg-subtle);
}
.route-map-gl .maplibregl-ctrl-attrib,
.route-map-gl .maplibregl-ctrl-bottom-right,
.route-map-gl .maplibregl-ctrl-bottom-left {
  display: none !important;
}
.route-map-gl::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(255,255,255,0.35) 100%);
  pointer-events: none; z-index: 2;
}
[data-theme="dark"] .route-map-gl::before {
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35) 100%);
}
.route-map-gl .live-badge {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  padding: 5px 10px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 600; color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
[data-theme="dark"] .route-map-gl .live-badge { background: rgba(20,32,58,0.92); }
.route-map-gl .live-badge .live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239,68,68,.5); animation: liveDot 1.6s infinite;
}
@keyframes liveDot {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); }
  70% { box-shadow: 0 0 0 7px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

/* Rota üzerindeki pin'ler (from/to/current) — MapLibre Marker HTML element'i
   ÖNEMLİ: position/top/left KOYMA — MapLibre .maplibregl-marker class'ı üzerinden
   absolute+translate uygular. Override edilirse tüm pin'ler DOM akışında sıfır
   noktasında istiflenip yanlış konumlanır (ana haritadaki .truck-pin ile aynı hata). */
.journey-pin {
  width: 20px; height: 20px;
  pointer-events: none;
}
.journey-pin .jp-dot {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(10,15,30,0.35);
}
.journey-pin .jp-pulse {
  position: absolute; inset: -4px;
  border-radius: 50%;
  opacity: 0.35;
  animation: jpPulse 1.8s ease-out infinite;
}
.journey-pin-from .jp-dot { background: #10b981; }
.journey-pin-to   .jp-dot { background: #ef4444; }
.journey-pin-current { width: 24px; height: 24px; }
.journey-pin-current .jp-dot { background: #f59e0b; border-width: 4px; box-shadow: 0 3px 10px rgba(245,158,11,0.6); }
.journey-pin-current .jp-pulse { background: #f59e0b; }
.journey-pin-from .jp-label,
.journey-pin-to   .jp-label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  color: var(--ink);
}
[data-theme="dark"] .journey-pin-from .jp-label,
[data-theme="dark"] .journey-pin-to .jp-label { background: rgba(20,32,58,0.95); }
.journey-pin-from .jp-label { color: #065f46; }
.journey-pin-to   .jp-label { color: #991b1b; }
@keyframes jpPulse {
  0% { transform: scale(0.7); opacity: 0.5; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}
.route-map-svg {
  width: 100%;
  height: 180px;
  display: block;
}
.route-map-svg .route-bg {
  fill: none;
  stroke: rgba(148, 163, 184, 0.3);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.route-map-svg .route-done {
  fill: none;
  stroke: #10b981;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.4));
}
.route-map-svg .route-flow {
  fill: none;
  stroke: rgba(16, 185, 129, 0.8);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  animation: flowDash 1.5s linear infinite;
}
@keyframes flowDash {
  from { stroke-dashoffset: 16; }
  to   { stroke-dashoffset: 0; }
}
.route-map-svg .pin-from {
  fill: #10b981;
  stroke: #fff;
  stroke-width: 2.5;
}
.route-map-svg .pin-to {
  fill: #ef4444;
  stroke: #fff;
  stroke-width: 2.5;
}
.route-map-svg .pin-current {
  fill: #f59e0b;
  stroke: #fff;
  stroke-width: 3;
  filter: drop-shadow(0 3px 6px rgba(245, 158, 11, 0.5));
}
.route-map-svg .pin-current-pulse {
  fill: #f59e0b;
  opacity: 0.35;
  animation: mapPinPulse 1.6s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes mapPinPulse {
  0%   { transform: scale(0.6); opacity: 0.45; }
  70%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}
.route-map-svg .city-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 3;
  stroke-linejoin: round;
}
.route-map-svg .speck {
  fill: #10b981;
  opacity: 0.6;
}
.route-meta {
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
}
.route-meta .row-between { align-items: flex-start; }
.route-waypoint {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm);
}
.route-waypoint .dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 2px currentColor;
  flex: 0 0 10px;
}
.route-waypoint.from { color: #10b981; }
.route-waypoint.to   { color: #ef4444; }
.route-arrow {
  flex: 1; height: 2px;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ef4444 100%);
  border-radius: 1px;
  position: relative;
  margin: 0 10px;
}
.route-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  width: 0; height: 0;
  border-left: 6px solid #ef4444;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transform: translateY(-50%);
}
.route-progress {
  height: 6px;
  background: var(--bg-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: var(--sp-3);
  position: relative;
}
.route-progress .fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 100%);
  border-radius: var(--radius-pill);
  position: relative;
  transition: width 800ms var(--ease);
}
.route-progress .fill::after {
  content: '';
  position: absolute;
  right: -2px; top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
  animation: progressHead 1.5s ease-in-out infinite;
}
@keyframes progressHead {
  0%,100% { box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25); }
  50%     { box-shadow: 0 0 0 7px rgba(245, 158, 11, 0); }
}

/* Araç tipi illüstrasyonu container'ı */
.vehicle-illustration {
  background: var(--bg-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
}
.vehicle-illustration svg {
  width: 100%; height: 100%; display: block;
}
.vehicle-illustration .badge-overlay,
.vehicle-carousel .badge-overlay {
  position: absolute;
  top: var(--sp-2); left: var(--sp-2);
  background: rgba(10, 15, 30, 0.8);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  z-index: 3;
}

/* Fotoğraf Carousel — yana kaydırılabilir, dot göstergeli (popup için) */
.vehicle-carousel {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-subtle);
}
.vehicle-carousel-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  height: 100%;
  scroll-behavior: smooth;
}
.vehicle-carousel-track::-webkit-scrollbar { display: none; }
.vehicle-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  position: relative;
  background: var(--bg-subtle);
}
.vehicle-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.vehicle-carousel-slide .slide-skel {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg-subtle) 0%, var(--line) 50%, var(--bg-subtle) 100%);
  background-size: 200% 100%;
  animation: skel 1.4s infinite;
}
.vehicle-carousel-dots {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 4px;
  z-index: 3;
  background: rgba(10,15,30,0.55);
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}
.vehicle-carousel-dots .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 250ms var(--ease);
}
.vehicle-carousel-dots .dot.active {
  background: #fff;
  width: 20px;
  border-radius: 3px;
}
.vehicle-carousel-counter {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(10,15,30,0.7);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  z-index: 3;
  backdrop-filter: blur(8px);
}
