:root {
  --topo-h: 56px;
  --painel-w: 340px;
  --bg: #12151b;
  --bg-2: #1a1f27;
  --bg-3: #232a35;
  --bg-4: #2c3542;
  --borda: #303a48;
  --texto: #e8ecf1;
  --texto-2: #a3adbb;
  --texto-3: #6f7a8a;
  --acento: #ff4f8b;
  --acento-2: #ffb547;
  --ok: #3ddc97;
  --perigo: #ff6b6b;
  --sombra: 0 10px 30px rgba(0, 0, 0, .45);
  --raio: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--acento-2); }
kbd {
  font: 600 11px/1 Inter, sans-serif; padding: 3px 6px; border-radius: 5px;
  background: var(--bg-4); color: var(--texto-2); border: 1px solid var(--borda);
}
[hidden] { display: none !important; }

/* ---------- Topo ---------- */
.topo {
  position: fixed; inset: 0 0 auto 0; height: var(--topo-h); z-index: 1001;
  display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: linear-gradient(90deg, #191d25, #1d1a2a 55%, #2a1630);
  border-bottom: 1px solid var(--borda);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texto); min-width: 0; }
.marca-pin {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--acento), var(--acento-2)); color: #fff; font-size: 18px;
  box-shadow: 0 4px 14px rgba(255, 79, 139, .35);
}
.marca-txt { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.marca-txt b { font-size: 17px; font-weight: 800; letter-spacing: .3px; }
.marca-txt small { color: var(--texto-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo-dir { margin-left: auto; display: flex; gap: 6px; }
.topo-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; min-width: 38px; padding: 0 12px;
  justify-content: center; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--texto-2);
}
.topo-btn:hover { background: var(--bg-3); color: var(--texto); }
#btn-menu { padding: 0; }

/* ---------- Painel ---------- */
.painel {
  position: fixed; top: var(--topo-h); bottom: 0; left: 0; width: var(--painel-w); z-index: 1000;
  background: var(--bg-2); border-right: 1px solid var(--borda);
  transition: transform .25s ease;
}
.painel-rolagem { height: 100%; overflow-y: auto; padding: 14px 14px 24px; scrollbar-width: thin; scrollbar-color: var(--bg-4) transparent; }
body.painel-fechado .painel { transform: translateX(-100%); }

.busca {
  position: relative; display: flex; align-items: center;
  background: var(--bg); border: 1px solid var(--borda); border-radius: var(--raio); padding: 0 10px;
}
.busca:focus-within { border-color: var(--acento); box-shadow: 0 0 0 3px rgba(255, 79, 139, .18); }
.busca i { color: var(--texto-3); }
.busca input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--texto); font: inherit; padding: 11px 8px; }
.busca input::-webkit-search-cancel-button { filter: invert(1); }

.progresso { margin: 14px 0 12px; padding: 12px; background: var(--bg-3); border-radius: var(--raio); }
.progresso-topo { display: flex; justify-content: space-between; color: var(--texto-2); font-size: 13px; margin-bottom: 8px; }
.progresso-topo b { color: var(--texto); }
.barra { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.barra-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--acento), var(--acento-2)); transition: width .3s; }

.acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 10px; border-radius: 8px; border: 1px solid var(--borda); background: var(--bg-3); color: var(--texto);
  font-weight: 600; font-size: 13px; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--bg-4); }
