/* Meu Roteiro Maceió · design system (identidade Fica Dica) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fontes/inter-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Arvo'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fontes/arvo-latin-700-normal.woff2) format('woff2'); }

:root {
  --red: #E81F28; --red-dk: #C4141C; --wine: #A0070A; --wine-dk: #6E0407;
  --ink: #141414; --ink-2: #3A3A3A; --muted: #6B6B6B; --muted-2: #9A9A9A;
  --cream: #FFF6EF; --sand: #F7EADF; --line: #EFE3DA; --line-2: #F4ECE6; --bg: #FFFFFF; --bg-2: #FAF7F4;
  --sea: #0E9FAE; --sea-dk: #0B6E78; --sea-bg: #E6F7F8; --green: #1E9E6A; --green-bg: #E7F6EF; --yellow: #F2B231; --yellow-bg: #FFF5DD; --gray-bg: #F1F1F1;
  --r-xl: 28px; --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --sh-1: 0 1px 2px rgba(20,20,20,.04), 0 4px 14px rgba(20,20,20,.06);
  --sh-2: 0 10px 30px rgba(20,20,20,.12);
  --sh-3: 0 20px 60px rgba(20,20,20,.22);
  --abas-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2,.8,.2,1);
  --serif: 'Arvo', Rockwell, Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: #F3ECE6; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #F3ECE6; font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overscroll-behavior-y: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; line-height: 1.12; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid rgba(232,31,40,.45); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

/* Coluna do app (celular no desktop) */
.app { position: relative; max-width: 480px; min-height: 100dvh; margin: 0 auto; background: var(--bg); box-shadow: 0 0 0 1px rgba(0,0,0,.03), 0 30px 80px rgba(80,30,20,.12); overflow-x: clip; }
.tela { min-height: 100dvh; padding-bottom: calc(var(--abas-h) + var(--safe-b) + 24px); outline: none; }
.tela.sem-abas { padding-bottom: 0; }
.tela.entrando { animation: entrar .32s var(--ease); }
@keyframes entrar { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Barra de abas */
.abas { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b)); }
.abas a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 4px; font-size: 11px; font-weight: 600; color: var(--muted-2); position: relative; }
.abas a .aba-ic { width: 26px; height: 26px; display: grid; place-items: center; transition: transform .2s var(--ease); }
.abas a .aba-ic svg { width: 24px; height: 24px; }
.abas a.ativa { color: var(--red); }
.abas a.ativa .aba-ic { transform: translateY(-1px) scale(1.06); }
.abas a.ativa::before { content: ''; position: absolute; top: -7px; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--red); }
.abas.escondida { transform: translate(-50%, 110%); }

/* Ícones */
.ic { display: inline-flex; width: 20px; height: 20px; flex: none; vertical-align: -4px; }
.etiqueta .ic, .chip .ic { width: 15px; height: 15px; vertical-align: -3px; }
.link .ic { width: 16px; height: 16px; }
.ic svg, svg.ic { width: 100%; height: 100%; }

