/* ================================================================
   auto.actproof.io — Design System
   Mission Control dark theme for live EV telemetry
   ================================================================ */

/* --- Google Fonts: Inter --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ================================================================
   TOKENS
   ================================================================ */
:root {
  /* Backgrounds */
  --bg-deep:    #080b10;
  --bg-panel:   #0f1319;
  --bg-card:    #131920;
  --bg-glass:   rgba(15, 19, 25, 0.78);
  --bg-input:   #1a2130;

  /* Borders */
  --border:       rgba(56, 189, 248, 0.07);
  --border-hover: rgba(56, 189, 248, 0.18);
  --border-card:  rgba(255, 255, 255, 0.04);

  /* Text */
  --text:     #e8edf4;
  --text-dim: #5e6d80;
  --text-mid: #8b96a5;

  /* Accent palette */
  --accent:      #38bdf8;
  --accent-dim:  rgba(56, 189, 248, 0.12);
  --accent-glow: rgba(56, 189, 248, 0.30);
  --green:       #34d399;
  --green-dim:   rgba(52, 211, 153, 0.12);
  --red:         #f87171;
  --red-dim:     rgba(248, 113, 113, 0.12);
  --amber:       #fbbf24;
  --amber-dim:   rgba(251, 191, 36, 0.12);

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
  --gradient-panel:  linear-gradient(180deg, rgba(15,19,25,0.95) 0%, rgba(8,11,16,0.98) 100%);

  /* Sizing */
  --header-h: 56px;
  --sidebar-w: 380px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Motion */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration:  0.35s;
}

/* ================================================================
   RESET + BASE
   ================================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.5;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
}

@keyframes live-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes number-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.anim-fade-up {
  animation: fade-up 0.6s var(--ease-out) both;
}

.anim-fade-in {
  animation: fade-in 0.5s ease both;
}

/* Stagger children */
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.10s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.20s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.30s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, #1d2535 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ================================================================
   HEADER
   ================================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo-icon {
  width: 28px;
  height: 28px;
}

.header__logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.header__logo-text span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Live / Archive badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
}

.badge--connecting {
  background: var(--bg-card);
  color: var(--text-dim);
}

.badge--live {
  background: var(--green-dim);
  color: var(--green);
  animation: live-pulse 2s ease-in-out infinite;
}

.badge--live .badge__dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: live-dot 1.5s ease-in-out infinite;
}

.badge--offline {
  background: var(--bg-card);
  color: var(--text-mid);
}

.badge--offline .badge__dot {
  width: 6px;
  height: 6px;
  background: var(--text-dim);
  border-radius: 50%;
}

.header__trip-name {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.header__spacer { flex: 1; }

/* Battery mini indicator in header (mobile) */
.header__battery {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  flex-shrink: 0;
}

.header__battery-bar {
  width: 24px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.header__battery-bar::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 2px;
  width: 2px;
  height: 5px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
}

.header__battery-fill {
  height: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: width 0.5s var(--ease-out);
}

/* ================================================================
   HERO / MISSION STATEMENT
   ================================================================ */
.hero-banner {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 20px;
  text-align: center;
  max-width: 500px;
  width: calc(100% - 32px);
  animation: fade-up 0.8s var(--ease-out) 0.3s both;
  pointer-events: none;
}

.hero-banner__text {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.4;
}

.hero-banner__text strong {
  color: var(--text);
  font-weight: 600;
}

.hero-banner--hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Offline / archive notice */
.offline-notice {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  background: rgba(15, 19, 25, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  text-align: center;
  max-width: 440px;
  width: calc(100% - 32px);
  animation: fade-up 0.6s var(--ease-out) both;
}

.offline-notice__text {
  font-size: 13px;
  color: var(--text-mid);
}

.offline-notice--hidden { display: none; }

/* ================================================================
   MAP (full-bleed hero)
   ================================================================ */
.map-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}

#map {
  width: 100%;
  height: 100%;
}

