/* Guia ExpoBarra 2026 · RADAR SJB */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(/fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(/fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(/fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url(/fonts/barlow-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(/fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); }

:root {
  --vermelho: #df0704;
  --vermelho-escuro: #b00502;
  --preto: #000;
  --texto: #000;
  --texto-2: #4a4a4a;
  --texto-3: #767676;
  --linha: #e4e4e4;
  --fundo: #fff;
  --fundo-2: #f3f3f3;
  --amarelo: #ffc400;
  --verde: #0e8a5f;
  --c-atracao: #000;
  --c-comida: #e2600b;
  --c-bebida: #b98a00;
  --c-artesanato: #7b4bb7;
  --c-expositor: #5c3d99;
  --c-banheiro: #1565d8;
  --c-saude: #df0704;
  --c-seguranca: #22346b;
  --c-info: #22346b;
  --c-entrada: #0e8a5f;
  --c-estacionamento: #56606b;
  --c-placa: #000;
  --cond: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --corpo: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --topo-h: 60px;
  --abas-h: 64px;
  --seg-b: env(safe-area-inset-bottom, 0px);
  --seg-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.45 var(--corpo);
  color: var(--texto);
  background: var(--fundo);
  -webkit-tap-highlight-color: transparent;
  padding-top: calc(var(--topo-h) + var(--seg-t));
  padding-bottom: calc(var(--abas-h) + var(--seg-b));
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--vermelho); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.cheio { fill: currentColor; }

/* ---------- topo ---------- */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: calc(var(--topo-h) + var(--seg-t)); padding: var(--seg-t) 16px 0;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-bottom: 1px solid var(--linha);
}
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marca img { width: 40px; height: 40px; display: block; }
.marca-txt { display: flex; flex-direction: column; line-height: 1; }
.marca-txt strong { font: 800 24px/1 var(--cond); letter-spacing: -0.01em; }
.marca-txt small { font: 500 13px/1.2 var(--corpo); color: var(--texto-3); margin-top: 3px; }
.rede { font: 500 13px/1.2 var(--corpo); color: var(--texto-2); background: var(--fundo-2); padding: 6px 10px; border-radius: 99px; max-width: 46%; text-align: right; }

/* ---------- avisos ---------- */
.avisos:empty { display: none; }
.aviso {
  display: flex; gap: 10px; align-items: flex-start; width: 100%;
  padding: 12px 16px; border: 0; text-align: left; font: 600 16px/1.35 var(--corpo);
  background: var(--fundo-2); color: #000; border-bottom: 1px solid var(--linha);
}
.aviso svg { margin-top: 1px; }
.aviso.importante { background: var(--amarelo); border-bottom-color: #e0ac00; }
.aviso.urgente { background: var(--vermelho); color: #fff; border-bottom-color: var(--vermelho-escuro); }
.aviso .quando { display: block; font: 500 13px/1.3 var(--corpo); opacity: .8; margin-top: 2px; }
.aviso-mais { font: 600 14px/1 var(--corpo); text-decoration: underline; margin-left: auto; white-space: nowrap; padding-top: 3px; }
.previa { background: #fff4c2; color: #5b4500; font: 500 14px/1.3 var(--corpo); padding: 8px 16px; border-bottom: 1px solid #f0dc8a; }

/* ---------- vistas ---------- */
.vista { padding: 0 0 24px; }
.bloco { padding: 20px 16px 4px; }
.bloco h2 { font: 800 28px/1.05 var(--cond); margin: 0 0 12px; letter-spacing: -0.01em; }
.bloco h2 small { font: 500 15px/1 var(--corpo); color: var(--texto-3); margin-left: 6px; letter-spacing: 0; }
.nota { color: var(--texto-2); font-size: 15px; margin: 0 0 12px; }
.vazio { color: var(--texto-2); background: var(--fundo-2); border-radius: 12px; padding: 16px; margin: 0; }

/* ---------- placar (o que está acontecendo agora) ---------- */
.placar {
  background: #000; color: #fff; padding: 20px 16px 22px; position: relative; overflow: hidden;
}
.placar::after { /* linhas do radar */
  content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.07); box-shadow: 0 0 0 28px rgba(0,0,0,0), 0 0 0 30px rgba(255,255,255,.05), 0 0 0 58px rgba(0,0,0,0), 0 0 0 60px rgba(255,255,255,.035);
  pointer-events: none;
}
.ao-vivo { display: inline-flex; align-items: center; gap: 8px; font: 600 18px/1 var(--cond); color: #fff; }
.ao-vivo i { width: 10px; height: 10px; border-radius: 50%; background: var(--vermelho); box-shadow: 0 0 0 0 rgba(223,7,4,.7); animation: pulso 1.8s infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(223,7,4,.7); } 70% { box-shadow: 0 0 0 12px rgba(223,7,4,0); } 100% { box-shadow: 0 0 0 0 rgba(223,7,4,0); } }
.placar h1 { font: 800 clamp(40px, 12vw, 64px)/0.92 var(--cond); margin: 12px 0 10px; letter-spacing: -0.015em; text-wrap: balance; position: relative; z-index: 1; }
.placar .onde { font: 500 17px/1.35 var(--corpo); color: #d0d0d0; margin: 0; position: relative; z-index: 1; }
.placar .onde a { color: #fff; font-weight: 600; }
.placar .tambem { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid #333; display: grid; gap: 10px; position: relative; z-index: 1; }
.placar .tambem li { display: flex; gap: 10px; align-items: baseline; font-size: 16px; color: #e6e6e6; }
.placar .tambem b { font: 600 18px/1 var(--cond); color: #fff; }
.placar .contagem { font: 800 clamp(72px, 26vw, 120px)/0.85 var(--cond); margin: 10px 0 4px; letter-spacing: -0.03em; }
.placar .contagem small { font: 600 26px/1 var(--cond); letter-spacing: 0; margin-left: 6px; }
.placar .btn-claro { margin-top: 16px; }

/* ---------- linhas de programação ---------- */
.lista { list-style: none; margin: 0; padding: 0; }
.evento {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 4px 12px; align-items: start;
  padding: 14px 0; border-bottom: 1px solid var(--linha);
}
.evento:last-child { border-bottom: 0; }
.evento .hora { font: 600 24px/1 var(--cond); padding-top: 2px; }
.evento .hora small { display: block; font: 500 13px/1.2 var(--corpo); color: var(--texto-3); margin-top: 4px; }
.evento .tit { font: 600 18px/1.25 var(--corpo); margin: 0; }
.evento .sub { font-size: 15px; color: var(--texto-2); margin: 2px 0 0; }
.evento .sub a { color: var(--texto); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.evento.destaque .tit { font: 800 26px/1.02 var(--cond); }
.evento.cancelado .tit { text-decoration: line-through; color: var(--texto-3); }
.evento.encerrado { opacity: .55; }
.selo { display: inline-block; font: 600 13px/1 var(--corpo); padding: 5px 8px; border-radius: 6px; margin-top: 6px; }
.selo.agora { background: var(--vermelho); color: #fff; }
.selo.atrasado { background: var(--amarelo); color: #000; }
.selo.encerrado { background: var(--fundo-2); color: var(--texto-2); }
.selo.cancelado { background: #000; color: #fff; }
.estrela { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--texto-3); margin: -8px -8px 0 0; }
.estrela[aria-pressed="true"] { color: var(--vermelho); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 18px; border-radius: 12px; border: 2px solid #000;
  background: #fff; color: #000; font: 600 16px/1.2 var(--corpo); text-decoration: none;
}
.btn.cheio { background: #000; color: #fff; }
.btn.verm { background: var(--vermelho); border-color: var(--vermelho); color: #fff; }
.btn.largo { width: 100%; }
.btn-claro { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #000; border: 0; border-radius: 12px; min-height: 46px; padding: 10px 16px; font: 600 16px/1 var(--corpo); text-decoration: none; position: relative; z-index: 1; }

.perto { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.perto button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  min-height: 92px; padding: 14px; border-radius: 14px; border: 1px solid var(--linha); background: #fff; text-align: left;
}
.perto button b { font: 600 17px/1.15 var(--corpo); }
.perto button small { display: block; font: 500 13px/1.2 var(--corpo); color: var(--texto-3); margin-top: 2px; }
.perto .dot { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.perto .largo { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 64px; }

.grupo-cta {
  display: flex; align-items: center; gap: 14px; width: 100%; text-decoration: none;
  background: var(--vermelho); color: #fff; border-radius: 16px; padding: 16px; border: 0; text-align: left;
}
.grupo-cta .zap { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--vermelho); display: grid; place-items: center; flex: none; }
.grupo-cta b { display: block; font: 800 24px/1 var(--cond); }
.grupo-cta span { display: block; font: 500 15px/1.3 var(--corpo); opacity: .92; margin-top: 4px; }

.patrocinio { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--linha); border-radius: 14px; text-decoration: none; }
.patrocinio img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #fff; }
.patrocinio small { display: block; color: var(--texto-3); font-size: 13px; }
.patrocinio b { font-weight: 600; }

/* ---------- chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 10px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px;
  border-radius: 99px; border: 1px solid #cfcfcf; background: #fff; font: 600 15px/1 var(--corpo); white-space: nowrap;
}
.chip[aria-pressed="true"] { background: #000; border-color: #000; color: #fff; }
.chip .bola { width: 10px; height: 10px; border-radius: 50%; }
.dia-chip { flex-direction: column; gap: 2px; min-width: 64px; border-radius: 12px; padding: 8px 10px; }
.dia-chip b { font: 800 22px/1 var(--cond); }
.dia-chip small { font: 500 12px/1 var(--corpo); }

/* ---------- barracas ---------- */
.busca { position: relative; display: block; margin-bottom: 12px; }
.busca input { width: 100%; min-height: 50px; border: 2px solid #000; border-radius: 12px; padding: 10px 14px 10px 44px; font-size: 17px; background: #fff; }
.busca svg { position: absolute; left: 12px; top: 13px; color: var(--texto-3); }
.barraca { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linha); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.barraca .foto { width: 64px; height: 64px; border-radius: 12px; background: var(--fundo-2) center/cover no-repeat; display: grid; place-items: center; color: #fff; }
.barraca b { font: 600 17px/1.25 var(--corpo); display: block; }
.barraca .itens { font-size: 15px; color: var(--texto-2); display: block; margin-top: 2px; }
.barraca .meta { font-size: 13px; color: var(--texto-3); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* ---------- ajuda ---------- */
.servicos { display: grid; gap: 0; }
.servico { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linha); background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; }
.servico .dot { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.servico b { font: 600 17px/1.2 var(--corpo); display: block; }
.servico small { color: var(--texto-3); font-size: 14px; }
.servico .seta { margin-left: auto; color: var(--texto-3); }
.fone { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linha); text-decoration: none; }
.fone b { font-weight: 600; }
.fone span { font: 800 26px/1 var(--cond); color: var(--vermelho); }
.info-txt { white-space: pre-wrap; margin: 0 0 6px; }
.info-tit { font: 600 15px/1.2 var(--corpo); color: var(--texto-3); margin: 14px 0 4px; }
.rodape { padding: 24px 16px 8px; color: var(--texto-3); font-size: 14px; }
.rodape img { width: 48px; height: 48px; display: block; margin-bottom: 8px; }

/* ---------- mapa ---------- */
.vista-mapa { position: fixed; inset: calc(var(--topo-h) + var(--seg-t)) 0 calc(var(--abas-h) + var(--seg-b)) 0; padding: 0; z-index: 1; }
body.com-avisos .vista-mapa { top: calc(var(--topo-h) + var(--seg-t) + var(--avisos-h, 0px)); }
.mapa { position: absolute; inset: 0; background: #d9d6cf; }
.mapa-filtros { position: absolute; left: 0; right: 0; top: 0; z-index: 500; display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; scrollbar-width: none; }
.mapa-filtros::-webkit-scrollbar { display: none; }
.mapa-filtros .chip { box-shadow: 0 1px 4px rgba(0,0,0,.25); border-color: transparent; }
.fab { position: absolute; right: 12px; bottom: 24px; z-index: 500; width: 56px; height: 56px; border-radius: 50%; border: 0; background: #fff; color: #000; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.fab.ativo { color: #1565d8; }
.folha {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 600; background: #fff; border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 16px rgba(0,0,0,.25); max-height: 70%; overflow-y: auto; padding: 8px 16px 20px;
}
.folha .alca { width: 40px; height: 4px; border-radius: 4px; background: #ccc; margin: 4px auto 12px; }
.folha .fechar { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; color: var(--texto-2); }
.folha .cat { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--corpo); color: var(--texto-2); }
.folha .cat i { width: 10px; height: 10px; border-radius: 50%; }
.folha h3 { font: 800 30px/1 var(--cond); margin: 8px 44px 6px 0; letter-spacing: -0.01em; }
.folha .dist { font: 600 16px/1.3 var(--corpo); color: #1565d8; margin: 0 0 8px; }
.folha p { margin: 6px 0; }
.folha .foto-g { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; margin: 6px 0 8px; background: var(--fundo-2); }
.folha .acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.folha .acoes .btn { flex: 1 1 auto; }
.pgto { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pgto span { font: 600 13px/1 var(--corpo); background: var(--fundo-2); padding: 6px 10px; border-radius: 99px; }
.folha .na-agenda { margin-top: 12px; border-top: 1px solid var(--linha); padding-top: 4px; }

/* marcadores */
.pin { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid #fff; display: grid; place-items: center; color: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.45); font: 800 15px/1 var(--cond); }
.pin svg { width: 18px; height: 18px; stroke-width: 2.4; }
.pin.saude { background: #fff !important; color: var(--vermelho); border-color: var(--vermelho); }
.pin.saude svg { stroke-width: 4; }
.pin.atracao { width: 40px; height: 40px; border-color: var(--vermelho); }
.pin.sel { transform: scale(1.25); box-shadow: 0 0 0 4px rgba(223,7,4,.5), 0 2px 8px rgba(0,0,0,.5); }
.rotulo.leaflet-tooltip { font: 600 13px/1.1 var(--corpo); background: rgba(0,0,0,.78); color: #fff; border: 0; border-radius: 6px; padding: 4px 7px; box-shadow: none; }
.rotulo.leaflet-tooltip::before { display: none; }
.voce { width: 18px; height: 18px; border-radius: 50%; background: #1565d8; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2), 0 1px 4px rgba(0,0,0,.4); }
.placa-aqui { background: #000; color: #fff; font: 800 15px/1 var(--cond); padding: 7px 10px; border-radius: 8px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.4); position: relative; }
.placa-aqui::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #000; }
.leaflet-container { font-family: var(--corpo); }
.leaflet-control-attribution { font-size: 10px; }

/* ---------- abas ---------- */
.abas {
  position: fixed; inset: auto 0 0 0; z-index: 1000; height: calc(var(--abas-h) + var(--seg-b)); padding-bottom: var(--seg-b);
  display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--linha);
}
.abas a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--texto-3); font: 600 12px/1 var(--corpo); position: relative; }
.abas a[aria-current="page"] { color: #000; }
.abas a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--vermelho); }

.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--abas-h) + var(--seg-b) + 12px); z-index: 2000; background: #000; color: #fff; padding: 14px 16px; border-radius: 12px; font-weight: 500; text-align: center; }

@media (min-width: 720px) {
  .vista:not(.vista-mapa) { max-width: 680px; margin: 0 auto; }
  .placar { border-radius: 0 0 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ao-vivo i { animation: none; }
}
svg.i .cheio { fill: currentColor; stroke: none; }
.mapa .rotulo { display: none; }
.mapa.z17 .rot-a, .mapa.z19 .rot-b { display: block; }
