/* ============================================================
   setores-mapa.css — abas «Grade | Mapa» dos Setores Missionários (página Organização)
   Segue o estilo do menu do site (Jost, maiúsculas, sublinhado dourado no item ativo).
   O Leaflet vem de /assets/js/vendor/leaflet/leaflet.css (carregado junto).
   ============================================================ */

.setores-abas {
    display: flex;
    justify-content: center;
    gap: 34px;
    margin: -12px 0 28px;
}
.setores-aba {
    appearance: none;
    background: none;
    border: 0;
    border-bottom: 1px solid transparent;
    padding: 0 0 4px;
    font: inherit;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.86rem;
    color: var(--texto-claro);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.setores-aba:hover,
.setores-aba.ativa {
    color: var(--azul);
    border-bottom-color: var(--dourado);
}
.setores-aba:focus-visible {
    outline: 2px solid var(--dourado);
    outline-offset: 4px;
}

.setores-mapa-painel {
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}
/* O CSS da grade (display:grid) vence o [hidden] padrão do navegador: sem isto a grade continuaria visível sob o mapa. */
.grade-setores[hidden],
.setores-mapa-painel[hidden] { display: none; }

.setores-mapa-site {
    position: relative;
    z-index: 0;                       /* mantém as camadas do Leaflet abaixo do menu/dropdowns do site */
    height: 540px;
    border: 1px solid var(--borda);
    border-radius: 4px;
    overflow: hidden;
    background: #eef0f2;
}
@media (max-width: 767px) {
    .setores-mapa-site { height: 420px; }
    .setores-abas { gap: 26px; }
}

.setores-mapa-legenda {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    margin: 16px 0 6px;
}
.setores-mapa-legenda button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--borda);
    border-radius: 999px;
    padding: 4px 12px;
    font: inherit;
    font-size: 0.82rem;
    color: var(--texto);
    cursor: pointer;
    transition: border-color 0.2s;
}
.setores-mapa-legenda button:hover { border-color: var(--dourado); }
.setores-mapa-legenda svg { flex: none; }

.setores-mapa-nota {
    margin: 8px 0 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--texto-claro);
}

/* número do setor no centro do polígono (sem balão) */
.leaflet-tooltip.setor-rotulo {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #1b1b1b;
    font-weight: 700;
    font-size: 15px;
    text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff;
}
.leaflet-tooltip.setor-rotulo::before { display: none; }

.setor-popup { font-size: 0.9rem; line-height: 1.45; }
.setor-popup-titulo {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}
