/* KML Leaflet Map – Frontend Styles */

.klm-map-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    margin: 1.5em 0;
    background: #e8f0e8;
}

/* Indicador de carga */
.klm-loader {
    position: absolute;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    color: #555;
    font-family: sans-serif;
}

.klm-loader::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 10px;
    border: 3px solid #ccc;
    border-top-color: #2a9d8f;
    border-radius: 50%;
    animation: klm-spin 0.8s linear infinite;
}

@keyframes klm-spin {
    to { transform: rotate(360deg); }
}

/* Mensaje de error */
.klm-error {
    position: absolute;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff3f3;
    color: #c0392b;
    font-size: 0.9rem;
    padding: 1rem;
    font-family: sans-serif;
    text-align: center;
}

/* Popup de Leaflet – pequeño ajuste tipográfico */
.leaflet-popup-content {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 260px;
}

/* Aviso de scroll wheel */
.klm-map-container .leaflet-container {
    cursor: default;
}
