

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;
}


/* Mejoras para la barra de navegación */
.navbar-brand {
  font-size: 1.4rem;
}

.nav-link {
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Estilos específicos para el dropdown funcionen correctamente */
.dropdown-menu {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10050; /* Mayor que el z-index del mapa */
}

.dropdown-item {
  padding: 0.5rem 1rem;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #000;
}

/* Asegurar que el dropdown se muestre correctamente */
.navbar-nav .dropdown-menu {
  position: absolute;
}

/* Indicador visual para la página activa */
.navbar-nav .nav-link.active {
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Mejoras responsivas */
@media (max-width: 991.98px) {
  .navbar-nav {
    padding-top: 1rem;
  }
  
  .nav-item {
    margin-bottom: 0.5rem;
  }
  
  .navbar-nav.ms-auto {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
  }
  
  /* Ajustes para dropdown en móviles */
  .dropdown-menu {
    position: static;
    float: none;
    width: auto;
    margin-top: 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
  }
  
  .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1.5rem;
  }
  
  .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
  }
}












