/* =========================================================
   Simulador de reserva, "Meu roteiro", roteiros prontos e
   aviso de mar ruim (comportamento em roteiro.js)
   ========================================================= */

/* ---------- campos compartilhados ---------- */
.booker input[type="date"], .roteiro input[type="date"] {
  width: 100%; min-width: 0; padding: 0.75rem 0.9rem; border-radius: 12px; border: 1.5px solid var(--sand-3);
  background: var(--sand); font: inherit; color: var(--ink); transition: border-color var(--dur), box-shadow var(--dur);
}
.booker input[type="date"]:focus, .roteiro input[type="date"]:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 4px rgba(0, 161, 216, 0.16); }
.booker label > span, .roteiro label > span { display: block; font-size: var(--text-xs); font-weight: 700; color: var(--ink-2); margin-bottom: 0.35rem; }

.stepper { display: flex; align-items: center; gap: 0.5rem; }
.stepper__label { flex: 1; font-size: var(--text-sm); font-weight: 700; }
.stepper button {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white);
  font-size: 1.2rem; font-weight: 700; line-height: 1; display: grid; place-items: center;
  transition: background var(--dur), color var(--dur), transform 120ms ease;
}
.stepper button:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.stepper button:active:not(:disabled) { transform: scale(0.92); }
.stepper button:disabled { opacity: 0.3; cursor: not-allowed; }
.stepper output { min-width: 2ch; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); }

/* ---------- simulador (no modal) ---------- */
.bring { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.bring li { padding: 0.4em 0.8em; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--sand-3); font-size: var(--text-sm); font-weight: 600; }

.sea-tip { display: flex; gap: 0.7rem; align-items: flex-start; margin-top: 1.4rem; padding: 0.9rem 1rem; border-radius: var(--r-md); background: var(--foam); color: var(--ocean-ink); font-size: var(--text-sm); font-weight: 600; }
.sea-tip .icon { width: 22px; height: 22px; flex: none; }

.booker {
  margin-top: 1.6rem; padding: 1.3rem; border-radius: 18px; background: var(--white);
  border: 2.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
}
.booker h3 { font-size: var(--text-xl); margin-bottom: 1rem; }
.booker__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1rem 1.4rem; align-items: end; }
.booker__row [data-booker-steppers] { display: grid; gap: 0.5rem; }
@media (max-width: 520px) { .booker__row { grid-template-columns: 1fr; } }

.booker__est { margin-top: 1.1rem; padding-top: 1rem; border-top: 1.5px dashed var(--sand-3); }
.booker__est small { display: block; margin-top: 0.3rem; font-size: var(--text-xs); color: var(--ink-3); }
.booker__calc { font-size: var(--text-sm); color: var(--ink-2); }
.booker__total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.booker__total span { font-size: var(--text-sm); font-weight: 700; }
.booker__total strong { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.booker__note { margin-top: 0.6rem; font-size: var(--text-xs); color: var(--ink-3); }
.booker__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.1rem; }
.booker__actions .btn--brutal { flex: 1 1 220px; }
.btn.is-added { --bg: var(--foam); --fg: var(--ocean-ink); border-color: transparent; }
/* com o simulador, o modal só mantém o botão de dúvida */
.xd-book:not(:empty) + .xd-actions { margin-top: 0.8rem; }

/* ---------- botão "Meu roteiro" ---------- */
.roteiro-pill {
  position: fixed; left: clamp(14px, 2vw, 28px); bottom: clamp(20px, 2.4vw, 34px); z-index: 60;
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.75rem 0.8rem 0.75rem 1rem;
  border-radius: var(--r-pill); background: var(--ink); color: var(--white); font-weight: 700; font-size: var(--text-sm);
  box-shadow: 4px 4px 0 var(--ocean); transition: transform 140ms ease, box-shadow 140ms ease;
}
.roteiro-pill:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ocean); }
.roteiro-pill .icon { width: 20px; height: 20px; }
.roteiro-pill em { font-style: normal; min-width: 26px; height: 26px; padding-inline: 0.3em; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--coral); font-size: var(--text-xs); }
.roteiro-pill.is-pulse { animation: pill-pulse 600ms var(--ease-spring); }
@keyframes pill-pulse { 40% { transform: scale(1.12); } }

