/* 
 * Zenit Map Styles
 * Shared styles for Leaflet maps across the platform.
 */

/* --- Leaflet Overrides --- */
.custom-div-icon {
    background: transparent;
    border: none;
}

/* --- Map Legend --- */
.map-legend {
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    font-size: 12px;
    line-height: 1.5;
    min-width: 150px;
    color: #555;
    font-family: var(--falcon-font-sans-serif);
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-pin {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.legend-icon {
    font-size: 10px;
}

/* --- Custom Map Markers (Pins) --- */
/* Renamed to .zenit-marker-pin to avoid conflicts */
.zenit-marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #2c7be5; /* Default color */
    position: absolute;
    transform: rotate(-45deg);

    /* Center in the 44x44 container */
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;

    box-shadow: 0 3px 5px rgba(0,0,0,0.3);

    /* Flexbox to center the icon inside the rotated pin */
    display: flex;
    align-items: center;
    justify-content: center;
}

.zenit-marker-pin::after {
    content: none;
}

.zenit-marker-icon {
    /* Counter-rotate the icon so it appears upright */
    transform: rotate(45deg);
    font-size: 14px;
    color: white !important;
    line-height: 1;
    pointer-events: none;
}

/* --- Animations --- */
.pulse-icon .zenit-marker-pin {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: rotate(-45deg) scale(1);
        box-shadow: 0 0 0 0 rgba(0, 210, 122, 0.7);
    }
    70% {
        transform: rotate(-45deg) scale(1.1);
        box-shadow: 0 0 0 10px rgba(0, 210, 122, 0);
    }
    100% {
        transform: rotate(-45deg) scale(1);
        box-shadow: 0 0 0 0 rgba(0, 210, 122, 0);
    }
}

/* --- Leaflet Control Customization (Falcon Theme) --- */
.leaflet-control-layers {
    border: none !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    border-radius: 0.375rem !important;
    font-family: var(--falcon-font-sans-serif);
}

.leaflet-control-layers-expanded {
    padding: 0.75rem !important;
    background-color: #fff;
    color: var(--falcon-gray-700);
}

.leaflet-control-layers-base label {
    display: flex !important;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8333333333rem; /* fs--1 */
    font-weight: 500;
    cursor: pointer;
}

.leaflet-control-layers-base label:last-child {
    margin-bottom: 0;
}

.leaflet-control-layers-base input[type="radio"] {
    margin: 0 0.5rem 0 0 !important;
    cursor: pointer;
    accent-color: var(--falcon-primary);
    width: 1rem;
    height: 1rem;
}
