/* ==========================================================================
   Site Público — Chalé Vibe Roots (Paraty, RJ)
   Identidade praiana & roots: água turquesa, areia clara, mar profundo e verde
   Tokens e componentes base vêm de tokens.css e components.css
   ========================================================================== */

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 20;
}

main {
  overflow-x: clip;
}

section {
  position: relative;
  height: auto;
  overflow-x: clip;
  padding: clamp(var(--sp-12), 7vw, var(--sp-18)) 0;
}

@media (max-width: 640px) {
  .wrap {
    padding-inline: 16px;
    min-width: 0;
    max-width: 100%;
  }
}

.sec-base {
  background: var(--bg);
}

.sec-alt {
  background: var(--bg-alt);
}

.sec-sand {
  background: var(--bg-sand);
}

.lead {
  color: var(--muted);
  max-width: 64ch;
  margin-top: -4px;
  margin-bottom: var(--sp-6);
}

/* ==========================================================================
   Cabeçalho
   ========================================================================== */
header.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 15;
  width: 100%;
  max-width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

header.top .wrap {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-width: 0;
  max-width: 100%;
  min-height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-size: var(--text-md);
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  min-width: 0;
}

header.top nav {
  display: none;
}

@media (min-width: 820px) {
  header.top nav {
    display: block;
  }
}

header.top nav ul {
  display: flex;
  gap: var(--sp-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

header.top nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: 500;
  white-space: nowrap;
}

header.top nav a:hover {
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
  flex-shrink: 0;
}

.header-cta {
  white-space: nowrap;
}

.theme-btn {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  header.top .wrap {
    padding-inline: 12px;
    gap: 8px;
    min-height: 60px;
  }

  .logo {
    font-size: clamp(0.95rem, 4.2vw, 1.125rem);
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
  }

  .header-actions {
    gap: 6px;
  }

  .header-cta {
    padding: 7px 10px;
    font-size: 0.8125rem;
    min-height: 34px;
  }

  .theme-btn {
    width: 34px;
    height: 34px;
  }
}

.theme-btn:hover {
  border-color: var(--brand);
}

/* ==========================================================================
   Hero com onda única e barra de reserva elevada
   ========================================================================== */
@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  position: relative;
  color: #ffffff;
  padding: clamp(92px, 14vw, 128px) 0 0;
  min-height: clamp(540px, 78vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(155deg, var(--piscina) 0%, var(--turquesa) 38%, var(--mar) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.hero-video.is-ready {
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(7, 59, 76, 0.2) 0%,
    rgba(7, 59, 76, 0.5) 52%,
    rgba(7, 59, 76, 0.9) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  min-width: 0;
  padding-top: var(--sp-6);
  padding-bottom: clamp(72px, 10vw, 108px);
  display: grid;
  gap: var(--sp-6);
}

@media (max-width: 767px) {
  .hero {
    padding-top: clamp(92px, 14vw, 128px);
  }

  .hero-inner {
    padding-top: var(--sp-4);
  }
}

.hero-copy {
  max-width: 44rem;
  min-width: 0;
  animation: heroRise 0.55s ease-out both;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 var(--sp-3);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(7, 59, 76, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(243, 250, 250, 0.96);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-copy h1 {
  color: #ffffff;
  font-size: clamp(2.15rem, 5.4vw, 3.75rem);
  line-height: 1.08;
  max-width: 17ch;
  margin-bottom: var(--sp-3);
}

.hero-sub {
  color: rgba(243, 250, 250, 0.94);
  font-size: clamp(var(--text-base), 2vw, var(--text-md));
  max-width: 54ch;
  margin: 0;
}

.hero-bar {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: end;
  min-width: 0;
  max-width: 100%;
  background: var(--surface);
  color: var(--ink);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-elevated);
}

@media (min-width: 780px) {
  .hero-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    padding: var(--sp-4) var(--sp-6);
    border-radius: var(--r-lg);
  }
}

.hero-field {
  margin: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

#hero-booking input[type="date"],
#f input[type="date"],
input[type="date"] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.hero-bar-btn {
  min-height: 44px;
  white-space: nowrap;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(44px, 6vw, 84px);
  z-index: 3;
  display: block;
  pointer-events: none;
}

.hero-wave path {
  fill: var(--bg-sand);
}

/* ==========================================================================
   Resumo rápido (sobre fundo Areia, sem cartões repetidos)
   ========================================================================== */
.answer-band {
  display: grid;
  gap: var(--sp-6);
}

.answer-lead {
  font-size: clamp(var(--text-md), 2vw, var(--text-lg));
  line-height: 1.45;
  color: var(--ink);
  max-width: 60ch;
  margin: 0;
}

dl.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4) var(--sp-8);
  margin: 0;
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(7, 59, 76, 0.16);
}

:root[data-theme="dark"] dl.facts {
  border-top-color: var(--line);
}

@media (min-width: 720px) {
  dl.facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fact-item {
  display: grid;
  gap: var(--sp-1);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid rgba(7, 59, 76, 0.12);
}

:root[data-theme="dark"] .fact-item {
  border-bottom-color: var(--line);
}

.fact-item dt {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink);
}

.fact-item dd {
  margin: 0;
  color: var(--muted);
}

/* Sobre Areia, usamos contraste ainda maior no muted */
.sec-sand .fact-item dd {
  color: var(--ink);
  opacity: 0.86;
}

/* ==========================================================================
   A casa e comodidades (texto estreito à esquerda + lista com ícones à direita)
   ========================================================================== */
.casa-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: start;
}

@media (min-width: 860px) {
  .casa-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--sp-12);
  }
}

