/* Guia de Fortim, estilo A: "Pôr do sol vibrante" */
:root {
  --laranja: #ff7a3d;
  --rosa: #ff4e7a;
  --roxo: #7b3fe4;
  --amarelo: #ffb000;
  --fundo: #fff7ef;
  --whats: #25d366;
  --texto: #2a1f2d;
  --suave: #7a6f7d;
  --gradiente: linear-gradient(160deg, #ff7a3d 0%, #ff4e7a 55%, #7b3fe4 100%);
  --sombra: 0 4px 14px rgba(60, 20, 40, .10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: Nunito, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.4;
}
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: 32px; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, .marca { font-family: "Baloo 2", system-ui, sans-serif; }

/* Topo da tela inicial */
.hero {
  background: var(--gradiente);
  color: #fff;
  padding: 18px 18px 46px;
  border-radius: 0 0 28px 28px;
  position: relative;
}
.hero-topo { font-size: 12px; font-weight: 700; opacity: .9; letter-spacing: .5px; }
.hero h1 { font-size: 34px; font-weight: 900; margin: 26px 0 2px; line-height: 1.05; }
.hero p { margin: 0; opacity: .92; }
.faixa {
  position: absolute; left: 16px; right: 16px; bottom: -26px;
  background: #fff; color: var(--texto);
  border-radius: 16px; padding: 10px 14px;
  box-shadow: 0 8px 20px rgba(60, 20, 40, .18);
  font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between;
}
.faixa span:last-child { color: var(--rosa); font-weight: 700; }

/* Botões de categoria */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 44px 16px 6px; }
.cat {
  border-radius: 18px; padding: 12px 4px; text-align: center; text-decoration: none;
  color: #fff; font-weight: 800; font-size: 14px; box-shadow: var(--sombra);
}
.cat span { display: block; font-size: 26px; margin-bottom: 2px; }
.cat:active { transform: scale(.97); }

/* Listas e cards */
.lista { padding: 6px 16px; }
.lista h2 { font-size: 20px; font-weight: 900; margin: 18px 2px 8px; }
.card {
  background: #fff; border-radius: 18px; box-shadow: var(--sombra);
  margin: 10px 0; overflow: hidden; position: relative;
}
.card-link { display: flex; text-decoration: none; min-height: 96px; }
.card-img { width: 96px; min-height: 96px; object-fit: cover; flex-shrink: 0; }
.card-img.vazio, .foto-vazia { display: flex; align-items: center; justify-content: center; font-size: 34px; }
.card-tx { padding: 10px 12px 40px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--suave); min-width: 0; }
.card-tx b { color: var(--texto); font-size: 16px; }
.wa {
  background: var(--whats); color: #fff; text-decoration: none; font-weight: 800;
  border-radius: 999px; padding: 5px 12px; font-size: 13px;
}
.card .wa { position: absolute; right: 10px; bottom: 10px; }
.vazio-msg { text-align: center; color: var(--suave); padding: 40px 0; }

