/* Férias Mágicas: tema "noite no parque"
   Conceito: o topo é a noite de um parque temático, com castelo de conto de fadas, estrelas e fogos;
   o restante é claro e lilás, com dourado nos destaques. Resultados em forma de ingresso (canhoto + ofertas).
   Sem logos, personagens ou fontes registradas: só a atmosfera. */
/* Fontes servidas pelo próprio site (v22): sem ida ao Google Fonts, carregam mais rápido. Licença OFL, ver assets/fonts/LEIA-ME.txt */
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(../fonts/fredoka.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/nunito.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Grand Hotel'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/grand-hotel.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/dm-mono-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/dm-mono-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --bg: #F6F3FC;          /* lilás bem claro */
  --surface: #FFFFFF;
  --surface-2: #F3F0FB;
  --ink: #1A1F4B;         /* azul-real escuro */
  --ink-2: #5D6290;
  --line: #E1DCF2;
  --lagoon: #2E3FA8;      /* azul-real, cor principal */
  --lagoon-soft: #E6E8FA;
  --sunset: #F2B53A;      /* dourado do botão de ação */
  --sunset-ink: #1A1F4B;
  --sun: #F6C453;
  --gold: #E3A21F;
  --rose: #D63F8C;        /* rosa dos fogos */
  --mint: #12895D;        /* melhor preço e economia */
  --mint-soft: #DDF4E9;
  --warn: #B4521A;
  --warn-soft: #FCEBDD;
  --night-a: #0A1140;     /* céu do topo, igual nos dois temas */
  --night-m: #1F2575;
  --night-b: #4A2F8C;
  --night-ink: #F4F1FF;
  --night-ink-2: #C9C4EE;
  --castle: #171C55;
  --hill: #10154A;
  --c-disney: #2E3FA8;
  --c-universal: #6B3AB5;
  --c-seaworld: #0A86A0;
  --c-other: #4D5385;
  --shadow: 0 1px 2px rgba(26, 31, 75, .06), 0 10px 28px rgba(46, 63, 168, .10);

  --f-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --f-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-magic: "Grand Hotel", "Brush Script MT", cursive;   /* palavra de destaque dos títulos (v26: letra de assinatura retrô, de conto de fadas) */
  --f-script: var(--f-magic);
  --f-mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 16px;
}
/* Sem modo escuro: o site é sempre claro (pedido do Pedro, 13/10/2026), mesmo com o sistema em dark. */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; text-wrap: balance; margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Faixa de desenvolvimento ---------- */
.devbar { background: var(--ink); color: var(--bg); font-size: .82rem; }
.devbar-in { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding-block: 6px; }
.devbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-dev { background: transparent; border: 1px solid currentColor; color: inherit; border-radius: 999px; padding: 3px 12px; font-size: .8rem; text-decoration: none; }
.btn-dev.warn { background: var(--sun); color: #2A1A00; border-color: var(--sun); font-weight: 600; }
.btn-dev.confirm { background: var(--sunset); border-color: var(--sunset); color: var(--sunset-ink); }

/* ---------- Topo: noite no parque ---------- */
.hero { position: relative; overflow: hidden; color: var(--night-ink); background: linear-gradient(180deg, var(--night-a) 0%, var(--night-m) 55%, var(--night-b) 100%); }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in { position: relative; z-index: 2; padding-block: 22px 150px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--night-ink); text-decoration: none; font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; }
.logo svg { width: 30px; height: 30px; }
.logo b { color: var(--sun); font-weight: 700; }
.kicker { margin: 40px 0 0; font-size: .8rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--sun); }
.hero h1 { margin-top: 10px; font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 600; letter-spacing: -.01em; max-width: 15ch; }
/* Palavra de destaque dos títulos, igual em todos os topos (v25/v26): letra de assinatura de conto de fadas, dourada e com brilho.
   Use <em> dentro do <h1> de um .hero, ou a classe fm-magic em qualquer lugar. Letra: Grand Hotel (v26). */
.hero h1 em, .fm-magic { display: inline-block; font-family: var(--f-magic); font-style: normal; font-weight: 400; font-size: 1.3em; line-height: .85; letter-spacing: .01em; color: var(--sun); text-shadow: 0 0 22px rgba(246, 196, 83, .55); transform: rotate(-4deg); padding: 0 .08em 0 .02em; }
.lead { margin: 16px 0 0; max-width: 50ch; font-size: 1.1rem; color: var(--night-ink-2); }
.castle { position: absolute; z-index: 1; right: max(2vw, calc(50% - 560px)); bottom: 46px; width: min(40vw, 440px); height: auto; }
.castle-body { fill: var(--castle); }
.castle .flag { fill: var(--rose); }
.castle-lights { fill: var(--sun); filter: drop-shadow(0 0 4px rgba(246, 196, 83, .9)); animation: glow 3.5s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .75; } to { opacity: 1; } }
.hills { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; }

/* ---------- Planejador ---------- */
.main { display: grid; gap: 28px; padding-block: 0 48px; }
.planner { position: relative; z-index: 3; margin-top: -70px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 8px 28px; display: grid; }
.step { padding-block: 22px; border-bottom: 1px dashed var(--line); min-width: 0; }
.step-last { border-bottom: 0; }
.step-title { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 600; }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lagoon); color: var(--surface); font-size: .9rem; font-family: var(--f-mono); font-weight: 500; flex: none; }
.step-sub { margin: 4px 0 14px 38px; color: var(--ink-2); font-size: .95rem; }

