#mapa-clinicas-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#mapa-clinicas-filtros {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 280px;
    height: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

#mapa-clinicas-filtros h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
}

.filtro-grupo {
    margin-bottom: 15px;
}

.filtro-grupo label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #555;
    font-size: 14px;
}

.filtro-input,
.filtro-input-small {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.filtro-input-small {
    width: 48%;
}

.rango-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rango-input span {
    flex: 1;
    text-align: center;
    color: #999;
}

.btn-limpiar {
    width: 100%;
    padding: 10px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-limpiar:hover {
    background: #5a6268;
}

.contador-clinicas {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
    text-align: center;
}

.contador-clinicas span {
    font-weight: 700;
    color: #0066cc;
}

#mapa-clinicas-mapa {
    flex: 1;
    min-height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: relative;
}

.leaflet-popup-content {
    font-size: 14px !important;
}

.leaflet-popup-content p {
    margin: 6px 0;
    font-size: 13px;
}

.leaflet-popup-content strong {
    color: #0066cc;
}

#mapa-clinicas-info {
    position: absolute;
    right: 20px;
    top: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}

.info-panel {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-cerrar {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.btn-cerrar:hover {
    color: #333;
}

#mapa-clinicas-info h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    padding-right: 20px;
}

#mapa-clinicas-info p {
    margin: 8px 0;
    font-size: 13px;
    color: #666;
}

#mapa-clinicas-info strong {
    color: #333;
    font-weight: 600;
}

.btn-detalles {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 16px;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.3s;
}

.btn-detalles:hover {
    background: #0052a3;
}

/* Responsive */
@media (max-width: 1024px) {
    #mapa-clinicas-container {
        flex-direction: column;
    }

    #mapa-clinicas-filtros {
        width: 100%;
        position: static;
    }

    #mapa-clinicas-mapa {
        min-height: 500px;
    }

    #mapa-clinicas-info {
        position: static;
        width: 100%;
    }
}

/* Leaflet overrides */
.leaflet-marker-icon {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.leaflet-marker-icon.active {
    filter: drop-shadow(0 2px 8px rgba(0, 102, 204, 0.5));
}