.casa-texto {
  max-width: 48ch;
}

.casa-texto h3 {
  margin: var(--sp-5) 0 var(--sp-2);
  font-size: var(--text-md);
  line-height: 1.35;
  color: var(--ink);
}

.casa-texto p {
  margin: 0 0 var(--sp-4);
  color: var(--ink);
}

.casa-regra-resumo {
  color: var(--muted);
  border-left: 3px solid var(--wood);
  padding-left: var(--sp-4);
  margin-top: var(--sp-6);
}

.casa-comodidades h3 {
  margin-bottom: var(--sp-4);
  font-size: var(--text-lg);
}

.amen-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 var(--sp-6);
}

@media (min-width: 560px) {
  .amen-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.amen-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.amen-icon {
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   Galeria em mosaico assimétrico (24px na destaque, 12px nas menores)
   ========================================================================== */
.galeria-mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 640px) {
  .galeria-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .galeria-mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
  }

  .gal-item--lead {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gal-item--lead .gal-btn,
  .gal-item--lead .gal-placeholder {
    border-radius: var(--r-lg);
    height: 100%;
  }
}

.gal-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: auto;
}

.gal-btn {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-soft);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.gal-btn picture,
.gal-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gal-btn img {
  transition: transform 0.25s ease;
}

.gal-btn:hover img {
  transform: scale(1.03);
}

.gal-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: var(--sp-2);
  width: 100%;
  min-height: 200px;
  height: auto;
  padding: var(--sp-6) var(--sp-4);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  background: linear-gradient(145deg, var(--surface-soft) 0%, var(--bg) 100%);
}

.gal-placeholder svg {
  color: var(--brand);
}

.gal-placeholder-title {
  font-weight: 600;
  font-size: var(--text-base);
}

.gal-placeholder-note {
  font-size: var(--text-xs);
  color: var(--muted);
}

.gal-item figcaption {
  margin-top: var(--sp-2);
  font-size: var(--text-xs);
  line-height: 1.4;
  color: var(--muted);
  position: static;
}

/* ==========================================================================
   Localização (tabela com linhas finas + mapa)
   ========================================================================== */
.local-grid {
  display: grid;
  gap: var(--sp-8);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.local-grid > *,
.casa-layout > *,
.answer-band > * {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 860px) {
  .local-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.dist-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.dist-table {
  border-collapse: collapse;
  width: 100%;
}

.dist-table th,
.dist-table td {
  text-align: left;
  padding: var(--sp-3) var(--sp-2);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.dist-table thead th {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--muted);
  border-bottom-width: 2px;
}

.dist-table th:last-child,
.dist-table td:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--brand);
}

@media (max-width: 640px) {
  .dist-table th:last-child,
  .dist-table td:last-child {
    white-space: normal;
  }
}

.map-box {
  display: grid;
  gap: var(--sp-4);
  min-width: 0;
  max-width: 100%;
}

.map-frame-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 16 / 10;
  min-height: 280px;
}

.map-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

