

html, body {
    height: 100%; /* Define el 100% de la ventana */
}
body{
    padding:0;
    margin:0;
    background:#333;
}

#map-template{
    height:100%;
    width:100%;
    top:0;
    position:absolute;
    
}

#map-rutes{
    height:100%;
    width:100%;
    top:0;
    position:absolute;
     
    
}
#map-coordenadas{
    height:100%;
    width:100%;
    top:0;
    position:absolute;
     
    
}

#map-emergencias{
    height:100%;
    width:100%;
    top:0;
    position:absolute;
     
    
}

#map-emergencias-inicio{
    height:100%;
    width:100%;
    top:0;
    position:absolute;
     
    
}

#map-emergencias-llegada{
    height:100%;
    width:100%;
    top:0;
    position:absolute;
     
    
}

.custom-div-icon {
    background: none !important; /* Asegura que el contenedor Leaflet no tenga fondo */
    border: none !important;
}

/* Estilo para la forma circular interna del nodo */
.nodo-circular {
    /* Clave para el círculo */
    border-radius: 50% !important; 
    
    /* Propiedades de tamaño y color (ajuste según necesite) */
    background-color: #00ff15; /* Azul del nodo (ejemplo) */
    color: #080807;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}


.cursor-fijo {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Ajustes para centrar la cruz visualmente */
    width: 15px;
    height: 15px;
    margin-left: -7.5px; 
    margin-top: -7.5px;
    
    /* Diseño del cursor (un círculo o una cruz) */
    border: 3px solid #ff0000; /* Borde Rojo */
    border-radius: 50%; /* Círculo */
    background-color: rgba(255, 255, 255, 0.5); 
    
    /* CRÍTICO: Permite que el mapa debajo reciba eventos de arrastre */
    pointer-events: none; 
    z-index: 1000; 
}
.navbar-fixed-top, .navbar {
    z-index: 10001 !important; /* Elige un valor claramente superior al de Leaflet */
}

/* Ejemplo para un modal */
.modal {
    z-index: 10002 !important;
}

/* Ejemplo para un menú desplegable */
.dropdown-menu {
    z-index: 10003 !important;
}


.nav-derecha {
      text-align: right;
    }

.nav-izquierda {
      text-align: left;
    }



.nodos-card {
    position: absolute;
    top: 10px;        /* Posición desde arriba */
    right: 10px;      /* Posición desde la derecha */
    z-index: 1000;    /* Asegura que esté sobre el mapa */
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    max-height: 80%;
    overflow-y: auto;
    font-family: Arial, sans-serif;
    display: none; /* **CRÍTICO: Inicia oculto** */
}

.nodos-card h5 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #3399ff;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.nodo-item {
    padding: 5px 0;
    font-size: 14px;
}

.nodo-name {
    font-weight: bold;
    color: #3399ff;
}