/* =========================================================
   Dom Travel — Reservas
   Identidade: Preto #373435 (R55 G52 B53) · Amarelo #FFCC29 (R255 G204 B41)
   Tipografia da marca: Humanist 777 → web: Hind (Google Fonts)
   ========================================================= */

:root {
  --ink: #373435;
  --ink-2: #5d595a;
  --ink-3: #8a8586;
  --yellow: #ffcc29;
  --yellow-hover: #f5bd0a;
  --yellow-soft: #fff4cc;
  --paper: #ffffff;
  --soft: #f7f5f0;
  --line: #e4e0d8;
  --wa: #25d366;
  --wa-dark: #1ea952;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(55, 52, 53, 0.18);
  --shadow-sm: 0 4px 16px rgba(55, 52, 53, 0.08);
  --font: 'Hind', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 700; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 820px; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1f1d1e; }
.btn--ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn--ghost-dark:hover { background: var(--ink); color: #fff; }

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.topbar__logo img { width: 150px; height: auto; }
.topbar__nav { display: flex; gap: 26px; margin-left: auto; }
.topbar__nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); }
.topbar__nav a:hover { color: var(--ink); }
.topbar__cta { min-height: 42px; padding: 0 18px; font-size: 15px; }
.topbar__cta i { font-size: 19px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 0; color: #fff; }
.hero__bg {
  position: absolute; inset: 0 0 120px 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(38, 35, 36, 0.86) 0%, rgba(38, 35, 36, 0.55) 55%, rgba(38, 35, 36, 0.25) 100%),
    url('https://images.unsplash.com/photo-1619680939776-4eadd78709a4?w=2000&q=75&auto=format&fit=crop') center 40% / cover no-repeat;
  background-color: var(--ink);
}
.hero__content { max-width: 1200px; padding-bottom: 36px; }
.hero__kicker {
  display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: var(--yellow); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero__title { font-size: clamp(34px, 5vw, 56px); max-width: 640px; letter-spacing: -0.01em; }
.hero__sub { margin-top: 14px; max-width: 560px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, 0.9); }

/* ---------- Caixa de busca ---------- */
.search {
  position: relative; z-index: 20;
  background: var(--paper); color: var(--ink);
  border-radius: 18px; box-shadow: var(--shadow);
  padding: 8px 8px 18px;
}
.search__tabs {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding: 6px 6px 10px; border-bottom: 1px solid var(--line);
  scroll-snap-type: x proximity;
}
.search__tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 92px; padding: 10px 12px 8px; border: 0; border-radius: 12px;
  background: transparent; color: var(--ink-2); cursor: pointer; scroll-snap-align: center;
  font-size: 14px; font-weight: 500; line-height: 1.2; position: relative;
  transition: background-color .2s, color .2s;
}
.tab i { font-size: 20px; }
.tab:hover { background: var(--soft); color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 700; background: var(--yellow-soft); }
.tab[aria-selected="true"]::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: -11px; height: 3px;
  border-radius: 3px; background: var(--yellow);
}
.search__panels { padding: 16px 10px 0; }
.search__help { padding: 14px 12px 0; font-size: 15px; color: var(--ink-2); }
.search__help a { color: var(--ink); font-weight: 600; }
.search__fallback {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 22px; margin: 8px; border-radius: var(--radius); background: var(--yellow-soft);
}
.search__fallback i { font-size: 22px; }
.search__fallback p { flex: 1 1 320px; }