@media (max-width: 640px) {
  .map-frame-wrap,
  .map-frame {
    min-height: 205px;
  }
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* ==========================================================================
   Reserva (calendário, formulário e resumo fixo)
   ========================================================================== */
.book {
  box-sizing: border-box;
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.book > *,
.book-left > * {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 860px) {
  .book {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .resumo-panel {
    position: sticky;
    top: calc(84px + env(safe-area-inset-top, 0px));
  }
}

.book-left {
  display: grid;
  gap: var(--sp-6);
  min-width: 0;
  max-width: 100%;
}

.panel,
.form-panel,
.resumo-panel,
.form-card,
.resumo-card {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-6);
}

.resumo-panel {
  box-shadow: var(--shadow-elevated);
}

@media (max-width: 640px) {
  .panel {
    padding: var(--sp-4);
  }

  .cal-weekdays,
  .cal-grid {
    gap: 3px;
  }

  .cal-day {
    min-height: 34px;
    padding: 0;
  }
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}

.cal-nav {
  background: var(--surface-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  width: 38px;
  height: 38px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.cal-weekdays span {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
  padding-bottom: var(--sp-1);
}

.cal-day {
  aspect-ratio: 1 / 1;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--surface-soft);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.cal-day:hover:not(:disabled) {
  border-color: var(--brand);
}

.cal-day.is-season {
  border-color: var(--warn);
}

.cal-day.is-in-range {
  background: color-mix(in srgb, var(--piscina) 24%, var(--surface-soft));
}

.cal-day.is-selected {
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
}

.cal-day.is-occupied {
  background: repeating-linear-gradient(
    -45deg,
    var(--surface-soft),
    var(--surface-soft) 4px,
    var(--line) 4px,
    var(--line) 8px
  );
  color: var(--muted);
  text-decoration: line-through;
  cursor: not-allowed;
}

.cal-day:disabled:not(.is-occupied) {
  opacity: 0.35;
  cursor: not-allowed;
}

.cal-empty {
  aspect-ratio: 1 / 1;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-3);
  font-size: var(--text-xs);
  color: var(--muted);
}

.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.dot-sel {
  background: var(--brand);
}

.dot-occ {
  background: var(--line);
  border: 1px solid var(--muted);
}

.dot-alt {
  background: var(--surface-soft);
  border: 2px solid var(--warn);
}

.cal-status {
  margin: var(--sp-2) 0 0;
  font-size: var(--text-xs);
  color: var(--muted);
  min-height: 1.2em;
}

label.check-label {
  font-weight: 400;
  font-size: var(--text-base);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
}

label.check-label input {
  width: 20px;
  height: 20px;
  min-height: auto;
  margin-top: 3px;
  flex-shrink: 0;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-3);
  min-width: 0;
  max-width: 100%;
}

.row > *,
.form-panel,
.form-panel label {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 520px) {
  .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#resumo {
  font-variant-numeric: tabular-nums;
}

#resumo .res-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px dashed var(--line);
}

#resumo .res-label {
  font-size: var(--text-base);
}

#resumo .res-sub {
  display: block;
  font-size: var(--text-xs);
  color: var(--muted);
}

#resumo .res-val {
  white-space: nowrap;
  font-weight: 600;
}

#resumo .tot {
  font-weight: 700;
  font-size: var(--text-md);
  border-bottom: 0;
  padding-top: var(--sp-3);
}

.res-aviso-min {
  color: var(--danger);
  font-size: var(--text-xs);
  font-weight: 600;
  margin: var(--sp-2) 0 0;
}

.resumo-note {
  color: var(--muted);
  margin: var(--sp-3) 0 0;
}

#msg {
  min-height: 1.4em;
  color: var(--brand);
  font-weight: 600;
  margin: 0;
}

#msg.is-error {
  color: var(--danger);
}

/* ==========================================================================
   Dúvidas (acordeão em cartões sobre foto do Centro Histórico de Paraty)
   ========================================================================== */
#faq {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 96px);
  background: var(--bg);
}

.faq-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  z-index: 0;
  pointer-events: none;
}

#faq::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(247, 245, 240, 0.72) 0%,
    rgba(247, 245, 240, 0.45) 50%,
    rgba(247, 245, 240, 0.78) 100%
  );
  pointer-events: none;
}

#faq .wrap,
.faq-wrap {
  position: relative;
  z-index: 2;
  max-width: 820px;
  min-width: 0;
}

#faq h2 {
  color: var(--ink);
  margin-bottom: var(--sp-6);
}

.faq-list {
  display: grid;
  gap: var(--sp-3);
  border-top: 0;
}

#faq details {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(7, 59, 76, 0.14);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-6);
  box-shadow: var(--shadow);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #faq::after {
    background: rgba(12, 24, 26, 0.8);
  }

  :root:not([data-theme="light"]) #faq details {
    background: rgba(18, 32, 34, 0.92);
    border-color: var(--line);
  }
}

:root[data-theme="dark"] #faq::after {
  background: rgba(12, 24, 26, 0.8);
}

:root[data-theme="dark"] #faq details {
  background: rgba(18, 32, 34, 0.92);
  border-color: var(--line);
}

@media (max-width: 640px) {
  #faq details {
    padding: var(--sp-4);
  }
}

details {
  border-bottom: 1px solid var(--line);
  padding: var(--sp-4) 0;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-md);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--brand);
  line-height: 1;
  flex-shrink: 0;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: var(--sp-3) 0 0;
  color: var(--muted);
}

/* ==========================================================================
   Rodapé, barra fixa móvel e WhatsApp discreto
   ========================================================================== */
footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: var(--sp-12) 0 var(--sp-18);
  font-size: var(--text-base);
}

body.has-mobile-bar footer {
  padding-bottom: 112px;
}

