/* Mapa v2 (prévia 10/11/2026) — isolado; só carregado nas páginas de mapa */
.mapa2 h1 { margin-bottom: .35rem; }
.mapa2-bar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; margin: .8rem 0 .6rem; }
.mapa2-grp { display: flex; flex-wrap: wrap; gap: .35rem; }
.mapa2-grp button { min-height: 40px; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--chip-bg); color: var(--chip-fg); font: inherit; font-size: .88rem; cursor: pointer; }
.mapa2-grp button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.mapa2-grp.estilo button { font-size: .8rem; min-height: 36px; padding: .25rem .65rem; }
.mapa2-leg { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; font-size: .82rem; color: var(--ink2); margin: .2rem 0 .7rem; }
.mapa2-leg b { font-weight: 600; color: var(--ink); margin-right: .2rem; }
.mapa2-leg span { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .5rem .12rem .2rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); white-space: nowrap; }
.mapa2-leg i { width: .85rem; height: .85rem; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.18); display: inline-block; }
.mapa2-frame { position: relative; border-radius: .9rem; overflow: hidden; border: 1px solid var(--line); background: #a9cbe0; }
#map2, #mapb { height: min(72vh, 600px); min-height: 360px; width: 100%; }
.mapa2-cred { font-size: .78rem; color: var(--ink2); margin: .45rem 0 0; line-height: 1.45; }
.mapa2-cred a { color: inherit; }
.mapa2-dica { font-size: .8rem; color: var(--ink2); margin: .3rem 0 0; }
.mapa2-fallback { padding: .8rem; background: var(--surface); }
.mapa2-fallback img { width: 100%; height: auto; display: block; border-radius: .5rem; }
/* popup comum (MapLibre e Leaflet) */
.mp { font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1a2421; min-width: 0; max-width: 250px; }
.mp-top { display: flex; gap: .6rem; align-items: center; margin-bottom: .35rem; }
.mp-nota { flex: 0 0 auto; min-width: 3.1rem; text-align: center; padding: .3rem .4rem; border-radius: .55rem; color: #fff; font-weight: 700; font-size: 1.05rem; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.mp-nome { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.mp-sec { font-size: .78rem; color: #55625c; }
.mp-t { font-size: .8rem; color: #3d4a45; margin: .25rem 0; }
.mp-av { font-size: .74rem; color: #6b746f; margin: .2rem 0; }
.mp-links { display: flex; flex-direction: column; gap: .15rem; margin-top: .4rem; }
.mp-links a { display: block; padding: .35rem 0; color: #0f6b5c; font-weight: 600; text-decoration: none; min-height: 28px; }
.mp-links a:hover { text-decoration: underline; }
.maplibregl-popup-content { border-radius: .7rem; padding: .7rem .8rem .5rem; box-shadow: 0 6px 22px rgba(0,0,0,.22); }
.maplibregl-popup-close-button { font-size: 20px; width: 32px; height: 32px; color: #55625c; }
.maplibregl-ctrl-attrib { font-size: 11px; }
.maplibregl-ctrl-attrib a { color: #1a2421 !important; }
/* B: marcadores Leaflet */
.lb-pin { display: flex; align-items: center; gap: 4px; white-space: nowrap; transform: translate(-11px, -11px); }
.lb-pin b { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); display: block; flex: 0 0 auto; }
.lb-pin span { font: 600 12px/1 system-ui, sans-serif; color: #1a2421; background: rgba(255,255,255,.92); padding: 3px 6px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.lb-pin span em { font-style: normal; font-weight: 800; margin-left: 4px; }
.mapb-z3 .lb-pin > span { display: none; }
.mapb-z5 .lb-pin span.lb-n { display: none; }
#mapb .leaflet-tile-pane { filter: saturate(.75) contrast(.97) brightness(1.02); }
/* C: estático */
.mapc-painel { margin: 1rem 0 1.4rem; }
.mapc-painel h2 { font-size: 1.1rem; margin: 0 0 .4rem; }
.mapc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: .8rem; border: 1px solid var(--line); background: #a9cbe0; }
.mapc-scroll svg { display: block; width: 100%; height: auto; }
.mapc-mundo svg { min-width: 860px; }
.mapc-europa svg { min-width: 560px; }
.mapc-scroll a:focus-visible circle { stroke: #c45c26; stroke-width: 5; }
.mapc-scroll text { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; paint-order: stroke; stroke: #fff; stroke-linejoin: round; fill: #1a2421; }
.mapc-rolar { font-size: .8rem; color: var(--ink2); margin: .3rem 0 0; }
@media (min-width: 900px) { .mapc-scroll-hint { display: none; } }
/* lista com cor da nota */
.mapa2-lista { columns: 2 16rem; column-gap: 2rem; padding-left: 1.4rem; }
.mapa2-lista li { break-inside: avoid; margin: .15rem 0; }
.mapa2-lista .sw { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .35rem; vertical-align: baseline; }
.mapa2-lista .art { font-size: .82rem; margin-left: .35rem; }
.mapa2-alt { font-size: .85rem; background: var(--warn-bg); color: var(--ink); border-radius: .6rem; padding: .55rem .8rem; margin: 0 0 .9rem; }
html[data-theme=dark] .mapa2-frame, html[data-theme=dark] .mapc-scroll { background: #1d2b33; }
@media (max-width: 600px) {
  article.mapa2 { padding: 1rem .75rem; }
  #map2, #mapb { height: 380px; min-height: 0; }
  .mapa2-bar { margin-top: .6rem; }
}
.mapc-duo { display: grid; grid-template-columns: 1fr; gap: 0 1.2rem; }
@media (min-width: 900px) { .mapc-duo { grid-template-columns: 1.35fr 1fr; align-items: start; } }
/* sem JavaScript: o tema não é aplicado (data-theme vem do script do cabeçalho) → esconde o mapa interativo e os botões */
html:not([data-theme]) #map2, html:not([data-theme]) .mapa2-bar { display: none; }
.mapa2-fallback .mapc-scroll { border: 0; border-radius: .5rem; }