/* Override Leaflet controls for dark theme */
.leaflet-control-zoom a {
  background: var(--bg-glass) !important;
  backdrop-filter: blur(12px) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  font-size: 16px !important;
  border-radius: var(--radius-sm) !important;
}

.leaflet-control-zoom a:hover {
  background: var(--bg-card) !important;
}

.leaflet-control-zoom {
  border: none !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
}

.leaflet-control-attribution {
  background: rgba(8, 11, 16, 0.7) !important;
  color: var(--text-dim) !important;
  font-size: 10px !important;
  backdrop-filter: blur(8px) !important;
}

.leaflet-control-attribution a {
  color: var(--text-mid) !important;
}

/* ================================================================
   FLOATING STAT PILLS (mobile — over map)
   ================================================================ */
.stat-pills {
  position: fixed;
  bottom: 100px;
  left: 12px;
  right: 12px;
  z-index: 500;
  display: flex;
  gap: 8px;
  pointer-events: none;
  animation: fade-up 0.6s var(--ease-out) 0.5s both;
}

.stat-pill {
  flex: 1;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-align: center;
  pointer-events: auto;
  transition: border-color var(--duration) ease;
}

.stat-pill:hover {
  border-color: var(--border-hover);
}

.stat-pill__value {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  transition: transform 0.2s var(--ease-snap);
}

.stat-pill__value.updated {
  animation: number-pop 0.3s var(--ease-snap);
}

.stat-pill__unit {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  margin-left: 2px;
}

.stat-pill__label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ================================================================
   BOTTOM SHEET (mobile)
   ================================================================ */
.bottom-sheet {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 900;
  background: var(--gradient-panel);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
  transition: transform var(--duration) var(--ease-out);
  will-change: transform;
  max-height: calc(100dvh - var(--header-h) - 8px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bottom-sheet__handle {
  flex-shrink: 0;
  padding: 12px 0 8px;
  display: flex;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.bottom-sheet__handle-bar {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  transition: background 0.2s ease;
}

.bottom-sheet__handle:active .bottom-sheet__handle-bar {
  background: rgba(255, 255, 255, 0.3);
}

.bottom-sheet__content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 16px 40px;
  overscroll-behavior: contain;
}

/* Section dividers inside bottom sheet */
.section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ================================================================
   STAT CARDS (inside panels)
   ================================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--duration) ease;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.stat-card--wide {
  grid-column: 1 / -1;
}

.stat-card__icon {
  font-size: 16px;
  margin-bottom: 6px;
}

.stat-card__label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card__value {
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  margin-top: 4px;
  line-height: 1.1;
  transition: color 0.3s ease;
}

.stat-card__unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  margin-left: 3px;
}

.stat-card__sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Battery arc (SVG) */
.battery-ring {
  width: 52px;
  height: 52px;
  position: absolute;
  top: 12px;
  right: 12px;
}

.battery-ring__track {
  fill: none;
  stroke: var(--bg-input);
  stroke-width: 4;
}

.battery-ring__fill {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s var(--ease-out), stroke 0.5s ease;
  transform: rotate(-90deg);
  transform-origin: center;
}

/* SOC bar (linear fallback) */
.soc-bar {
  height: 6px;
  background: var(--bg-input);
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
}

.soc-bar__fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gradient-accent);
  transition: width 0.6s var(--ease-out);
}

/* Value color states */
.val-green  { color: var(--green); }
.val-amber  { color: var(--amber); }
.val-red    { color: var(--red); }
.val-accent { color: var(--accent); }

/* ================================================================
   CHART SECTION
   ================================================================ */
.chart-section {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 12px;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.chart-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.chart-toggle__btn {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim);
  transition: all 0.2s ease;
}

.chart-toggle__btn--active {
  background: var(--accent-dim);
  color: var(--accent);
}

.chart-canvas-wrap {
  position: relative;
  height: 160px;
}

.chart-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ================================================================
   ARCHIVE / TRIPS LIST
   ================================================================ */
.trips-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  text-decoration: none;
  color: var(--text);
}

.trip-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-input);
  text-decoration: none;
}