.footer-grid {
  display: grid;
  gap: var(--sp-4);
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

.footer-copy {
  margin: var(--sp-2) 0 0;
  opacity: 0.8;
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(232, 243, 243, 0.16);
}

.footer-legal a,
.footer-link-btn {
  color: var(--footer-link);
  font-size: var(--text-xs);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link-btn {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-sans);
  cursor: pointer;
}

.footer-link-btn:hover {
  color: #ffffff;
}

/* Modal acessível de Preferências de uso */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: var(--sp-4);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 59, 76, 0.72);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  box-shadow: var(--shadow-dialog);
  display: grid;
  gap: var(--sp-4);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.modal-head h2 {
  margin: 0;
  font-size: var(--text-lg);
}

.modal-close {
  background: var(--surface-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal-desc,
.pref-info {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-xs);
}

.pref-fieldset {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  margin: 0;
  display: grid;
  gap: var(--sp-2);
}

.pref-fieldset legend {
  padding: 0 var(--sp-2);
  font-weight: 600;
  font-size: var(--text-xs);
}

.pref-radio {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 500;
  font-size: var(--text-base);
  cursor: pointer;
}

.pref-radio input {
  width: 18px;
  height: 18px;
  min-height: auto;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--sp-2);
}

.pref-status {
  margin: 0;
  min-height: 1.2em;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--brand);
}

/* Páginas legais (/privacidade e /termos) */
.legal-wrap {
  max-width: 760px;
}

.legal-body {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}

.legal-body h2 {
  margin-top: var(--sp-4);
  font-size: var(--text-lg);
}

.legal-body p,
.legal-body li {
  color: var(--ink);
}

.legal-body ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: var(--sp-2);
}

.legal-back {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.footer-address {
  font-style: normal;
}

.footer-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
}

footer a {
  color: var(--footer-link);
}

footer a:hover {
  color: #ffffff;
}

.btn-footer {
  background: transparent;
  color: #ffffff;
  border-color: rgba(232, 243, 243, 0.35);
}

.btn-footer:hover:not(:disabled) {
  background: rgba(232, 243, 243, 0.14);
  border-color: #ffffff;
  color: #ffffff;
}

.mobile-book-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-elevated);
}

.mbb-info {
  display: grid;
  min-width: 0;
}

.mbb-info strong {
  font-size: var(--text-base);
  line-height: 1.2;
}

.mbb-sub {
  font-size: var(--text-xs);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa {
  position: fixed;
  right: var(--sp-4);
  bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--mar);
  color: #ffffff;
  border: 1px solid rgba(232, 243, 243, 0.22);
  border-radius: var(--r-pill);
  padding: 10px var(--sp-4);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-xs);
  z-index: 24;
  box-shadow: var(--shadow-elevated);
}

.wa:hover {
  background: var(--turquesa);
  color: #ffffff;
}

body.has-mobile-bar .wa {
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}

/* ==========================================================================
   Lightbox acessível
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: var(--sp-4);
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 59, 76, 0.92);
}

.lb-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-2);
}

.lb-figure {
  margin: 0;
  text-align: center;
}

.lb-figure img {
  max-height: 76vh;
  width: auto;
  max-width: 100%;
  border-radius: var(--r-md);
  display: block;
  margin: 0 auto;
}

.lb-meta {
  color: #ffffff;
  margin-top: var(--sp-3);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--text-xs);
}

.lb-counter {
  opacity: 0.85;
  white-space: nowrap;
}

.lb-close,
.lb-nav {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-pill);
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lb-close {
  position: absolute;
  top: -52px;
  right: 0;
  font-size: 1.1rem;
}

@media (max-width: 600px) {
  .lb-dialog {
    grid-template-columns: 1fr;
  }

  .lb-nav {
    position: absolute;
    bottom: -56px;
  }

  .lb-prev {
    left: 0;
  }

  .lb-next {
    right: 0;
  }
}

/* ==========================================================================
   Página de retorno do pagamento (/reserva/retorno)
   ========================================================================== */
.retorno-sec {
  min-height: 70vh;
  display: grid;
  align-items: center;
}

.retorno-wrap {
  max-width: 720px;
}

.retorno-card {
  display: grid;
  gap: var(--sp-4);
  justify-items: start;
}

.retorno-card > * {
  width: 100%;
}

.retorno-card > .badge {
  width: auto;
}

.ret-resumo {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-2) 0;
}

.ret-resumo .res-row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px dashed var(--line);
}

.ret-resumo .res-row:last-child {
  border-bottom: 0;
}

.ret-instrucoes {
  background: var(--bg-sand);
  padding: var(--sp-4);
  border-radius: var(--r-md);
}

.ret-instrucoes h3 {
  margin-bottom: var(--sp-2);
}

.ret-lista {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: var(--sp-2);
}

.ret-acoes {
  margin-top: var(--sp-1);
}
