.mapa-atuacao {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 32px;
    align-items: start;
}

.mapa-es {
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
}

.mapa-es svg {
    display: block;
    width: 100%;
    height: auto;
}

.mapa-es path {
    cursor: pointer;
    transition:
        fill 180ms cubic-bezier(0.2, 0, 0, 1),
        stroke 180ms cubic-bezier(0.2, 0, 0, 1);
}

.mapa-es path:focus {
    outline: none;
    stroke: #0CD3F8;
    stroke-width: 2;
}

.mapa-es--mini {
    width: 100%;
    max-width: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mapa-es--mini svg {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: auto;
}

.mapa-es--mini path {
    cursor: default;
    transition: none;
}

.mapa-es-detalhes {
    padding: 24px;
    border: 1px solid rgba(33, 46, 62, 0.2);
    border-radius: 16px;
}

.mapa-es-status {
    font-size: 14px;
}

.mapa-es-erro {
    padding: 24px;
    border: 1px solid #212E3E;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .mapa-atuacao {
        grid-template-columns: 1fr;
    }
}

.mapa-legenda {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.mapa-legenda li {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mapa-legenda__cor {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 1px solid #212e3e;
    border-radius: 4px;
}

.mapa-legenda__cor--2026 {
    background: #28ff52;
}

.mapa-legenda__cor--concessao {
    background: #ffffff;
}

.mapa-legenda__cor--demais {
    background: rgba(33, 46, 62, 0.08);
}

.mapa-es path.is-selected {
    stroke: #212e3e;
    stroke-width: 2;
}

.mapa-lista ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.mapa-lista button {
    min-height: 44px;
    padding: 9px 14px;
    color: #212e3e;
    font: inherit;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid rgba(33, 46, 62, 0.3);
    border-radius: 999px;
    cursor: pointer;
}

.mapa-lista button:hover,
.mapa-lista button:focus-visible {
    background: #28ff52;
    border-color: #212e3e;
}

.mapa-es-detalhes__codigo {
    font-size: 14px;
    opacity: 0.72;
}

@media (max-width: 767px) {
    /*
     * Os nomes internos ficam muito apertados no celular.
     * A lista textual continua oferecendo os mesmos dados.
     */
    .mapa-es #nomes {
        display: none;
    }

    .mapa-legenda {
        display: grid;
    }
}