:root {
  --primaria: #34DA9F;
  --acao: #1C7250;
  --acao2: #145a3e;
  --texto: #111;
  --suave: #6b7280;
  --fundo: #f6f7f8;
  --cartao: #fff;
  --borda: #e5e7eb;
  --perigo: #b91c1c;
  --aviso: #d97706;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--texto); background: var(--fundo); -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; }
.barra { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: #fff; background: linear-gradient(90deg, var(--primaria), #2a8f8a); }
.barra img { width: 32px; height: 32px; border-radius: 8px; }
.barra b { flex: 1; font-size: 17px; }
.barra button { background: rgba(255,255,255,.2); color: #fff; border: 0; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.btn { display: block; width: 100%; border: 0; border-radius: 12px; padding: 14px; font-size: 16px; font-weight: 600; cursor: pointer; background: var(--acao); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.claro { background: #eef2f1; color: var(--texto); }
.btn.perigo { background: var(--perigo); }
.btn.grande { padding: 18px; font-size: 18px; }
.linha { display: flex; gap: 10px; }
.linha > * { flex: 1; }
input, select { width: 100%; border: 1px solid var(--borda); border-radius: 10px; padding: 12px; font-size: 16px; background: #fff; }
label { display: block; font-size: 13px; color: var(--suave); margin: 10px 0 4px; }
.cartao { background: var(--cartao); border-radius: 16px; padding: 16px; box-shadow: 0 4px 24px rgba(0,0,0,.12); }
.erro { color: var(--perigo); font-size: 14px; min-height: 1.2em; margin: 8px 0 0; }
.suave { color: var(--suave); font-size: 14px; }
.preco { font-size: 28px; font-weight: 700; color: var(--acao); }
.tag { display: inline-block; font-size: 12px; padding: 3px 8px; border-radius: 999px; background: #eef2f1; }
.tag.verde { background: #d1fae5; color: #065f46; }
.tag.laranja { background: #ffedd5; color: #9a3412; }
.tag.vermelha { background: #fee2e2; color: #991b1b; }
.tag.cinza { background: #e5e7eb; color: #374151; }
.tela-mapa { position: relative; height: calc(100% - 52px); }
#mapa { position: absolute; inset: 0; }
.painel { position: absolute; left: 12px; right: 12px; bottom: 12px; max-width: 460px; margin: 0 auto; z-index: 2; }
.dica { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 2; background: rgba(17,17,17,.85); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 14px; text-align: center; width: max-content; max-width: calc(100% - 110px); }
.dica:empty { display: none; }
.marcador { font-size: 26px; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); cursor: default; }
.pino { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.centro { max-width: 420px; margin: 24px auto; padding: 0 16px; }
.giro { width: 22px; height: 22px; border: 3px solid #cfe9df; border-top-color: var(--acao); border-radius: 50%; animation: gira 0.9s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes gira { to { transform: rotate(360deg); } }
.etapas { display: flex; gap: 6px; margin: 8px 0 12px; }
.etapas i { flex: 1; height: 4px; border-radius: 4px; background: var(--borda); }
.etapas i.on { background: var(--primaria); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--borda); vertical-align: top; }
th { color: var(--suave); font-weight: 500; }
[hidden] { display: none !important; }