.btn-peq { padding: 6px 9px; font-size: 12px; }
.btn-primario { background: var(--acento); border-color: var(--acento); color: #fff; }
.btn-primario:hover { background: #ff3a7c; }

.chave { display: flex; align-items: center; gap: 10px; margin: 12px 2px 6px; color: var(--texto-2); cursor: pointer; user-select: none; }
.chave input { position: absolute; opacity: 0; pointer-events: none; }
.chave-trilho { width: 36px; height: 20px; border-radius: 99px; background: var(--bg-4); position: relative; transition: background .2s; flex: none; }
.chave-trilho::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.chave input:checked + .chave-trilho { background: var(--acento); }
.chave input:checked + .chave-trilho::after { transform: translateX(16px); }
.chave input:focus-visible + .chave-trilho { outline: 2px solid var(--acento-2); outline-offset: 2px; }

/* Grupos e categorias */
.grupo { margin-top: 16px; }
.grupo-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.grupo-tit {
  display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0;
  font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--texto-2);
}
.grupo-tit i { font-size: 10px; transition: transform .2s; }
.grupo.fechado .grupo-tit i { transform: rotate(-90deg); }
.grupo.fechado .grupo-lista { display: none; }
.link { background: none; border: 0; color: var(--texto-3); font-size: 12px; font-weight: 600; padding: 2px 4px; }
.link:hover { color: var(--texto); }
.grupo-lista { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cat {
  display: flex; align-items: center; gap: 8px; min-width: 0; text-align: left;
  padding: 7px 8px; border-radius: 8px; border: 1px solid transparent; background: var(--bg-3);
  transition: opacity .15s, background .15s;
}
.cat:hover { background: var(--bg-4); }
.cat.oculta { opacity: .38; }
.cat.oculta .cat-nome { text-decoration: line-through; }
.cat.vazia { display: none; }
.cat-ico, .pp-ico, .res-ico {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: #111; font-size: 11px;
}
.cat-nome { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 500; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cat-num { flex: none; font-size: 11px; color: var(--texto-3); font-variant-numeric: tabular-nums; }

/* Resultados de busca */
.resultados { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.resultados-info { color: var(--texto-3); font-size: 12px; margin: 0 2px 4px; }
.res {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; border: 0; background: var(--bg-3); text-align: left;
}
.res:hover { background: var(--bg-4); }
.res-txt { min-width: 0; display: flex; flex-direction: column; }
.res-txt b { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-txt small { color: var(--texto-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res .fa-circle-check { margin-left: auto; color: var(--ok); }

/* Notas */
.notas-box { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--borda); }
.notas-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.notas-topo h3 { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--texto-2); display: flex; align-items: center; gap: 8px; }
.pill { background: var(--bg-4); color: var(--texto); border-radius: 99px; padding: 2px 8px; font-size: 11px; letter-spacing: 0; }
.dica { color: var(--texto-3); font-size: 12px; margin: 8px 2px; }
.lista-notas { display: flex; flex-direction: column; gap: 4px; }
.nota-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; background: var(--bg-3); border: 0; border-radius: 8px; text-align: left; }
.nota-item:hover { background: var(--bg-4); }
.nota-item i { color: var(--acento-2); }
.nota-item span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rodape-painel { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--borda); color: var(--texto-3); font-size: 12px; }
.rodape-painel p { margin: 10px 0 0; line-height: 1.5; }
.link-perigo { background: none; border: 0; padding: 0; color: var(--perigo); font-weight: 600; font-size: 12px; }

/* ---------- Mapa ---------- */
#mapa {
  position: fixed; top: var(--topo-h); right: 0; bottom: 0; left: var(--painel-w);
  background: #2c67a4; transition: left .25s ease;
}
body.painel-fechado #mapa { left: 0; }
.leaflet-container { font-family: inherit; background: #2c67a4; }
.leaflet-tile { image-rendering: auto; }
/* Evita linhas entre tiles em zoom fracionado: o Leaflet 1.9 usa "plus-lighter",
   que clareia as bordas sobrepostas. Mistura normal + leve sobreposição fecha as frestas. */
.leaflet-container .tiles-leonida img.leaflet-tile { mix-blend-mode: normal; width: 256.6px !important; height: 256.6px !important; }
.leaflet-bar { border: 0 !important; box-shadow: var(--sombra) !important; border-radius: 10px !important; overflow: hidden; }
.leaflet-bar a {
  width: 38px !important; height: 38px !important; line-height: 38px !important;
  background: var(--bg-2) !important; color: var(--texto) !important; border-bottom-color: var(--borda) !important; font-size: 18px !important;
}
.leaflet-bar a:hover { background: var(--bg-3) !important; }
.leaflet-control-attribution { background: rgba(18, 21, 27, .75) !important; color: var(--texto-3) !important; font-size: 11px; }
.leaflet-control-attribution a { color: var(--texto-2) !important; }

/* Marcadores */
.pin { cursor: pointer; }
.pin-c {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%;
  border-radius: 6px; color: #111; font-size: 13px;
  background: var(--c); /* fallback */
  background: color-mix(in srgb, var(--c) 32%, #fff);
  border: 1.5px solid #111;
  box-shadow: 0 0 0 1.5px #fff, 0 3px 6px rgba(0, 0, 0, .45);
  transition: transform .12s;
}
.pin:hover .pin-c { transform: scale(1.18); }
.pin.achado .pin-c { filter: grayscale(.85) brightness(.7); opacity: .6; }
.pin-ok {
  position: absolute; right: -5px; bottom: -5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ok); color: #0b2a1d; font-size: 8px; display: grid; place-items: center; border: 1.5px solid #fff;
}
.pin.selecionado .pin-c { transform: scale(1.3); box-shadow: 0 0 0 4px rgba(255, 79, 139, .65), 0 2px 8px rgba(0, 0, 0, .6); }
/* Em zoom distante os marcadores viram pontos */
.zoom-longe .pin-c { font-size: 0; border-width: 2px; transform: scale(.42); }
.zoom-longe .pin:hover .pin-c { transform: scale(.6); }
.zoom-medio .pin-c { transform: scale(.75); }
.zoom-medio .pin:hover .pin-c { transform: scale(.95); }
.zoom-longe .pin-c i, .zoom-longe .pin-ok { display: none; }

.pin-nota .pin-c { background-color: var(--acento-2); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }

/* Nomes de regiões e bairros sobre o mapa */
.rotulo { pointer-events: none !important; white-space: nowrap; }
.rotulo span {
  display: inline-block; transform: translate(-50%, -50%);
  text-shadow: 0 0 3px rgba(0, 0, 0, .55), 0 1px 2px rgba(0, 0, 0, .6);
}
.rotulo-regiao span {
  color: #fff; font-weight: 800; font-size: 22px; letter-spacing: .5px; text-transform: uppercase;
  font-stretch: condensed; -webkit-text-stroke: .6px rgba(0, 0, 0, .35);
}
.rotulo-bairro span { color: #8ee6a4; font-weight: 600; font-size: 15px; }
.sem-rotulos .rotulo, .zoom-longe .rotulo-bairro { display: none; }
.zoom-longe .rotulo-regiao span { font-size: 16px; }
.zoom-perto .rotulo-regiao { display: none; }
.pin-nota .pin-c i { transform: rotate(45deg); }
.pin-nota:hover .pin-c { transform: rotate(-45deg) scale(1.15); }

/* Popup */
.leaflet-popup-content-wrapper { background: var(--bg-2); color: var(--texto); border-radius: 12px; box-shadow: var(--sombra); border: 1px solid var(--borda); padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 300px !important; max-width: calc(100vw - 60px); font-size: 13px; line-height: 1.45; }
.leaflet-popup-tip { background: var(--bg-2); border: 1px solid var(--borda); }
.leaflet-container a.leaflet-popup-close-button { color: var(--texto-2); width: 30px; height: 30px; font-size: 20px; top: 6px; right: 6px; z-index: 2; }
.leaflet-container a.leaflet-popup-close-button:hover { color: #fff; }

.pp-cab { display: flex; align-items: flex-start; gap: 10px; padding: 14px 36px 10px 14px; }
.pp-ico { width: 32px; height: 32px; font-size: 14px; border-radius: 8px; border: 2px solid #fff; }
.cat-ico, .res-ico { border-radius: 6px; }
/* Ícone game-icons.net aplicado como máscara: assume a cor do texto */
.gi {
  display: block; width: 68%; height: 68%; background-color: currentColor;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.pin-c .gi { width: 80%; height: 80%; }
.pp-cab h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.25; }
.pp-sub { display: block; color: var(--texto-2); font-size: 12px; margin-top: 2px; }
.pp-cat { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--c); text-transform: uppercase; letter-spacing: .6px; }
.pp-foto { position: relative; background: #000; aspect-ratio: 16 / 9; }
.pp-foto img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.pp-foto-abas { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 4px; }
.pp-foto-abas button { border: 0; border-radius: 6px; padding: 4px 8px; font-size: 11px; font-weight: 600; background: rgba(0, 0, 0, .65); color: #ddd; }
.pp-foto-abas button.ativo { background: var(--acento); color: #fff; }
.pp-corpo { padding: 10px 14px 4px; }
.pp-corpo p { margin: 0 0 8px; color: var(--texto-2); }
.pp-corpo p b { color: var(--texto); font-weight: 600; }
.pp-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.pp-tag { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--bg-4); color: var(--texto-2); }
.pp-tag.alerta { background: rgba(255, 181, 71, .16); color: var(--acento-2); }
.pp-acoes { display: flex; gap: 6px; padding: 8px 14px 12px; }
.pp-acoes .btn { flex: 1; }
.btn-achado.ativo { background: rgba(61, 220, 151, .16); border-color: var(--ok); color: var(--ok); }
.pp-rodape { padding: 8px 14px; border-top: 1px solid var(--borda); color: var(--texto-3); font-size: 11px; display: flex; justify-content: space-between; gap: 8px; }
.pp-rodape a { color: var(--texto-3); }

.pp-form { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.pp-form h3 { margin: 0 24px 2px 0; font-size: 15px; }
.pp-form input, .pp-form textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--borda); border-radius: 8px; color: var(--texto); font: inherit; padding: 8px 10px; resize: vertical;
}
.pp-form input:focus, .pp-form textarea:focus { outline: 0; border-color: var(--acento); }
.pp-form .linha { display: flex; gap: 6px; }
.pp-form .linha .btn { flex: 1; }
.btn-perigo { color: var(--perigo); }

/* ---------- Elementos flutuantes ---------- */
.coords {
  position: fixed; left: calc(var(--painel-w) + 12px); bottom: 12px; z-index: 900;
  padding: 6px 10px; border-radius: 8px; background: rgba(18, 21, 27, .82); color: var(--texto-2);
  font: 600 12px/1 ui-monospace, Consolas, monospace; pointer-events: none; transition: left .25s ease;
}
body.painel-fechado .coords { left: 12px; }
.aviso-nota {
  position: fixed; top: calc(var(--topo-h) + 14px); left: 50%; transform: translateX(-50%); z-index: 1002;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px;
  background: var(--acento-2); color: #2a1a00; font-weight: 700; box-shadow: var(--sombra);
}
.aviso-nota button { border: 0; border-radius: 6px; padding: 4px 10px; background: rgba(0, 0, 0, .2); font-weight: 700; }
.carregando {
  position: fixed; inset: var(--topo-h) 0 0 0; z-index: 1500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(18, 21, 27, .7); color: var(--texto-2); font-weight: 600;
}
.carregando.oculto { display: none; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--bg-4); border-top-color: var(--acento); animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 2000;
  padding: 10px 16px; border-radius: 10px; background: var(--bg-3); color: var(--texto); border: 1px solid var(--borda);
  box-shadow: var(--sombra); font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.visivel { opacity: 1; transform: translate(-50%, 0); }

.dialogo {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 64px); overflow: auto;
  background: var(--bg-2); color: var(--texto); border: 1px solid var(--borda); border-radius: 14px; padding: 6px 22px 18px; box-shadow: var(--sombra);
}
.dialogo::backdrop { background: rgba(0, 0, 0, .6); }
.dialogo h2 { font-size: 20px; }
.dialogo h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--texto-2); margin: 18px 0 6px; }
.dialogo ul { padding-left: 18px; margin: 0; line-height: 1.6; }
.dialogo .pequeno { color: var(--texto-3); font-size: 12.5px; line-height: 1.5; }
.dialogo-acoes { display: flex; justify-content: flex-end; margin-top: 18px; }

.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, .9); display: grid; place-items: center; cursor: zoom-out; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  :root { --painel-w: min(88vw, 340px); }
  #mapa { left: 0 !important; }
  .coords { left: 12px !important; bottom: 12px; }
  .painel { box-shadow: var(--sombra); }
  body:not(.painel-aberto-mobile) .painel { transform: translateX(-100%); }
  body.painel-aberto-mobile .painel { transform: none; }
  .topo-btn span { display: none; }
  .marca-txt small { display: none; }
}

/* Leonida 0.0.3 — interface cartográfica, sem alteração dos tiles */
:root{--topo-h:64px;--painel-w:320px;--bg:#12161c;--bg-2:#191e25;--bg-3:#232a33;--bg-4:#303946;--texto:#f2f4f7;--texto-2:#b8c2ce;--texto-3:#9ba8b7;--acento:#d68b68;--acento-2:#e9ad83;--raio:8px}
.topo{background:#15191f;box-shadow:none;padding:0 16px}.marca-pin{background:#d68b68;color:#17191f;box-shadow:none;border-radius:8px}.marca-txt b{font-size:20px;letter-spacing:.5px}.topo-btn{border-radius:7px}.topo-btn[aria-pressed=true]{color:var(--acento);background:var(--bg-3)}
.painel-rolagem{padding:16px 14px 24px}.busca input{font-size:14px}.busca:focus-within{box-shadow:0 0 0 2px #d68b6833}.progresso{border:1px solid var(--borda);background:transparent;padding:13px}.progresso-linha{display:flex;align-items:center;gap:10px}.progresso-linha .barra{flex:1}.progresso-linha b{color:var(--acento);font-size:13px}.barra-fill{background:var(--acento)}
.grupo{border-top:1px solid var(--borda);padding-top:13px;margin-top:14px}.grupo-lista{grid-template-columns:1fr;gap:5px}.cat{min-height:38px;padding:7px 10px;border:1px solid #303946}.cat-nome{display:block;white-space:normal;overflow:visible;font-size:13px;line-height:1.35}.cat-num{font-size:12px}.cat-ico{border-radius:6px}.cat.oculta{opacity:.58}.cat.oculta .cat-nome{text-decoration:none}.grupo-tit{letter-spacing:.5px;color:var(--texto)}.btn{min-height:36px}.btn-primario,.btn-achado:not(.ativo){background:var(--acento);color:#17191f;border-color:var(--acento)}.btn-primario:hover,.btn-achado:not(.ativo):hover{background:var(--acento-2)}
.pin-c{background:var(--c)}.pin.selecionado .pin-c{box-shadow:0 0 0 3px #d68b68,0 2px 8px #0009}.zoom-longe .pin-c{transform:scale(.55)}
.pp-favorito{padding:0 14px 12px}.pp-favorito .btn{width:100%}.pp-favorito .btn[aria-pressed=true]{color:var(--acento);border-color:var(--acento)}.pp-cab h3{font-size:17px}.pp-foto img{object-fit:contain}.pp-rodape{flex-wrap:wrap}.detalhe-local{display:none}
@media(min-width:1100px){.leaflet-popup.popup-local{visibility:hidden;pointer-events:none}.detalhe-local{display:block;position:fixed;right:16px;top:calc(var(--topo-h) + 16px);width:320px;max-height:calc(100dvh - var(--topo-h) - 120px);overflow:auto;background:var(--bg-2);border:1px solid var(--borda);border-radius:10px;z-index:950;box-shadow:var(--sombra)}#fechar-detalhe{position:absolute;right:5px;top:5px;z-index:2;font-size:24px}.detalhe-local .pp-cab{padding-right:42px}.detalhe-local .pp-foto{margin:0 12px;border-radius:6px;overflow:hidden}}
@media(max-width:760px){:root{--topo-h:58px;--painel-w:min(92vw,360px)}.topo{padding:0 8px;gap:4px}.topo-dir{gap:0}.topo-btn{min-width:34px;padding:0 8px}.marca-txt b{font-size:17px}.marca-pin{width:30px;height:30px}.painel{top:auto;bottom:0;left:0;width:100%;height:min(65dvh,580px);border-radius:14px 14px 0 0;border-top:1px solid var(--borda)}body:not(.painel-aberto-mobile) .painel{transform:translateY(105%)}.painel-rolagem{padding:14px 16px 24px}.cat{min-height:44px}.busca input{font-size:16px}.leaflet-popup-content{max-width:calc(100vw - 44px)}.leaflet-popup-content-wrapper{max-height:65dvh;overflow:auto}.pp-acoes .btn,.pp-favorito .btn{min-height:44px}}

/* 0.0.4: legibilidade e espaçamento */
:root{--painel-w:340px}
.painel-rolagem{padding:16px 16px 24px;overflow-x:hidden}.grupo-lista{display:grid;grid-template-columns:minmax(0,1fr)}.cat{width:100%;min-width:0;min-height:42px}.cat-nome{flex:1;text-align:left;font-size:14px}.cat-num{flex-shrink:0}.grupo-cab{gap:8px}.grupo-tit{font-size:13px}.topo-dir{flex-shrink:0}.marca-txt{overflow:hidden}.marca-txt b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.progresso{padding:14px}.chave{min-height:32px}.notas-box{margin-top:20px}#dados-status{padding:12px;border:1px solid var(--borda);border-radius:8px;margin:12px 0;color:var(--texto)}#dados-status .btn{width:100%}
@media(max-width:760px){:root{--painel-w:min(92vw,360px)}.painel-rolagem{padding:14px 16px 24px}.cat{min-height:44px}.topo-dir{gap:0}.marca{flex:1}.marca-txt b{font-size:16px}}
/* 0.0.5 */
:root{--topo-h:70px;--painel-w:350px;--acento:#e5a05e;--acento-2:#f0b77c;--bg:#10151b;--bg-2:#151c24;--bg-3:#202934;--borda:#35404c}
.topo{background:#10151b;border-bottom:1px solid #35404c;gap:12px}.marca-pin{background:#e5a05e}.nav-principal{display:flex;align-items:center;gap:8px;margin:auto}.nav-principal .topo-btn{padding:10px 15px;font-size:14px;gap:8px}.nav-atual{border:1px solid var(--acento)!important;color:var(--acento);background:#25231f}.topo-dir{margin-left:0}.painel{background:#151c24}.busca{min-height:48px;border-radius:9px}.progresso{background:#1c2530;padding:16px;border-radius:10px}.progresso-linha b{font-size:19px}.progresso-linha .barra{height:10px}.grupo{padding-top:12px;margin-top:12px}.grupo-tit{font-size:14px}.cat{min-height:40px;background:#202934;border-radius:8px}.cat-ico{width:30px;height:30px}.cat.oculta{opacity:.55}.cat:not(.oculta):hover{border-color:var(--acento)}.zoom-longe .pin-c{transform:scale(.72);font-size:12px}.zoom-longe .pin-c i{display:block}.zoom-longe .pin:hover .pin-c{transform:scale(1)}.pin-c{border:1px solid #fff;box-shadow:0 2px 5px #0008}.detalhe-local .pp-cab h3{font-size:21px}.detalhe-local .pp-cab{padding:20px 40px 16px 16px}.detalhe-local .pp-foto{aspect-ratio:16/10}.detalhe-local .pp-corpo{padding:14px 16px}.detalhe-local .pp-acoes .btn,.detalhe-local .pp-favorito .btn{min-height:44px}.detalhe-local .pp-favorito{padding-bottom:18px}
@media(min-width:1100px){.detalhe-local{right:0;top:var(--topo-h);bottom:0;width:340px;max-height:none;border-radius:0;border-top:0;box-shadow:none}.detalhe-aberto .leaflet-bottom.leaflet-right{right:350px}.detalhe-aberto .leaflet-control-attribution{max-width:calc(100vw - 710px)}}
@media(max-width:1050px){.nav-principal{display:none}.topo-dir{margin-left:auto}}
@media(max-width:760px){:root{--topo-h:58px;--painel-w:min(92vw,360px)}.topo{gap:4px}.topo-dir{margin-left:auto}.painel{height:min(65dvh,580px)}}

/* 0.0.6 — header independente, sem mudanças na cartografia */
.topo{--header-accent:#ffb547;isolation:isolate;background:#10121b;padding:0 20px;gap:16px;box-shadow:none;overflow:hidden}
.header-cenario{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-2;pointer-events:none}
.topo::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#090e17 0%,#090e17 22%,#10121b33 40%,#10121b55 68%,#090e17 100%);pointer-events:none}
#btn-menu{color:white;flex-shrink:0;border-right:1px solid #ffffff28;border-radius:0;padding-right:12px;width:44px;font-size:20px}
.marca{flex:0 1 310px;gap:14px;min-width:0}.marca-pin{width:112px;height:48px;flex-shrink:0;background:none;border-radius:0;color:white;box-shadow:none;border-right:1px solid #ffffff45;padding-right:12px}.marca-gta{font:900 italic 32px/1 Impact,'Arial Black',sans-serif;letter-spacing:-1.5px;white-space:nowrap}.marca-gta em{color:#ed479b;font-style:inherit}.marca-txt b{font-size:23px;line-height:1.1;letter-spacing:.6px;text-transform:uppercase;color:white}.marca-txt small{font-size:11px;letter-spacing:1.1px;text-transform:uppercase;color:#d6dbe5;margin-top:4px}
.nav-principal{background:#14111fe8;border-radius:40px;padding:5px;gap:3px;flex-shrink:0;margin:0 auto}.nav-principal .topo-btn{border-radius:32px;height:42px;padding:0 16px;color:#f7f7fa;font-weight:600;white-space:nowrap}.nav-principal .nav-atual{border-color:var(--header-accent)!important;color:var(--header-accent);background:#39251e;box-shadow:inset 0 0 0 2px #ffffff08}.topo-dir{gap:4px;margin-left:auto}.topo-dir .topo-btn{color:#fff;background:#10121b80;border-radius:50%;padding:0 10px}.topo-dir .topo-btn span{display:none}.topo-dir .topo-btn:hover,.topo-dir .topo-btn[aria-pressed=true]{color:var(--header-accent);background:#27232d}.topo-btn:focus-visible,.marca:focus-visible{outline:2px solid var(--header-accent);outline-offset:2px}
@media(max-width:1050px){.topo{gap:9px;padding:0 12px}.marca{flex:1}.marca-pin{width:88px}.marca-gta{font-size:27px}.marca-txt b{font-size:19px}.nav-principal{display:flex}.nav-principal .topo-btn{padding:0 10px;font-size:13px}.topo-dir{gap:0}.topo-dir .topo-btn{min-width:34px;padding:0 7px}}
@media(max-width:760px){:root{--topo-h:100px}.topo{display:grid;grid-template-columns:34px minmax(0,1fr) auto;grid-template-rows:54px 42px;gap:0 6px;padding:0 8px}.topo::before{background:linear-gradient(90deg,#090e17ee,#10121b66,#090e17dd)}#btn-menu{width:34px;padding-right:5px;font-size:17px}.marca{gap:7px}.marca-pin{width:61px;height:34px;padding-right:6px}.marca-gta{font-size:21px;letter-spacing:-1px}.marca-txt b{font-size:16px}.marca-txt small{display:none}.nav-principal{grid-row:2;grid-column:1/-1;width:100%;justify-content:space-around;padding:3px;margin:0}.nav-principal .topo-btn{height:34px;flex:1;font-size:13px;padding:0 7px}.topo-dir{grid-column:3;grid-row:1}.topo-dir .topo-btn{min-width:29px;width:29px;padding:0;font-size:13px}.topo-dir .topo-btn span{display:none}}

.lc-side-banner{position:relative;height:142px;overflow:hidden;border-radius:9px;margin-bottom:14px;background:#171d27}.lc-side-banner img{width:100%;height:100%;object-fit:cover;object-position:center 40%}.lc-side-banner div{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:end;padding:12px;background:linear-gradient(0deg,#10151bea,transparent 80%)}.lc-side-banner strong{font-size:19px;letter-spacing:.5px}.lc-side-banner span{font-size:12px;color:#eee}.grupo{margin-top:8px;padding-top:9px}.cat{min-height:38px}.header-cenario{object-position:center 50%}@media(max-width:760px){.lc-side-banner{height:110px}}
