@import url(/fonts/fonts.css);

:root {
  --bg: #f5f1ea;
  --surface: #ffffff;
  --surface-2: #efe9df;
  --ink: #1f1b16;
  --muted: #6c6358;
  --line: #e2dacd;
  --accent: #b8512a;
  --accent-ink: #ffffff;
  --blue: #2c6a8a;
  --ok: #2a9358;
  --mid: #d99a1b;
  --none: #9a9388;
  --bad: #c8433a;
  --star: #e2a400;
  --shadow: 0 6px 24px rgba(40, 28, 10, .12);
  --radius: 14px;
  --head: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
:root[data-tema="escuro"] {
  --bg: #13110e;
  --surface: #1d1a16;
  --surface-2: #26221d;
  --ink: #f1ebe2;
  --muted: #a69d90;
  --line: #342e27;
  --accent: #e27a4c;
  --accent-ink: #1a0f08;
  --blue: #63a9cc;
  --ok: #3fb872;
  --mid: #e8b03a;
  --none: #7d776e;
  --bad: #e2675d;
  --shadow: 0 6px 24px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0 0 .4em; letter-spacing: .01em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.45rem; } h3 { font-size: 1.15rem; }
a { color: var(--blue); }
small, .peq { font-size: .78rem; color: var(--muted); }
.fonte { font-size: .72rem; color: var(--muted); line-height: 1.35; }
.fonte a { color: inherit; }
button, select, input { font: inherit; color: inherit; }
.oculto, [hidden] { display: none !important; }
.es { color: var(--muted); font-style: italic; font-weight: 400; }

/* ---------- topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; gap: .5rem;
  padding: .45rem .75rem; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.marca { font-family: var(--head); font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.marca b { color: var(--accent); }
.nav { display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  font-family: var(--head); font-weight: 600; font-size: 1rem; text-decoration: none; color: var(--muted);
  padding: .35rem .6rem; border-radius: 999px; white-space: nowrap;
}
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.chip-casal {
  border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: .3rem .7rem;
  font-family: var(--head); font-weight: 600; cursor: pointer; white-space: nowrap; max-width: 9.5rem;
  overflow: hidden; text-overflow: ellipsis;
}
.btn-icone { border: 0; background: transparent; cursor: pointer; font-size: 1.15rem; padding: .3rem; border-radius: 8px; line-height: 1; }
.estado-sync { width: .55rem; height: .55rem; border-radius: 50%; background: var(--none); flex: none; }
.estado-sync.ok { background: var(--ok); } .estado-sync.pendente { background: var(--mid); } .estado-sync.erro { background: var(--bad); }

/* ---------- blocos ---------- */
.pagina { max-width: 980px; margin: 0 auto; padding: 1rem .9rem 4rem; }
.cartao { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 0 0 1rem; }
.aviso { background: color-mix(in srgb, var(--mid) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--mid) 45%, var(--line)); border-radius: 10px; padding: .6rem .8rem; font-size: .88rem; }
.estimativa { display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--mid); border: 1px solid currentColor; border-radius: 4px; padding: 0 .3rem; vertical-align: middle; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 44px;
  padding: .55rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 1.02rem; text-decoration: none; color: var(--ink);
}
.btn.prim { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-linha { display: flex; flex-wrap: wrap; gap: .5rem; }
.etiquetas { display: flex; flex-wrap: wrap; gap: .3rem; margin: .4rem 0; }
.etq { font-size: .76rem; padding: .12rem .5rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.etq.a-comum { border-color: var(--ok); } .etq.a-4x4 { border-color: var(--mid); } .etq.a-agencia { border-color: var(--bad); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: .45rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--head); font-weight: 600; font-size: .95rem; }
.tabela-rola { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* bolinhas de situação */
.sit { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; white-space: nowrap; }
.sit::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--none); }
.sit.match::before { background: var(--ok); } .sit.um_quer::before, .sit.dividido::before, .sit.duvida::before { background: var(--mid); }
.sit.ninguem::before { background: var(--bad); }

/* votos */
.voto { font-size: .8rem; padding: .1rem .45rem; border-radius: 6px; background: var(--surface-2); white-space: nowrap; }
.voto.quero_muito { background: color-mix(in srgb, var(--star) 30%, var(--surface)); }
.voto.quero { background: color-mix(in srgb, var(--ok) 25%, var(--surface)); }
.voto.talvez { background: color-mix(in srgb, var(--mid) 22%, var(--surface)); }
.voto.nao { background: color-mix(in srgb, var(--bad) 22%, var(--surface)); }
.botoes-voto { display: grid; grid-template-columns: repeat(5, 1fr); gap: .3rem; }
.botoes-voto button {
  min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  font-size: .72rem; line-height: 1.1; padding: .25rem .1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
}
.botoes-voto button b { font-size: 1.2rem; }
.botoes-voto button[aria-pressed="true"] { outline: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }

/* preço */
.precos { display: grid; gap: .25rem; font-size: .9rem; margin: .4rem 0; }
.precos .linha { display: flex; justify-content: space-between; gap: .6rem; }
.precos .valor { font-weight: 600; white-space: nowrap; }

/* fotos */
.foto-credito { font-size: .66rem; color: var(--muted); margin-top: .15rem; line-height: 1.25; }
.foto-credito a { color: inherit; }

/* diálogo casal */
dialog { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); padding: 1.2rem; max-width: min(420px, 92vw); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0, 0, 0, .45); }
.escolha-casal { display: grid; gap: .6rem; margin: 1rem 0; }
.escolha-casal .btn { justify-content: space-between; width: 100%; }
.campo { display: grid; gap: .25rem; margin: .5rem 0; }
.campo input, .campo select { padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); min-height: 44px; }

/* filtros */
.filtros { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.filtros label { display: grid; gap: .15rem; font-size: .78rem; color: var(--muted); }
.filtros select { padding: .45rem .5rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); min-height: 40px; color: var(--ink); }

@media (min-width: 760px) {
  body { font-size: 16px; }
  .pagina { padding: 1.5rem 1.5rem 4rem; }
}

/* roteiro */
.voos { display: grid; gap: 1rem; }
.linha-tempo { list-style: none; padding: 0 0 0 1rem; margin: 0; border-left: 3px solid var(--line); }
.linha-tempo li { position: relative; padding: .25rem 0 .55rem .4rem; font-size: .9rem; }
.linha-tempo li::before { content: ""; position: absolute; left: -1.45rem; top: .55rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--line); border: 2px solid var(--surface); }
.linha-tempo li.dest::before { background: var(--accent); }
.linha-tempo li.dest { color: var(--ink); }
.dia { border-top: 1px solid var(--line); padding: .6rem 0; }
.dia h3 { margin: 0 0 .2rem; }
.dia ul { margin: .2rem 0; padding-left: 1.1rem; }
.dia li { margin: .3rem 0; }
.dia.bo { background: color-mix(in srgb, var(--mid) 10%, transparent); border-radius: 10px; padding: .6rem; }
.cenarios { display: grid; gap: .6rem; margin: 1rem 0; }
.cenario { display: grid; gap: .1rem; border: 1px solid var(--line); border-radius: 14px; padding: .75rem .9rem; background: var(--surface-2); }
.cenario b { font-family: var(--head); font-size: 1.8rem; line-height: 1.1; }
.cenario.destaque { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.filtros input { padding: .45rem .5rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); min-height: 40px; color: var(--ink); width: 100%; }
.quadro-carro { display: grid; gap: .8rem; }
.col-carro { border: 1px solid var(--line); border-top-width: 4px; border-radius: 12px; padding: .6rem .7rem; }
.col-carro.a-comum { border-top-color: var(--ok); } .col-carro.a-4x4 { border-top-color: var(--mid); } .col-carro.a-agencia { border-top-color: var(--bad); }
.col-carro ul { padding-left: 1rem; margin: .3rem 0; font-size: .9rem; }
.col-carro li { margin-bottom: .35rem; }
@media (min-width: 760px) {
  .voos { grid-template-columns: 1fr 1fr; }
  .cenarios { grid-template-columns: repeat(3, 1fr); }
  .quadro-carro { grid-template-columns: repeat(4, 1fr); }
}

/* tour */
.tour-dia { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .8rem; }
.parada { display: grid; grid-template-columns: 110px 1fr; gap: .7rem; margin: .7rem 0; }
.parada img, .parada .ph { width: 110px; height: 82px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.parada h4 { margin: 0; font-size: 1.05rem; }
.caixas { display: grid; gap: .8rem; }
.caixa { border-radius: 12px; padding: .7rem .9rem; border: 1px solid var(--line); }
.caixa.sim { background: color-mix(in srgb, var(--ok) 10%, var(--surface)); }
.caixa.nao { background: color-mix(in srgb, var(--bad) 9%, var(--surface)); }
.caixa ul { margin: .3rem 0; padding-left: 1.1rem; }
.pergunta { display: grid; gap: .15rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
@media (min-width: 760px) { .caixas { grid-template-columns: 1fr 1fr; } .parada { grid-template-columns: 160px 1fr; } .parada img, .parada .ph { width: 160px; height: 110px; } }

@media (max-width: 600px) {
  .topo { flex-wrap: wrap; row-gap: .3rem; }
  .marca { flex: 1; }
  .nav { order: 5; flex-basis: 100%; justify-content: space-between; }
  .nav a { padding: .3rem .5rem; font-size: .95rem; }
}