.park-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.park-tile { --pc: var(--c-other); position: relative; display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border-radius: var(--r); border: 2px solid var(--line); background: var(--surface-2); transition: border-color .15s, background .15s, transform .15s; }
.park-tile:hover:not(:disabled) { border-color: var(--pc); transform: translateY(-1px); }
.park-tile .pt-icon { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--pc) 14%, transparent); color: var(--pc); }
.park-tile .pt-icon svg { width: 28px; height: 28px; }
.park-tile b { display: block; font-family: var(--f-display); font-size: 1.08rem; font-weight: 600; }
.park-tile small { color: var(--ink-2); }
.park-tile .pt-check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.park-tile[aria-pressed="true"] { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 7%, var(--surface)); }
.park-tile[aria-pressed="true"] .pt-check { background: var(--pc); border-color: var(--pc); }
.park-tile[aria-pressed="true"] .pt-check::after { content: ""; width: 9px; height: 5px; border: 2.5px solid var(--surface); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.park-tile:disabled { opacity: .55; cursor: not-allowed; }

.kind-picker { display: grid; gap: 16px; }
.kind-group { display: grid; gap: 8px; }
.kind-group h3 { font-size: .8rem; font-family: var(--f-body); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--pc, var(--ink-2)); }
.kind-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kchip { display: grid; text-align: left; gap: 1px; padding: 9px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); line-height: 1.25; }
.kchip b { font-weight: 600; font-size: .95rem; }
.kchip small { color: var(--ink-2); font-size: .78rem; }
.kchip:hover { border-color: var(--pc); }
.kchip[aria-pressed="true"] { background: var(--pc); border-color: var(--pc); color: #fff; }
.kchip[aria-pressed="true"] small { color: rgba(255, 255, 255, .85); }
.kchip .new { font-size: .68rem; font-weight: 700; background: var(--sun); color: #2A1A00; border-radius: 99px; padding: 0 6px; margin-left: 4px; vertical-align: 1px; }
.empty-hint { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: .92rem; }

.itinerary { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.it-row { --pc: var(--c-other); display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(0, 1.6fr) 190px 36px; gap: 12px; align-items: end; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border-left: 5px solid var(--pc); }
.it-name b { display: block; font-family: var(--f-display); font-weight: 600; }
.it-name small { color: var(--ink-2); }
.field { display: grid; gap: 4px; min-width: 0; }
.field > span { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.field input { height: 40px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0 10px; min-width: 0; width: 100%; }
.field input:focus { border-color: var(--lagoon); outline: none; }
.days { display: flex; flex-wrap: wrap; gap: 4px; }
.days button { min-width: 36px; height: 34px; padding: 0 8px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-variant-numeric: tabular-nums; }
.days button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.it-remove { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); font-size: 1.4rem; line-height: 1; }
.it-remove:hover { background: var(--warn-soft); color: var(--warn); }

.pax-row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: 12px; }
.pax { display: grid; gap: 6px; }
.pax-label { font-weight: 600; }
.pax-label small { display: block; font-weight: 400; color: var(--ink-2); font-size: .8rem; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); }
.stepper button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.25rem; border-radius: 50%; }
.stepper button:hover { background: var(--lagoon-soft); }
.stepper input { width: 40px; text-align: center; border: 0; background: transparent; font-weight: 700; font-size: 1.1rem; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn-go { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 15px 28px; background: var(--sunset); color: var(--sunset-ink); font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; text-decoration: none; box-shadow: 0 6px 18px color-mix(in srgb, var(--sunset) 35%, transparent); transition: transform .15s, box-shadow .15s; }
.btn-go:hover { transform: translateY(-1px); box-shadow: 0 10px 24px color-mix(in srgb, var(--sunset) 40%, transparent); }
.btn-go:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-go svg { width: 22px; height: 22px; }
.btn-go.block { width: 100%; margin: 0; }
.hint { margin: 10px 0 0; font-size: .85rem; color: var(--ink-2); }

/* ---------- Progresso ---------- */
.results { display: grid; gap: 20px; scroll-margin-top: 16px; }
.progress { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 18px 22px; display: grid; gap: 12px; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.progress h2 { font-size: 1.2rem; font-weight: 600; }
.progress-bar { height: 8px; border-radius: 99px; background: var(--lagoon-soft); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--lagoon), var(--mint)); transition: width .5s ease; }
.vchips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vchips li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; }
.vchips li small { font-weight: 400; color: var(--ink-2); }
.vchips .dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; color: #fff; flex: none; }
.vchips .ok .dot { background: var(--mint); }
.vchips .unavailable .dot { background: var(--warn); }
.vchips .no_offer .dot { background: var(--ink-2); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--lagoon-soft); border-top-color: var(--lagoon); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.notify { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: var(--lagoon-soft); font-size: .92rem; }
.btn-soft { border: 1.5px solid var(--lagoon); color: var(--lagoon); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .88rem; }
.btn-soft:hover { background: var(--lagoon); color: var(--surface); }
.progress.done { padding-block: 12px; }

/* ---------- Resumo ---------- */
.summary { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
.sum-main { position: relative; overflow: hidden; border-radius: 18px; padding: 22px 24px; background: var(--ink); color: var(--bg); display: grid; gap: 6px; align-content: start; }
.sum-main::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--sun) 45%, transparent), transparent 70%); }
.sum-main .eyebrow { color: var(--sun); }
.sum-total { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.sum-save { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-top: 6px; padding: 6px 12px; border-radius: 999px; background: var(--mint); color: #fff; font-weight: 700; }
.sum-save .ck { width: 18px; height: 18px; }
.sum-note { font-size: .88rem; opacity: .8; margin: 4px 0 0; max-width: 46ch; }
.sum-side { border-radius: 18px; padding: 18px 20px; background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start; min-width: 0; }
.sum-side h3 { font-size: 1.05rem; font-weight: 600; }
.one-stop { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.one-stop li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.one-stop li span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.one-stop small { color: var(--ink-2); font-weight: 500; }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Abas ---------- */
.view-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.seg button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; font-weight: 600; color: var(--ink-2); }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--bg); }

