/* Fonte base e fundo */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f6f9;
}

/* --- HERO HEADER --- */
.hero-header {
    background-image: 
        linear-gradient(45deg, rgba(20, 83, 171, 0.85), rgba(43, 6, 115, 0.9)),
        url('https://images.unsplash.com/photo-1592911218149-a2d9a4036125?q=80&w=1932');
    
    background-size: cover;
    background-position: center;
    padding: 3rem 1rem;
    position: relative;
    clip-path: ellipse(100% 75% at 50% 25%);
}

/* ================================== */
/* --- BOTÃO DE VOLTAR AO SITE PRINCIPAL --- */
/* ================================== */
.btn-voltar-site-principal {
    position: absolute; /* Posicionamento absoluto em relação ao header */
    top: 20px;
    left: 20px;
    z-index: 10; /* Garante que fique acima da imagem de fundo */

    /* Estilo para deixá-lo redondo */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    
    /* Cor e fundo */
    background-color: rgba(255, 255, 255, 0.2); /* Fundo branco semitransparente */
    color: #ffffff; /* Cor do ícone */
    border: 1px solid rgba(255, 255, 255, 0.3);

    /* Alinhamento do ícone e tamanho da fonte */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;

    transition: background-color 0.2s ease;
}

.btn-voltar-site-principal:hover {
    background-color: rgba(255, 255, 255, 0.4); /* Fica um pouco mais opaco no hover */
    color: #ffffff;
}

.logo {
    max-height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}

.header-titulo, .header-subtitulo {
    color: #ffffff; /* Garante que o texto seja branco */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}
.header-titulo { font-size: 1.5rem; font-weight: 700; }
.header-subtitulo { font-size: 1rem; font-weight: 300; }

#form-busca .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.3);
}

/* --- BOTÕES DE FILTRO (SOLUÇÃO FINAL) --- */
#categorias {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 10px;
    margin-top: -15px; 
    position: relative;
    z-index: 10;
}

/* ESTILO PARA OS BOTÕES DE CATEGORIA (AZUIS) USANDO NOSSA CLASSE */
.btn-filtro {
    background-color: #007bff;
    color: #ffffff;
    border: 1px solid #007bff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-filtro:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #ffffff;
}

/* Opcional: Estilo para o botão de filtro que está ativo */
.btn-filtro.active {
    background-color: #004085;
    border-color: #00376e;
    color: #ffffff;
}

/* ESTILO ISOLADO E CORRIGIDO PARA O BOTÃO LIMPAR FILTRO */
#btn-limpar-filtros {
    background-color: #f8f9fa; /* Fundo branco/cinza claro */
    color: #343a40; /* Texto cinza escuro */
    border: 1px solid #ced4da; /* Borda cinza */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#btn-limpar-filtros:hover {
    background-color: #e2e6ea;
    color: #343a40;
}


/* --- CARDS, MODAL, ETC --- */
.card-unidade {
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 0;
    border-radius: 0.5rem;
}

.card-unidade:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
}

#modal-img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 0.375rem;
}

#modal-atendimentos-lista ul {
    list-style-type: none;
    padding-left: 5px;
}
#modal-atendimentos-lista li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}
#modal-atendimentos-lista li:last-child {
    border-bottom: none;
}