/* Estilos generales */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Header */
#header {
	position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
	padding: 7px;
    border-bottom: 7px solid #87CEFA; /* Línea divisoria celeste */
    display: flex;
    align-items: left;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#logo {
    height: 60px;
	
}
#titulo {
    font-size: 16 px;
	font-weight: bold;
	font-family: "Arial", sans-serif;
	color: #094293;
	text-align: center;
	padding: 0px 30px;
	
	
	
}

#buscar {
    width: 170px;
    padding: 5px;
    font-size: 12px;
    border: 2px solid #87CEFA; /* Color celeste */
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

#buscar:focus {
    border-color: #4682B4; /* Un tono más oscuro de celeste */
    outline: none;
}
#botonera {
	align-items: center;
	position: left;
	width: 100%;
    align-items: left;
    
}
			

#limpiar {
	height: 30px;
    padding: 5px 7px;
    font-size: 12px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
	margin-left: 5px;
}
#btn-buscar {
	height: 30px;
    padding: 3px 4px;
    font-size: 12px;
    background-color: #4CAF50; /* Verde */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 5px;
}
#lineas {
	height: 30px;
    padding: 5px 7px;
    font-size: 12px;
    background-color: #1354b0; /* Azul */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 5px;
}
#lineas:hover {
    background-color: #094293; /* Verde oscuro */
}
#btn-buscar:hover {
    background-color: #45a049; /* Verde oscuro */
}

#limpiar:hover {
    background-color: #d32f2f;
}

/* Mapa */
#map {
    height: calc(100vh - 90px); /* Ajustar altura del mapa */
    width: 100%;
	margin-top: 63px;
}

/* Leyenda personalizada */
.legend {
    background: white;
    padding: 15px;
    font-size: 13px;
    line-height: 1.5;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    max-width: 200px;
}

.leyenda-titulo {
    font-weight: bold;
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.leyenda-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    color: #333;
}

.color-box {
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    margin-right: 8px;
    border: 1px solid #999;
    border-radius: 3px;
}

/* Resultados de búsqueda */
#resultados {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    z-index: 1000;
    display: none;
}

.resultado-item {
    padding: 5px;
    cursor: pointer;
    border-bottom: 1px solid #ccc;
}

.resultado-item:hover {
    background-color: #f0f0f0;
}

/* Popup */
.custom-popup {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #333;
    padding: 5px;
    border-radius: 10px;
    background: #ffffff;
    max-width: 400px;
    line-height: 1;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-title {
    font-weight: bold;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.popup-info {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.popup-info img {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}
.popup-details {
  margin-top: 5px;
  border-top: 1px solid #ddd;
  padding-top: 5px;
  max-height: 140px;
  overflow-y: auto;
}

.popup-details summary {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  padding: 5px;
  background: #f5f5f5;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.popup-details summary:hover {
  background: #eaeaea;
}

.popup-details[open] summary {
  background: #e0e0e0;
}

.popup-details .asociado {
  padding: 5px 5px;
  font-size: 11px;
  color: #333;
  border-bottom: 1px solid #e0e0e0;
}

/* Animación */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



    #logo {
        height: 40px;
    }

    #titulo {
        font-size: 14px;
        padding: 10px 0;
    }

    .botones {
        display: flex;
		justify-content: center;
		flex-wrap: wrap;
		gap: 10px; /* Espacio entre botones */
		margin-top: 10px;
		width: 100%;
    }

    .botones button {
        flex: 1;
		min-width: 120px; /* Tamaño mínimo para que no se achiquen demasiado */
		max-width: 180px;
		padding: 12px;
		font-size: 16px;
    }

    #map {
        height: calc(100vh - 120px);
    }
}
