* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.locator-container {
    display: flex;
    height: 100vh; /* Ocupa toda la pantalla */
    width: 100%;
}

.sidebar {
    width: 380px;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ddd;
    z-index: 10;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.search-header {
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

.search-header h2 {
    color: #003b7a; /* Color referencial corporativo */
    margin-bottom: 15px;
    font-size: 1.5rem;
}

#search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.agencies-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
}

.agency-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
}

.agency-card:hover {
    border-color: #003b7a;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.agency-card h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
}

.agency-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.map-area {
    flex-grow: 1;
    height: 100%;
}

/* Responsive para dispositivos móviles */
@media (max-width: 768px) {
    .locator-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: 50vh; /* Mitad de pantalla para la lista */
    }
    .map-area {
        height: 50vh; /* Mitad de pantalla para el mapa */
    }
}

/* Estilos para el botón de "Cómo llegar" */
.btn-directions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 16px;
    background-color: #003b7a; /* Color corporativo */
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: 100%; /* Ocupa todo el ancho disponible en la tarjeta */
}

.btn-directions:hover {
    background-color: #002651;
    color: #ffffff;
}

.btn-directions:active {
    transform: scale(0.98);
}

/* Estilo para el botón dentro del popup del mapa */
.leaflet-popup-content .btn-directions {
    margin-top: 10px;
    padding: 6px 12px;
    font-size: 0.85rem;
}