.trip-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.trip-item__name {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-item__meta {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}

.trip-item--active {
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ================================================================
   CHAT AI ("Zapytaj auto")
   ================================================================ */
.chat-section {
  margin-top: 12px;
}

.chat-log {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.chat-msg {
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  white-space: pre-wrap;
  word-break: break-word;
  animation: fade-up 0.3s var(--ease-out);
}

.chat-msg--user {
  background: var(--accent-dim);
  color: var(--accent);
  align-self: flex-end;
  max-width: 85%;
  border-bottom-right-radius: 4px;
}

.chat-msg--ai {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text);
  align-self: flex-start;
  max-width: 90%;
  border-bottom-left-radius: 4px;
}

.chat-msg--error {
  background: var(--red-dim);
  color: var(--red);
  font-size: 12px;
}

.chat-msg--thinking {
  background: var(--bg-card);
  color: var(--text-dim);
  font-size: 12px;
}

.chat-msg--thinking .dots::after {
  content: '...';
  animation: thinking-dots 1.2s steps(4) infinite;
}

@keyframes thinking-dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
}

/* Quick reply chips */
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.chat-chip {
  font-size: 11px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--bg-input);
  color: var(--text-mid);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chat-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Chat input */
.chat-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-input:focus {
  border-color: var(--accent);
}

.chat-input::placeholder {
  color: var(--text-dim);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  color: #04121c;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-snap), opacity 0.2s ease;
}

.chat-send-btn:hover {
  transform: scale(1.05);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

.chat-disclaimer {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 8px;
  line-height: 1.4;
}

/* ================================================================
   FOOTER — standalone element outside bottom-sheet
   ================================================================ */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 10px 16px;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
  background: rgba(8, 11, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  /* On mobile, hidden behind bottom-sheet — visible only on desktop */
  pointer-events: auto;
}

.footer a {
  color: var(--text-mid);
}

.footer a:hover {
  color: var(--accent);
}

/* ================================================================
   DESKTOP SIDEBAR LAYOUT (≥ 1024px)
   ================================================================ */
@media (min-width: 1024px) {
  .stat-pills { display: none; }

  .bottom-sheet {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: auto;
    width: var(--sidebar-w);
    border-radius: 0;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.3);
    transform: none !important;
    max-height: none;
    z-index: 900;
  }

  .bottom-sheet__handle { display: none; }

  .bottom-sheet__content {
    padding: 16px 20px 24px;
  }

  .map-container {
    right: var(--sidebar-w);
  }

  .hero-banner {
    left: calc((100% - var(--sidebar-w)) / 2);
  }

  .offline-notice {
    left: calc((100% - var(--sidebar-w)) / 2);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card__value {
    font-size: 26px;
  }

  .chart-canvas-wrap {
    height: 180px;
  }

  .footer {
    right: var(--sidebar-w);
  }
}

/* ================================================================
   TABLET (768px — 1023px)
   ================================================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .stat-pills {
    bottom: 110px;
    left: 20px;
    right: 20px;
  }
}

/* ================================================================
   SMALL MOBILE (< 380px)
   ================================================================ */
@media (max-width: 379px) {
  .stat-pill__value {
    font-size: 17px;
  }

  .stat-card__value {
    font-size: 22px;
  }

  .header__trip-name {
    display: none;
  }
}

/* ================================================================
   Leaflet custom marker pulse
   ================================================================ */
.car-marker-pulse {
  width: 24px;
  height: 24px;
  position: relative;
}

.car-marker-pulse__dot {
  width: 14px;
  height: 14px;
  background: var(--green);
  border: 2.5px solid #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.car-marker-pulse__ring {
  width: 24px;
  height: 24px;
  border: 2px solid var(--green);
  border-radius: 50%;
  position: absolute;
  top: 0; left: 0;
  animation: marker-ring 2s ease-out infinite;
  opacity: 0;
}

@keyframes marker-ring {
  0%   { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Non-live marker — no pulse */
.car-marker-static .car-marker-pulse__ring {
  display: none;
}

.car-marker-static .car-marker-pulse__dot {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}