/* Formulários do motor */
.motor_container { margin: 0; }
.type_route_container { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.type_route_container label { cursor: pointer; }
.type_route_container input { position: absolute; opacity: 0; pointer-events: none; }
.type_route_container span {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 15px;
  border: 1px solid var(--line); color: var(--ink-2); transition: all .2s;
}
.type_route_container input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.type_route_container input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

.campos { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.field {
  position: relative; display: block; height: 60px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.field:hover { border-color: #cfc9bf; }
.field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow-soft); }
.f-place { flex: 2 1 230px; }
.f-place.f-wide { flex: 3 1 280px; }
.f-date { flex: 1 1 140px; }
.f-time { flex: 1 1 130px; }
.f-pax { flex: 1.4 1 190px; }
.f-cupom { flex: 0.8 1 120px; }

.field .lbl {
  position: absolute; top: 8px; left: 44px; right: 10px; z-index: 2;
  font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  color: var(--ink-3); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.field > i {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%); z-index: 2;
  font-size: 16px; color: var(--ink-2); pointer-events: none;
}
.field input,
.field select {
  width: 100%; height: 100%; border: 0; outline: 0; background: transparent;
  padding: 24px 12px 6px 44px; font-size: 16px; color: var(--ink);
  border-radius: var(--radius-sm); text-overflow: ellipsis;
}
.field input::placeholder { color: #a39e9f; }
.field input[readonly] { cursor: pointer; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: none; padding-right: 30px; }
.f-time::after {
  content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 11px;
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none;
}
.field input[type='search']::-webkit-search-cancel-button { -webkit-appearance: none; }

.btn-search {
  flex: 1 0 140px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 60px; padding: 0 26px; border: 0; border-radius: var(--radius-sm);
  background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 18px; cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.btn-search:hover { background: var(--yellow-hover); }
.btn-search:active { transform: translateY(1px); }

/* Erros sinalizados pelo motor */
[data-input-error] { outline: 0 !important; }
.field:has([data-input-error]) { border-color: #d64545; box-shadow: 0 0 0 3px #fbe3e3; }

/* Autocomplete (autoComplete.js) */
.autoComplete_wrapper { display: block; height: 100%; position: static; }
.autoComplete_wrapper > ul {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: min(420px, 92vw);
  max-height: 300px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; z-index: 60;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.autoComplete_wrapper > ul:empty, .autoComplete_wrapper > ul[hidden] { display: none; }
.autoComplete_wrapper > ul > p { padding: 12px; font-size: 14px; color: var(--ink-3); text-align: center; }
.autoComplete_wrapper > ul > li {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  font-size: 15px; line-height: 1.3; cursor: pointer; color: var(--ink);
}
.autoComplete_wrapper > ul > li img { width: 18px; height: 18px; flex: 0 0 18px; opacity: .7; }
.autoComplete_wrapper > ul > li:hover,
.autoComplete_wrapper > ul > li[aria-selected='true'] { background: var(--yellow-soft); }
.autoComplete_wrapper mark { background: transparent; color: inherit; font-weight: 700; }
.selection { display: none; }

/* Seletor de viajantes */
.pax_container {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  width: 320px; max-width: 92vw; max-height: 70vh; overflow-y: auto;
  padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.f-pax.open .pax_container { display: block; }
.pax_container .item {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 6px 0;
}
.pax_container .item:empty { display: none; }
.pax_container .item_label p { font-weight: 600; font-size: 15px; }
.pax_container .item_label span { font-size: 13px; color: var(--ink-3); }
.pax_container select {
  width: 76px; height: 40px; padding: 0 28px 0 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23373435' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
}
.pax_container .input_config_container { display: flex; flex-direction: column; gap: 4px; }
.pax_container [data-inputs-age] { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.pax_container [data-inputs-age]:empty { display: none; }
.pax_container [data-inputs-age]::before {
  content: 'Idade na data da viagem'; flex: 0 0 100%; font-size: 12px; color: var(--ink-3);
}
.pax_container .rooms-chd select, .pax_container .rooms-snr select { width: 88px; }
.separator-room { height: 1px; background: var(--line); margin: 10px 0; }
.separator-room:last-child { display: none; }
.pax-done {
  width: 100%; height: 42px; margin-top: 10px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; cursor: pointer;
}

/* Calendário (easepick) — as variáveis atravessam o shadow DOM */
.easepick-wrapper {
  --color-fg-primary: #373435;
  --color-fg-selected: #373435;
  --color-bg-inrange: #fff4cc;
  --color-fg-accent: #373435;
  --color-bg-accent: #ffcc29;
  --color-btn-primary-bg: #ffcc29;
  --color-btn-primary-fg: #373435;
  --color-btn-primary-border: #ffcc29;
  --color-btn-primary-hover-bg: #f5bd0a;
  --color-btn-primary-hover-fg: #373435;
  --color-btn-primary-hover-border: #f5bd0a;
  --primary-color: #ffcc29;
  --border-radius: 8px;
  font-family: var(--font);
  z-index: 70 !important;
}

/* ---------- Faixa de confiança ---------- */
.trust { padding: 56px 0 24px; }
.trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust__item { display: flex; gap: 14px; align-items: flex-start; }
.trust__icon {
  flex: 0 0 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); font-size: 20px;
}
.trust__item strong { display: block; font-size: 18px; margin-bottom: 2px; }
.trust__item p { color: var(--ink-2); font-size: 15px; }

/* ---------- Seções ---------- */
.section { padding: 72px 0; }
.section--soft { background: var(--soft); }
.section__head { max-width: 680px; margin-bottom: 32px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #b38600; margin-bottom: 6px; }
.eyebrow--dark { color: var(--ink-2); }
.section__title { font-size: clamp(28px, 3.4vw, 40px); }
.section__sub { margin-top: 10px; color: var(--ink-2); }

/* Destinos */
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dest {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 330px;
  background: var(--ink); color: #fff; display: flex; align-items: flex-end; box-shadow: var(--shadow-sm);
}
.dest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.dest::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(38, 35, 36, 0) 30%, rgba(38, 35, 36, 0.88) 100%);
}
.dest:hover img { transform: scale(1.05); }
.dest__body { position: relative; z-index: 2; padding: 18px; width: 100%; }
.dest__tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--yellow); color: var(--ink); padding: 2px 10px; border-radius: 999px; margin-bottom: 8px;
}
.dest h3 { font-size: 24px; }
.dest p { font-size: 15px; color: rgba(255, 255, 255, 0.86); margin-top: 4px; }
.dest__actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.dest__actions button, .dest__actions a {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; border: 0;
}
.dest__search { background: var(--yellow); color: var(--ink); }
.dest__search:hover { background: var(--yellow-hover); }
.dest__wa { background: rgba(255, 255, 255, 0.16); color: #fff; backdrop-filter: blur(4px); }
.dest__wa:hover { background: rgba(255, 255, 255, 0.28); }

/* Consultor */
.consult { background: var(--yellow); padding: 72px 0; }
.consult__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.consult__media img { border-radius: 20px; aspect-ratio: 5 / 4; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.consult__text h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.consult__text > p { font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: baseline; font-weight: 500; }
.checks i {
  flex: 0 0 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--ink); color: var(--yellow); font-size: 11px; transform: translateY(3px);
}
.consult__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Como funciona */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--paper); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.steps__n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--ink); color: var(--yellow); font-weight: 700; font-size: 18px; margin-bottom: 14px;
}
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 16px; }

/* Dúvidas */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; font-size: 18px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow-soft); font-size: 20px; line-height: 1;
}
.faq details[open] summary::after { content: '–'; background: var(--yellow); }
.faq details p { padding: 0 20px 20px; color: var(--ink-2); }

