/* ==========================================================================
   ESTILOS PERSONALIZADOS - V12 (Carga suave del mapa)
   ========================================================================== */

:root {
    --leaflet-control-center-active-color: #0d6efd;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

#loader {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    font-size: 1.25rem;
    color: var(--bs-primary);
}

.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    z-index: 9998;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
}
.toast.show { bottom: 30px; }

#lista-levantamientos .list-group-item:not(.text-muted) {
    cursor: pointer;
}

#pantalla-mapa {
    height: 100%; 
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* [MODIFICADO] Se añade un color de fondo para una carga más suave */
#mapa {
    flex-grow: 1;
    height: 100%;
    width: 100%;
    background-color: #e9e9e9;
}

/* [NUEVO] Ajuste de margen superior para los controles de Leaflet
   Esto los empuja hacia abajo para evitar solapamiento con el encabezado. */
.leaflet-control-container .leaflet-top.leaflet-left,
.leaflet-control-container .leaflet-top.leaflet-right {
    margin-top: 40px; /* Ajusta este valor según la altura de tu encabezado. */
}


.static-location-dot {
    background-color: var(--leaflet-control-center-active-color);
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.fab {
    position: absolute;
    bottom: 25px;
    right: 20px;
    z-index: 1001;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.fab:hover {
    transform: scale(1.05);
}
.fab svg {
    width: 24px;
    height: 24px;
    fill: white;
}
.fab-main { background-color: #0d6efd; }
.fab-main:hover { background-color: #0b5ed7; }

.leaflet-popup-content-wrapper {
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


