#alarmIndicator {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 9999;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

#alarmIndicator.active {
    opacity: 1;
    transform: scale(1);
    animation: pulse 1s infinite;
}

#alarmIndicator .alarm-icon {
    background: #ff0000;
    color: #fff;
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes pulse {
    0%   { transform: scale(1); box-shadow: 0 0 10px rgba(255, 0, 0, 0.8); }
    50%  { transform: scale(1.2); box-shadow: 0 0 25px rgba(255, 0, 0, 1); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 0, 0, 0.8); }
}

#alarmPanel li.active {
    outline: 2px solid #fff;
    background-color: #0d6efd !important;
}

.fade-out {
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden;
    transition: all 0.35s ease;
}



/* OPenStreetMap Панелът да е скрит по подразбиране */
/* Скриваме секцията с turn-by-turn (по подразбиране) */
.leaflet-routing-container, .leaflet-routing-alt {
  display: none !important;
}

/* Лек стил за HTML-маркера (по желание) */
.html-marker {
  pointer-events: auto;
  transform: translate(-50%, -50%);
  /* може да си добавиш transitions/текстови сенки тук */
}

/* Плавна ротация/изглаждане, ако искаш (не задължително) */
.car-marker-smooth {
  transition: transform 0.2s linear;
}

.dark-red {
    background-color: #aa0000 !important;
}

.distance-label {
    background: rgba(60,120,60,0.75);
    color: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    pointer-events: none;
}