body,
html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.form-label, .card-title, thead th {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.05em;
}

.badge {
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

#map {
    height: 100vh;
    width: 100vw;
    z-index: 1; 
    box-sizing: border-box;
}

.leaflet-top {
    margin-top: 65px;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(240, 242, 245, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Por encima de todo */
    transition: opacity 0.5s ease;
}

.info-leyenda {
    background: rgba(255, 255, 255, 0.9);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #999;
    min-width: 180px;
    font-size: 12px;
    line-height: 1.5;
}

.leaflet-control-geocoder {
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.btn-ubicacion {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    border: 2px solid #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-ubicacion:hover {
    background: #f0f7ff;
}

.user-location-icon {
    background: #007bff;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.btn-info-flotante {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    /* Ajustamos el z-index para que el backdrop de Bootstrap lo cubra */
    z-index: 1040; 
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
}

/* Clase para ocultar el botón cuando el panel está abierto */
.btn-info-flotante.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.btn-info-flotante:hover {
    transform: scale(1.1);
    background-color: #0b5ed7;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* Ajuste para que el panel lateral salga desde la izquierda si el botón está a la izquierda */
.offcanvas-start {
    width: 300px;
}