/* ---------- Cartão-ingresso ---------- */
.cards { display: grid; gap: 18px; }
.ticket { --pc: var(--c-other); position: relative; display: grid; grid-template-columns: 230px minmax(0, 1fr); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.ticket::before, .ticket::after { content: ""; position: absolute; left: 219px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.ticket::before { top: -11px; }
.ticket::after { bottom: -11px; }
.stub { position: relative; padding: 20px; border-radius: 18px 0 0 18px; background: var(--pc); color: #fff; display: grid; gap: 10px; align-content: start; border-right: 2px dashed rgba(255, 255, 255, .55); }
.stub-park { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .92; }
.stub-park svg { width: 22px; height: 22px; }
.stub h3 { font-size: 1.35rem; font-weight: 800; }
.stub dl { margin: 4px 0 0; display: grid; gap: 6px; font-size: .88rem; }
.stub dt { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.stub dd { margin: 0; font-family: var(--f-mono); font-weight: 500; }
.stub-code { margin-top: 6px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .25em; opacity: .6; }

.offers { padding: 18px 20px; display: grid; gap: 12px; min-width: 0; }
.offers-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; }
.offers-head .verdict { font-weight: 600; }
.offers-head .verdict b { color: var(--mint); }
.save-pill { display: inline-flex; gap: 6px; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--mint-soft); color: var(--mint); font-weight: 700; font-size: .85rem; white-space: nowrap; }

/* Régua de preços: cada ponto é um vendedor, na escala do mais barato ao mais caro */
.ruler { position: relative; height: 38px; margin: 2px 6px 0; }
.ruler-line { position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--mint), var(--sun), var(--sunset)); opacity: .55; }
.ruler-dot { position: absolute; top: 5px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink-2); }
.ruler-dot.best { border-color: var(--mint); background: var(--mint); width: 20px; height: 20px; margin-left: -10px; top: 3px; box-shadow: 0 0 0 4px var(--mint-soft); }
.ruler-lab { position: absolute; top: 24px; font-size: .74rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ruler-lab.l { left: -6px; }
.ruler-lab.r { right: -6px; }

.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.more.open { grid-template-rows: 1fr; }
.more-in { overflow: hidden; min-height: 0; padding-right: 3px; margin-right: -3px; display: grid; gap: 12px; visibility: hidden; transition: visibility .3s; }
.more.open .more-in { visibility: visible; }
.more-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 9px 12px; border-radius: 12px; border: 1.5px dashed var(--line); background: var(--surface-2); color: var(--lagoon); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; transition: border-color .15s, background .15s; }
.more-btn:hover { border-color: var(--lagoon); border-style: solid; }
.more-btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s; }
.more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.more:not(.open) + .more-btn { margin-top: -12px; }
@media (prefers-reduced-motion: reduce) { .more, .more-in, .more-btn svg { transition: none; } }
.offer { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .15s, transform .15s; text-align: left; width: 100%; }
.offer:hover { border-color: var(--lagoon); transform: translateX(2px); }
.offer .rank { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); font-family: var(--f-mono); font-size: .85rem; }
.offer .who { min-width: 0; }
.offer .who b { display: block; font-weight: 700; }
.offer .who small { display: block; color: var(--ink-2); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer .price { text-align: right; font-variant-numeric: tabular-nums; }
.offer .price strong { display: block; font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; white-space: nowrap; }
.offer .price small { display: block; color: var(--ink-2); font-size: .76rem; white-space: nowrap; }
.offer .diff { min-width: 92px; text-align: right; font-size: .82rem; font-weight: 600; color: var(--warn); font-variant-numeric: tabular-nums; white-space: nowrap; }
.offer .diff .go { display: inline-flex; align-items: center; gap: 4px; color: var(--lagoon); }
.offer.best { border-color: var(--mint); background: var(--mint-soft); }
.offer.best .rank { background: var(--mint); color: #fff; }
.offer.best .rank svg { width: 16px; height: 16px; }
.offer.best .price strong { color: var(--mint); font-weight: 800; }
.badge-best { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--mint); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .04em; vertical-align: 2px; }
.offer.from { border-style: dashed; }
.tag-from { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 99px; border: 1px solid var(--ink-2); color: var(--ink-2); font-size: .68rem; font-weight: 600; vertical-align: 2px; }
.ast { color: var(--sunset); font-weight: 700; margin-left: 1px; }
.offer.loading { cursor: default; border-style: dashed; }
.offer.loading:hover { transform: none; border-color: var(--line); }
.skel { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 0%, var(--lagoon-soft) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.2s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.offers-out { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .82rem; color: var(--ink-2); }
.out-chip { padding: 2px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
.out-chip.unavailable { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: var(--warn-soft); }
.out-chip.unreadable, .cell-na.unreadable { color: var(--ink-2); border-style: dashed; font-style: italic; }
.cell-na.unreadable { padding: 1px 8px; border: 1px dashed var(--line); border-radius: 99px; cursor: help; }

/* ---------- Tabela completa ---------- */
.table-view { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 6px 10px 10px; }
.table-scroll { overflow-x: auto; }
/* Sem largura mínima: cabe em 390px sem rolar de lado */
.grid { border-collapse: separate; border-spacing: 0; width: 100%; font-variant-numeric: tabular-nums; }
.grid th, .grid td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.grid thead th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.grid th:first-child, .grid td:first-child { text-align: left; }
.grid td:first-child { font-weight: 600; }
.grid tbody tr:not(.t-head):hover td { background: var(--surface-2); }
.t-head th { text-align: left !important; padding: 16px 12px 10px; border-bottom: 0; border-left: 5px solid var(--pc, var(--c-other)); background: color-mix(in srgb, var(--pc, var(--c-other)) 8%, var(--surface)); border-radius: 10px 10px 0 0; font-weight: 400; }
.t-group + .t-group .t-head th { border-top: 14px solid var(--surface); }
.t-head b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; }
.t-head small { color: var(--ink-2); }
.t-park { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--pc) 70%, var(--ink)); }
.t-park svg { width: 16px; height: 16px; }
.t-save { color: var(--mint); font-weight: 700; }
.t-group td:first-child { border-left: 5px solid color-mix(in srgb, var(--pc, var(--c-other)) 30%, transparent); }
.is-best td { background: var(--mint-soft); }
.t-best { color: var(--mint); font-weight: 700; font-size: .82rem; }
.t-more { color: var(--warn); font-weight: 600; font-size: .82rem; }
.t-totals .t-head th { border-left-color: var(--sun); background: color-mix(in srgb, var(--sun) 14%, var(--surface)); }
.cell-btn { border: 0; background: transparent; padding: 4px 8px; border-radius: 8px; font-weight: 600; white-space: nowrap; display: inline-block; }
button.cell-btn:hover { background: var(--lagoon-soft); }
.cell-btn.best { background: var(--mint); color: #fff; font-weight: 800; }
.cell-btn.best::before { content: "✓ "; }
.cell-btn small { display: block; font-weight: 500; font-size: .7rem; color: var(--ink-2); }
.cell-na { color: var(--ink-2); font-size: .82rem; }
.cell-un { color: var(--warn); font-size: .82rem; }
@media (max-width: 560px) {
  .t-unit { display: none; }
  .grid th, .grid td { padding: 8px 6px; font-size: .88rem; }
  .table-view { padding-inline: 4px; }
}

.footnote { margin: 0; font-size: .82rem; color: var(--ink-2); max-width: 90ch; }

/* ---------- Como funciona ---------- */
.how { padding-top: 8px; }
.how h2 { font-size: 1.2rem; margin-bottom: 12px; }
.how ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how li { counter-increment: s; padding: 16px; border-top: 3px solid var(--lagoon); color: var(--ink-2); font-size: .95rem; }
.how li::before { content: counter(s); display: block; font-family: var(--f-display); font-size: 1.6rem; font-weight: 800; color: var(--lagoon); line-height: 1; margin-bottom: 6px; }
.how li b { color: var(--ink); display: block; }
.footer { border-top: 1px solid var(--line); padding-block: 20px 28px; font-size: .85rem; color: var(--ink-2); }
.footer p { margin: 0; max-width: 80ch; }

/* ---------- Modais ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(6, 20, 27, .55); backdrop-filter: blur(3px); }
.modal-box { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 20px; padding: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); animation: pop .18s ease-out; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: .6; } }
.modal-box h3 { font-size: 1.35rem; margin-bottom: 6px; padding-right: 30px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface-2); font-size: 1.3rem; line-height: 1; z-index: 2; }
/* O modal rola por inteiro e o botão de ir ao vendedor fica sempre visível no rodapé (textos longos da API não podem escondê-lo) */
.ticket-modal { padding: 0; overflow-y: auto; overscroll-behavior: contain; }
.tm-foot { position: sticky; bottom: 0; z-index: 1; padding: 12px 24px 20px; background: var(--surface); border-top: 1px solid var(--line); }
.tm-head { padding: 22px 24px 20px; background: var(--ink); color: var(--bg); border-bottom: 2px dashed color-mix(in srgb, var(--bg) 40%, transparent); }
.tm-head .eyebrow { color: var(--sun); }
.tm-head h3 { color: var(--bg); margin-top: 4px; }
.tm-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.tm-price span { font-family: var(--f-display); font-weight: 800; font-size: 2.1rem; font-variant-numeric: tabular-nums; }
.tm-price small { opacity: .8; }
.ticket-modal .modal-close { background: rgba(255, 255, 255, .12); color: var(--bg); }
.tm-body { padding: 18px 24px 24px; display: grid; gap: 14px; }
.tm-list { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 16px; font-size: .92rem; }
.tm-list dt { color: var(--ink-2); }
.tm-list dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.disclaimer { font-size: .82rem; color: var(--ink-2); padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.nf-form { display: grid; gap: 6px; margin-top: 12px; }
.nf-form label { font-weight: 600; font-size: .9rem; }
.nf-form input { height: 44px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--surface-2); margin-bottom: 8px; }
.nf-msg { margin: 4px 0 0; font-size: .9rem; color: var(--mint); min-height: 1.2em; }

.toasts { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow); font-size: .92rem; animation: pop .2s ease-out; }

