/* Site ondevotar — estilo cartaz, igual às artes (secoes/artes.py): papel creme, tinta preta, vermelho,
   Alfa Slab One nos títulos e Rye nos destaques (SIL OFL) */
@font-face { font-family: "Alfa Slab One"; src: url("/assets/fontes/AlfaSlabOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Rye"; src: url("/assets/fontes/Rye-Regular.ttf") format("truetype"); font-display: swap; }
:root {
  --papel: #f2ede6;
  --papel-claro: #faf7f2;
  --tinta: #161616;
  --vermelho: #d8232a;
  --suave: #5c5651;
  --linha: #d9d2c8;
  --raio: 4px;
  --alfa: "Alfa Slab One", Georgia, serif;
  --rye: "Rye", Georgia, serif;
  --fonte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --listras: repeating-linear-gradient(-45deg, var(--tinta) 0 4px, var(--papel) 4px 9px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 16px/1.45 var(--fonte); }
a { color: var(--tinta); }
[hidden] { display: none !important; }
button, input, select { font: inherit; }

/* Topo: faixa preta com a marca e o botão de compartilhar, listras embaixo */
.topo { background: var(--tinta); color: var(--papel); padding: 8px 12px 8px 16px; position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.topo::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 7px; background: var(--listras); }
.marca { color: var(--papel); text-decoration: none; font-family: var(--alfa); text-transform: uppercase; font-size: 16px;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.marca-pino { width: 16px; height: 20px; flex: none; }
.marca-turno { font-family: var(--rye); text-transform: uppercase; color: #ff6b6f; font-size: 11px; }
.bt-compartilhar { flex: none; height: 34px; padding: 0 12px; border: 2px solid var(--papel); border-radius: var(--raio);
  background: var(--vermelho); color: #fff; font-family: var(--alfa); text-transform: uppercase; font-size: 13px; cursor: pointer; }
.bt-compartilhar:active { transform: scale(.97); }
@media (max-width: 440px) { .marca-turno { display: none; } }

.conteudo { max-width: 760px; margin: 0 auto; padding: 0 16px 24px; }
.intro { padding: 24px 0 8px; }
.sobretitulo { margin: 0; color: var(--vermelho); font-family: var(--rye); text-transform: uppercase; font-size: 14px; }
h1 { margin: 4px 0 8px; font-family: var(--alfa); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 8vw, 46px); line-height: 1.02; }
h1 .uf { color: var(--vermelho); }
.resumo { margin: 0; font-size: 17px; }
.nota { color: var(--suave); font-size: 14px; margin: 6px 0 12px; }

/* ---------- Página da cidade: tudo numa tela de celular ---------- */
.pagina-cidade .conteudo { padding-bottom: 12px; }
.pagina-cidade .intro { padding: 11px 0 7px; display: flex; align-items: center; gap: 12px; }
.pagina-cidade h1 { font-size: 26px; margin: 0; flex: none; max-width: 62%; overflow-wrap: anywhere; }
.pagina-cidade h1 .uf::before { content: "/"; }
.pagina-cidade .resumo { font-size: 13.5px; line-height: 1.3; }

.busca { display: flex; gap: 6px; margin: 4px 0 10px; }
.busca select, .busca input {
  min-width: 0; height: 44px; padding: 0 10px; font-size: 16px; color: var(--tinta);
  background: var(--papel-claro); border: 3px solid var(--tinta); border-radius: var(--raio);
}
.busca select { flex: 0 0 90px; }
.busca input { flex: 1 1 auto; }
.busca select:focus, .busca input:focus { outline: 3px solid var(--vermelho); outline-offset: 1px; }
.busca button { flex: none; height: 44px; padding: 0 14px; border: 3px solid var(--tinta); border-radius: var(--raio); background: var(--tinta);
  color: var(--papel); font-family: var(--alfa); text-transform: uppercase; font-size: 13px; cursor: pointer; }

.mapa { height: 150px; height: clamp(140px, 22svh, 240px); border: 3px solid var(--tinta); border-radius: var(--raio); overflow: hidden;
  margin: 0 0 6px; background: #e9e4dc; }
.mapa .maplibregl-canvas { filter: sepia(.15) contrast(1.15); }

.carrossel-topo { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; font-size: 13px; color: var(--suave); }
#contador { font-family: var(--alfa); text-transform: uppercase; color: var(--tinta); white-space: nowrap; font-size: 14px; }
.carrossel-dica { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carrossel-dica.so-um { display: block; margin: 0 0 6px; font-size: 13px; color: var(--suave); }
.setas { display: flex; gap: 6px; }
.setas button { width: 34px; height: 30px; border-radius: var(--raio); border: 2px solid var(--tinta); background: var(--papel-claro); color: var(--tinta);
  font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
.setas button:disabled { opacity: .3; cursor: default; }

.locais { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.locais.carrossel {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 0 -16px; padding: 0 16px 8px; scroll-padding: 0 16px; scrollbar-width: none; align-items: flex-start;
}
.locais.carrossel::-webkit-scrollbar { display: none; }
/* cada card com a própria altura e sem alargar por texto longo */
.locais.carrossel .local { flex: 0 0 calc(100% - 30px); min-width: 0; scroll-snap-align: start; }

.local { background: var(--papel-claro); border: 3px solid var(--tinta); border-radius: var(--raio); padding: 10px 11px;
  box-shadow: 4px 4px 0 var(--tinta); display: flex; flex-direction: column; margin-right: 4px; }
.local.ativo { box-shadow: 4px 4px 0 var(--vermelho); }
.local-topo { display: flex; gap: 10px; align-items: flex-start; }
.pino { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--vermelho); border: 2px solid var(--tinta); color: #fff;
  font-family: var(--alfa); font-size: 14px; display: grid; place-items: center; margin-top: 1px; }
.local-info { min-width: 0; }
.local h2 { margin: 0; font-family: var(--alfa); font-weight: 400; text-transform: uppercase; font-size: 16px; line-height: 1.15;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.endereco { margin: 3px 0 0; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.distancia { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: var(--vermelho); }
.selos { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; }
.selo { margin: 0; padding: 2px 7px; border-radius: var(--raio); background: #fff1b8; border: 2px solid var(--tinta); font-size: 12.5px; line-height: 1.3; font-weight: 600; }
.selo-confirmar { background: var(--vermelho); color: #fff; font-weight: 700; }
.grupos { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; min-width: 0; }
.grupos li { padding: 4px 9px; border-left: 4px solid var(--vermelho); background: var(--papel); font-size: 14px; line-height: 1.3;
  display: flex; flex-direction: column; min-width: 0; }
.antes { color: var(--suave); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mais-grupos summary { margin-top: 4px; font-size: 13px; color: var(--tinta); font-weight: 700; cursor: pointer; }

/* Botões: corrida (Uber, 99) em destaque, depois rota (Google Maps, Apple Mapas, Waze) */
.botoes { padding-top: 8px; display: grid; gap: 6px; }
.botoes-corrida { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.botoes-rota { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bt {
  display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.1; padding: 4px 6px;
  border-radius: var(--raio); text-decoration: none; cursor: pointer; border: 3px solid var(--tinta); background: #fff; color: var(--tinta);
  font-weight: 800;
}
.bt:active { transform: translate(1px, 1px); }
.botoes-corrida .bt { min-height: 48px; font-family: var(--alfa); font-weight: 400; font-size: 20px; text-transform: uppercase; }
.botoes-rota .bt { min-height: 42px; font-size: 13px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; padding: 4px 2px; }
.bt-uber { background: #000; color: #fff; }
.bt-99 { background: #FFDD00; color: #1A1A1A; }
.bt-google { color: #1A73E8; }
.bt-apple { color: var(--tinta); }
.bt-waze { background: #33CCFF; color: #0B2A3A; }

/* pinos do mapa: o MapLibre controla o transform do elemento do marcador; a gota gira por dentro */
.pino-mapa { width: 30px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; }
.pino-mapa .gota {
  width: 26px; height: 26px; margin: 2px auto 0; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--vermelho); border: 2px solid var(--tinta); box-shadow: 0 2px 4px rgba(0,0,0,.3); display: grid; place-items: center;
}
.pino-mapa .gota span { transform: rotate(45deg); color: #fff; font: 12px var(--alfa); }
.pino-mapa.ativo { z-index: 2; }
.pino-mapa.ativo .gota { background: var(--tinta); border-color: var(--vermelho); width: 30px; height: 30px; }
.voce { width: 16px; height: 16px; border-radius: 50%; background: #1A73E8; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(26,115,232,.25); }

/* Menu de compartilhar (computador ou navegador sem compartilhamento nativo) */
.menu-compartilhar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 20; width: min(420px, calc(100% - 24px));
  background: var(--papel-claro); border: 3px solid var(--tinta); border-radius: var(--raio); box-shadow: 6px 6px 0 var(--tinta);
  padding: 14px; display: grid; gap: 8px; }
.menu-titulo { margin: 0 0 2px; font-family: var(--alfa); text-transform: uppercase; font-size: 18px; }
.menu-compartilhar .bt { min-height: 46px; font-size: 16px; }
.menu-fechar { background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 6px; color: var(--suave); }

/* ---------- Página inicial ---------- */
.campo { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 700; color: var(--tinta); }
.campo input { font-size: 18px; font-weight: 500; color: var(--tinta); background: var(--papel-claro); border: 3px solid var(--tinta);
  border-radius: var(--raio); padding: 10px 12px; min-height: 50px; width: 100%; }
.campo input:focus { outline: 3px solid var(--vermelho); outline-offset: 1px; }
.campo-cidade { margin: 16px 0 8px; }
.uf-bloco h2 { margin: 24px 0 10px; font-family: var(--alfa); font-weight: 400; text-transform: uppercase; font-size: 20px;
  padding-bottom: 4px; border-bottom: 4px solid var(--tinta); }
.uf-bloco h2 span { color: var(--vermelho); font-family: var(--rye); font-size: 15px; }
.cidades { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .cidades { grid-template-columns: 1fr 1fr; } }
.cidades a { display: flex; justify-content: space-between; gap: 8px; align-items: center; background: var(--papel-claro);
  border: 3px solid var(--tinta); border-radius: var(--raio); padding: 10px 14px; min-height: 50px; text-decoration: none; font-weight: 700; }
.cidades a:active { transform: translate(1px, 1px); }
.cidades a span { color: var(--vermelho); font-weight: 600; font-size: 14px; white-space: nowrap; }

.rodape { max-width: 760px; margin: 0 auto; padding: 16px 16px 40px; color: var(--suave); font-size: 13px; border-top: 4px solid var(--tinta); }
.rodape p { margin: 6px 0; }

.aviso-flutuante {
  position: fixed; left: 50%; top: 56px; transform: translateX(-50%); z-index: 10; width: max-content; max-width: calc(100% - 32px);
  background: var(--tinta); color: var(--papel); padding: 12px 16px; border: 2px solid var(--papel); border-radius: var(--raio);
  box-shadow: 4px 4px 0 var(--vermelho); font-weight: 600; font-size: 15px;
}
.maplibregl-ctrl-attrib { font-size: 10px; }
