/* SMR add-ons: header LED strobe lightbar + live recovery-vehicle distance.
   Kept in its own file so site.css is untouched. */

/* ---------- Blue LED strobe lightbar above the topbar phone number ----------
   Absolutely positioned inside the topbar's top padding, so the header height
   and the alignment of everything else stay exactly the same. */
.phone-strobe { position: relative; display: inline-block; }
.lightbar {
  position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%);
  margin-bottom: 1px; display: flex; gap: 2px; padding: 1px 2px;
  background: #0a1422; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(56,189,248,.18);
  pointer-events: none; line-height: 0;
}
.lightbar i {
  display: block; width: 8px; height: 3px; border-radius: 1px;
  background: #0b3550;                               /* LED off */
  animation: smr-strobe 1.6s infinite;
}
/* Alternating double strobe: left three flash twice, then right three flash twice. */
.lightbar i:nth-child(n+4) { animation-delay: .8s; }
@keyframes smr-strobe {
  0%, 7%    { background: #e0f7ff; box-shadow: 0 0 3px #38bdf8, 0 0 7px #38bdf8, 0 0 12px rgba(56,189,248,.75); }
  7.01%, 13% { background: #0b3550; box-shadow: none; }
  13.01%, 20% { background: #e0f7ff; box-shadow: 0 0 3px #38bdf8, 0 0 7px #38bdf8, 0 0 12px rgba(56,189,248,.75); }
  20.01%, 100% { background: #0b3550; box-shadow: none; }
}
/* Respect people who turn off motion/flashing: show a steady glow instead. */
@media (prefers-reduced-motion: reduce) {
  .lightbar i { animation: none; background: #7dd3fc; box-shadow: 0 0 4px #38bdf8; }
}

/* ---------- Live recovery vehicle distance (Track booking tab) ---------- */
.live-van { border: 1px solid #cfe7f7; background: linear-gradient(135deg, #f0f9ff, #fff); border-radius: 10px; }
.live-van .miles { font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1; }
.live-van .eta { font-weight: 700; color: #0369a1; }
.live-map { height: 220px; border-radius: 8px; border: 1px solid var(--line); z-index: 0; }
.pin.van { background: #0284c7; border-radius: 50%; transform: none; }
.pin.van i { transform: none; }
.gps-status { font-size: .85rem; }
