/* ========================================= */
/* PÁGINA DE UNIDADES DE SAÚDE - CSS        */
/* ========================================= */

/* Layout Principal */
.unidades-saude-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Banner de Conscientização */
.outubro-rosa-info-banner {
    background: linear-gradient(135deg, #ff69b4 0%, #dda0dd 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
    animation: outubro-rosa-pulse 3s infinite;
    margin-bottom: 2rem;
}

.outubro-rosa-info-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.outubro-rosa-info-banner i {
    font-size: 2rem;
    margin-right: 10px;
    animation: bounce 2s infinite;
}

@keyframes outubro-rosa-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.95; transform: scale(1.02); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Cards das Unidades */
.unidade-item .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    overflow: hidden;
    height: 100%;
}

.unidade-item .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.unidade-item .card-header {
    background: linear-gradient(135deg, #006218 0%, #4CAF50 100%);
    color: white;
    border: none;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.unidade-item .card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: transform 0.6s;
    transform: rotate(45deg) translate(-100%, -100%);
}

.unidade-item .card:hover .card-header::before {
    transform: rotate(45deg) translate(100%, 100%);
}

.unidade-item .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 2;
}

.unidade-item .card-body {
    padding: 25px;
    background: white;
}

.unidade-item .card-footer {
    background: #f8f9fa;
    border: none;
    padding: 15px 25px;
}

/* Filtros e Busca */
.filtros-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    background: white;
}

.filtros-card .card-body {
    padding: 30px;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #006218;
    box-shadow: 0 0 0 0.2rem rgba(0, 98, 24, 0.25);
}

/* Botões */
.btn {
    border-radius: 10px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #006218 0%, #4CAF50 100%);
    box-shadow: 0 4px 15px rgba(0, 98, 24, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 98, 24, 0.4);
}

.btn-outline-success {
    border: 2px solid #006218;
    color: #006218;
    background: transparent;
}

.btn-outline-success:hover {
    background: linear-gradient(135deg, #006218 0%, #4CAF50 100%);
    border-color: #006218;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff;
}

.btn-outline-primary:hover {
    background: #007bff;
    border-color: #007bff;
    transform: translateY(-1px);
}

/* Mapa */
.map-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.map-card .card-header {
    background: linear-gradient(135deg, #006218 0%, #4CAF50 100%);
    color: white;
    padding: 20px;
    border: none;
}

#map {
    height: 500px;
    width: 100%;
    border-radius: 0 0 15px 15px;
}

/* Informações Importantes */
.info-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-top: 2rem;
}

.info-card .card-header {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 15px 15px 0 0;
}

.info-card .card-body {
    padding: 30px;
}

.info-card h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 15px;
}

.info-card ul li {
    margin-bottom: 8px;
    color: #6c757d;
}

/* Alert Especial */
.alert-outubro-rosa {
    background: linear-gradient(135deg, #fff 0%, #fef7f7 100%);
    border: none;
    border-left: 5px solid #ff69b4;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.alert-outubro-rosa h6 {
    color: #ff69b4;
    font-weight: 700;
}

/* Ícones */
.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.icon-address { background: rgba(220, 53, 69, 0.1); color: #dc3545; }
.icon-phone { background: rgba(40, 167, 69, 0.1); color: #28a745; }
.icon-cep { background: rgba(0, 123, 255, 0.1); color: #007bff; }
.icon-speciality { background: rgba(23, 162, 184, 0.1); color: #17a2b8; }

/* Responsividade */
@media (max-width: 768px) {
    .outubro-rosa-info-banner {
        padding: 20px;
        margin-bottom: 1.5rem;
    }
    
    .outubro-rosa-info-banner h3 {
        font-size: 1.4rem;
    }
    
    .unidade-item {
        margin-bottom: 1.5rem;
    }
    
    .unidade-item .card-body,
    .filtros-card .card-body,
    .info-card .card-body {
        padding: 20px;
    }
    
    #map {
        height: 300px !important;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .outubro-rosa-info-banner {
        padding: 15px;
    }
    
    .outubro-rosa-info-banner h3 {
        font-size: 1.2rem;
    }
    
    .form-control {
        padding: 10px 12px;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .unidade-item .card-title {
        font-size: 1rem;
    }
}

/* Animações de Loading */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 40px;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #006218;
}

/* Estados dos filtros */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-results i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

/* Efeitos especiais para Outubro Rosa */
.outubro-rosa-glow {
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
    animation: rosa-glow 2s ease-in-out infinite alternate;
}

@keyframes rosa-glow {
    from { box-shadow: 0 0 20px rgba(255, 105, 180, 0.3); }
    to { box-shadow: 0 0 30px rgba(255, 105, 180, 0.5); }
}

/* Transições suaves */
* {
    transition: all 0.3s ease;
}

/* Melhorias de acessibilidade */
.btn:focus,
.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 98, 24, 0.25);
}

/* Estilos para impressão */
@media print {
    .outubro-rosa-info-banner,
    .filtros-card,
    .btn,
    #mapContainer {
        display: none !important;
    }
    
    .unidade-item .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
