/* v3.13.97: clear standalone direction arrow (not a circular button). */
.cm-vehicle-pin{border:0!important;background:transparent!important;display:grid;place-items:center}
.cm-vehicle-pin-body{box-sizing:border-box;display:grid;place-items:center;width:19px;height:19px;border:2px solid #fff;box-shadow:0 1px 6px rgba(18,44,61,.45);border-radius:50%;color:#fff;background:var(--pin-color,#aebbc5);transition:transform .14s ease,box-shadow .14s ease}
.cm-vehicle-pin:hover .cm-vehicle-pin-body{filter:brightness(1.06)}
.cm-vehicle-pin.cm-pin-selected{z-index:1000!important}
.cm-vehicle-pin.cm-pin-selected .cm-vehicle-pin-body{box-shadow:0 0 0 2px #ffffff,0 0 0 3px #116eb4,0 2px 8px rgba(18,44,61,.4)}
.cm-pin-direction{width:28px;height:28px;border:0;border-radius:0;background:transparent;box-shadow:none!important;overflow:visible}
.cm-pin-direction .cm-pin-arrow{display:block;transform:rotate(var(--cm-heading,0deg));transform-origin:center;filter:drop-shadow(0 2px 2px rgba(0,0,0,.65))}
.cm-vehicle-pin.cm-pin-selected .cm-pin-direction{box-shadow:none!important}
.cm-vehicle-pin.cm-pin-selected .cm-pin-direction .cm-pin-arrow{filter:drop-shadow(0 0 2px #0b5da7) drop-shadow(0 2px 2px rgba(0,0,0,.55))}
.cm-pin-dot{display:block;width:6px;height:6px;border-radius:50%;background:#fff}
.cm-pin-moving{--pin-color:#15945c}.cm-pin-stopped{--pin-color:#168ac0}
.cm-pin-gps-stale{--pin-color:#db9218}.cm-pin-gps-no-speed{--pin-color:#6e98b9}
.cm-pin-delayed{--pin-color:#8b8298}.cm-pin-offline{--pin-color:#71859b}.cm-pin-unknown{--pin-color:#b6bec9}
/* A / B are recorded historical endpoints, NOT vehicle status indicators. */
.cm-map-route-pin{border:0!important;background:transparent!important;display:grid;place-items:center}
.cm-map-route-body{display:grid;place-items:center;justify-content:center;width:31px;height:31px;border:3px solid #fff;border-radius:12px;box-shadow:0 2px 12px #203b5260;color:#fff;font-size:14px;font-weight:900;line-height:1;background:#15945c}
.cm-map-route-end .cm-map-route-body{background:#cf4242}
.cm-map-route-pin:hover .cm-map-route-body{transform:scale(1.1)}
.cm-shared-map-legend{display:flex;flex-wrap:wrap;align-items:center;gap:5px 13px;padding:9px 13px;font-size:11px;color:#4e687c;background:#f6f9fc;border-top:1px solid #e4edf4}
.cm-shared-map-legend span{display:inline-flex;align-items:center;gap:5px}
.cm-shared-map-legend i{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--cm-legend-color,#71859b)}
.cm-shared-map-legend .move{--cm-legend-color:#15945c}.cm-shared-map-legend .stop{--cm-legend-color:#168ac0}.cm-shared-map-legend .stale{--cm-legend-color:#db9218}.cm-shared-map-legend .delay{--cm-legend-color:#8b8298}.cm-shared-map-legend .offline{--cm-legend-color:#71859b}
.cm-shared-route-caption{font-size:11px;color:#577087;padding:7px 13px 3px}

/* v3.13.65: compact, consistent vehicle detail popups; values are escaped by CMMapVisuals. */
.cm-vpopup{width:min(302px,75vw);font:inherit;color:#1d3447;line-height:1.38}
.cm-vpopup-title{font-size:15px;font-weight:850;line-height:1.3;overflow-wrap:anywhere}
.cm-vpopup-plate{font-size:11px;color:#6c8291;margin:2px 0 6px}
.cm-vpopup-state{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;color:#2a5567;border-radius:20px;padding:4px 9px;margin:5px 0 9px;background:#eaf3f8}
.cm-vpopup-state i{display:block;width:8px;height:8px;border-radius:50%;background:#71859b}
.cm-vpopup-moving i{background:#15945c}.cm-vpopup-stopped i{background:#168ac0}.cm-vpopup-gps-stale i{background:#db9218}.cm-vpopup-delayed i{background:#8b8298}.cm-vpopup-offline i{background:#71859b}
.cm-vpopup .cm-map-popup-address{margin:0 0 8px;padding:7px 0}
.cm-vpopup-data{display:grid;grid-template-columns:minmax(70px,1fr) minmax(0,1.7fr);gap:6px 9px;font-size:11px;padding:10px 0;border-top:1px solid #e1eaf1;border-bottom:1px solid #e1eaf1}
.cm-vpopup-data span{color:#6a8192}.cm-vpopup-data strong{font-size:11px;font-weight:720;overflow-wrap:anywhere}
.cm-vpopup-warning{font-size:11px;color:#9a6917;font-weight:700;margin:8px 0 2px}
.cm-vpopup-note{font-size:10px;color:#7a8e9d;line-height:1.38;margin:6px 0}
.cm-vpopup-actions{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0 3px}
.cm-vpopup-actions a{font-size:11px;font-weight:750;color:#135d89;text-decoration:none;padding:6px 8px;border-radius:7px;border:1px solid #d3e4ee;background:#eff7fb}
.cm-vpopup-actions a:hover{background:#dfeef7}
.cm-vpopup .cm-map-share-popup-actions,.cm-vpopup .cm-mapy-actions{margin-top:7px}
.cm-vpopup .cm-mapy-actions a,.cm-vpopup .cm-mapy-actions button{font-size:11px}
@media(max-width:500px){.cm-vpopup{width:min(285px,75vw)}.cm-vpopup-data{grid-template-columns:74px minmax(0,1fr)}}
@media print{.cm-vpopup-actions,.cm-vpopup .cm-map-share-popup-actions,.cm-vpopup .cm-mapy-actions{display:none!important}}

.cm-vpopup-address{display:grid;gap:3px;margin:4px 0 8px;padding:8px 0;border-top:1px solid #e1eaf1;font-size:11px}
.cm-vpopup-address span{color:#6a8192}
.cm-vpopup-address strong{font-size:12px;line-height:1.4;overflow-wrap:anywhere}

/* v3.13.66: last recorded movement is not the same as confirmed live driving. */
.cm-pin-last-moving{--pin-color:#d79a30}
.cm-vpopup-last-moving i{background:#d79a30}

.cm-shared-map-legend .last-move{--cm-legend-color:#d79a30}

/* v3.13.67: keep popup controls and close button clear of map controls.
   Leaflet receives corresponding right/top autopan padding from popupOptions(). */
.cm-vehicle-leaflet-popup .leaflet-popup-content-wrapper{
  border:1px solid #d6e5ee;
  border-radius:14px;
  box-shadow:0 8px 28px rgba(28,53,73,.20);
}
.cm-vehicle-leaflet-popup .cm-vpopup{max-width:100%;box-sizing:border-box}
.cm-vehicle-leaflet-popup .cm-vpopup-title{padding-right:25px}
.cm-vehicle-leaflet-popup a.leaflet-popup-close-button{
  right:8px;top:8px;z-index:5;
  width:27px;height:27px;line-height:24px;
  border-radius:50%;background:#eef4f8;color:#415c70;
  text-align:center;font-size:19px;
}
.cm-vehicle-leaflet-popup a.leaflet-popup-close-button:hover{background:#dfebf3;color:#17384d}
.cm-vehicle-leaflet-popup .leaflet-popup-content{max-width:calc(100vw - 56px);margin:13px 18px}
@media(max-width:620px){
  .cm-vehicle-leaflet-popup .leaflet-popup-content{margin:10px 13px}
  .cm-vehicle-leaflet-popup .cm-vpopup{width:100%;max-width:100%}
}

/* Keep a generous Leaflet interaction area without a large visible marker. */
.cm-pin-stationary{width:14px;height:14px;border-width:2px}
.cm-vehicle-pin.cm-pin-selected .cm-pin-stationary{box-shadow:0 0 0 2px white,0 0 0 3px #116eb4,0 1px 5px rgba(0,0,0,.35)}