/* ---------- painel "Meu roteiro" ---------- */
.roteiro {
  margin: 0 0 0 auto; width: min(460px, 100%); height: 100dvh; max-height: none; max-width: 100%;
  padding: 1.4rem clamp(1rem, 3vw, 1.6rem) 2rem; background: var(--sand); overflow-y: auto; overscroll-behavior: contain;
  box-shadow: var(--shadow-lg);
}
.roteiro[open] { animation: sheet-in 420ms var(--ease-out); }
.roteiro[open]::backdrop { animation: fade-in 300ms ease; }
@keyframes sheet-in { from { transform: translateX(40px); opacity: 0; } }
.roteiro__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.roteiro__head h2 { font-size: var(--text-2xl); }
.roteiro__lead { margin: 0.5rem 0 1.2rem; color: var(--ink-2); font-size: var(--text-sm); }
.roteiro__list { display: grid; gap: 0.6rem; }
.roteiro__item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 0.8rem; align-items: center; padding: 0.55rem; border-radius: var(--r-md); background: var(--white); box-shadow: var(--shadow-sm); }
.roteiro__item img { width: 64px; height: 52px; object-fit: cover; border-radius: 10px; }
.roteiro__item strong { display: block; font-size: var(--text-sm); line-height: 1.25; }
.roteiro__item small { font-size: var(--text-xs); color: var(--ink-3); }
.roteiro__item .round-btn { width: 36px; height: 36px; }
.roteiro__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1.4rem; }
.roteiro__people { display: grid; gap: 0.5rem; margin-top: 1rem; }
.roteiro__actions { display: grid; gap: 0.8rem; justify-items: center; margin-top: 1.1rem; }
.roteiro__actions .btn { width: 100%; }

/* ---------- roteiros prontos ---------- */
.combos { margin-top: clamp(3rem, 5vw, 4.5rem); }
.combos__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.6rem 2rem; margin-bottom: 1.4rem; }
.combos__title { font-size: var(--text-2xl); }
.combos__head p { max-width: 52ch; color: var(--ink-2); font-size: var(--text-sm); }
/* até 760px a grade vira carrossel ([data-rail] em sections.css) */
@media (min-width: 761px) { .combos__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 1.6vw, 1.6rem); } }
@media (max-width: 1000px) and (min-width: 761px) { .combos__grid { grid-template-columns: 1fr 1fr; } }
.combo { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-sm); overflow: hidden; }
.combo__imgs { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3px; height: 150px; }
.combo__imgs img { width: 100%; height: 100%; object-fit: cover; }
.combo__imgs:has(> :nth-child(2):last-child) { grid-template-columns: 1.4fr 1fr; }
.combo__body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.2rem 1.3rem 1.3rem; flex: 1; }
.combo__days { font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); }
.combo h4 { font-size: var(--text-xl); }
.combo__body > p:not([class]) { font-size: var(--text-sm); color: var(--ink-2); }
.combo__list { display: grid; gap: 0.25rem; counter-reset: combo; margin: 0.3rem 0; }
.combo__list li { counter-increment: combo; display: flex; gap: 0.5rem; align-items: baseline; font-size: var(--text-sm); font-weight: 600; }
.combo__list li::before { content: counter(combo); width: 1.4rem; height: 1.4rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--foam); color: var(--ocean-ink); font-size: 0.7rem; font-weight: 800; }
.combo__list .linklike { text-align: left; text-decoration: underline; text-decoration-color: var(--sand-3); text-underline-offset: 3px; }
.combo__list .linklike:hover { text-decoration-color: var(--ocean); color: var(--ocean-ink); }
.combo__price { margin-top: auto; padding-top: 0.6rem; font-size: var(--text-sm); color: var(--ink-3); font-weight: 600; }
.combo .btn { align-self: flex-start; }
@media (max-width: 760px) { .combos__grid > .combo { flex-basis: 86%; } }

/* ---------- aviso de mar ruim ---------- */
.sea-band {
  display: flex; gap: 1.1rem; align-items: center; margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.1rem, 2vw, 1.5rem) clamp(1.1rem, 2.4vw, 2rem); border-radius: var(--r-lg);
  background: var(--foam); color: var(--ocean-ink);
}
.sea-band__icon { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ocean); color: var(--white); }
.sea-band__icon .icon { width: 26px; height: 26px; }
.sea-band h3 { font-size: var(--text-lg); color: var(--ink); margin-bottom: 0.2rem; }
.sea-band p { font-size: var(--text-sm); }
@media (max-width: 520px) { .sea-band { align-items: flex-start; } .sea-band__icon { width: 42px; height: 42px; } }
