/* Air Dispatch directional GPS markers. Inherits Fleet light/dark theme. */
.fleet-direction-icon{background:transparent!important;border:0!important;overflow:visible!important}
.fleet-direction-marker{--vehicle:#526579;position:relative;display:flex;align-items:center;gap:6px;width:max-content;min-width:110px;pointer-events:auto;filter:drop-shadow(0 2px 5px rgba(0,0,0,.22))}
.fleet-direction-marker.rochester{--vehicle:#2563eb}
.fleet-direction-marker.buffalo{--vehicle:#dc3766}
.fleet-direction-arrow{width:27px;height:27px;display:grid;place-items:center;flex-shrink:0;transition:transform .7s ease;transform-origin:center}
.fleet-direction-arrow svg{width:25px;height:25px;overflow:visible;fill:var(--vehicle);stroke:rgba(255,255,255,.95);stroke-width:2.4;stroke-linejoin:round}
.fleet-direction-label{display:flex;flex-direction:column;gap:1px;padding:4px 9px;background:rgba(255,255,255,.96);color:#172234;border:1px solid rgba(100,116,139,.24);border-radius:9px;white-space:nowrap;max-width:160px}
.fleet-direction-label b{font-size:12px;font-weight:800;line-height:1.3;max-width:135px;text-overflow:ellipsis;overflow:hidden}
.fleet-direction-label small{font-size:10px;line-height:1.2;color:#586576}
.fleet-direction-marker.offline{opacity:.83;filter:grayscale(.23)}
.fleet-direction-marker.selected{z-index:999}
.fleet-direction-marker.selected .fleet-direction-label{border:2px solid var(--vehicle);box-shadow:0 0 0 3px rgba(59,130,246,.18)}
.fleet-direction-marker.selected .fleet-direction-arrow svg{filter:drop-shadow(0 0 4px var(--vehicle))}
.fleet-direction-marker.moving .fleet-direction-arrow{animation:fleet-gps-pulse 2.5s ease-in-out infinite}
@keyframes fleet-gps-pulse{0%,100%{filter:drop-shadow(0 0 0 transparent)}50%{filter:drop-shadow(0 0 5px var(--vehicle))}}
html[data-theme="dark"] .fleet-direction-label,body.dark .fleet-direction-label,body[data-theme="dark"] .fleet-direction-label{background:rgba(22,30,42,.96);color:#f4f7fb;border-color:#536073}
html[data-theme="dark"] .fleet-direction-label small,body.dark .fleet-direction-label small,body[data-theme="dark"] .fleet-direction-label small{color:#b6c4d3}
@media(prefers-reduced-motion:reduce){.fleet-direction-marker.moving .fleet-direction-arrow{animation:none}.fleet-direction-arrow{transition:none}}

/* Darker, smaller arrows; independent marker personalization. */
.fleet-direction-marker{filter:drop-shadow(0 2px 3px rgba(0,0,0,.48))}
.fleet-direction-arrow svg{opacity:1;filter:drop-shadow(0 1px 2px rgba(0,0,0,.56))}
.adi-marker-colors-button{z-index:3501;cursor:pointer;border:1px solid #849ab3;border-radius:9px;background:#183650;color:#fff;font-weight:750;font-size:12px;padding:8px 12px}
body[data-page="tracking"] .track-map>.adi-marker-colors-button{position:absolute;right:12px;bottom:18px}
.adi-marker-prefs-backdrop{position:fixed;inset:0;background:rgba(7,18,32,.70);z-index:99999;display:grid;place-items:center;padding:18px}
.adi-marker-prefs-panel{width:min(660px,100%);max-height:88vh;overflow:auto;background:var(--panel,#fff);color:var(--text,#1a2b40);border:1px solid var(--border,#9badc0);border-radius:16px;padding:20px;box-shadow:0 18px 60px #0008}
.adi-marker-prefs-panel header,.adi-marker-prefs-panel footer{display:flex;justify-content:space-between;align-items:center;gap:12px}
.adi-marker-prefs-panel h2{font-size:19px;margin:0}.adi-marker-prefs-panel h3{font-size:14px;margin:18px 0 8px}
.adi-marker-prefs-panel p{font-size:12px;line-height:1.5;color:var(--muted,#68798c)}
.adi-marker-prefs-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:7px}
.adi-marker-prefs-fields label{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 11px;border:1px solid var(--border,#bdc9d6);border-radius:9px;font-size:12px;font-weight:700}
.adi-marker-prefs-fields small{color:var(--muted,#68798c)}
.adi-marker-prefs-fields label span{display:flex;align-items:center;gap:4px}
.adi-marker-prefs-fields input[type=color]{width:38px;height:27px;border:0;background:transparent;cursor:pointer}
.adi-marker-prefs-panel button{padding:8px 13px;border:1px solid #8da3bc;border-radius:9px;cursor:pointer;background:var(--soft,#e8eef4);color:var(--text,#182b40)}
.adi-marker-prefs-panel footer{margin-top:18px}
