/* Estilos para la página de clínicas */

.card-body-clinic {
    padding: var(--spacing-sm-md);
  }

/* Hero section con gradiente */
.clinicas-hero {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    position: relative;
    overflow: hidden;
}

.clinicas-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Contenedor del mapa */
.clinicas-map-container {
    background: #fff;
    border-radius: 8px;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
    padding: 20px;
    height: 100%;
}

/* El mapa necesita altura específica */
.clinicas-map {
    width: 100%;
    height: 525px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

/* Lista de clínicas */
.clinicas-list-container {
    /* background: #fff; */
    border-radius: 8px;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
    padding: 20px;
    height: 100%;
    max-height: 650px;
    overflow-y: auto;
}

.clinicas-list {
    /*max-height: 500px;
    overflow-y: auto;*/
}

/* Tarjetas de clínicas */
.clinica-card .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius-md);
}

.clinica-card .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Información de la clínica */
.clinica-info p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.clinica-info i {
    width: 16px;
    text-align: center;
}

.clinica-info .address {
    cursor: pointer;
    text-decoration: underline;
    color: var(--text-secondary);
}
.clinica-info .address:hover {
    color: var(--text-primary);
}

/* Botones de acción */
.clinica-actions {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
    margin-top: 15px;
}

/* Buscador */
.search-form .input-group {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-radius: 8px;
    overflow: hidden;
}

.search-form .form-control {
    border: none;
    padding: 15px 20px;
}

.search-form .btn {
    padding: 15px 25px;
    border: none;
}

/* Responsive */
@media (max-width: 991.98px) {
    .clinicas-map {
        height: 400px;
        margin-top: 20px;
    }
    
    .clinicas-list-container {
        max-height: none;
        margin-bottom: 20px;
    }
    
    .clinicas-list {
        max-height: none;
    }
}

@media (max-width: 767.98px) {
    .clinicas-map {
        height: 300px;
    }
    
    .clinicas-hero h1 {
        font-size: 2rem;
    }
    
    .clinicas-hero .lead {
        font-size: 1rem;
    }
}

/* Ventanas de información del mapa */
.info-window {
    padding: 10px;
    max-width: 250px;
}

.info-window h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #333;
}

.info-window p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.clinica-card {
    animation: fadeIn 0.5s ease forwards;
}

.clinica-card:nth-child(1) { animation-delay: 0.1s; }
.clinica-card:nth-child(2) { animation-delay: 0.2s; }
.clinica-card:nth-child(3) { animation-delay: 0.3s; }
.clinica-card:nth-child(4) { animation-delay: 0.4s; }
.clinica-card:nth-child(5) { animation-delay: 0.5s; }


.city-box{
    background: #f5f5f5;
    min-width: 180px;
    text-decoration: none;
    transition: box-shadow .2s;
    border: 1px solid var(--text-muted);
}

.city-box:hover{
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    background-color: white;
}

/* Formulario */
#clinicas-search-form input[type="text"]::placeholder{
    color: var(--text-muted);
}