/* Quanto Custa Alugar. Tema escuro, acento verde-água. Mapa ocupa a tela; páginas de texto em coluna. */
:root {
  --fundo: #0f1419; --fundo-2: #161d24; --fundo-3: #1e2731; --borda: #2a3541;
  --texto: #e7edf3; --texto-2: #9fb0c0; --acento: #2dd4bf; --acento-2: #14b8a6; --acento-texto: #04201c;
  --cond: #a78bfa; --rua: #fbbf24; --disp: #34d399; --procura: #60a5fa; --perigo: #f87171; --zap: #25d366;
  --raio: 12px; --sombra: 0 8px 28px rgba(0,0,0,.45);
  --topo: 56px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fundo); color: var(--texto); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: var(--acento); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.25rem; margin-top: 1.4em; } h3 { font-size: 1.05rem; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.pular { position: absolute; left: -9999px; top: 8px; z-index: 3000; background: var(--acento); color: var(--acento-texto); padding: 8px 12px; border-radius: 8px; }
.pular:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }

/* ---------- Topo ---------- */
.topo { height: var(--topo); display: flex; align-items: center; gap: 16px; padding: 0 14px; background: var(--fundo-2); border-bottom: 1px solid var(--borda); position: relative; z-index: 1100; }
.marca { display: flex; align-items: baseline; gap: 6px; color: var(--texto); text-decoration: none; white-space: nowrap; min-width: 0; }
.marca b { font-size: 1.05rem; }
.marca small { color: var(--texto-2); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--texto-2); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current] { color: var(--texto); background: var(--fundo-3); }
.topo-direita { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.idiomas { display: flex; border: 1px solid var(--borda); border-radius: 8px; overflow: hidden; }
.idiomas a { padding: 4px 8px; font-size: .8rem; color: var(--texto-2); text-decoration: none; }
.idiomas a[aria-current] { background: var(--acento); color: var(--acento-texto); font-weight: 600; }
.cafe-btn { padding: 6px 12px; }

/* ---------- Botões e formulários ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; background: var(--acento); color: var(--acento-texto); font-weight: 600; padding: 8px 14px; border-radius: 10px; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--acento-2); }
.btn:disabled { opacity: .5; cursor: progress; }
.btn.sec { background: var(--fundo-3); color: var(--texto); border-color: var(--borda); font-weight: 500; }
.btn.sec:hover { border-color: var(--acento); }
.btn.grande { padding: 12px 18px; font-size: 1rem; }
.btn.perigo { color: var(--perigo); }
.btn.perigo:not(.sec) { background: var(--perigo); color: #2a0606; }
.btn.whatsapp { background: var(--zap); color: #052e13; }
.btn.ativo { border-color: var(--acento); color: var(--acento); }
.btn .selo:empty { display: none; }
.selo { background: var(--acento); color: var(--acento-texto); border-radius: 999px; font-size: .72rem; padding: 0 6px; min-width: 18px; text-align: center; }
.link { background: none; border: 0; color: var(--acento); text-decoration: underline; cursor: pointer; padding: 0; }
.acoes { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; align-items: center; }
.acoes.coluna { flex-direction: column; align-items: stretch; }
.form { display: grid; gap: 14px; }
.form-linha { grid-template-columns: 1fr 1fr auto; align-items: end; }
.campo { display: grid; gap: 6px; }
.campo .rotulo { font-weight: 600; font-size: .92rem; }
.campo .rotulo:empty { display: none; }
.ajuda, .nota-pe { color: var(--texto-2); font-size: .84rem; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; background: var(--fundo); border: 1px solid var(--borda); border-radius: 10px; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--acento); outline: none; }
textarea { resize: vertical; }
.dinheiro { display: flex; align-items: center; background: var(--fundo); border: 1px solid var(--borda); border-radius: 10px; padding-left: 12px; }
.dinheiro input { border: 0 !important; background: transparent !important; }
.dinheiro span { color: var(--texto-2); }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 7px 12px; border: 1px solid var(--borda); border-radius: 999px; background: var(--fundo); cursor: pointer; font-size: .9rem; }
.chip input:checked + span { background: var(--acento); border-color: var(--acento); color: var(--acento-texto); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--acento); outline-offset: 2px; }
.opcao { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.opcao input { margin-top: 4px; accent-color: var(--acento); }
details.mais { border: 1px dashed var(--borda); border-radius: var(--raio); padding: 10px 12px; }
details.mais[open] { display: grid; gap: 14px; }
details summary { cursor: pointer; color: var(--acento); font-weight: 600; }
.com-erro input, .com-erro .chips, .com-erro .dinheiro, .com-erro textarea { border-color: var(--perigo) !important; }
.erro-campo { color: var(--perigo); font-size: .86rem; margin: 2px 0 0; }
.miniaturas { display: flex; gap: 8px; flex-wrap: wrap; }
.miniaturas figure { margin: 0; position: relative; }
.miniaturas img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; }
.miniaturas button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--perigo); color: #fff; cursor: pointer; }
.ponto-escolhido { color: var(--disp); font-size: .88rem; }

/* ---------- Página do mapa ---------- */
.pagina-mapa { height: 100dvh; overflow: hidden; }
.app { position: relative; height: calc(100dvh - var(--topo)); }
.mapa { position: absolute; inset: 0; background: #0b0f13; }
.barra { position: absolute; z-index: 1000; top: 10px; left: 10px; right: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; pointer-events: none; }
.barra > * { pointer-events: auto; }
.busca { position: relative; width: 280px; }
.busca input { background: var(--fundo-2) !important; box-shadow: var(--sombra); }
#sugestoes { position: absolute; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 4px; list-style: none; background: var(--fundo-2); border: 1px solid var(--borda); border-radius: 10px; box-shadow: var(--sombra); max-height: 320px; overflow: auto; }
#sugestoes li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
#sugestoes li:hover { background: var(--fundo-3); }
#sugestoes small { color: var(--texto-2); }
.modos { display: flex; background: var(--fundo-2); border: 1px solid var(--borda); border-radius: 10px; padding: 3px; box-shadow: var(--sombra); }
.modos button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; cursor: pointer; color: var(--texto-2); }
.modos button[aria-pressed=true] { background: var(--acento); color: var(--acento-texto); font-weight: 600; }
#btn-filtros { box-shadow: var(--sombra); background: var(--fundo-2); }
.contador { background: rgba(15,20,25,.85); padding: 4px 10px; border-radius: 999px; font-size: .82rem; color: var(--texto-2); }
.lateral { position: absolute; z-index: 1000; right: 10px; top: 64px; display: flex; flex-direction: column; gap: 6px; }
.lateral > button { width: 52px; min-height: 48px; border: 1px solid var(--borda); background: var(--fundo-2); border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1.05rem; box-shadow: var(--sombra); padding: 4px 2px; }
.lateral > button span { font-size: .6rem; color: var(--texto-2); line-height: 1.1; margin-top: 2px; }
.lateral > button[aria-pressed=true] { border-color: var(--acento); background: #10302c; }
.menu-mais { position: absolute; right: 60px; top: 0; width: 250px; background: var(--fundo-2); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); padding: 6px; display: grid; }
.menu-mais button, .menu-mais a { text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 8px; cursor: pointer; color: var(--texto); text-decoration: none; }
.menu-mais .menu-empresa { border-top: 1px solid var(--borda); margin: 6px 0 0; padding: 8px 10px 2px; font-size: .72rem; line-height: 1.5; }
.menu-mais .menu-empresa a { display: inline; padding: 0; color: var(--texto-2); text-decoration: underline; }
.menu-mais button:hover, .menu-mais a:hover { background: var(--fundo-3); }
.legenda { position: absolute; z-index: 900; left: 60px; bottom: 26px; display: flex; gap: 10px; background: rgba(15,20,25,.85); padding: 5px 10px; border-radius: 999px; font-size: .75rem; color: var(--texto-2); }
.legenda .cor { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; }
.cor.cond { background: var(--cond); } .cor.rua { background: var(--rua); } .cor.disp { background: var(--disp); } .cor.procura { background: var(--procura); }
.acoes-principais { position: absolute; z-index: 1000; left: 50%; transform: translateX(-50%); bottom: 58px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.acoes-principais .btn { box-shadow: var(--sombra); }
.acoes-principais .btn.sec { background: var(--fundo-2); }
.escolhendo .acoes-principais, .escolhendo .lateral, .escolhendo .barra, .escolhendo .legenda { display: none; }
.escolhendo .mapa { cursor: crosshair; }
.faixa-ponto { position: absolute; z-index: 1200; top: 10px; left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 20px)); background: var(--fundo-2); border: 1px solid var(--acento); border-radius: var(--raio); padding: 12px 14px; box-shadow: var(--sombra); }
.faixa-ponto p { margin: 0 0 10px; }
.faixa-ponto div { display: flex; gap: 8px; flex-wrap: wrap; }
.alfinete { font-size: 32px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.leaflet-container { background: #0b0f13; font: inherit; }
.base-escura { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.35); }
body[data-base=claro] .leaflet-container, body[data-base=satelite] .leaflet-container { background: #ddd; }
.leaflet-control-attribution { background: rgba(15,20,25,.75) !important; color: var(--texto-2) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--texto-2) !important; }
.leaflet-bar a { background: var(--fundo-2) !important; color: var(--texto) !important; border-color: var(--borda) !important; }
.leaflet-tooltip { background: var(--fundo-2); color: var(--texto); border-color: var(--borda); }

/* Pins e grupos */
.pin { position: relative; transform: translate(-50%, -100%); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 8px; background: var(--fundo-2); color: var(--texto); border: 2px solid var(--rua); box-shadow: 0 2px 8px rgba(0,0,0,.5); cursor: pointer; }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: inherit; border-bottom: 0; }
.pin span { font-weight: 600; font-size: 10px; color: var(--texto-2); }
.pin i { font-style: normal; color: var(--perigo); font-size: 10px; }
.pin.pin-cond { border-color: var(--cond); }
.pin.pin-rua { border-color: var(--rua); }
.pin.pin-suspeito { opacity: .55; border-style: dashed; }
.pin.pin-colega::before { content: "🤝"; position: absolute; top: -10px; right: -10px; font-size: 12px; }
.pin.pin-disp { border-color: var(--disp); background: #0d2a20; }
.pin.pin-disp span { color: var(--disp); }
.pin.pin-procura { border-color: var(--procura); background: #0f2238; }
.pin.pin-procura span { color: var(--procura); }
.pin.pin-placa { border-color: #fb923c; font-size: 16px; padding: 2px 6px; }
.pin .den { background: var(--perigo); color: #fff; border-radius: 50%; width: 14px; height: 14px; display: inline-grid; place-items: center; }
.grupo { transform: translate(-50%, -50%); width: max-content; min-width: 76px; white-space: nowrap; min-height: 52px; display: grid; place-items: center; text-align: center; background: rgba(20,184,166,.18); border: 2px solid var(--acento); border-radius: 14px; backdrop-filter: blur(2px); padding: 3px; line-height: 1.1; cursor: pointer; }
.grupo b { font-size: 14px; } .grupo small { font-size: 9px; color: var(--texto-2); } .grupo em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--acento); } .grupo i { font-style: normal; font-size: 9px; color: var(--disp); }
.grupo.tem-disp { box-shadow: 0 0 0 3px rgba(52,211,153,.35); }
.ponto { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--fundo-2); border: 1px solid var(--borda); font-size: 14px; }
.ponto-terminal { width: auto; height: 24px; border-radius: 8px; padding: 0 6px; display: flex; gap: 3px; font-size: 12px; border-color: var(--procura); }
.ponto-terminal span { font-size: 10px; font-weight: 700; }
.jeito-area { stroke: var(--acento); }

/* Painel de detalhe */
.painel { position: absolute; z-index: 1150; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100%; background: var(--fundo-2); border-left: 1px solid var(--borda); box-shadow: var(--sombra); overflow-y: auto; padding: 18px 18px 40px; }
.com-painel .lateral { right: 410px; }
.fechar { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--borda); background: var(--fundo-3); color: var(--texto); font-size: 20px; line-height: 1; cursor: pointer; z-index: 2; }
.sobretitulo { color: var(--texto-2); font-size: .82rem; margin: 0 0 4px; text-transform: none; }
.sobretitulo a { color: var(--texto-2); }
.preco { font-size: 1.8rem; font-weight: 800; margin: 4px 0 8px; color: var(--acento); }
.preco small { font-size: .9rem; color: var(--texto-2); font-weight: 400; }
.compara { background: var(--fundo-3); border-radius: 10px; padding: 8px 10px; font-size: .9rem; }
.compara.acima { border-left: 3px solid var(--perigo); } .compara.abaixo { border-left: 3px solid var(--disp); }
.alerta-suspeito { background: #3a2a0c; color: #fde68a; border-radius: 10px; padding: 8px 10px; font-size: .9rem; }
.selo-colega { background: #1f2a44; border-radius: 10px; padding: 8px 10px; }
.tabela { display: grid; margin: 10px 0; }
.linha { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--borda); font-size: .92rem; }
.linha span { color: var(--texto-2); }
.linha b { text-align: right; }
blockquote { margin: 12px 0; padding: 8px 12px; border-left: 3px solid var(--acento); background: var(--fundo-3); border-radius: 0 10px 10px 0; color: var(--texto); }
.bloco { border-top: 1px solid var(--borda); margin-top: 16px; padding-top: 12px; }
.estrelas { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.estrelas input { position: absolute; opacity: 0; }
.estrelas label { cursor: pointer; font-size: 22px; color: var(--borda); }
.estrelas input:checked ~ label, .estrelas label:hover, .estrelas label:hover ~ label { color: #fbbf24; }
.avaliar { display: grid; gap: 8px; }
.avaliar > div { display: flex; justify-content: space-between; align-items: center; }
.comentario { border-bottom: 1px solid var(--borda); padding: 8px 0; }
.comentario p { margin: 2px 0; }
.comentario small { color: var(--texto-2); }
.galeria { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 8px 0; }
.galeria img { height: 200px; border-radius: 10px; scroll-snap-align: start; object-fit: cover; }
.carregando { color: var(--texto-2); }
.vazio { color: var(--texto-2); }

/* Diálogo */
dialog { background: var(--fundo-2); color: var(--texto); border: 1px solid var(--borda); border-radius: 16px; padding: 22px 20px; width: min(620px, calc(100% - 20px)); max-height: calc(100dvh - 40px); overflow-y: auto; box-shadow: var(--sombra); }
dialog.pequeno { width: min(440px, calc(100% - 20px)); }
dialog::backdrop { background: rgba(0,0,0,.6); }
dialog h2 { margin-top: 0; padding-right: 34px; }
.sub { color: var(--texto-2); margin-top: -4px; }
.sucesso { text-align: center; }
.emoji { font-size: 44px; margin: 0; }
.emoji-grande { font-size: 64px; margin: 0; }
.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.numeros > div { background: var(--fundo-3); border-radius: 10px; padding: 10px 6px; text-align: center; }
.numeros b { display: block; font-size: 1.4rem; color: var(--acento); }
.numeros span { font-size: .75rem; color: var(--texto-2); }
.previa { background: var(--fundo); border-radius: 10px; padding: 10px; font-size: .9rem; word-break: break-word; }
.medianas, .abas { margin: 10px 0; }
.abas { display: flex; gap: 6px; flex-wrap: wrap; }
.placar { padding-left: 22px; } .placar li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--borda); }
.placar span { color: var(--texto-2); }
.cafe .pix { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; justify-items: center; text-align: center; }
.cafe .qr { background: #fff; padding: 10px; border-radius: 12px; width: 220px; }
.cafe .qr svg { display: block; width: 100%; height: auto; }
.copiavel { display: flex; gap: 6px; align-items: center; width: 100%; min-width: 0; }
.copiavel .btn { flex: none; }
.copiavel code { flex: 1; min-width: 0; background: var(--fundo); border-radius: 8px; padding: 8px; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copiavel code.quebra { white-space: normal; word-break: break-all; font-size: .72rem; }
.cafe .copiar-pix { width: 100%; }

/* Avisos e tour */
.aviso { position: fixed; z-index: 3000; left: 50%; bottom: 20px; transform: translate(-50%, 140%); background: var(--fundo-3); border: 1px solid var(--borda); padding: 10px 16px; border-radius: 12px; box-shadow: var(--sombra); transition: transform .25s; max-width: calc(100% - 24px); pointer-events: none; }
.aviso.visivel { transform: translate(-50%, 0); }
.aviso.ok { border-color: var(--acento); } .aviso.erro { border-color: var(--perigo); }
.tour-foco { position: relative; z-index: 2001 !important; box-shadow: 0 0 0 4px var(--acento), 0 0 0 9999px rgba(0,0,0,.55) !important; border-radius: 10px; }
.tour-balao { position: fixed; z-index: 2002; width: min(320px, calc(100% - 16px)); background: var(--fundo-2); border: 1px solid var(--acento); border-radius: 12px; padding: 12px 14px; box-shadow: var(--sombra); }
.tour-balao .passo { color: var(--acento); font-weight: 700; margin: 0; font-size: .8rem; }
.tour-balao .acoes { margin: 8px 0 0; justify-content: flex-end; }

/* Lista para leitores de tela e busca, embaixo do mapa */
.lista-seo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lista-seo:focus-within { position: static; width: auto; height: auto; clip: auto; white-space: normal; padding: 20px; }

/* ---------- Páginas de texto ---------- */
.texto { max-width: 760px; margin: 0 auto; padding: 28px 18px 40px; }
.texto.largo { max-width: 980px; }
.texto.estreito { max-width: 420px; }
.texto p, .texto li { color: #d4dde6; }
.lead { font-size: 1.08rem; color: var(--texto-2) !important; }
.destaque { background: #10302c; border: 1px solid var(--acento); border-radius: var(--raio); padding: 12px 14px; }
.texto details { border-bottom: 1px solid var(--borda); padding: 12px 0; }
.texto details p { margin: 8px 0 0; }
.rolar { overflow-x: auto; }
.tabela-texto { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .92rem; }
.tabela-texto th, .tabela-texto td { padding: 8px 10px; border-bottom: 1px solid var(--borda); text-align: left; vertical-align: top; }
.tabela-texto th { color: var(--texto-2); font-weight: 600; font-size: .82rem; }
.tabela-texto.valores td:not(:first-child), .tabela-texto.valores th:not(:first-child) { text-align: right; white-space: nowrap; }
.sobe { color: var(--perigo); } .desce { color: var(--disp); }
.cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 18px 0; }
.cartoes > div, .cartao { background: var(--fundo-2); border: 1px solid var(--borda); border-radius: var(--raio); padding: 12px 14px; }
.cartoes span { display: block; color: var(--texto-2); font-size: .8rem; }
.cartoes b { font-size: 1.3rem; }
.cartoes small { display: block; color: var(--texto-2); }
.cartao { margin: 12px 0; }
.cartao.lida { opacity: .6; }
.vizinhos, .movers { padding-left: 20px; }
.vizinhos small { color: var(--texto-2); }
.resultado { border-radius: 10px; padding: 10px 12px; }
.resultado.ok { background: #10302c; border: 1px solid var(--acento); }
.resultado.erro { background: #3a1010; border: 1px solid var(--perigo); }
.rodape { border-top: 1px solid var(--borda); padding: 20px 18px 30px; text-align: center; color: var(--texto-2); font-size: .85rem; }
.rodape p { margin: 4px 0; }
.rodape a { color: var(--texto-2); }
.empresa { color: var(--texto-2); font-size: .82rem; }
.pre { white-space: pre-wrap; }
.topo-mod { display: flex; justify-content: space-between; align-items: center; }
.abas-mod { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.abas-mod a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--borda); text-decoration: none; color: var(--texto); }
.abas-mod a[aria-current] { border-color: var(--acento); background: #10302c; }
.foto-mod img { max-width: 100%; max-height: 320px; border-radius: 10px; }
.foto-mod { margin: 10px 0; }

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  :root { --topo: 52px; }
  .topo { gap: 8px; padding: 0 10px; }
  .marca small, .nav, .cafe-btn span { display: none; }
  .barra { top: 8px; left: 8px; right: 8px; gap: 6px; }
  .busca { width: calc(100% - 112px); flex: 1 1 auto; }
  .modos { order: 3; width: 100%; justify-content: space-between; }
  .modos button { flex: 1; padding: 6px 4px; font-size: .85rem; }
  .contador { display: none; }
  .lateral { top: 112px; right: 8px; }
  .lateral > button { width: 44px; min-height: 42px; font-size: .95rem; }
  .lateral > button span { display: none; }
  .menu-mais { right: 50px; width: min(250px, calc(100vw - 70px)); }
  .legenda { display: none; }
  .acoes-principais { bottom: 14px; left: 8px; right: 8px; transform: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .acoes-principais #btn-contar { grid-column: 1 / -1; }
  .acoes-principais .btn { padding: 9px 6px; font-size: .85rem; }
  #btn-como-usar { display: none; }
  .leaflet-bottom.leaflet-left { bottom: 104px; }
  .painel { top: auto; left: 0; width: 100%; max-height: 72dvh; border-left: 0; border-top: 1px solid var(--borda); border-radius: 16px 16px 0 0; }
  .com-painel .lateral { right: 8px; }
  .com-painel .acoes-principais { display: none; }
  .duas { grid-template-columns: 1fr; }
  .form-linha { grid-template-columns: 1fr; }
  dialog { padding: 18px 14px; }
  h1 { font-size: 1.4rem; }
}

/* Bolha de cidade no mapa do Brasil (zoom afastado): clicar abre a página da cidade. */
.grupo.cidade { padding: 4px 10px; min-height: 0; background: var(--fundo-2); backdrop-filter: none; box-shadow: var(--sombra); }
.grupo.cidade b { font-size: 12px; }

/* Busca de cidade na página de cidades */
.busca-cidade { position: relative; max-width: 420px; margin: 1rem 0 1.5rem; display: grid; gap: .35rem; }
.busca-cidade input { width: 100%; }
.busca-cidade ul { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; list-style: none; margin: 4px 0 0; padding: 4px; background: var(--fundo-2, #1b1f24); border: 1px solid var(--borda, #333); border-radius: 10px; }
.busca-cidade li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; }
.busca-cidade li:hover, .busca-cidade li:focus { background: rgba(20,184,166,.15); outline: none; }
.busca-cidade li small { color: var(--texto-2); }
