/*
 * Mapa de apuração — réplica do produto de mapa do g1 (mapas/mapa-de-apuracao, medido em 05/10/2026, 1366 e 390 px).
 * Valores lidos com getComputedStyle; referência em web/docs/referencias/g1-apuracao-2026-10-05/medidas/mapa/.
 */
@font-face { font-family: "Open Sans Apuracao"; src: url("../fonts/opensans-latin-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans Apuracao"; src: url("../fonts/opensans-latin-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sans Apuracao"; src: url("../fonts/opensans-latin-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

.mpa-pagina {
    --mpa-fonte: "Open Sans Apuracao", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --mpa-acao: #c4170c;
    --mpa-eleito: #34c771;
    --mpa-segundo-turno: #006329;
    margin: 0;
    overflow: hidden;
    background: #181818;
    font-family: var(--mpa-fonte);
    font-size: 16px;
    line-height: 20.8px;
    color: #333;
    -webkit-font-smoothing: antialiased;
}
.mpa-pagina *, .mpa-pagina *::before, .mpa-pagina *::after { box-sizing: border-box; }
.mpa-pagina a { text-decoration: none; }
.mpa-pagina button { font-family: inherit; cursor: pointer; }
:where(.mpa-pagina) :where(h1, h2, h3, p, ul, dl) { margin: 0; padding: 0; }
:where(.mpa-pagina) :where(ul) { list-style: none; }
.mpa-pagina [hidden] { display: none !important; }
.mpa-pagina #wpadminbar, .mpa-pagina .cpst-bottom-nav { display: none !important; }
html:has(.mpa-pagina) { margin-top: 0 !important; }

/* ---------- Barra de cima (g1: map-header, 44 px) ---------- */
.mpa-topo {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 45px;
    padding: 0 9px 0 16px;
    border-bottom: 1px solid #ebedef;
    background: #fff;
}
.mpa-topo__logo { display: flex; align-items: center; height: 32px; }
.mpa-topo__logo img { display: block; width: auto; height: 32px; }
.mpa-topo__titulo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: -0.32px;
    color: #333;
    white-space: nowrap;
}
.mpa-topo__menu {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 1px 6px;
    color: var(--mpa-acao);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: -0.32px;
}
.mpa-topo__menu svg { width: 28px; height: 28px; padding: 4px; fill: var(--mpa-acao); }

/* ---------- Área do mapa ---------- */
.mpa {
    position: relative;
    display: flex;
    height: calc(100vh - 45px);
    height: calc(100dvh - 45px);
    background: #181818;
}
.mpa-area { position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden; background: #181818; touch-action: none; }
.mpa-tela { display: block; width: 100%; height: 100%; cursor: pointer; }
.mpa-tela.mpa-arrastando { cursor: grabbing; }

.mpa-botao {
    position: absolute;
    z-index: 5;
    border: 0;
    border-radius: 10px;
    background: rgba(80, 80, 80, 0.2);
    color: #fff;
}
.mpa-legenda { position: absolute; z-index: 5; top: 12px; left: 12px; color: #fff; }
.mpa-legenda .mpa-botao { position: static; }
.mpa-legenda__botao { padding: 8px 12px; font-size: 12px; font-weight: 700; line-height: 18px; letter-spacing: -0.12px; }
.mpa-legenda__aberta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(80, 80, 80, 0.2);
}
.mpa-legenda__titulo { font-size: 11px; font-weight: 700; line-height: 15px; letter-spacing: -0.11px; }
.mpa-legenda[data-aberta="true"] .mpa-legenda__botao, .mpa-legenda:not([data-aberta="true"]) .mpa-legenda__aberta { display: none; }

.mpa-escala { display: flex; gap: 2px; }
.mpa-escala__coluna { display: flex; flex-direction: column; width: 20px; }
.mpa-escala__cor { width: 12px; height: 12px; margin: 4px; border: 1px solid #fff; border-radius: 2px; }
.mpa-escala__divisor { width: 1px; margin: 4px 2px; background: rgba(255, 255, 255, 0.5); }
.mpa-escala__rotulos { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; margin-top: 2px; font-size: 11px; line-height: 16px; }

.mpa-aviso {
    position: absolute;
    z-index: 6;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-radius: 12px;
    background: #0d0d0e;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.14px;
    white-space: nowrap;
}
.mpa-aviso svg { width: 20px; height: 20px; flex: none; }
.mpa-aviso button { margin-left: 8px; padding: 6px 12px; border: 0; border-radius: 8px; background: #2f3134; color: #fff; font-size: 14px; line-height: 20px; }

.mpa-busca-botao { top: 12px; right: 16px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 8px; }
.mpa-busca-botao svg { width: 24px; height: 24px; }
.mpa-zoom {
    position: absolute;
    z-index: 5;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    width: 40px;
    border-radius: 10px;
    background: rgba(80, 80, 80, 0.2);
}
.mpa-zoom button { display: flex; align-items: center; justify-content: center; height: 38px; padding: 0; border: 0; background: transparent; color: #fff; }
.mpa-zoom button:disabled { color: rgba(255, 255, 255, 0.3); cursor: default; }
.mpa-zoom svg { width: 24px; height: 24px; }

.mpa-voltar {
    position: absolute;
    z-index: 5;
    left: 12px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 36px;
    padding: 4px 8px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #0d0d0e;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: -0.21px;
    box-shadow: rgba(113, 112, 140, 0.1) 0 -4px 16px 0, rgba(113, 112, 140, 0.15) 0 8px 20px 0;
}
.mpa-voltar svg { width: 24px; height: 24px; }
.mpa-voltar img { width: 36px; height: 25px; margin: 0 5px; object-fit: contain; }

.mpa-dica {
    position: absolute;
    z-index: 7;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    color: #0d0d0e;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: -0.21px;
    white-space: nowrap;
    pointer-events: none;
}
.mpa-balao { position: absolute; z-index: 7; width: 280px; border-radius: 8px; font-size: 14px; font-weight: 700; line-height: 20px; letter-spacing: -0.21px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }
.mpa-balao__topo { display: flex; align-items: center; gap: 4px; height: 36px; padding: 8px; border-radius: 8px 8px 0 0; background: #0d0d0e; color: #fff; }
.mpa-balao__topo svg { width: 20px; height: 21px; flex: none; }
.mpa-balao__uf { padding-left: 4px; font-weight: 400; letter-spacing: -0.14px; color: #dce0e5; }
.mpa-balao__topo i { width: 4px; height: 4px; margin: 0 4px; border-radius: 50%; background: #4f5257; }
.mpa-balao__corpo { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 0; border-radius: 0 0 8px 8px; background: #fff; }
.mpa-balao__corpo:empty { min-height: 36px; }
.mpa-balao__item { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: 19px 26px; column-gap: 10px; row-gap: 6px; height: 54px; color: #2f3134; }
.mpa-balao__item:last-child { margin-bottom: 12px; }
.mpa-balao__foto { grid-row: 1 / 3; width: 40px; height: 40px; border: 2px solid #ebedef; border-radius: 50%; overflow: hidden; }
.mpa-balao__foto img { display: block; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.mpa-balao__nome { overflow: hidden; font-size: 13px; font-weight: 400; line-height: 19px; letter-spacing: -0.066px; white-space: nowrap; text-overflow: ellipsis; }
.mpa-balao__dados { display: flex; align-items: center; gap: 4px; }
.mpa-balao__pct { font-size: 15px; font-weight: 600; line-height: 24px; letter-spacing: -0.45px; color: #333; }
.mpa-balao__pct small { margin-left: 4px; font-size: 12px; line-height: 17px; }

/* ---------- Capa (E1) ---------- */
.mpa-capa { position: absolute; z-index: 10; inset: 0; display: flex; background: #181818; }
.mpa[data-mpa-estado="explorar"] .mpa-capa { display: none; }
.mpa-capa__texto { position: relative; display: flex; flex-direction: column; flex: 0 0 341px; width: 341px; min-width: 0; padding: 16px 0; }
.mpa-capa__titulo { margin: 0 16px 24px; padding-right: 16px; font-size: 28px; font-weight: 700; line-height: 34px; letter-spacing: -1.12px; color: #fff; }
.mpa-capa__descricao { margin: 0 16px; font-size: 14px; line-height: 20px; letter-spacing: -0.14px; color: #ebedef; }
.mpa-capa__nota { margin: auto 16px 0; font-size: 11px; line-height: 16px; color: #9da3ae; }
.mpa-capa__mapa { position: relative; flex: 1 1 auto; padding: 50px; background: #1f2123; }
.mpa-capa__mapa canvas { display: block; width: 100%; height: 100%; }
.mpa-explorar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 22px;
    border: 0;
    border-radius: 10px;
    background: var(--mpa-acao);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: -0.21px;
}
.mpa-estados { margin: 32px 16px 0; padding: 12px; border-radius: 12px; background: rgba(70, 72, 77, 0.2); }
.mpa-estados__titulo { margin-bottom: 12px; font-size: 13px; font-weight: 600; line-height: 19px; letter-spacing: -0.13px; color: #fff; }
.mpa-estados__janela { overflow: hidden; }
.mpa-estados__lista { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, 40px); grid-auto-columns: 138px; column-gap: 9px; row-gap: 8px; transition: transform .3s ease; }
.mpa-estado {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 40px;
    padding: 0 8px 0 4px;
    border: 0;
    border-radius: 10px;
    background: #2f3134;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: -0.21px;
}
.mpa-estado__silhueta { width: 35px; height: 32px; margin: 0 7px; flex: none; }
.mpa-estado__bandeira { width: 36px; height: 25px; margin: 0 5px; flex: none; object-fit: contain; }
.mpa-estados__pontos { display: flex; justify-content: center; gap: 8px; margin-top: 10px; padding: 4px 0; }
.mpa-estados__pontos button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 100%; background: #ced1d7; }
.mpa-estados__pontos button[aria-current="true"] { background: var(--mpa-acao); }

/* ---------- Painel (E4) ---------- */
.mpa-painel { position: relative; z-index: 20; flex: 0 0 400px; width: 400px; background: #fff; }
.mpa[data-mpa-estado="capa"] .mpa-painel { display: none; }
.mpa-painel__alca { display: none; }
.mpa-painel__rolagem {
    height: 100%;
    padding: 10px 0 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.mpa-painel__rolagem::-webkit-scrollbar { width: 0; height: 0; display: none; }
.mpa-lugar { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 10px 16px 0; }
.mpa-lugar__nome { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 700; line-height: 24px; color: #333; }
.mpa-lugar__nome span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mpa-lugar__uf { padding: 0 8px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff; font-size: 14px; line-height: 24px; color: #2f3134; }
.mpa-progresso { padding: 0 6px; border-radius: 6px; font-size: 15px; font-weight: 600; line-height: 22px; letter-spacing: -0.225px; color: #2f3134; white-space: nowrap; }
.mpa-progresso small { font-size: 12px; }
.mpa-lugar__link { display: flex; align-items: center; gap: 4px; color: var(--mpa-acao); }
.mpa-lugar__link svg:first-child { width: 22px; height: 16px; }
.mpa-lugar__link svg:last-child { width: 16px; height: 16px; }

.mpa-abas { display: flex; margin: 0 16px 12px; padding: 2px; border-radius: 9px; background: rgba(121, 121, 129, 0.12); }
.mpa-abas button {
    flex: 1 1 0;
    height: 32px;
    padding: 3px 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #181818;
    font-size: 13px;
    font-weight: 400;
    line-height: 19px;
    letter-spacing: -0.13px;
}
.mpa-abas button[aria-selected="true"] {
    border-color: rgba(0, 0, 0, 0.15);
    background: #fff;
    font-weight: 600;
    box-shadow: rgba(0, 0, 0, 0.32) 0 3px 8px 0, rgba(0, 0, 0, 0.04) 0 3px 1px 0;
}
.mpa-resumo { display: none; }
.mpa-conteudo { padding: 0 16px 20px; }

.mpa-cabecalho { display: flex; justify-content: space-between; align-items: center; height: 40px; margin: 12px 0; }
.mpa-cabecalho h2 { display: flex; align-items: center; gap: 4px; font-size: 20px; font-weight: 400; line-height: 28px; letter-spacing: -0.8px; color: #333; }
.mpa-cabecalho h2 svg { width: 13px; height: 13px; color: #9da3ae; }
.mpa-compartilhar { display: flex; align-items: center; justify-content: center; width: 56px; height: 40px; border-radius: 12px; background: rgba(228, 231, 236, 0.3); }
.mpa-compartilhar svg { width: 24px; height: 24px; }

.mpa-cartao { padding: 0 0 12px; border: 1px solid #ebedef; border-radius: 12px; }
.mpa-lista { display: flex; flex-direction: column; gap: 24px; padding: 16px 16px 6px; }
.mpa-lista[data-recolhida="true"] .mpa-candidato:nth-child(n+6) { display: none; }
.mpa-candidato { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: 20px 3px auto; column-gap: 8px; row-gap: 8px; color: #2f3134; }
.mpa-candidato__foto { position: relative; grid-row: 1 / 4; width: 56px; height: 56px; border: 3px solid #ebedef; border-radius: 50%; }
.mpa-candidato--eleito .mpa-candidato__foto { border-color: var(--mpa-eleito); }
.mpa-candidato__foto img { display: block; width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.mpa-candidato__cabeca { display: flex; align-items: center; gap: 8px; min-width: 0; height: 20px; }
.mpa-candidato__nome { overflow: hidden; font-size: 14px; line-height: 20px; letter-spacing: -0.21px; white-space: nowrap; text-overflow: ellipsis; }
.mpa-separador { display: flex; align-items: center; width: 4px; height: 18px; flex: none; }
.mpa-separador::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #e4e7ec; }
.mpa-candidato__numero { flex: none; font-size: 14px; font-weight: 700; line-height: 20px; letter-spacing: -0.21px; }
.mpa-sigla { margin-left: auto; flex: none; padding: 5px; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 700; line-height: 10px; letter-spacing: -0.12px; text-transform: uppercase; white-space: nowrap; }
.mpa-candidato__barra { height: 3px; border-radius: 12px; background: #ebedef; overflow: hidden; }
.mpa-candidato__barra i { display: block; height: 3px; border-radius: 12px; }
.mpa-candidato__dados { display: flex; align-items: center; gap: 4px; height: 18px; }
.mpa-pct { display: flex; align-items: baseline; font-size: 18px; font-weight: 600; line-height: 24px; letter-spacing: -0.54px; color: #333; white-space: nowrap; }
.mpa-pct small { margin-left: 4px; font-size: 12px; line-height: 17px; letter-spacing: 0; }
.mpa-selo { padding: 0 4px; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 700; line-height: 16px; letter-spacing: -0.18px; white-space: nowrap; }
.mpa-selo--eleito { background: var(--mpa-eleito); }
.mpa-selo--segundo-turno { background: var(--mpa-segundo-turno); }
.mpa-votos { margin-left: auto; font-size: 12px; line-height: 17px; letter-spacing: -0.24px; color: #4f5257; white-space: nowrap; }
.mpa-ver-todos {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 24px auto 0;
    padding: 7px 7px 7px 11px;
    border: 1px solid var(--mpa-acao);
    border-radius: 8px;
    background: transparent;
    color: var(--mpa-acao);
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: -0.18px;
}
.mpa-ver-todos svg { width: 16px; height: 16px; transition: transform .15s; }
.mpa-ver-todos[aria-expanded="true"] svg { transform: rotate(180deg); }
.mpa-totais { display: grid; grid-template-columns: repeat(6, 1fr); row-gap: 16px; margin: 24px 0 0; padding: 0 16px; text-align: center; color: #333; }
.mpa-totais div { grid-column: span 2; }
.mpa-totais div:nth-child(-n+2) { grid-column: span 3; }
.mpa-totais dt { font-size: 12px; line-height: 17px; }
.mpa-totais dd { margin: 0; font-size: 16px; font-weight: 700; line-height: 24px; letter-spacing: -0.32px; }
.mpa-totais dd + dd { font-size: 14px; font-weight: 400; line-height: 20px; letter-spacing: -0.14px; }
.mpa-atualizado { margin: 12px 0 16px; font-size: 11px; line-height: 16px; color: #6e727a; }
.mpa-outros {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 36px;
    border: 1px solid var(--mpa-acao);
    border-radius: 8px;
    background: var(--mpa-acao);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: -0.13px;
}
.mpa-outros svg { width: 16px; height: 16px; }

/* Governador no Brasil: um cartão por estado */
.mpa-estados-gov { display: flex; flex-direction: column; gap: 12px; }
.mpa-gov { border: 1px solid #e4e7ec; border-radius: 12px; background: #f5f6f7; }
.mpa-gov__topo { display: flex; justify-content: space-between; padding: 12px; }
.mpa-gov__lugar { display: flex; flex-direction: column; gap: 8px; }
.mpa-gov__bandeira { width: 31px; height: 22px; border: 1px solid #ebedef; border-radius: 2px; background: #fff; object-fit: cover; }
.mpa-gov__nome { font-size: 16px; font-weight: 700; line-height: 20px; letter-spacing: -0.24px; color: #1f2123; }
.mpa-gov__corpo { margin: 0 6px; border-radius: 10px; background: #fff; }
.mpa-gov__corpo .mpa-lista { gap: 16px; padding: 12px 16px 12px 12px; }
.mpa-gov__centralizar { display: flex; justify-content: flex-end; align-items: center; gap: 4px; width: 100%; padding: 12px 16px; border: 0; background: transparent; color: var(--mpa-acao); font-size: 14px; font-weight: 700; line-height: 20px; }
.mpa-gov__centralizar svg { width: 16px; height: 16px; }

/* ---------- Busca (E5) ---------- */
.mpa-busca { position: absolute; z-index: 25; inset: 0; padding: 12px 12px 16px; background: #fff; overflow-y: auto; }
.mpa-busca__fechar { display: block; width: 16px; height: 16px; margin: 4px 0 10px; padding: 0; border: 0; background: transparent; color: var(--mpa-acao); }
.mpa-busca__fechar svg { width: 16px; height: 16px; }
.mpa-busca__titulo { margin-top: 4px; font-size: 16px; font-weight: 700; line-height: 21px; color: #333; }
.mpa-busca__campo { position: relative; margin-top: 16px; }
.mpa-busca__campo > svg { position: absolute; top: 9px; left: 12px; width: 20px; height: 21px; }
.mpa-busca__campo input {
    width: 100%;
    height: 40px;
    padding: 0 30px 0 40px;
    border: 1px solid #ccc;
    border-radius: 12px;
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #000;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.mpa-busca__campo input:focus { border: 2px solid #4f5257; box-shadow: 0 0 0 2px #e4e7ec; }
.mpa-busca__campo input::-webkit-search-cancel-button { -webkit-appearance: none; }
.mpa-busca__limpar { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; padding: 0; border: 0; background: transparent; }
.mpa-busca__estados { display: grid; grid-template-columns: repeat(2, 140px); gap: 8px; margin-top: 24px; }
.mpa-busca__estados .mpa-estado { width: 140px; padding: 5px; }
.mpa-busca__grupo { margin: 24px 0 12px; font-size: 14px; line-height: 17.5px; color: #4f5257; }
.mpa-busca__municipios li { margin-bottom: 14px; }
.mpa-busca__municipios button { display: flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: var(--mpa-acao); font-size: 16px; line-height: 21px; text-align: left; }
.mpa-busca__municipios button > svg:first-child { width: 24px; height: 24px; flex: none; }
.mpa-busca__municipios b { font-weight: 700; }
.mpa-busca__municipios i { width: 5px; height: 5px; border-radius: 100%; background: #dce0e5; }
.mpa-busca__municipios span { color: #000; }
.mpa-busca__municipios button > svg:last-child { width: 16px; height: 16px; }

/* ---------- "Como ler o mapa?" ---------- */
.mpa-dialogo { position: fixed; z-index: 100; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.6); }
.mpa-dialogo__caixa { width: 320px; padding: 16px; border-radius: 12px; background: #0d0d0e; color: #fff; }
.mpa-dialogo__caixa h3 { margin-bottom: 16px; font-size: 14px; font-weight: 700; line-height: 20px; }
.mpa-dialogo__caixa p { margin-bottom: 16px; font-size: 14px; line-height: 20px; letter-spacing: -0.14px; }
.mpa-escala--dialogo { justify-content: center; margin-bottom: 16px; }
.mpa-dialogo__caixa small { display: block; margin-bottom: 16px; font-size: 11px; line-height: 16px; }
.mpa-dialogo__caixa button { display: block; margin: 0 auto; padding: 8px 18px; border: 0; border-radius: 8px; background: #2f3134; color: #fff; font-size: 12px; font-weight: 700; line-height: 16px; }

/* ---------- Celular (g1 em 390 px): mapa inteiro + gaveta de baixo ---------- */
@media (max-width: 767px) {
    .mpa-topo { gap: 16px; }
    .mpa-topo__titulo { position: static; transform: none; font-size: 14px; line-height: 20px; letter-spacing: -0.28px; }
    .mpa-topo__menu { font-size: 14px; }
    .mpa { display: block; }
    .mpa-area { position: absolute; inset: 0; }
    .mpa-capa { flex-direction: column; }
    .mpa-capa__texto { flex: 1 1 auto; padding: 16px 0 12px; }
    .mpa-capa__titulo { margin: 0 12px 16px; font-size: 22px; line-height: 26px; letter-spacing: -0.66px; }
    .mpa-capa__descricao { margin: 0 12px; }
    .mpa-capa__mapa { position: absolute; top: 205px; left: 0; right: 0; height: 400px; padding: 20px; background: transparent; }
    .mpa-estados { margin: auto 12px 12px; }
    .mpa-estados__janela { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
    .mpa-estados__janela::-webkit-scrollbar { width: 0; height: 0; display: none; }
    .mpa-estados__lista { grid-template-rows: 40px; grid-auto-columns: 138px; transform: none !important; }
    .mpa-estados__pontos { display: none; }
    .mpa-capa__nota { margin: 0 12px; }

    .mpa-painel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        height: calc(100dvh - 45px);
        border-radius: 16px 16px 0 0;
        box-shadow: rgba(113, 112, 140, 0.15) 0 8px 20px 0, rgba(113, 112, 140, 0.1) 0 -4px 16px 0;
        transform: translateY(calc(100% - 197px));
        transition: transform .3s ease;
    }
    .mpa-painel[data-aberta="true"] { transform: translateY(0); }
    .mpa-painel__alca { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; justify-content: center; height: 35px; padding: 10px 0 0; border: 0; background: transparent; }
    .mpa-painel__alca i { width: 36px; height: 5px; border-radius: 3px; background: #e4e7ec; }
    .mpa-painel__rolagem { padding-top: 20px; overflow-y: hidden; }
    .mpa-painel[data-aberta="true"] .mpa-painel__rolagem { overflow-y: auto; padding-top: 35px; }
    .mpa-lugar { margin: 0 0 8px; padding: 0 12px; }
    .mpa-abas { margin: 0 12px 12px; }
    .mpa-painel:not([data-aberta="true"]) .mpa-resumo { display: flex; }
    .mpa-painel:not([data-aberta="true"]) .mpa-conteudo { visibility: hidden; }
    .mpa-resumo { gap: 8px; padding: 0 10px 12px; }
    .mpa-resumo__item { display: grid; flex: 1 1 0; min-width: 0; grid-template-columns: 40px 1fr; grid-template-rows: 20px 26px auto; column-gap: 8px; row-gap: 4px; margin-top: 6px; color: #2f3134; }
    .mpa-resumo__foto { grid-row: 1 / 3; width: 40px; height: 40px; border: 1px solid #ebedef; border-radius: 50%; }
    .mpa-resumo__foto img { display: block; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
    .mpa-resumo__nome { overflow: hidden; font-size: 14px; line-height: 20px; letter-spacing: -0.14px; white-space: nowrap; text-overflow: ellipsis; }
    .mpa-resumo__dados { display: flex; align-items: center; gap: 4px; }
    .mpa-resumo__dados .mpa-pct { font-size: 15px; }
    .mpa-resumo__dados .mpa-pct small { font-size: 11px; }
    .mpa-resumo__sigla { grid-column: 1 / 3; margin-top: 4px; padding: 5px 4px 6px; border-radius: 4px; color: #fff; font-size: 12px; font-weight: 700; line-height: 10px; letter-spacing: -0.12px; text-align: center; }
    .mpa-legenda { top: 12px; left: 12px; }
    .mpa-busca-botao { right: 12px; }
    .mpa-zoom { right: 12px; bottom: 213px; }
    .mpa-voltar { bottom: 213px; }
    .mpa-aviso { top: auto; bottom: 213px; left: 12px; right: 12px; transform: none; white-space: normal; }
    .mpa-busca { position: fixed; top: 45px; }
    .mpa-balao { width: 260px; }
}