/* Rodapé */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.85); padding: 56px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer__brand img { width: 170px; height: auto; }
.footer__tagline { margin-top: 12px; color: var(--yellow); font-weight: 600; }
.footer h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; color: rgba(255, 255, 255, 0.85); }
.footer a:hover { color: var(--yellow); }
.footer i { width: 20px; }
.footer p + p { margin-top: 8px; }
.footer__legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px; color: rgba(255, 255, 255, 0.6);
}

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; font-size: 32px; text-decoration: none;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .topbar__nav { display: none; }
  .topbar__cta { margin-left: auto; }
  .trust__grid, .steps { grid-template-columns: 1fr; }
  .consult__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .topbar__inner { height: 64px; gap: 12px; }
  .topbar__logo img { width: 128px; }
  .topbar__cta span { display: none; }
  .topbar__cta { width: 44px; min-height: 44px; padding: 0; }
  .hero { padding-top: 36px; }
  .hero__bg { bottom: 220px; }
  .hero__content { padding-bottom: 24px; }
  .search { padding: 6px 4px 14px; border-radius: 16px; }
  .search__panels { padding: 14px 8px 0; }
  .tab { min-width: 80px; padding: 8px 8px 6px; font-size: 13px; }
  .campos { gap: 8px; }
  .f-place, .f-place.f-wide, .f-pax, .btn-search { flex: 1 1 100%; }
  .f-date, .f-time, .f-cupom { flex: 1 1 calc(50% - 4px); }
  .pax_container { left: 0; right: auto; width: 100%; max-width: none; }
  .autoComplete_wrapper > ul { max-width: calc(100vw - 40px); }
  .dest-grid { grid-template-columns: 1fr; }
  .dest { min-height: 280px; }
  .section { padding: 56px 0; }
  .consult { padding: 56px 0; }
  .wa-float { width: 54px; height: 54px; font-size: 28px; right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Carros: local em linha própria, datas e horários abaixo */
#vehicle .f-place { flex: 1 1 calc(50% - 5px); }
#vehicle .f-date { flex: 1.2 1 140px; }
#vehicle .f-time { flex: 1 1 120px; }
@media (max-width: 640px) {
  #vehicle .f-place { flex: 1 1 100%; }
  #vehicle .f-date, #vehicle .f-time { flex: 1 1 calc(50% - 4px); }
}
