/* CHEX · Live-Standort des Fahrers auf der Karte und Teilen-Leiste. */
/* ---------- Live-Standort des Fahrers ---------- */
.map-car { display: grid; place-items: center; }
.map-car.glide { transition: transform 1.2s linear; }
.leaflet-zoom-anim .map-car { transition: none; }
.car-halo { position: absolute; inset: 0; border-radius: 50%; background: var(--accent); opacity: .22; animation: ping 2s var(--ease-out) infinite; }
.car-body {
  position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
}
.car-body svg { width: 14px; height: 14px; fill: #fff; opacity: 0; transform: rotate(var(--rot, 0deg)); transition: transform .6s var(--spring), opacity .2s; }
.map-car.dir .car-body svg { opacity: 1; }
.map-car:not(.dir) .car-body::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.map-card.live .map-foot { color: var(--text); }
.live-tag {
  display: inline-flex; align-items: center; gap: 5px; margin-right: 4px; padding: 2px 8px 2px 6px; border-radius: 980px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.live-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink-dot 1.4s infinite; }
@keyframes blink-dot { 50% { opacity: .3; } }
.share-btn { margin-top: 12px; }
.share-btn.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.share-btn .pulse { display: inline-block; width: 9px; height: 9px; margin-right: 6px; background: var(--accent); vertical-align: 1px; }
.share-bar {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 76px); z-index: 900; translate: -50% 0;
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px); padding: 7px 7px 7px 14px; border-radius: 980px;
  background: color-mix(in srgb, var(--accent) 92%, #000); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: map-in .35s var(--spring);
}
.share-bar a { color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-bar .pulse { background: #fff; width: 9px; height: 9px; }
.share-bar .btn { background: rgba(255, 255, 255, .2); color: #fff; border: 0; min-height: 32px; }
body.map-open .share-bar { display: none; }
@media (prefers-reduced-motion: reduce) { .map-car, .car-body svg { transition: none; } .car-halo, .live-tag::before { animation: none; } }
