/* ═══════════════════════════════════════════════════════════════════
   marker.css — marker vozidla z aplikace GPS (vyber z GpsBoss.Web.Components
   wwwroot/css/map/clientMap.css: Map Marker + follow mode). Pro ukazky na
   landingu bez celeho clientMap.css (ten ma globalni pravidla pro body).
   Barva znacky: --brand-primary (nastavuje obal ukazky).
   ═══════════════════════════════════════════════════════════════════ */
.custom-marker-wrapper { background: transparent !important; border: none !important; }
.marker-wrapper { position: relative; display: flex; flex-direction: column; align-items: center; }
.marker-speed-badge {
    position: absolute; top: -9px; right: -12px;
    display: inline-flex; align-items: center; gap: 1px;
    font-size: 9px; font-weight: 700; color: #fff;
    padding: 1px 4px 1px 2px; border-radius: 4px;
    white-space: nowrap; line-height: 14px; z-index: 1; pointer-events: none;
}
.marker-speed-badge.marker-moving { background: #2e7d32; }
.marker-speed-badge.marker-stopped { background: #c62828; }
/* Kratke zastaveni oranzova pauza, delsi stani cerveny stop (ANO-51 v aplikaci). */
.marker-speed-badge.marker-badge-pause { background: #f57c00; }
.marker-speed-badge.marker-badge-stop { background: #c62828; }
.marker-badge-icon { font-size: 12px !important; }
.marker-main {
    display: flex; align-items: center; gap: 3px;
    background: rgba(255, 255, 255, 0.92); border-radius: 5px;
    padding: 2px 5px 2px 2px; box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    white-space: nowrap;
}
.marker-car-icon { font-size: 20px; color: #555; }
.marker-moving .marker-car-icon { color: #2e7d32; }
.marker-stopped .marker-car-icon { color: #c62828; }
.marker-name {
    font-size: 11px; font-weight: 600; color: #222;
    max-width: 100px; overflow: hidden; text-overflow: ellipsis;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
/* Popisek: nazev a doplnujici udaje (ANO-33 v aplikaci) — ukazky nemaji doplnujici udaje, radek je prazdny a skryty. */
.marker-label { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.marker-details { display: none; }
.marker-pin {
    width: 0; height: 0;
    border-left: 5px solid transparent; border-right: 5px solid transparent;
    border-top: 6px solid rgba(255, 255, 255, 0.92);
}
/* Sledovane vozidlo (follow mode) */
.marker-following .marker-main {
    box-shadow: 0 0 0 3px var(--brand-primary), 0 0 10px rgba(32, 107, 196, 0.35), 0 1px 4px rgba(0,0,0,0.2);
    animation: followPulse 2s ease-in-out infinite;
}
.marker-following .marker-pin { border-top-color: var(--brand-primary); }
@keyframes followPulse {
    0% { box-shadow: 0 0 0 3px var(--brand-primary), 0 0 10px rgba(32, 107, 196, 0.35), 0 1px 4px rgba(0,0,0,0.2); }
    50% { box-shadow: 0 0 0 5px var(--brand-primary), 0 0 16px rgba(32, 107, 196, 0.5), 0 1px 4px rgba(0,0,0,0.2); }
    100% { box-shadow: 0 0 0 3px var(--brand-primary), 0 0 10px rgba(32, 107, 196, 0.35), 0 1px 4px rgba(0,0,0,0.2); }
}
@media (prefers-reduced-motion: reduce) {
    .marker-following .marker-main { animation: none; }
}
