/* MISTER FAST LiveMapChat WEB V3.2.5
   Moving dotted route + destination pulse only — WEB only. */

/* One SVG path only: no cloned overlay, no rendering loop. */
#mf514Map .leaflet-overlay-pane svg path.mf-v325-route-flow,
.mf514-map-pane .leaflet-overlay-pane svg path.mf-v325-route-flow {
  fill: none !important;
  stroke: #1769e8 !important;
  stroke-width: 6px !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-dasharray: 3 13 !important;
  stroke-dashoffset: 0;
  opacity: .98 !important;
  filter: drop-shadow(0 0 2px rgba(23,105,232,.45));
  animation: mf325DottedRouteFlow .72s linear infinite !important;
  will-change: stroke-dashoffset;
}

#mf514Map .leaflet-overlay-pane svg path.mf-v325-route-flow.is-driver-route,
.mf514-map-pane .leaflet-overlay-pane svg path.mf-v325-route-flow.is-driver-route {
  stroke: #22a85f !important;
  stroke-dasharray: 3 12 !important;
  animation-duration: .66s !important;
  filter: drop-shadow(0 0 2px rgba(34,168,95,.42));
}

@keyframes mf325DottedRouteFlow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -32; }
}

/* The real vehicle marker is the start point; it must not pulse. */
.mf-v322-pulse-icon:has(.mf-v322-pulse.is-driver),
.mf-v322-pulse-icon:has(.mf-v322-pulse.is-pickup),
.mf-v322-pulse.is-driver,
.mf-v322-pulse.is-pickup {
  display: none !important;
  animation: none !important;
}

/* Only destination keeps the red pulse. */
.mf-v322-pulse.is-dropoff::before,
.mf-v322-pulse.is-dropoff::after {
  animation: mf325DestinationPulse 1.25s ease-out infinite !important;
}
.mf-v322-pulse.is-dropoff::after { animation-delay: .42s !important; }

@keyframes mf325DestinationPulse {
  0%   { transform: scale(.45); opacity: .95; }
  62%  { opacity: .44; }
  100% { transform: scale(1.78); opacity: 0; }
}

[data-mf324-auth-action] {
  pointer-events: auto !important;
  cursor: pointer !important;
  touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
  #mf514Map .leaflet-overlay-pane svg path.mf-v325-route-flow,
  .mf514-map-pane .leaflet-overlay-pane svg path.mf-v325-route-flow {
    animation-duration: 2.2s !important;
  }
  .mf-v322-pulse.is-dropoff::before,
  .mf-v322-pulse.is-dropoff::after {
    animation-duration: 2.4s !important;
  }
}
