﻿/* ════════════════════════════════════════════════════════════════════════
   mewa-map.css
   Path: wwwroot/css/mewa-map.css

   Driver-Marker: nur Car-Icon, kein Ring, kein Background
   ════════════════════════════════════════════════════════════════════════ */

/* Marker-Container — default Leaflet Background überschreiben */
.mewa-marker-wrap {
    background: transparent !important;
    border: none !important;
}

/* Wrapper */
.mewa-car-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Car-Image pur */
.mewa-car-img {
    position: relative;
    width: 44px;
    height: 44px;
    object-fit: contain;
    z-index: 2;
    transform-origin: center center;
    transition: transform 0.5s ease-out;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* Anomaly Pulse Ring (außen) */
.mewa-car-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.35);
    animation: mewa-car-pulse 1.5s infinite;
    z-index: 0;
}

/* Anomaly Badge top-right */
.mewa-car-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: #DC2626;
    color: #fff;
    border: 1.5px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    z-index: 3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Pulse-Animation */
@keyframes mewa-car-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Tooltip-Styling subtle */
.leaflet-tooltip {
    background: rgba(11, 11, 11, 0.92) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    font-family: 'DM Sans', -apple-system, sans-serif !important;
}

.leaflet-tooltip-top:before {
    border-top-color: rgba(11, 11, 11, 0.92) !important;
}

.leaflet-tooltip strong {
    color: #fff;
    font-size: 12px;
}

.leaflet-tooltip small {
    color: rgba(255, 255, 255, 0.85);
    font-size: 10px;
}