/* ---------- Telas menores ---------- */
@media (max-width: 860px) {
  .it-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; }
  .it-name { grid-column: 1 / 3; }
  .it-days { grid-column: 1 / -1; grid-row: 2; }
  .it-remove { grid-column: 3; grid-row: 1; }
  .summary { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .ticket { grid-template-columns: minmax(0, 1fr); }
  .ticket::before, .ticket::after { display: none; }
  .stub { border-radius: 18px 18px 0 0; border-right: 0; border-bottom: 2px dashed rgba(255, 255, 255, .55); }
  .stub dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stub-code { display: none; }
  .how ol { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .planner { padding: 4px 16px; border-radius: 18px; }
  .step-sub { margin-left: 0; }
  .hero-in { padding-block: 18px 110px; }
  .hero h1 { margin-top: 26px; }
  .btn-go { width: 100%; margin-left: 0; }
  .offer { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; }
  .offer .diff { grid-column: 2 / -1; text-align: left; min-width: 0; }
  .offers { padding: 14px; }
  .stub dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .it-row { grid-template-columns: minmax(0, 1fr) 36px; }
  .it-name, .it-days { grid-column: 1 / 2; }
  .it-row .field-start { grid-column: 1 / -1; }
  .it-remove { grid-column: 2; }
}

/* ---------- Toques do tema ---------- */
.devbar { background: #070A26; color: #E9E6FF; }
.planner { border-top: 4px solid var(--sun); }
.step-n { width: 34px; height: 34px; background: var(--sun); color: #1A1F4B; font-family: var(--f-display); font-weight: 700; font-size: .95rem;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); padding-top: 3px; }
.step-sub { margin-left: 44px; }
.step-title { font-weight: 600; }
.btn-go { background: linear-gradient(180deg, #FFDC85 0%, var(--sunset) 100%); color: var(--sunset-ink); box-shadow: 0 6px 20px rgba(242, 181, 58, .45), inset 0 -2px 0 rgba(0, 0, 0, .08); }
.btn-go:hover { box-shadow: 0 10px 28px rgba(242, 181, 58, .6), inset 0 -2px 0 rgba(0, 0, 0, .08); }
.ast { color: var(--rose); }
.sum-main { background: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1.6px) 0 0 / 22px 22px, linear-gradient(160deg, var(--night-a), var(--night-b)); color: var(--night-ink); }
.sum-main::after { background: radial-gradient(circle, rgba(246, 196, 83, .45), transparent 70%); }
.stub { background: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.6px) 0 0 / 14px 14px, linear-gradient(165deg, color-mix(in srgb, var(--pc) 88%, #fff), var(--pc) 60%, color-mix(in srgb, var(--pc) 75%, #000)); border-right-color: rgba(246, 196, 83, .75); }
.stub h3 { font-weight: 700; }
.ruler-line { background: linear-gradient(90deg, var(--mint), var(--sun), var(--rose)); }
.seg button[aria-selected="true"], .days button[aria-pressed="true"] { background: var(--lagoon); border-color: var(--lagoon); color: #fff; }
.tm-head { background: radial-gradient(rgba(255, 255, 255, .3) 1px, transparent 1.6px) 0 0 / 18px 18px, linear-gradient(160deg, var(--night-a), var(--night-b)); color: var(--night-ink); border-bottom-color: rgba(246, 196, 83, .6); }
.tm-head h3 { color: var(--night-ink); }
.ticket-modal .modal-close { color: var(--night-ink); }
.how li { border-top-color: var(--sun); }
.how li::before { color: var(--gold); }
.vchips .ok .dot { background: var(--mint); }
.progress-bar span { background: linear-gradient(90deg, var(--lagoon), var(--rose), var(--sun)); }
.footer { background: var(--surface-2); }

@media (max-width: 720px) {
  .stub { border-bottom-color: rgba(246, 196, 83, .75); }
  .castle { width: 260px; right: -30px; bottom: 50px; opacity: .55; }
  .hero-in { padding-block: 18px 130px; }
}
@media (max-width: 560px) { .step-sub { margin-left: 0; } .kicker { margin-top: 26px; } }
.kind-group h3 { color: color-mix(in srgb, var(--pc) 60%, var(--ink)); }
.park-tile .pt-icon { color: color-mix(in srgb, var(--pc) 70%, var(--ink)); }
/* Telas baixas (notebook): modal de compra mais compacto */
@media (max-height: 760px) {
  .tm-head { padding: 16px 20px 14px; }
  .tm-price span { font-size: 1.7rem; }
  .tm-body { padding: 12px 20px 14px; gap: 10px; }
  .disclaimer { padding: 8px 12px; font-size: .78rem; }
  .tm-foot { padding: 10px 20px 14px; box-shadow: 0 -6px 16px rgba(0, 0, 0, .08); }
}

/* ---------- Modal de compra: selos e blocos ---------- */
.ticket-modal { max-width: 560px; }
.tm-badges { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bdg { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.2; background: rgba(255, 255, 255, .12); color: var(--night-ink); border: 1px solid rgba(255, 255, 255, .18); }
.bdg .i { width: 14px; height: 14px; flex: none; }
.bdg.good { background: #1FAF77; border-color: #1FAF77; color: #fff; }
.bdg.warn { background: rgba(255, 125, 184, .18); border-color: rgba(255, 125, 184, .45); color: #FFD3E7; }
.bdg.info .i { color: var(--sun); }
.bdg.muted { background: transparent; color: var(--night-ink-2); font-weight: 600; }
.tm-sections { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.tm-sec { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; min-width: 0; }
.tm-sec h4 { margin: 0; display: flex; align-items: center; gap: 6px; font: 800 .7rem/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.tm-sec h4 .i { width: 15px; height: 15px; color: var(--lagoon); }
.tm-sec:first-child, .tm-sec.cmp { grid-column: 1 / -1; }
.tm-sec p { margin: 0; font-size: .9rem; }
.tm-product { font-weight: 700; font-size: .95rem !important; overflow-wrap: anywhere; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-chips span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; }
.tm-chips .i { width: 14px; height: 14px; color: var(--lagoon); }
.pr { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .88rem; font-variant-numeric: tabular-nums; }
.pr > span:last-child { font-weight: 700; white-space: nowrap; }
.pr small { color: var(--ink-2); font-size: .78rem; white-space: nowrap; }
.pr.total { padding-top: 6px; border-top: 1px dashed var(--line); font-size: 1rem; }
.pr.total > span:last-child { font-family: var(--f-display); font-size: 1.1rem; color: var(--lagoon); }
.pr.sub { color: var(--ink-2); font-size: .82rem; }
.pr.sub > span:last-child { font-weight: 600; }
.tm-fine { font-size: .76rem !important; color: var(--ink-2); line-height: 1.4; overflow-wrap: anywhere; }
.tm-pay { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tm-pay li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 7px; font-size: .82rem; line-height: 1.35; overflow-wrap: anywhere; }
.tm-pay .i { width: 16px; height: 16px; color: var(--gold); margin-top: 1px; }
.tm-sec.cmp { background: linear-gradient(135deg, var(--lagoon-soft), var(--surface-2)); }
.tm-ruler { margin: 0 8px 4px; }
.ruler-dot.me:not(.best) { border-color: var(--rose); background: var(--rose); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rose) 25%, transparent); }
.tm-sec .good { color: var(--mint); }
.tm-alt { justify-self: start; }
.disclaimer { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; }
.disclaimer svg { width: 18px; height: 18px; color: var(--lagoon); }
.disclaimer p { margin: 0; }
.tm-trust { margin: 6px 0 0; text-align: center; font-size: .74rem; color: var(--ink-2); }
@media (max-width: 520px) {
  .tm-sections { grid-template-columns: minmax(0, 1fr); }
  .tm-head h3 { font-size: 1.2rem; }
}
@media (max-height: 760px) {
  .tm-badges { margin-top: 8px; gap: 4px; }
  .bdg { padding: 3px 8px 3px 6px; font-size: .72rem; }
  .tm-sec { padding: 10px 12px; gap: 6px; }
  .tm-sections { gap: 8px; }
  .tm-trust { display: none; }
}
.tm-head .eyebrow { display: block; padding-right: 44px; }

/* ---------- Datas sem último dia, aviso de sobreposição e validade ---------- */
.it-valid { grid-column: 2 / 4; grid-row: 2; display: flex; gap: 8px; align-items: flex-start; margin: -2px 0 0; padding: 7px 10px; border-radius: 9px; background: var(--surface); font-size: .82rem; line-height: 1.35; color: var(--ink); }
.it-valid svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--pc); }
.it-valid b { font-weight: 800; }
.it-valid small { color: var(--ink-2); font-size: .76rem; }
.it-valid small::before { content: " · "; }
@media (max-width: 860px) { .it-row .field-start { grid-column: 1 / 3; } .it-row .it-valid { grid-column: 1 / -1; grid-row: auto; } }
.date-alert { margin-top: 12px; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--warn-soft); border: 1.5px solid color-mix(in srgb, var(--warn) 45%, transparent); color: var(--ink); }
.date-alert .da-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--warn); color: #fff; font-weight: 800; }
.date-alert b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; }
.date-alert ul { margin: 6px 0; padding-left: 18px; font-size: .92rem; }
.date-alert p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.da-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.date-alert.ok { background: var(--mint-soft); border-color: color-mix(in srgb, var(--mint) 40%, transparent); }
.date-alert.ok .da-icon { background: var(--mint); }
.date-alert.flash { animation: flash 1s ease-out 2; }
@keyframes flash { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--warn) 35%, transparent); } }
.stub .valid { padding: 6px 10px; margin-inline: -10px; border-radius: 10px; background: rgba(246, 196, 83, .22); border: 1px solid rgba(246, 196, 83, .6); }
.stub .valid dt { opacity: 1; color: #FFE7A8; }
.t-valid { color: var(--gold); font-weight: 700; }
.chip-valid { background: color-mix(in srgb, var(--sun) 22%, var(--surface)) !important; border-color: color-mix(in srgb, var(--gold) 50%, transparent) !important; }
.chip-valid .i { color: var(--gold) !important; }

/* Logos oficiais dos parques no passo 1 (fundo branco para logos com fundo próprio) */
.park-tile .pt-icon.has-logo { width: 92px; height: 52px; background: #fff; border: 1px solid var(--line); padding: 5px 8px; }
.park-tile .pt-icon.has-logo svg { display: none; }
.park-tile .pt-icon:not(.has-logo) .pt-logo { display: none; }
.pt-logo { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
/* Marcador dos passos: mini ingresso com picote nas laterais, no lugar da estrela */
.step-n { clip-path: none; width: 42px; height: 30px; padding: 0; border-radius: 7px; background: linear-gradient(160deg, #3446B8, #1A1F6B); color: #F6C453; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; line-height: 1;
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 5px, #000 5.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 5px, #000 5.5px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, transparent 5px, #000 5.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 5px, #000 5.5px) right / 51% 100% no-repeat; }
.step-sub { margin-left: 52px; }
@media (max-width: 560px) { .step-sub { margin-left: 0; } }
.tm-valid-text { font-weight: 700; color: var(--gold); font-size: .86rem !important; }

/* Logo do parque acima do tipo de ingresso no passo 3 (pequeno, para não empurrar o formulário) */
.it-logo { display: inline-flex; align-items: center; height: 28px; max-width: 96px; margin-bottom: 4px; color: color-mix(in srgb, var(--pc) 70%, var(--ink)); }
.it-logo svg { width: 22px; height: 22px; }
.it-logo.has-logo { padding: 3px 6px; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.it-logo.has-logo svg { display: none; }
.it-logo:not(.has-logo) .pt-logo { display: none; }
.it-logo .pt-logo { max-height: 22px; max-width: 84px; }

/* ---------- Celular e tablet (v11). Nada aqui vale acima de 900 px de largura: o desktop não muda ---------- */
@media (max-width: 900px) {
  .badge-best, .tag-from { white-space: nowrap; }
  .progress-top #elapsed { white-space: nowrap; }
}
/* Tablet e celular deitado: dias e data lado a lado, validade embaixo */
@media (min-width: 561px) and (max-width: 860px) {
  .it-row { grid-template-columns: minmax(0, 1fr) 210px 36px; }
  .it-name { grid-column: 1 / 3; grid-row: 1; }
  .it-remove { grid-column: 3; grid-row: 1; }
  .it-days { grid-column: 1; grid-row: 2; }
  .it-row .field-start { grid-column: 2 / 4; grid-row: 2; }
  .it-row .it-valid { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 720px) {
  .offer .who small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
/* Celular em pé */
@media (max-width: 560px) {
  /* Campos com 16 px para o iPhone não dar zoom ao tocar */
  input[type="date"], input[type="number"], input[type="tel"], input[type="text"] { font-size: 16px; }
  /* Tipos de ingresso em duas colunas iguais, em vez de uma lista comprida */
  .kind-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .kchip { padding: 8px 10px; min-width: 0; align-content: start; }
  .kchip b { font-size: .9rem; }
  .kchip small { font-size: .74rem; }
  .it-row { padding: 12px; gap: 10px; }
  .days { flex-wrap: wrap; }
  /* Progresso: chips menores, "pronto" vira só o check */
  .progress { padding: 16px; }
  .progress h2 { font-size: 1.05rem; }
  .vchips { gap: 6px; }
  .vchips li { font-size: .82rem; padding: 4px 10px 4px 6px; }
  .vchips li.ok small { display: none; }
  .notify { flex-direction: column; align-items: stretch; text-align: center; }
  /* Cartão: canhoto compacto e oferta em duas linhas legíveis */
  .stub { padding: 16px; gap: 8px; }
  .stub h3 { font-size: 1.15rem; }
  .stub dl { gap: 8px 12px; }
  .stub dl > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .offer { padding: 10px; gap: 4px 10px; }
  .offer:hover { transform: none; }
  .offer .who b { font-size: .95rem; }
  .offer .badge-best { display: table; margin: 3px 0 2px; font-size: .64rem; }
  .offer .price strong { font-size: 1.12rem; }
  .offer .price small { font-size: .72rem; }
  .offer .diff { min-width: 0; }
  .ruler-lab { font-size: .7rem; }
  .more-btn { font-size: .86rem; padding: 10px; line-height: 1.25; }
  .view-bar { gap: 8px; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 8px 10px; }
  /* Tabela completa: mais estreita para caber sem rolagem */
  .grid th, .grid td { padding: 8px 6px; font-size: .88rem; }
  .grid td:first-child { font-size: .86rem; line-height: 1.2; }
  /* Modais viram painel que sobe da base da tela, com o botão sempre à vista */
  .modal { padding: 0; place-items: end center; }
  .modal-box { max-width: none; max-height: calc(100dvh - 20px); border-radius: 20px 20px 0 0; animation: sheet .22s ease-out; }
  .ticket-modal .tm-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .how ol { gap: 10px; }
  .how li { padding-block: 12px; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
/* Celular deitado (tela muito baixa): topo e modal mais compactos */
@media (max-width: 900px) and (max-height: 500px) {
  .hero-in { padding-block: 14px 90px; }
  .hero h1 { font-size: 1.7rem; }
  .castle { width: 200px; opacity: .45; }
  .tm-head { padding: 12px 18px 10px; }
  .tm-price span { font-size: 1.5rem; }
  .tm-badges { margin-top: 6px; }
}
@media (max-width: 560px) {
  .how li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; }
  .how li::before { grid-row: 1 / span 2; margin: 0; font-size: 1.4rem; }
}
@media (max-width: 560px) {
  .date-alert { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .date-alert .da-icon { width: 28px; height: 28px; }
  .da-actions > * { flex: 1 1 100%; }
}

/* ---------- Preço "a partir de" (v12): não parece oferta comparável ---------- */
.offer.from { border-style: dashed; background: var(--surface-2); }
.offer.from .rank { background: transparent; border: 1.5px dashed var(--line); color: var(--ink-2); }
.offer.from .who b { color: var(--ink-2); }
.offer.from .price strong { font-size: .98rem; font-weight: 600; color: var(--ink-2); }
.offer.from .price strong small { display: inline; font-family: var(--f-body); font-size: .74rem; font-weight: 600; }
.offer.from .diff .go { font-size: .8rem; }
.offer .from-note { grid-column: 2 / -1; font-size: .76rem; color: var(--warn); font-weight: 600; line-height: 1.3; }
.cell-btn.from { color: var(--ink-2); font-style: italic; font-weight: 500; font-size: .86rem; }
.cell-btn.from::before { content: none; }
.tm-price span.from { font-size: 1.4rem; color: var(--night-ink-2); }
.bdg.alert { background: #F08A3C; border-color: #F08A3C; color: #fff; }
@media (max-width: 560px) { .offer .from-note { grid-column: 1 / -1; } .offer.from .diff { display: none; } }
.pr.total.from span:last-child { color: var(--ink-2); font-weight: 600; font-size: .92rem; }

/* ===== Menu do topo (v14, v27 com o grupo Guias e Contato). Markup em inc/menu.php ===== */
.topbar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; }
.topnav-list { display: flex; gap: 2px; margin: -3px 0; padding: 0; list-style: none; }
.topnav a { display: flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; color: var(--night-ink-2); text-decoration: none; font-weight: 700; font-size: .86rem; white-space: nowrap; transition: background .15s, color .15s; }
.topnav a:hover { background: rgba(255, 255, 255, .09); color: var(--night-ink); }
.topnav a:focus-visible, .topnav-toggle:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.topnav a[aria-current="page"] { background: rgba(246, 196, 83, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(246, 196, 83, .45); }
.topnav svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--sun); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.topnav .live-dot { fill: var(--rose); stroke: none; transform-origin: 19.5px 5px; animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: .35; transform: scale(.7); } }
.topnav-toggle { display: none; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--night-ink); font: 700 .9rem var(--f-body); cursor: pointer; }
.topnav-toggle svg { width: 20px; height: 20px; stroke: var(--night-ink); }
/* Seletor de idioma (componente da conversa de idiomas) entra em .topnav-lang, depois da lista */
.topnav { display: flex; align-items: center; gap: 6px; }
.topnav-lang { display: flex; align-items: center; flex: none; padding-left: 6px; border-left: 1px solid rgba(255, 255, 255, .16); }
/* v27: nomes curtos na barra do computador, grupo Guias (Atrações + Onde Comer) e Contato */
.topnav .tn-f { display: none; }
.topnav li { position: relative; }
.tn-gbtn { display: flex; align-items: center; gap: 7px; padding: 7px 9px 7px 11px; border: 0; border-radius: 999px; background: none; color: var(--night-ink-2); font: 700 .86rem var(--f-body); white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.tn-gbtn:hover, .tn-group.open .tn-gbtn { background: rgba(255, 255, 255, .09); color: var(--night-ink); }
.tn-gbtn:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.tn-group.is-cur .tn-gbtn { background: rgba(246, 196, 83, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(246, 196, 83, .45); }
.topnav .tn-caret { width: 16px; height: 16px; margin-left: -3px; stroke: var(--night-ink-2); transition: transform .15s; }
.tn-group.open .tn-caret { transform: rotate(180deg); }
.tn-head { display: none; }
.tn-sub { display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; min-width: 340px; margin: 0; padding: 8px; list-style: none; border-radius: 16px; background: #141c5c; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 18px 40px rgba(4, 8, 40, .45); }
.tn-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.tn-group.open .tn-sub { display: grid; gap: 2px; }
.topnav .tn-sub a { align-items: flex-start; gap: 11px; padding: 10px 12px; border-radius: 12px; white-space: normal; }
.topnav .tn-sub svg { width: 24px; height: 24px; margin-top: 1px; }
.tn-t { display: grid; gap: 1px; }
.tn-t span { color: var(--night-ink); font-size: .92rem; }
.tn-t small { color: var(--night-ink-2); font-weight: 600; font-size: .78rem; line-height: 1.3; }
@media (max-width: 1060px) {
  .topbar { flex-wrap: wrap; }
  .topnav { display: contents; }
  .topnav-toggle { display: inline-flex; }
  .topnav-list { display: none; margin: 0; flex-basis: 100%; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; padding: 10px; border-radius: 16px; background: rgba(10, 17, 64, .72); border: 1px solid rgba(255, 255, 255, .12); }
  .topnav.open .topnav-list { display: grid; }
  .topnav a { padding: 11px 12px; border-radius: 12px; font-size: .95rem; white-space: normal; }
  .topnav a:hover { background: rgba(255, 255, 255, .07); }
  /* no celular: nomes completos e o grupo Guias aberto, com um título por cima */
  .topnav .tn-s { display: none; }
  .topnav .tn-f { display: inline; }
  .topnav li.tn-group, .topnav .tn-sub { display: contents; }
  .tn-gbtn { display: none; }
  .tn-head { display: block; grid-column: 1 / -1; margin: 6px 4px -2px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); color: var(--sun); font: 700 .74rem var(--f-body); letter-spacing: .12em; text-transform: uppercase; }
  .topnav .tn-sub a { align-items: center; gap: 7px; padding: 11px 12px; }
  .topnav .tn-sub svg { width: 20px; height: 20px; margin: 0; }
  .tn-t span { font-size: .95rem; color: inherit; }
  .tn-t small { display: none; }
  .topnav-lang { order: 1; margin-left: auto; padding-left: 0; border-left: 0; }
  .topnav-toggle { order: 2; }
  .topnav-list { order: 3; }
  .topnav-list > .li-contato { grid-column: 1 / -1; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .12); }
}

/* Celular estreito com o seletor de idioma: o botão Menu fica só com o ícone para tudo caber numa linha */
@media (max-width: 420px) {
  .topnav:has(.topnav-lang) .topnav-toggle { padding: 8px 10px; }
  .topnav:has(.topnav-lang) .topnav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .topbar:has(.topnav-lang) { column-gap: 8px; }
  .topbar:has(.topnav-lang) .logo { font-size: 1.12rem; gap: 6px; }
  .topbar:has(.topnav-lang) .logo svg { width: 26px; height: 26px; }
  .topnav:has(.topnav-lang) { gap: 6px; }
}

/* Rodapé comum (v22): links para todas as páginas e aviso de site independente */
.foot-links ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--ink); font-weight: 700; text-decoration: none; }
.foot-links a:hover { color: var(--lagoon); text-decoration: underline; }
.foot-links a[aria-current="page"] { color: var(--lagoon); }
.footer .foot-legal { margin-top: 12px; font-size: .78rem; }