/* Cabeçalho das telas internas */
.topo {
  background: var(--gradiente); color: #fff;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; position: sticky; top: 0; z-index: 2;
}
.topo h1 { font-size: 20px; font-weight: 900; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voltar {
  text-decoration: none; font-size: 22px; font-weight: 900;
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .22);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Página do comércio */
.fotos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 6px; }
.fotos img, .foto-vazia { width: 100%; flex: 0 0 100%; height: 240px; object-fit: cover; scroll-snap-align: start; }
.foto-vazia { font-size: 64px; }
.detalhe { padding: 4px 18px; }
.desc { font-size: 16px; }
.info { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.info li { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: var(--sombra); }
.mare-aviso {
  background: #e8f7fb; color: #0b5d73; border-radius: 14px; padding: 12px 14px;
  font-weight: 700; margin: 12px 0;
}
.acoes { display: grid; gap: 10px; margin-top: 16px; }
.btn {
  display: block; text-align: center; text-decoration: none; border: 0; cursor: pointer;
  border-radius: 16px; padding: 14px; font-size: 16px; font-weight: 800; font-family: inherit; width: 100%;
}
.btn.wa { background: var(--whats); color: #fff; }
.btn.sec { background: #fff; color: var(--texto); box-shadow: var(--sombra); }
.consulta {
  background: #fff; border-radius: 18px; padding: 14px; box-shadow: var(--sombra);
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.consulta label { font-size: 12px; font-weight: 700; color: var(--suave); display: grid; gap: 4px; }
.consulta input, .consulta select {
  font: inherit; font-size: 15px; padding: 9px; border: 1px solid #eadfe4; border-radius: 10px; background: #fff; width: 100%;
}
.consulta button { grid-column: 1 / -1; }

/* Eventos */
.evento {
  background: #fff; border-radius: 16px; box-shadow: var(--sombra); margin: 8px 0; overflow: hidden;
  border-left: 5px solid var(--rosa);
}
.evento img { width: 100%; height: 140px; object-fit: cover; }
.evento div { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.evento .hora { color: var(--rosa); font-weight: 900; }
.evento b { font-size: 16px; }
.evento .local { color: var(--suave); font-size: 13px; }
.evento p { margin: 4px 0 0; font-size: 14px; }

/* Avisos e estados */
.aviso { background: var(--amarelo); color: #3b2a00; font-size: 13px; font-weight: 700; padding: 8px 14px; text-align: center; }
.nao-encontrado { text-align: center; padding: 80px 24px; }
.nao-encontrado h1 { font-size: 22px; margin-bottom: 24px; }
.carregando .hero { min-height: 220px; }
.carregando .bloco { height: 90px; margin: 12px 16px; border-radius: 18px; background: #f3e6e9; animation: pulsa 1.2s infinite ease-in-out; }
.carregando .bloco:first-of-type { margin-top: 44px; }
@keyframes pulsa { 50% { opacity: .5; } }

/* ===== Visual ConectaFortim ===== */
.hero {
  min-height: 300px; border-radius: 0; padding: 16px 16px 44px;
  display: flex; flex-direction: column;
  background:
    linear-gradient(180deg, rgba(123,63,228,.35), rgba(255,78,122,.15) 45%, rgba(60,10,50,.7)),
    linear-gradient(160deg, #ff7a3d 0%, #ff4e7a 55%, #7b3fe4 100%);
}
.hero-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; opacity: 1; }
.marca { display: flex; align-items: center; gap: 7px; font-size: 19px; font-weight: 800; }
.logo { width: 28px; height: 28px; }
.clima { background: rgba(255,255,255,.22); border-radius: 20px; padding: 3px 10px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.hero h1 { font-size: 40px; font-weight: 800; line-height: 1; margin: auto 0 6px; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hero p { font-weight: 700; font-size: 14px; }
.faixa {
  position: relative; left: auto; right: auto; bottom: auto; margin: -26px 14px 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; text-align: center; gap: 4px;
  color: var(--suave); font-size: 12px; border-radius: 18px;
}
.faixa b { display: block; font-family: "Baloo 2", system-ui, sans-serif; font-size: 18px; color: var(--texto); }
.faixa small { display: block; font-size: 11px; }
.faixa span:last-child { color: inherit; font-weight: 400; }
.faixa .por b { color: var(--rosa); }
.sem-mare { align-self: center; font-weight: 700; }
.cats { padding-top: 18px; }
.cat { font-family: Nunito, system-ui, sans-serif; }
.icone { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat .icone { display: block; width: 30px; height: 30px; margin: 0 auto 3px; }

.card { border-radius: 20px; }
.card-link { display: block; min-height: 0; }
.card-capa { position: relative; }
.card-img { width: 100%; height: 150px; min-height: 0; object-fit: cover; }
.card-img.vazio { display: flex; align-items: center; justify-content: center; }
.vazio .icone { width: 64px; height: 64px; opacity: .9; }
.tag { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.92); color: var(--texto); border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 800; }
.card-tx { padding: 10px 14px 14px; }
.card-tx h3 { margin: 0; padding-right: 0; color: var(--texto); font-size: 17px; line-height: 1.2; }
.card-tx span:last-child { padding-right: 100px; }
.card .wa { bottom: 12px; }

.galeria { position: relative; }
.galeria .voltar { position: absolute; left: 12px; top: 12px; z-index: 1; background: rgba(255,255,255,.92); color: var(--texto); }
.fotos img, .foto-vazia { height: 270px; }
.foto-vazia { display: flex; align-items: center; justify-content: center; }
.detalhe h1 { font-size: 26px; line-height: 1.15; margin: 14px 0 0; }
.selos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.selos span { background: #fff; border-radius: 20px; padding: 5px 11px; font-size: 12px; font-weight: 700; box-shadow: var(--sombra); }
.horarios { color: var(--suave); font-size: 14px; }
.preco small { display: block; font-size: 13px; }
.preco strong { font-family: "Baloo 2", system-ui, sans-serif; font-size: 26px; color: var(--rosa); }
/* Carrossel do topo */
.hero { overflow: hidden; isolation: isolate; }
.carrossel, .carrossel .slide { position: absolute; inset: 0; }
.carrossel { z-index: -1; }
.carrossel .slide { background: center / cover; opacity: 0; transition: opacity 1.2s ease; }
.carrossel .slide.ativo { opacity: 1; }
.carrossel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(60,10,50,.45), rgba(60,10,50,0) 40%, rgba(60,10,50,.75)); }