/* Estilos Modernos TrackerChile v2 */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: #060913;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #38bdf8;
}

.leaflet-container {
    background: #060913 !important;
}

.leaflet-popup-content-wrapper {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(12px);
    color: #f8fafc !important;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6) !important;
}
.leaflet-popup-tip {
    background: rgba(15, 23, 42, 0.95) !important;
}

.vehicle-marker-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 2px solid #ffffff;
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.55);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.vehicle-marker-icon:hover {
    transform: scale(1.15);
}

/* Efecto de pulso brillante para vehículos en movimiento */
.vehicle-moving-pulse {
    position: relative;
}

.vehicle-moving-pulse::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 9999px;
    background: inherit;
    opacity: 0.75;
    z-index: -1;
    animation: marker-pulse-glow 1.5s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes marker-pulse-glow {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.6);
        opacity: 0;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Flecha de rumbo direccional */
.vehicle-heading-arrow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    transition: transform 0.4s ease-out;
}

.vehicle-heading-arrow::after {
    content: "";
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 9px solid #38bdf8;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}
