/* ==========================================================================
   Newo — Composant partagé : bandeau trajet
   Ligne de trajet animée + pins de localisation + avatar moto-livreur.
   Utilisé sur l'écran de connexion (bandeau mobile) et le tableau de bord
   (widget "prochaine course"). Nécessite tokens.css chargé avant ce fichier.
   ========================================================================== */

.route-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 14px;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.route-strip-svg {
  flex: 1;
  min-width: 0;
  height: 20px;
  overflow: visible;
}

.route-strip-line {
  fill: none;
  stroke: url(#routeGradientMobile);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 7 8;
  animation: dash-flow-strip 1.6s linear infinite;
}

@keyframes dash-flow-strip {
  to { stroke-dashoffset: -30; }
}

.route-strip-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}

.route-strip-sep { color: var(--fog-dim); }

.pickup-pin { fill: var(--amber); }
.dropoff-pin { fill: var(--cyan); }

.scooter-icon {
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.55));
}

.scooter-line { stroke: var(--white); }
.scooter-box { fill: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  .route-strip-line { animation: none; }
}