/* Topo das telas */
.topo { padding: calc(14px + var(--safe-t)) 20px 6px; display: flex; align-items: center; gap: 12px; }
.topo .marca { display: flex; align-items: center; gap: 10px; }
.topo .marca img { height: 34px; width: auto; }
.topo .marca b { font-family: var(--serif); font-size: 15px; line-height: 1.05; display: block; }
.topo .marca small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.topo .acoes { margin-left: auto; display: flex; gap: 8px; }
.btn-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); transition: transform .15s var(--ease), background .15s; }
.btn-ic:active { transform: scale(.94); }
.btn-ic .ic { width: 20px; height: 20px; }
.btn-ic.on { color: var(--red); background: #FFF0EF; border-color: #FFD4D1; }
.titulo-tela { padding: 6px 20px 2px; }
.titulo-tela h1 { font-size: 28px; }
.titulo-tela p { color: var(--muted); margin-top: 6px; font-size: 15px; }

.sec { padding: 18px 20px 0; }
.sec-tit { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-tit h2 { font-size: 20px; }
.sec-tit a, .sec-tit button { font-size: 14px; font-weight: 700; color: var(--red); }
.sobrelinha { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.nota { font-size: 12.5px; color: var(--muted); }
.muted { color: var(--muted); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 8px 20px rgba(232,31,40,.28); transition: transform .15s var(--ease), background .15s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn.cheio { width: 100%; }
.btn.sec2 { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.claro { background: #fff; color: var(--wine); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn.peq { min-height: 40px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.btn.mar { background: var(--sea); box-shadow: 0 8px 20px rgba(14,159,174,.28); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { color: var(--red); font-weight: 700; }

/* Chips */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 20px 4px; margin: 0 -20px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; transition: all .15s var(--ease); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .ic { width: 16px; height: 16px; }
.etiqueta { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--gray-bg); color: var(--ink-2); white-space: nowrap; }
.etiqueta.mar { background: var(--sea-bg); color: var(--sea-dk); }
.etiqueta.verde { background: var(--green-bg); color: var(--green); }
.etiqueta.amarelo { background: var(--yellow-bg); color: #9A6A00; }
.etiqueta.vermelho { background: #FFECEB; color: var(--wine); }
.etiqueta.escura { background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(6px); }
.etiqueta.branca { background: rgba(255,255,255,.92); color: var(--ink); }

/* Cartões */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card.pad { padding: 16px; }
.card + .card { margin-top: 12px; }
.lista { display: grid; gap: 10px; }
.lista > *, .guia-lista > *, .lista-dias > * { min-width: 0; }
.etiqueta.longa { white-space: normal; line-height: 1.35; justify-content: flex-start; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; }

/* Herói da Hoje */
.heroi { margin: 8px 20px 0; border-radius: var(--r-xl); overflow: hidden; position: relative; color: #fff; background: linear-gradient(140deg, var(--red) 0%, var(--wine) 70%, var(--wine-dk) 100%); box-shadow: 0 18px 40px rgba(160,7,10,.28); }
.heroi .foto { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .32; mix-blend-mode: luminosity; }
.heroi .conteudo { position: relative; padding: 20px; }
.heroi .contagem { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.heroi .contagem b { font-family: var(--serif); font-size: 64px; line-height: .9; }
.heroi .contagem span { font-size: 16px; font-weight: 600; opacity: .92; }
.heroi h2 { font-size: 24px; }
.heroi p { opacity: .92; font-size: 15px; }
.heroi .linha-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.heroi .linha-chips .etiqueta { background: rgba(255,255,255,.18); color: #fff; }
.heroi .acoes { display: flex; gap: 10px; margin-top: 16px; }
.heroi .anel { position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; border: 28px solid rgba(255,255,255,.08); }

/* Maré: cartão */
.mare-card { padding: 16px; border-radius: var(--r-lg); background: linear-gradient(180deg, #F0FBFC, #fff); border: 1px solid #D5EFF1; }
.mare-card .lin { display: flex; align-items: center; gap: 12px; }
.mare-card .ic-mar { width: 44px; height: 44px; border-radius: 14px; background: var(--sea); color: #fff; display: grid; place-items: center; font-size: 22px; flex: none; }
.mare-card b { font-size: 16px; }
.mare-card .sub { font-size: 13.5px; color: var(--sea-dk); font-weight: 600; }
.mare-extremos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.mare-extremos div { background: #fff; border: 1px solid #DDF0F2; border-radius: 12px; padding: 8px 6px; text-align: center; }
.mare-extremos small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.mare-extremos b { font-size: 15px; display: block; }
.mare-extremos span { font-size: 12.5px; color: var(--sea-dk); font-weight: 700; }
.mare-extremos .baixa b { color: var(--sea-dk); }
.grafico { width: 100%; height: auto; display: block; }

/* Clima */
.clima-faixa { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(64px, 1fr); gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.clima-faixa::-webkit-scrollbar { display: none; }
.clima-dia { border: 1px solid var(--line); border-radius: 16px; padding: 10px 6px; text-align: center; background: #fff; }
.clima-dia.viagem { border-color: #FFC9C6; background: #FFF7F6; }
.clima-dia small { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.clima-dia .e { font-size: 24px; display: block; margin: 4px 0; }
.clima-dia b { font-size: 14px; }
.clima-dia .p { display: block; font-size: 11.5px; font-weight: 700; color: var(--sea-dk); }
.clima-dia.chuva .p { color: var(--wine); }

/* Linha do tempo */
.tempo { position: relative; padding: 4px 20px 0 20px; }
.bloco { display: grid; grid-template-columns: 52px 1fr; gap: 10px; position: relative; padding-bottom: 14px; }
.bloco .hora { font-weight: 800; font-size: 14px; color: var(--ink); padding-top: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.bloco .hora small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.bloco::before { content: ''; position: absolute; left: 61px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.bloco:first-child::before { top: 22px; }
.bloco:last-child::before { bottom: calc(100% - 22px); }
.bloco .ponto { position: absolute; left: 55px; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--line); z-index: 1; }
.bloco.destaque .ponto { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 4px rgba(232,31,40,.15); }
.bloco.agora .ponto { border-color: var(--sea); background: var(--sea); box-shadow: 0 0 0 6px rgba(14,159,174,.18); animation: pulsar 1.8s infinite; }
@keyframes pulsar { 50% { box-shadow: 0 0 0 10px rgba(14,159,174,.06); } }
.bloco .corpo { min-width: 0; margin-left: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; box-shadow: var(--sh-1); }
.bloco.destaque .corpo { border-color: #FFD4D1; background: linear-gradient(180deg, #FFF8F7, #fff); }
.bloco.feito .corpo { opacity: .55; }
.bloco .corpo h3 { font-family: var(--sans); font-size: 15.5px; font-weight: 800; display: flex; gap: 8px; align-items: flex-start; }
.bloco .corpo h3 .e { font-size: 18px; line-height: 1.1; }
.bloco .corpo p { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.bloco .alerta { margin-top: 8px; font-size: 13px; font-weight: 600; color: #9A6A00; background: var(--yellow-bg); border-radius: 10px; padding: 8px 10px; }
.bloco .acoes-bloco { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lugar-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 6px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; font-weight: 700; max-width: 100%; }
.lugar-chip .bola { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: #fff; flex: none; }
.lugar-chip .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lugar-chip .fx { color: var(--muted); font-weight: 600; }
.lugar-chip.escolhido { background: #FFF0EF; border-color: #FFC9C6; color: var(--wine); }
.opcoes { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 10px -14px 0; padding: 0 14px 2px; }
.opcoes::-webkit-scrollbar { display: none; }
.check-feito { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; flex: none; }
.check-feito.on { background: var(--green); border-color: var(--green); color: #fff; }
.check-feito .ic { width: 16px; height: 16px; }

/* Cartões de dia */
.dia-card { display: block; border-radius: var(--r-xl); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .2s var(--ease); }
.dia-card:active { transform: scale(.985); }
.dia-card .capa { height: 150px; background-size: cover; background-position: center; position: relative; }
.dia-card .capa::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%); }
.dia-card .capa .num { position: absolute; left: 14px; top: 14px; z-index: 1; }
.dia-card .capa .tags { position: absolute; right: 12px; top: 12px; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.dia-card .capa h3 { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; color: #fff; font-size: 20px; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.dia-card .info { padding: 12px 16px 14px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.dia-card .info p { width: 100%; font-size: 14px; color: var(--ink-2); }
.lista-dias { display: grid; gap: 14px; padding: 0 20px; }

/* Tela de dia */
.dia-heroi { position: relative; height: 290px; background-size: cover; background-position: center; color: #fff; }
.dia-heroi::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.65) 100%); }
.dia-heroi .barra { position: absolute; top: calc(12px + var(--safe-t)); left: 12px; right: 12px; z-index: 2; display: flex; justify-content: space-between; }
.dia-heroi .barra .btn-ic { background: rgba(255,255,255,.92); border-color: transparent; }
.dia-heroi .txt { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; }
.dia-heroi .txt h1 { font-size: 27px; margin-top: 8px; text-shadow: 0 2px 14px rgba(0,0,0,.25); }
.dia-heroi .txt p { margin-top: 6px; opacity: .95; font-size: 15px; }
.segmento { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 16px 20px 6px; position: relative; }
.segmento button { height: 42px; border-radius: 999px; font-weight: 800; font-size: 14.5px; color: var(--muted); position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px; transition: color .2s; }
.segmento button.on { color: var(--ink); }
.segmento .pilula { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #fff; box-shadow: var(--sh-1); transition: transform .3s var(--ease); }
.segmento.b .pilula { transform: translateX(100%); }
.segmento .ponto-chuva { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.navdias { display: flex; justify-content: space-between; gap: 10px; padding: 14px 20px 0; }
.navdias a { flex: 1; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.navdias a b { display: block; color: var(--ink); font-size: 14px; }
.navdias a.prox { text-align: right; }

/* Explorar */
.busca { margin: 6px 20px 0; position: relative; }
.busca input { width: 100%; height: 52px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg-2); padding: 0 46px 0 46px; font: inherit; font-size: 16px; outline: none; transition: border .15s, background .15s; }
.busca input:focus { border-color: var(--ink); background: #fff; }
.busca .ic { position: absolute; left: 15px; top: 16px; color: var(--muted); }
.busca .limpar { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.grade-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat-tile { border-radius: 18px; padding: 14px 10px; background: var(--bg-2); border: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; transition: transform .15s var(--ease); }
.cat-tile:active { transform: scale(.96); }
.cat-tile .e { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; background: #fff; box-shadow: var(--sh-1); }
.item { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); align-items: center; text-align: left; width: 100%; transition: transform .15s var(--ease); }
.item:active { transform: scale(.985); }
.item .bola { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; flex: none; }
.item .txt { min-width: 0; flex: 1; }
.item .txt b { display: block; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .txt small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.item .meta { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.item .fav { color: var(--red); }
.status { font-size: 12px; font-weight: 700; }
.status.aberto { color: var(--green); }
.status.fechado { color: var(--wine); }
.status.abre-hoje { color: #9A6A00; }
.mapa { height: calc(100dvh - 260px); min-height: 380px; margin: 12px 20px 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--sea-bg); }
.pin { width: 36px; height: 36px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--c, var(--red)); border: 3px solid #fff; box-shadow: 0 6px 14px rgba(0,0,0,.25); display: grid; place-items: center; }
.pin span { transform: rotate(45deg); font-size: 16px; line-height: 1; }
.pin.num span { font-family: var(--sans); color: #fff; font-weight: 800; font-size: 14px; }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-container { font-family: var(--sans); }
/* Mapa base próprio: mar, rótulos e controles */
.mapa.leaflet-container { background: #BCE3E8; }
.mapa .leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.75); border-radius: 8px 0 0 0; padding: 1px 6px; color: var(--muted); }
.mapa .leaflet-control-zoom { border: 0; box-shadow: var(--sh-1); border-radius: 14px; overflow: hidden; }
.mapa .leaflet-control-zoom a { width: 38px; height: 38px; line-height: 38px; font-size: 20px; color: var(--ink); border-color: var(--line); }
.rot { width: 0; height: 0; }
.rot span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; font-family: var(--sans); font-size: 11px; font-weight: 600; color: #94766A; letter-spacing: .01em;
  text-shadow: 0 0 2px #FBF3EA, 0 0 2px #FBF3EA, 0 0 5px #FBF3EA; }
.rot-capital span { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--wine); }
.rot-cidade span { font-size: 12.5px; font-weight: 700; color: #6E5246; }
.rot-bairro span { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #AE9284; }
.rot-praia span { font-style: italic; color: #A8692B; }
.rot-recife span, .rot-agua span { font-style: italic; color: var(--sea-dk); text-shadow: 0 0 2px #BCE3E8, 0 0 2px #BCE3E8, 0 0 5px #BCE3E8; }
.rot-ilha span { font-size: 10.5px; font-style: italic; color: #8E7365; }

/* Folha (bottom sheet) */
.folha-fundo { position: fixed; inset: 0; background: rgba(20,10,8,.45); z-index: 60; opacity: 0; transition: opacity .25s; }
.folha-fundo.on { opacity: 1; }
.folha { position: fixed; left: 50%; bottom: 0; width: 100%; max-width: 480px; max-height: 92dvh; z-index: 61; background: #fff; border-radius: 26px 26px 0 0; box-shadow: var(--sh-3); transform: translate(-50%, 100%); transition: transform .38s var(--ease); display: flex; flex-direction: column; }
.folha.on { transform: translate(-50%, 0); }
.folha .alca { width: 44px; height: 5px; border-radius: 99px; background: #DDD; margin: 10px auto 4px; flex: none; }
.folha .rolagem { overflow-y: auto; padding: 4px 20px calc(24px + var(--safe-b)); overscroll-behavior: contain; }
.folha .fechar { position: absolute; right: 14px; top: 14px; }
.folha-lugar .cabeca { display: flex; gap: 14px; align-items: center; margin: 8px 0 12px; padding-right: 48px; }
.folha-lugar .cabeca .bola { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; flex: none; }
.folha-lugar h2 { font-size: 22px; }
.folha-lugar .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.linha-acoes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.acao { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); font-size: 12px; font-weight: 700; text-align: center; }
.acao .ic { width: 22px; height: 22px; }
.acao.on { color: var(--red); background: #FFF0EF; border-color: #FFD4D1; }
.caixa { border-radius: 16px; padding: 14px; background: var(--bg-2); border: 1px solid var(--line); margin-top: 10px; }
.texto-envio { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.5; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; max-height: 36dvh; overflow: auto; margin: 12px 0 14px; -webkit-user-select: text; user-select: text; }
.caixa h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.caixa p { font-size: 15px; }
.caixa.preco { background: #F2FBF6; border-color: #CDEBDB; }
.caixa.preco b { font-size: 17px; }
.caixa.dica { background: #FFF7F6; border-color: #FFD4D1; }
.caixa.dica h4 { color: var(--red); }
.caixa.perfil { background: #F3F8FF; border-color: #D8E6FA; }
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabela td:last-child { text-align: right; white-space: nowrap; padding-left: 10px; }
.tabela s { color: var(--muted-2); font-size: 12.5px; }

/* Aviso (toast) */
.aviso { position: fixed; left: 50%; bottom: calc(var(--abas-h) + var(--safe-b) + 16px); transform: translate(-50%, 20px); z-index: 80; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--sh-2); opacity: 0; transition: all .3s var(--ease); max-width: calc(100% - 40px); text-align: center; }
.aviso.on { opacity: 1; transform: translate(-50%, 0); }

/* Marés */
.mare-heroi { margin: 8px 20px 0; border-radius: var(--r-xl); padding: 16px 14px 10px; background: linear-gradient(180deg, #E9F8FA 0%, #fff 100%); border: 1px solid #D5EFF1; }
.mare-heroi .cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 6px 10px; padding: 0 6px; }
.mare-heroi h2 { font-size: 21px; }
.dias-rolagem { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 20px 6px; scroll-snap-type: x proximity; }
.dias-rolagem::-webkit-scrollbar { display: none; }
.dia-mare { flex: none; width: 58px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; padding: 8px 4px 9px; text-align: center; scroll-snap-align: start; position: relative; }
.dia-mare small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.dia-mare b { display: block; font-size: 18px; margin: 2px 0 4px; }
.dia-mare .q { width: 10px; height: 10px; border-radius: 50%; margin: 0 auto; background: #D9D9D9; }
.dia-mare .q.otima { background: var(--green); } .dia-mare .q.boa { background: #6CC9A2; } .dia-mare .q.fraca { background: var(--yellow); }
.dia-mare .lua { position: absolute; top: -6px; right: -4px; font-size: 14px; }
.dia-mare.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.dia-mare.on small { color: rgba(255,255,255,.7); }
.dia-mare.viagem { border-color: #FFB8B3; }
.dia-mare.viagem::after { content: ''; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); width: 18px; height: 3px; border-radius: 9px; background: var(--red); }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 6px 20px 0; font-size: 12px; color: var(--muted); font-weight: 600; }
.legenda i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }

/* Guia */
.guia-lista { display: grid; gap: 10px; padding: 0 20px; }
.guia-item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.guia-item .e { width: 46px; height: 46px; border-radius: 14px; background: var(--cream); display: grid; place-items: center; font-size: 23px; flex: none; }
.guia-item b { display: block; font-size: 15.5px; }
.guia-item small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.guia-item .ic { margin-left: auto; color: var(--muted-2); }
.voltar-topo { padding: calc(12px + var(--safe-t)) 14px 0; display: flex; align-items: center; gap: 8px; }
.texto { padding: 0 20px; }
.texto p + p { margin-top: 10px; }
.pontos { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pontos li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; }
.pontos li .e { font-size: 20px; line-height: 1.2; }
.pontos.vale li { background: var(--green-bg); border-color: #CDEBDB; }
.pontos.evite li { background: #FFF4F3; border-color: #FFD9D6; }
.check-item { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-align: left; width: 100%; font-size: 15px; }
.check-item .cx { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; flex: none; transition: all .15s; }
.check-item.on .cx { background: var(--green); border-color: var(--green); color: #fff; }
.check-item.on span { color: var(--muted); text-decoration: line-through; }
.barra-prog { height: 8px; border-radius: 9px; background: var(--line-2); overflow: hidden; }
.barra-prog i { display: block; height: 100%; background: var(--green); border-radius: 9px; transition: width .4s var(--ease); }

/* Onboarding */
.onb { min-height: 100dvh; display: flex; flex-direction: column; background: #fff; }
.onb .topo-onb { padding: calc(14px + var(--safe-t)) 16px 6px; display: flex; align-items: center; gap: 12px; }
.onb .prog { flex: 1; height: 6px; border-radius: 9px; background: var(--line-2); overflow: hidden; }
.onb .prog i { display: block; height: 100%; background: var(--red); border-radius: 9px; transition: width .4s var(--ease); }
.onb .pular { font-weight: 700; color: var(--muted); font-size: 14px; padding: 8px; }
.onb .corpo-onb { flex: 1; padding: 14px 22px 20px; animation: entrar .35s var(--ease); }
.onb h1 { font-size: 30px; }
.onb .lead { color: var(--ink-2); font-size: 16px; margin-top: 10px; }
.onb .rodape-onb { padding: 12px 22px calc(16px + var(--safe-b)); background: linear-gradient(180deg, rgba(255,255,255,0), #fff 30%); position: sticky; bottom: 0; }
.boas-vindas { position: relative; min-height: 100dvh; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; background: #0b3c44 center/cover no-repeat; }
.boas-vindas::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.15) 40%, rgba(110,4,7,.92) 78%, var(--wine-dk) 100%); }
.boas-vindas > * { position: relative; }
.boas-vindas .logo-bv { position: absolute; top: calc(18px + var(--safe-t)); left: 22px; background: #fff; border-radius: 18px; padding: 8px 12px; box-shadow: var(--sh-2); }
.boas-vindas .logo-bv img { height: 38px; }
.boas-vindas .casal { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.boas-vindas .casal img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center 22%; border: 3px solid #fff; }
.boas-vindas .casal span { font-weight: 700; font-size: 14px; opacity: .95; }
.boas-vindas .bv-txt { padding: 0 22px calc(26px + var(--safe-b)); }
.boas-vindas h1 { font-size: 34px; }
.boas-vindas p { font-size: 16.5px; margin: 12px 0 20px; opacity: .95; }
.boas-vindas .provas { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.opcao-grande { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 16px; border-radius: 20px; border: 2px solid var(--line); background: #fff; transition: all .15s var(--ease); }
.opcao-grande + .opcao-grande { margin-top: 10px; }
.opcao-grande .e { font-size: 30px; width: 54px; height: 54px; border-radius: 16px; background: var(--cream); display: grid; place-items: center; flex: none; }
.opcao-grande b { display: block; font-size: 16.5px; }
.opcao-grande small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.opcao-grande.on { border-color: var(--red); background: #FFF7F6; box-shadow: 0 0 0 4px rgba(232,31,40,.1); }
.grade-opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opcao { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 18px; border: 2px solid var(--line); background: #fff; font-weight: 700; font-size: 14.5px; text-align: center; transition: all .15s var(--ease); }
.opcao .e { font-size: 28px; }
.opcao.on { border-color: var(--red); background: #FFF7F6; color: var(--wine); box-shadow: 0 0 0 4px rgba(232,31,40,.1); }
.segmento-simples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.segmento-simples button { height: 46px; border-radius: 14px; border: 2px solid var(--line); font-weight: 700; font-size: 14.5px; }
.segmento-simples button.on { border-color: var(--red); background: #FFF7F6; color: var(--wine); }
.passo-rot { font-size: 13px; font-weight: 800; color: var(--muted); margin: 22px 0 10px; text-transform: uppercase; letter-spacing: .06em; }
.contador { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); }
.contador + .contador { margin-top: 8px; }
.contador .ctrl { display: flex; align-items: center; gap: 14px; }
.contador .ctrl button { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); font-size: 20px; font-weight: 700; display: grid; place-items: center; }
.contador .ctrl b { min-width: 22px; text-align: center; font-size: 18px; }
.idades { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.idade { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.idade select { font: inherit; border: 0; background: #fff; border-radius: 999px; padding: 4px 6px; }
.entrada { width: 100%; height: 56px; border-radius: 16px; border: 2px solid var(--line); padding: 0 16px; font: inherit; font-size: 18px; outline: none; }
.entrada:focus { border-color: var(--red); }

/* Calendário */
.cal { border: 1px solid var(--line); border-radius: 20px; padding: 12px; margin-top: 14px; }
.cal .cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal .cab b { font-family: var(--serif); font-size: 17px; text-transform: capitalize; }
.cal .grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal .sem { font-size: 11px; color: var(--muted); font-weight: 800; text-align: center; padding: 4px 0; text-transform: uppercase; }
.cal .d { aspect-ratio: 1; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; position: relative; }
.cal .d .q { width: 6px; height: 6px; border-radius: 50%; margin-top: 3px; background: transparent; }
.cal .d .q.otima { background: var(--green); } .cal .d .q.boa { background: #6CC9A2; }
.cal .d .lua { position: absolute; top: 1px; right: 2px; font-size: 9px; }
.cal .d.passado { color: #CCC; pointer-events: none; }
.cal .d.na-viagem { background: #FFE9E7; color: var(--wine); border-radius: 6px; }
.cal .d.inicio { background: var(--red); color: #fff; border-radius: 12px 6px 6px 12px; }
.cal .d.fim { background: var(--wine); color: #fff; border-radius: 6px 12px 12px 6px; }
.cal .d.inicio.fim { border-radius: 12px; }
.cal .d.inicio .q, .cal .d.fim .q { background: #fff; }

/* Montando o roteiro */
.montando { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; background: radial-gradient(800px 500px at 50% 0%, #FFE6E3, #fff 60%); }
.onda-anim { width: 120px; height: 120px; border-radius: 50%; background: var(--sea-bg); position: relative; overflow: hidden; margin-bottom: 24px; box-shadow: inset 0 0 0 6px #fff, 0 10px 30px rgba(14,159,174,.25); }
.onda-anim::before, .onda-anim::after { content: ''; position: absolute; left: -50%; width: 200%; height: 200%; top: 55%; border-radius: 42%; background: var(--sea); animation: girar 4s linear infinite; }
.onda-anim::after { top: 60%; opacity: .5; background: #4FC3CE; animation-duration: 6s; }
@keyframes girar { to { transform: rotate(360deg); } }
.passos-montagem { list-style: none; padding: 0; margin: 22px 0 0; text-align: left; display: grid; gap: 12px; width: 100%; max-width: 330px; }
.passos-montagem li { display: flex; gap: 12px; align-items: center; font-weight: 600; color: var(--muted-2); transition: color .3s; }
.passos-montagem li .cx { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; color: transparent; transition: all .3s var(--ease); }
.passos-montagem li.ok { color: var(--ink); }
.passos-montagem li.ok .cx { background: var(--green); border-color: var(--green); color: #fff; transform: scale(1.05); }
.pronto-card { width: 100%; max-width: 360px; margin-top: 22px; text-align: left; }

/* Coach marks */
.coach { position: fixed; inset: 0; z-index: 90; }
.coach .veu { position: absolute; inset: 0; width: 100%; height: 100%; }
.coach .foco { position: absolute; border-radius: 22px; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 30px rgba(255,255,255,.35); transition: all .35s var(--ease); pointer-events: none; }
.coach .balao { position: absolute; left: 20px; right: 20px; max-width: 440px; margin: 0 auto; background: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: var(--sh-3); transition: top .35s var(--ease); }
.coach .balao b { font-family: var(--serif); font-size: 18px; display: block; }
.coach .balao p { font-size: 14.5px; color: var(--ink-2); margin-top: 6px; }
.coach .balao .rod { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.coach .balao .rod small { color: var(--muted); font-weight: 700; }

/* Banners e diversos */
.banner { margin: 16px 20px 0; padding: 14px 16px; border-radius: var(--r-lg); display: flex; gap: 12px; align-items: center; }
.banner.instalar { background: var(--ink); color: #fff; }
.banner.instalar .e { font-size: 26px; }
.banner.instalar p { font-size: 13.5px; opacity: .85; }
.banner.chuva { background: #FFF4F3; border: 1px solid #FFD4D1; }
.banner .x { margin-left: auto; opacity: .7; padding: 6px; }
.dicas { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 20px 4px; margin: 0 -20px; }
.dicas::-webkit-scrollbar { display: none; }
.dica { scroll-snap-align: center; border-radius: 20px; padding: 16px; background: var(--cream); border: 1px solid var(--sand); font-size: 14.5px; display: flex; gap: 12px; }
.dica .e { font-size: 26px; }
.dica small { display: block; margin-top: 8px; color: var(--red); font-weight: 800; font-size: 12px; }
.resumo-custo { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.resumo-custo b { font-family: var(--serif); font-size: 24px; }
.custo-linha { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.custo-linha:last-child { border-bottom: 0; }
.vazio { text-align: center; padding: 40px 30px; color: var(--muted); }
.vazio .e { font-size: 44px; display: block; margin-bottom: 10px; }
.offline-pill { position: fixed; top: calc(8px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 70; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px; box-shadow: var(--sh-2); }
.selo-fd { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--red); }
.parceiro { background: #FFF5DD; color: #8A5A00; }
.sobre-foto { margin: 0 20px; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/3; background: center 30%/cover no-repeat; }
.rodape-app { text-align: center; padding: 30px 20px 10px; color: var(--muted); font-size: 12.5px; }
.rodape-app img { height: 40px; margin: 0 auto 8px; }

@media (min-width: 520px) {
  body { padding: 0; }
  .app { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
