/* Only the bright green history route line */
.map-green-line {
    stroke-linejoin: round !important;
    stroke-linecap: round !important;
}

/* Full map viewport — prevent half-map / clipped tiles */
html, body {
    height: 100%;
}
#mapWrap {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    height: auto !important;
    overflow: hidden !important;
}
#map,
#map.leaflet-container,
.leaflet-container {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
}
#map {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
}

/* Selected vehicle in Objects list */
#ajax-items li[data-device-id].active,
#objects_tab #ajax-items li.active {
    background: #e8f3ff !important;
    border-left: 4px solid #1a73e8 !important;
    box-shadow: inset 0 0 0 1px rgba(26, 115, 232, 0.25);
}
#ajax-items li[data-device-id].active .name,
#ajax-items li[data-device-id].active .name [data-device="name"] {
    color: #0b57d0 !important;
    font-weight: 700 !important;
}
#ajax-items li[data-device-id].active .details [data-device="speed"] {
    color: #0b57d0 !important;
    font-weight: 600;
}

/* Selected vehicle marker on map — always visible above others */
.leaf-device-marker.leaf-device-selected,
.leaf-device-selected {
    z-index: 10000 !important;
    filter: drop-shadow(0 0 6px rgba(26, 115, 232, 0.95));
}
.leaf-device-selected .name i {
    background: #1a73e8 !important;
    color: #fff !important;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
}
.leaf-device-selected .leaf-device-icon-wrap,
.leaf-device-selected .ico-object-arrow {
    outline: 3px solid #1a73e8;
    border-radius: 50%;
}
