/* ==========================================================================
   Vila Galé Eco Resort do Cabo — estilos globais (compartilhados por todas as páginas)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Paleta (mesma do site Vila Galé Touros) */
  --brand-900: #12342d;   /* verde-escuro: títulos, rodapé */
  --brand-700: #0a574b;
  --brand-600: #0b6557;   /* verde principal: botões, links */
  --brand-400: #009ea1;   /* turquesa: linhas, ícones, destaques */
  --teal-text: #007376;   /* turquesa para textos pequenos (≥ 4,5:1 sobre branco, cinza e areia) */
  --teal-light: #4dd8cd;  /* turquesa claro sobre fundos escuros */
  --mint-200: #cfe3dd;
  --mint-100: #edf4f1;

  /* Neutros quentes */
  --sand-50: #f4f3f2;     /* fundo da página */
  --sand-100: #efe7d8;    /* faixas areia */
  --sand-200: #e2dccf;    /* bordas */

  /* Destaques */
  --accent: #c4501e;      /* laranja dos botões e selos com texto branco (4,65:1; o #eb6c36 do Touros dá 3,1:1) */
  --accent-700: #a9441a;
  --accent-bright: #eb6c36; /* laranja original, só para detalhes sem texto */
  --gold: #ffc000;        /* amarelo: detalhes sobre fotos */

  /* Texto */
  --text: #414141;
  --muted: #636363;       /* ≥ 4,5:1 também sobre a faixa areia */
  --white: #fff;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(18, 52, 45, 0.06);
  --shadow: 0 10px 30px rgba(18, 52, 45, 0.1);
  --shadow-lg: 0 20px 50px rgba(18, 52, 45, 0.16);

  --container: 1200px;
  --gutter: 20px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Tipografia padrão: H1 64px, H2 34px, texto 15px e textos pequenos 12px.
     No celular H1 e H2 diminuem aos poucos (clamp) para caber sem quebrar palavras. */
  --fs-h1: clamp(2.25rem, 1.2rem + 4.2vw, 4rem);
  --fs-h2: clamp(1.625rem, 1.2rem + 1.6vw, 2.125rem);
  --fs-p: 15px;
  --fs-small: 12px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-p);
  line-height: 1.65;
  color: var(--text);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; color: var(--brand-900); font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
p { text-wrap: pretty; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 3px; border-radius: 4px; }

.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;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--brand-900); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 900px; }
.center { text-align: center; margin-top: 40px; }

/* ---------- Seções ---------- */
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 48px 0; }
.section--sand { background: var(--sand-100); }
.section--soft { background: var(--mint-100); }
/* Seção verde-escura sólida (texto branco), como no site do Touros */
.section--dark { background: var(--brand-900); color: rgba(255, 255, 255, 0.88); }
.section--dark .section-title { color: var(--white); }
.section--dark .section-head > p { color: rgba(255, 255, 255, 0.82); }
.section--dark > .container > * > .eyebrow { color: var(--teal-light); }
.section--dark > .container > * > .eyebrow::before { background: var(--teal-light); }
.section--dark .split__text a:not(.btn),
.section--dark .section-head a:not(.btn) { color: var(--teal-light); }
.section--dark .btn--primary { background: var(--white); color: var(--brand-900); }
.section--dark .btn--primary:hover { background: var(--mint-100); }

.section-head { max-width: 860px; margin-bottom: 44px; }
.section-head > p { color: var(--muted); }
.section-title { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-text);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: ''; display: inline-block; width: 22px; height: 2px; background: var(--brand-400);
  vertical-align: middle; margin-right: 10px;
}
.eyebrow--light { color: var(--teal-light); }
.eyebrow--light::before { background: var(--teal-light); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 0.95rem; line-height: 1.2; text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn .icon { width: 18px; height: 18px; }
.btn--sm { padding: 9px 18px; font-size: 0.85rem; white-space: nowrap; }
.btn--primary { background: var(--brand-600); color: var(--white); }
.btn--primary:hover { background: var(--brand-700); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-700); }
.btn--white { background: var(--white); color: var(--brand-700); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--outline { border-color: var(--brand-600); color: var(--brand-600); background: transparent; }
.btn--outline:hover { background: var(--brand-600); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.split__text > .btn { margin-top: 28px; }
.split__text > .mini-cards + .btn { margin-top: 0; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.chip {
  padding: 7px 16px; border-radius: 999px; font-size: 0.8rem; font-weight: 500;
  background: var(--white); color: var(--brand-700); box-shadow: var(--shadow-sm);
}
.chip--outline { background: transparent; border: 1.5px solid var(--sand-200); box-shadow: none; color: var(--text); }
.chips--light .chip {
  background: rgba(255, 255, 255, 0.18); color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45); backdrop-filter: blur(6px);
}

/* ---------- Callout (resposta rápida) ---------- */
.callout {
  background: var(--mint-100); border-left: 4px solid var(--brand-400);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 20px 0;
  font-size: 0.93rem; color: var(--text);
}
.callout strong { color: var(--brand-700); }
.section--soft .callout { background: var(--white); }
/* Callout sobre fundo escuro */
.section--dark .callout,
.callout--dark { background: rgba(255, 255, 255, 0.08); border-left-color: var(--teal-light); color: rgba(255, 255, 255, 0.9); }
.section--dark .callout strong,
.callout--dark strong { color: var(--teal-light); }
.section--sand .callout { background: var(--sand-50); border-left-color: var(--brand-400); }

/* ---------- Layout dividido texto + imagem ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.split--reverse { grid-template-columns: 0.9fr 1.1fr; }
.split__media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Grades de fatos e mini cards ---------- */
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.split .fact-grid { grid-template-columns: repeat(2, 1fr); }
.fact {
  background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-sm);
  padding: 14px; display: flex; flex-direction: column; gap: 4px;
}
.fact strong { color: var(--brand-900); font-size: 0.95rem; line-height: 1.3; }
.fact span { color: var(--muted); font-size: 0.8rem; line-height: 1.4; text-wrap: balance; }

.mini-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0 0; }
.mini-cards--2 { grid-template-columns: repeat(2, 1fr); margin-bottom: 28px; }
.mini-card {
  background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(18, 52, 45, 0.06);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mini-card .icon-badge { margin-bottom: 12px; }
.mini-card h3 { font-size: 1rem; margin-bottom: 6px; color: var(--brand-700); }
.mini-card p { font-size: var(--fs-p); color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- Ícones (biblioteca em /img/icons.svg) ---------- */
.icon {
  width: 24px; height: 24px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
/* Selo quadrado com ícone (cards, mini cards, distâncias...) */
.icon-badge {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center;
  background: var(--mint-100); color: var(--brand-600);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.45s var(--ease);
}
.icon-badge .icon { width: 26px; height: 26px; }
.icon-badge--sm { width: 40px; height: 40px; border-radius: 12px; }
.icon-badge--sm .icon { width: 21px; height: 21px; }
/* No hover do card, o selo "acende" */
:is(.feature-card, .mini-card, .trust-card, .distance, .attraction, .highlight-card, .location-card):hover .icon-badge {
  background: var(--brand-600); color: var(--white); transform: rotate(-6deg) scale(1.06);
}

/* ---------- Cards com ícone ---------- */
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.feature-card {
  position: relative; background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--brand-400); display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.feature-cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .feature-cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-cards--4 { grid-template-columns: 1fr; } }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card__icon { margin-bottom: 18px; }
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { color: var(--muted); font-size: var(--fs-p); flex: 1; }
.feature-card a { font-weight: 600; font-size: 0.9rem; }

/* Etapas de um processo: linha tracejada liga os ícones (ordem sem números) */
@media (min-width: 1025px) {
  .feature-cards--steps { gap: 32px; }
  .feature-cards--steps .feature-card:not(:last-child)::after {
    content: ''; position: absolute; top: 54px; left: calc(100% + 4px); width: 24px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--brand-400) 0 5px, transparent 5px 9px);
  }
}

/* Card com foto no topo e ícone sobreposto */
.feature-card--photo { padding: 0; overflow: hidden; border-top: 0; }
.feature-card__media { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mint-200); }
.feature-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.feature-card__media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 52, 45, 0) 55%, rgba(18, 52, 45, 0.35) 100%);
}
.feature-card--photo:hover .feature-card__media img { transform: scale(1.08); }
.feature-card__body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 0 26px 26px; }
.feature-card--photo .feature-card__icon {
  position: relative; z-index: 1; margin: -26px 0 16px; background: var(--white); box-shadow: var(--shadow);
}

/* ---------- Abas / filtros (acomodações, carta de vinhos) ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-tab {
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--mint-200);
  background: var(--white); color: var(--brand-700); font-size: 0.88rem; font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-tab:hover { border-color: var(--brand-400); }
.filter-tab.is-active { background: var(--brand-600); border-color: var(--brand-600); color: var(--white); }
@media (max-width: 480px) {
  .filter-tabs { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); padding-bottom: 4px; scrollbar-width: none; }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab { flex-shrink: 0; }
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--sand-200);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color 0.25s;
}
.faq__item[open] { border-color: var(--brand-400); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 600; color: var(--brand-900); font-size: 0.98rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item 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(--mint-100); color: var(--brand-600); font-size: 1.2rem; font-weight: 500;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--sand-200); }
.faq__item p { padding: 0 22px 20px; margin: 0; color: var(--muted); font-size: var(--fs-p); }

/* ---------- Etiqueta sobre imagem ("Imagem ilustrativa") ---------- */
.room-card__note {
  position: absolute; left: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px;
  background: rgba(18, 52, 45, 0.7); color: var(--white); font-size: 0.7rem;
}
.room-card__note:empty { display: none; }

/* Valores "Não informado" (marcados pelo main.js via [data-na]) */
.is-na { color: var(--muted) !important; font-weight: 400 !important; font-style: italic; }

/* ---------- Janela modal (cardápios, programação de lazer) ---------- */
.modal {
  width: min(760px, 94vw); max-height: 88vh; padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--white); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; }
.modal::backdrop { background: rgba(18, 52, 45, 0.7); }
.modal__head {
  display: flex; justify-content: space-between; gap: 16px; padding: 26px 28px 18px;
  background: var(--sand-50); border-bottom: 1px solid var(--sand-200);
}
.modal__head h2 { font-size: var(--fs-h2); margin-bottom: 4px; }
.modal__meta { margin: 0; font-weight: 600; color: var(--brand-700); font-size: var(--fs-p); }
.modal__info { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-p); }
.modal__close {
  flex-shrink: 0; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--white); color: var(--brand-900); font-size: 1.5rem; line-height: 1; box-shadow: var(--shadow-sm);
}
.modal__body { overflow-y: auto; padding: 8px 28px 28px; }

body.has-dialog { overflow: hidden; }
@media (max-width: 640px) {
  .modal { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .modal__head, .modal__body { padding-left: 18px; padding-right: 18px; }
}

/* ---------- Cards com foto de fundo (home, entretenimento, feriados, outros resorts) ----------
   A foto fica num ::before (zoom suave no hover, sem repintar o card) e o degradê de leitura num ::after. */
.photo-tile { position: relative; isolation: isolate; overflow: hidden; }
.photo-tile::before,
.photo-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.photo-tile::before {
  z-index: -2; background: var(--img) center / cover no-repeat var(--brand-700);
  transition: transform 0.9s var(--ease);
}
.photo-tile::after { background: linear-gradient(180deg, rgba(18, 52, 45, 0) 15%, rgba(18, 52, 45, 0.55) 55%, rgba(18, 52, 45, 0.95) 100%); }
.photo-tile:hover::before { transform: scale(1.08); }

.leisure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.leisure-card {
  min-height: 380px; border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; justify-content: flex-end; color: var(--white);
  box-shadow: var(--shadow); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.leisure-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
/* Selo de vidro com ícone dourado sobre a foto */
.leisure-card__icon {
  width: 50px; height: 50px; margin-bottom: 14px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35); color: var(--gold);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.45s var(--ease);
}
.leisure-card__icon .icon { width: 26px; height: 26px; }
.leisure-card:hover .leisure-card__icon { background: var(--gold); color: var(--brand-900); transform: rotate(-6deg); }
.leisure-card h3 { color: var(--white); font-size: 1.3rem; }
.leisure-card p { font-size: var(--fs-p); color: rgba(255, 255, 255, 0.88); }
.leisure-card a { color: var(--gold); font-weight: 600; font-size: 0.9rem; }

@media (max-width: 640px) {
  .leisure-card { min-height: 300px; }
}

/* ---------- Carrossel (rolagem com snap + setas + barra de progresso) ---------- */
.carousel { position: relative; --per-view: 3; --carousel-gap: 24px; }
.carousel__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--carousel-gap) * (var(--per-view) - 1)) / var(--per-view));
  gap: var(--carousel-gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  padding: 6px 2px 22px; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: 6px; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__btn {
  position: absolute; top: 42%; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--white); color: var(--brand-700); box-shadow: var(--shadow);
  display: grid; place-items: center; transition: transform 0.25s var(--ease), opacity 0.25s, background 0.25s, color 0.25s;
}
.carousel__btn .icon { width: 22px; height: 22px; stroke-width: 2.2; }
.carousel__btn:hover { transform: scale(1.08); background: var(--brand-600); color: var(--white); }
.carousel__btn:disabled { opacity: 0; pointer-events: none; }
.carousel__btn--prev { left: -18px; }
.carousel__btn--next { right: -18px; }
.carousel__progress { height: 4px; margin-top: 6px; border-radius: 999px; background: var(--sand-200); overflow: hidden; }
.carousel__progress span {
  display: block; height: 100%; width: var(--size, 33%); border-radius: inherit; background: var(--brand-400);
  transform: translateX(var(--pos, 0%)); transition: transform 0.2s linear;
}
@media (max-width: 1024px) { .carousel { --per-view: 2; } }
@media (max-width: 640px) {
  .carousel { --per-view: 1; }
  .carousel__track { grid-auto-columns: 86%; }
  .carousel__btn { display: none; }
}

/* ---------- Tabela comparativa (acomodações, hotéis) ---------- */
.table-wrap { border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); background: var(--white); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.compare-table thead th {
  background: var(--brand-600); color: var(--white); text-align: left; font-weight: 600;
  padding: 16px 18px; font-size: 0.82rem; letter-spacing: 0.04em;
}
.compare-table td,
.compare-table tbody th { padding: 14px 18px; border-top: 1px solid var(--sand-200); vertical-align: top; text-align: left; }
.compare-table tbody th { font-weight: 600; white-space: nowrap; }
.compare-table tbody th a { color: var(--brand-900); }
.compare-table tbody th a:hover { color: var(--brand-600); }
.compare-table tbody tr:nth-child(even) { background: var(--sand-50); }
.compare-table tbody tr:hover { background: var(--mint-100); }
.compare-table td:last-child { color: var(--muted); }

/* Tabela vira lista de cartões quando as 5 colunas não cabem */
@media (max-width: 900px) {
  .table-wrap { box-shadow: none; background: transparent; overflow: visible; }
  .compare-table thead { display: none; }
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td { display: block; width: 100%; }
  .compare-table tbody { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .compare-table tr {
    background: var(--white) !important; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
  }
  .compare-table tbody th { background: var(--mint-100); border-top: 0; font-size: 1rem; white-space: normal; }
  .compare-table td { display: flex; justify-content: space-between; gap: 16px; padding: 10px 18px; text-align: right; }
  .compare-table td::before {
    content: attr(data-label); flex-shrink: 0; text-align: left; font-weight: 600; font-size: 0.75rem;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-text); padding-top: 2px;
  }
}

@media (max-width: 600px) {
  .compare-table tbody { grid-template-columns: 1fr; }
  /* Textos longos: rótulo em cima, valor embaixo */
  .compare-table td[data-long] { flex-direction: column; gap: 2px; text-align: left; }
}

/* ---------- Motor de reservas (iframe) ---------- */
/* O motor é um formulário vertical: coluna estreita e fixa para os campos não esticarem */
.booking-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: 64px; align-items: start; }
.booking-engine {
  position: sticky; top: calc(var(--header-h) + 20px);
  width: 100%; max-width: 420px; justify-self: end;
  border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: #038723; /* mesma cor de fundo do motor, evita flash branco ao carregar */
}
.booking-engine iframe {
  display: block; width: 100%; min-height: 460px; border: 0; border-radius: 15px;
  transition: height 0.2s ease;
}
/* Cotação pela central (quando não há motor de hotel + aéreo para o resort) */
.booking-quote { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; color: var(--white); }
.booking-quote h3 { color: var(--white); font-size: 1.3rem; margin: 0; }
.booking-quote p { margin: 0; font-size: var(--fs-p); color: rgba(255, 255, 255, 0.9); }
.booking-quote .btn { width: 100%; justify-content: center; }
.booking-quote small { font-size: var(--fs-small); color: rgba(255, 255, 255, 0.85); }
.booking-quote small a { color: var(--white); text-decoration: underline; }
.benefit-list { display: grid; gap: 12px; margin-top: 24px; }
.benefit {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--white);
  border-radius: var(--radius); border: 1px solid var(--sand-200); box-shadow: var(--shadow-sm);
}
.benefit__icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--mint-100); color: var(--brand-600);
}
.benefit__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { font-size: 1rem; margin: 0 0 2px; }
.benefit p { margin: 0; font-size: var(--fs-p); color: var(--muted); }
@media (max-width: 1024px) {
  .booking-split { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: 40px; }
}
@media (max-width: 860px) {
  .booking-split { grid-template-columns: 1fr; gap: 32px; }
  .booking-engine { position: static; order: -1; justify-self: center; max-width: 460px; } /* no celular o motor vem primeiro */
}

/* ---------- Faixa de confiança (Informações antes da reserva) ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 120px; padding: 22px 22px 24px;
  background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-400); }
.trust-card .icon-badge { margin-bottom: 6px; }
.trust-card--highlight .icon-badge { background: rgba(255, 255, 255, 0.12); color: var(--gold); }
.trust-card h3 { margin: 0; font-size: clamp(0.92rem, 1.1vw, 1.05rem); white-space: nowrap; } /* títulos sempre em 1 linha */
.trust-card h3 a { color: var(--brand-600); }
.trust-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; } /* card inteiro clicável */
.trust-card p { margin: 0; color: var(--text); font-size: var(--fs-p); }
.trust-card--highlight { background: var(--brand-900); border-color: transparent; }
.trust-card--highlight h3 a { color: var(--white); }
.trust-card--highlight p { color: rgba(255, 255, 255, 0.88); }
@media (max-width: 1024px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- Cartão de informações (endereço, contato) ---------- */
.info-card { flex: 1; padding: 24px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(18, 52, 45, 0.06); }
.info-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.info-card > p { color: var(--muted); font-size: var(--fs-p); }
.info-card dl { margin: 0; display: grid; gap: 10px; }
.info-card dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; }
.info-card dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-text); }
.info-card dd { margin: 0; font-size: 0.92rem; font-weight: 500; color: var(--brand-900); }

/* ---------- Mapa ---------- */
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; background: var(--mint-200); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Efeitos de movimento ----------
   .reveal: entra ao rolar (main.js escalona os itens de uma mesma grade com --reveal-delay
   e remove a classe ao terminar, devolvendo ao card as próprias transições de hover). */
.reveal {
  opacity: 0; translate: 0 28px;
  transition: opacity 0.8s var(--ease), translate 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; translate: 0 0; }
/* Linha do eyebrow "desenha" quando o bloco aparece */
.reveal .eyebrow::before { width: 0; transition: width 0.7s var(--ease) 0.25s; }
.reveal.is-visible .eyebrow::before { width: 22px; }

/* Parallax suave das fotos laterais (--parallax definido pelo main.js) */
.split__media img { scale: 1.12; translate: 0 var(--parallax, 0px); will-change: translate; }

/* Imagens com carregamento tardio surgem com fade */
img.is-loading { opacity: 0; }
img.is-loaded { opacity: 1; transition: opacity 0.6s var(--ease); }

/* Card inteiro clicável (assets/js/modules/card-link.js): leva ao mesmo destino do botão do card */
.is-clickable { cursor: pointer; }
/* passar o mouse no card já sublinha o link dele (o efeito de "Links de texto dos cards" abaixo) */
.is-clickable:hover a:not(.btn) { background-size: 100% 2px; }

/* Links de texto dos cards: sublinhado que cresce no hover */
:is(.feature-card, .room-card__body, .leisure-card, .holiday-card, .resort-card, .compare-card, .holiday-mini, .attraction, .location-card) a:not(.btn) {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 2px; transition: background-size 0.35s var(--ease);
}
:is(.feature-card, .room-card__body, .leisure-card, .holiday-card, .resort-card, .compare-card, .holiday-mini, .attraction, .location-card) a:not(.btn):hover { background-size: 100% 2px; }

/* Barra de progresso de leitura no topo (só navegadores com scroll-driven animations) */
@supports (animation-timeline: scroll()) {
  .site-header::after {
    content: ''; position: absolute; left: 0; bottom: -1px; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--brand-400), var(--gold));
    transform-origin: 0 50%; transform: scaleX(0);
    animation: read-progress linear both; animation-timeline: scroll(root);
  }
  @keyframes read-progress { to { transform: scaleX(1); } }
}

/* Transição suave entre páginas (Chrome, Edge e Safari recentes) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; translate: none; }
  .hero::before, .split__media img { translate: none; }
  .site-header::after { display: none; }
}

/* ==========================================================================
   Componentes de página compartilhados (hero, quartos, faixa de reserva)
   ========================================================================== */
/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px 0 40px;
  isolation: isolate; overflow: hidden;
  background: var(--brand-900);
  color: var(--white);
}
/* Foto em camada própria: parallax (translate via --parallax, main.js) + zoom de entrada (scale) */
.hero::before {
  content: ''; position: absolute; inset: -12% 0 -4%; z-index: -2;
  background: var(--hero-img) center / cover no-repeat;
  translate: 0 var(--parallax, 0px); scale: 1.04;
  animation: hero-zoom 1.8s var(--ease) both;
  will-change: translate;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18, 52, 45, 0.72) 0%, rgba(18, 52, 45, 0.35) 55%, rgba(18, 52, 45, 0.05) 100%),
    linear-gradient(180deg, rgba(18, 52, 45, 0.05) 0%, rgba(18, 52, 45, 0.25) 50%, rgba(18, 52, 45, 0.75) 100%);
}
@keyframes hero-zoom { from { scale: 1.14; } to { scale: 1.04; } }

/* Conteúdo do hero entra em sequência */
.hero__content > *,
.hero .hero-stats { animation: rise-in 0.9s var(--ease) both; }
.hero__content > :nth-child(2) { animation-delay: 0.08s; }
.hero__content > :nth-child(3) { animation-delay: 0.16s; }
.hero__content > :nth-child(4) { animation-delay: 0.24s; }
.hero__content > :nth-child(5) { animation-delay: 0.32s; }
.hero .hero-stats { animation-delay: 0.45s; }
@keyframes rise-in { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
.hero__content { max-width: var(--container); }
.hero__title {
  color: var(--white); font-size: var(--fs-h1); font-weight: 800; line-height: 1.08;
  margin: 22px 0 18px; letter-spacing: -0.02em; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}
.hero__lead { max-width: 640px; font-size: var(--fs-p); color: rgba(255, 255, 255, 0.95); text-shadow: 0 1px 12px rgba(18, 52, 45, 0.5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-stats {
  margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(244, 243, 242, 0.96); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-stats li { padding: 22px 24px; display: flex; flex-direction: column; gap: 2px; }
.hero-stats li + li { border-left: 1px solid var(--sand-200); }
.hero-stats strong { color: var(--brand-700); font-size: 1.1rem; line-height: 1.3; }
.hero-stats span { color: var(--muted); font-size: 0.82rem; text-wrap: balance; }
/* No desktop cada destaque ocupa exatamente 1 linha de título + 1 de descrição */
@media (min-width: 1025px) {
  .hero-stats strong, .hero-stats span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Trilha de navegação (páginas internas) */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.8); }
.breadcrumb a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.4); }
.breadcrumb a:hover { text-decoration-color: var(--white); }

/* Hero mais baixo para páginas internas */
.hero--page { min-height: 0; padding-top: 140px; }

/* ---------- Acomodações ---------- */
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.room-card {
  position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.room-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.room-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--mint-200); transition: transform 0.6s var(--ease); }
.room-card:hover img { transform: scale(1.04); }
.room-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; position: relative; background: var(--white); }
.room-card__body h3 { font-size: 1.12rem; }
.room-card__body p { font-size: var(--fs-p); color: var(--muted); flex: 1; }
.room-card__body a { font-weight: 600; font-size: 0.9rem; }
.room-card__tag {
  position: absolute; top: 14px; right: 14px; z-index: 2; padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: var(--white); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}

/* ---------- Faixa de reserva ---------- */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 48px; border-radius: var(--radius-lg); color: rgba(255, 255, 255, 0.88);
  background:
    var(--brand-900);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: var(--white); font-size: var(--fs-h2); }
.cta-band p { margin: 0; max-width: 620px; font-size: var(--fs-p); }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }

@media (max-width: 1024px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats li:nth-child(3) { border-left: 0; }
  .hero-stats li:nth-child(n + 3) { border-top: 1px solid var(--sand-200); }
  .room-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band__actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .hero, .hero--page { padding-top: 80px; }
  .hero-stats { grid-template-columns: 1fr 1fr; margin-top: 36px; }
  .hero-stats li { padding: 16px; }
  .hero-stats strong { font-size: 0.95rem; }
  .room-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; }
  .cta-band__actions { width: 100%; flex-direction: column; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--brand-900); white-space: nowrap; flex-shrink: 0; }
/* Logo Vila Galé (assets/img/brand/vila-gale-logo-sprite.svg): a cor vem de "color" */
.brand__logo-wrap { display: grid; }
.brand__logo { width: 66px; height: 61px; fill: currentColor; }
.brand__text { display: flex; flex-direction: column; justify-content: center; line-height: 1; padding-left: 12px; border-left: 1px solid rgba(18, 52, 45, 0.18); }
.brand__text strong { font-size: 1.6rem; color: var(--brand-900); font-weight: 700; letter-spacing: 0.01em; }
.brand--light { color: var(--white); }
.brand--light .brand__text { border-left-color: rgba(255, 255, 255, 0.28); }
.brand--light .brand__text strong { color: var(--white); }
.brand--footer .brand__logo { width: 76px; height: 70px; }
@media (max-width: 640px) {
  .brand__logo { width: 48px; height: 44px; }
  .brand__text strong { font-size: 1.3rem; }
}

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: rgba(244, 243, 242, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 52, 45, 0.06);
  transition: box-shadow 0.3s, background 0.3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow); background: rgba(244, 243, 242, 0.98); }
.site-header__inner { max-width: 1340px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.main-nav { display: flex; align-items: center; gap: 16px; }
.main-nav__list { display: flex; align-items: center; gap: 4px; }
.main-nav__item { position: relative; }
.main-nav__item > a {
  display: block; padding: 8px 8px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0;
  color: var(--text); border-radius: 8px; white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.main-nav__item > a:hover,
.main-nav__item > a[aria-current='page'] { color: var(--brand-600); background: var(--mint-100); }
.main-nav__item.has-sub > a::after {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 7px; margin-bottom: 3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.sub-toggle { display: none; }

/* z-index: fica acima da barra de progresso (::after do header), que é pintada depois do menu */
.sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 2; min-width: 240px; padding: 10px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: 0.25s var(--ease);
}
/* ponte invisível entre o link e o submenu para o hover não cair no espaço de 6px */
.main-nav__item.has-sub::before { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.main-nav__item:hover > .sub-menu,
.main-nav__item:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a {
  display: block; padding: 9px 14px; border-radius: 8px; font-size: 0.85rem; color: var(--text);
}
.sub-menu a:hover { background: var(--sand-100); color: var(--brand-700); }

/* Logo Resorts All Inclusive (assets/img/brand/resorts-all-inclusive.png) */
.partner-logo { display: block; flex-shrink: 0; transition: opacity 0.2s, transform 0.25s var(--ease); }
.partner-logo img { display: block; width: 100%; height: auto; }
.partner-logo:hover { opacity: 0.85; }
/* Altura ~44px, na mesma proporção do rodapé (Vila Galé 70px : Resorts All Inclusive 50px).
   Entre 1181 e ~1260px de tela ela encolhe aos poucos para o menu caber. */
.partner-logo--header { width: clamp(104px, calc(100vw - 1077px), 146px); padding-left: 14px; border-left: 1px solid rgba(18, 52, 45, 0.14); box-sizing: content-box; }
/* Rodapé: versão clara (resorts-all-inclusive-claro.png, letras brancas) direto sobre o verde */
.partner-logo--footer { width: 200px; margin-top: 22px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: var(--mint-100); position: relative;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute; left: 12px; width: 20px; height: 2px; background: var(--brand-900);
  border-radius: 2px; transition: 0.3s var(--ease); content: '';
}
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { left: 0; top: -6px; }
.nav-toggle__bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

/* Botão de conversão "Reservar" no cabeçalho (fora do menu: aparece no computador e no celular) */
.site-header .header-cta { flex-shrink: 0; width: auto; padding: 6px 6px 6px 18px; gap: 10px; font-size: 0.88rem; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 16px rgba(196, 80, 30, 0.28); }
.header-cta__arrow { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transition: transform 0.25s var(--ease); }
.header-cta__arrow .icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.header-cta:hover .header-cta__arrow { transform: translateX(3px); }
/* Computador: botão dentro do menu, antes do logo Resorts All Inclusive. Celular: ao lado do ícone do menu. */
@media (min-width: 1181px) { .site-header .header-cta--mobile { display: none; } }
@media (max-width: 1180px) { .site-header .header-cta--desktop { display: none; } }
/* Desktop estreito: botão mais compacto para o menu continuar numa linha só */
@media (min-width: 1181px) and (max-width: 1366px) {
  .site-header .header-cta { padding: 5px 5px 5px 14px; gap: 8px; font-size: 0.82rem; }
  .header-cta__arrow { width: 24px; height: 24px; }
}
@media (max-width: 1180px) {
  .site-header .header-cta { margin-left: auto; order: 2; }
  .nav-toggle { order: 3; }
}
@media (max-width: 640px) {
  .site-header__inner { gap: 10px; }
  .site-header .header-cta { padding: 5px 5px 5px 14px; gap: 8px; font-size: 0.85rem; }
  .header-cta__arrow { width: 26px; height: 26px; }
}

main { padding-top: var(--header-h); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--brand-900); color: rgba(255, 255, 255, 0.78); position: relative; margin-top: 60px; }
.site-footer__wave { position: absolute; top: -59px; left: 0; right: 0; height: 60px; color: var(--brand-900); }
.site-footer__wave svg { width: 100%; height: 100%; display: block; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.site-footer__brand p { margin: 16px 0 20px; max-width: 280px; }
.site-footer__title { color: var(--teal-light); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer__title--spaced { margin-top: 28px; }
.site-footer__links { display: flex; flex-direction: column; gap: 8px; }
.site-footer__links a { color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; transition: color 0.2s; }
.site-footer__links a:hover { color: var(--white); }
.site-footer__phone { display: block; font-size: 1.5rem; font-weight: 700; color: var(--white); }
.site-footer__domain { font-size: var(--fs-small); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 24px; padding-bottom: 32px;
  font-size: var(--fs-small); color: rgba(255, 255, 255, 0.6);
}
.site-footer__legal p { margin-bottom: 8px; }

.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: var(--white);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); transition: transform 0.25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ==========================================================================
   Responsivo
   ========================================================================== */
/* No desktop o telefone fica no rodapé e no WhatsApp; no menu mobile ele aparece como botão */
@media (min-width: 1181px) {
  .main-nav__cta { display: none; }
}
/* Menu completo (desktop): links mais próximos para os 8 itens caberem no contêiner de 1200px */
@media (min-width: 1181px) {
  .main-nav__list { gap: 0; }
  .main-nav { gap: 12px; }
  /* respiro entre os links: cresce com a tela (5px em 1181px, até 12px a partir de ~1340px) */
  .main-nav__item > a { padding-left: clamp(5px, calc((100vw - 1181px) / 22 + 5px), 12px); padding-right: clamp(5px, calc((100vw - 1181px) / 22 + 5px), 12px); }
  .main-nav__item.has-sub > a::after { margin-left: 5px; }
  .site-header__inner { gap: 16px; }
  /* menu centralizado entre a marca Vila Galé e o logo Resorts All Inclusive */
  .main-nav { flex: 1; }
  .main-nav__list { margin: 0 auto; }
  /* marca mais compacta no cabeçalho do computador para sobrar espaço ao menu */
  .site-header .brand { gap: 10px; }
  .site-header .brand__logo { width: 54px; height: 50px; }
  .site-header .brand__text { padding-left: 10px; }
  .site-header .brand__text strong { font-size: 1.45rem; }
}
/* Desktop estreito: logo da Resorts All Inclusive e links um pouco menores */
@media (min-width: 1181px) and (max-width: 1320px) {
  .partner-logo--header { padding-left: 10px; }
}

/* Menu vira hambúrguer abaixo de 1180px */
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .main-nav {
    /* absolute (não fixed): o backdrop-filter do header vira o bloco de contenção */
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 16px; padding: 20px var(--gutter) 40px;
    background: var(--sand-50); overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .main-nav.is-open { transform: none; visibility: visible; transition: transform 0.35s var(--ease); }
  .main-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav__item { border-bottom: 1px solid var(--sand-200); display: flex; flex-wrap: wrap; align-items: center; }
  .main-nav__item > a { flex: 1; padding: 16px 4px; font-size: 0.92rem; }
  .main-nav__item.has-sub > a::after { display: none; }
  .sub-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--mint-100);
  }
  .sub-toggle::before {
    content: ''; width: 8px; height: 8px; border-right: 2px solid var(--brand-700); border-bottom: 2px solid var(--brand-700);
    transform: rotate(45deg) translateY(-2px); transition: transform 0.25s;
  }
  .sub-toggle[aria-expanded='true']::before { transform: rotate(-135deg); }
  .sub-menu {
    position: static; flex-basis: 100%; min-width: 0; box-shadow: none; padding: 0 0 12px 12px; background: transparent;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .main-nav__item:hover > .sub-menu { display: none; }
  .main-nav__item.is-open > .sub-menu { display: block; }
  .main-nav__cta { display: inline-flex; align-self: flex-start; }
  .main-nav__item.has-sub::before { display: none; }
  .partner-logo--header { order: 3; width: 170px; padding: 8px 0 0; border-left: 0; }
}

@media (max-width: 1024px) {
  .split, .split--reverse { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 2; }
  .split__media, .map-frame { aspect-ratio: 16 / 11; }
  .mini-cards { grid-template-columns: repeat(2, 1fr); }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 68px; }
  .section { padding: 64px 0; }
  .mini-cards, .mini-cards--2 { grid-template-columns: 1fr; }
  /* No celular o ícone fica ao lado do texto (cards mais baixos) */
  .mini-card:has(> .icon-badge) { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; }
  .mini-card > .icon-badge { grid-row: span 2; margin: 0; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .main-nav__cta { width: auto; }
}

/* ==========================================================================
   Aviso de cookies (LGPD) — criado pelo módulo assets/js/modules/consent.js
   ========================================================================== */
.cookie-bar {
  position: fixed; left: 20px; bottom: 20px; z-index: 150; width: min(440px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px); overflow-y: auto;
  padding: 20px 22px; border-radius: var(--radius); background: var(--white); color: var(--text);
  box-shadow: var(--shadow-lg); border: 1px solid var(--sand-200);
  opacity: 0; translate: 0 16px; transition: opacity 0.35s var(--ease), translate 0.35s var(--ease);
}
.cookie-bar.is-on { opacity: 1; translate: 0 0; }
.cookie-bar__text { margin: 0 0 14px; font-size: var(--fs-p); line-height: 1.55; }
.cookie-bar__text strong { display: block; margin-bottom: 4px; color: var(--brand-900); font-size: 0.98rem; }
.cookie-bar__text a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cookie-bar__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.cookie-bar__actions .btn { width: auto; }
.cookie-bar__actions .btn:hover { transform: none; box-shadow: none; }
.cookie-cats { display: grid; gap: 8px; margin: 0 0 16px; }
.cookie-cat { border: 1px solid var(--sand-200); border-radius: var(--radius-sm); padding: 10px 12px; }
.cookie-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-cat__toggle {
  display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none;
  font-size: 0.86rem; font-weight: 600; color: var(--brand-900); text-align: left;
}
.cookie-cat__plus { position: relative; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; background: var(--mint-100); }
.cookie-cat__plus::before,
.cookie-cat__plus::after { content: ''; position: absolute; inset: 8px 4px; background: var(--brand-600); border-radius: 2px; transition: transform 0.25s var(--ease); }
.cookie-cat__plus::after { transform: rotate(90deg); }
.cookie-cat__toggle[aria-expanded='true'] .cookie-cat__plus::after { transform: rotate(0deg); }
.cookie-cat__always { font-size: 0.75rem; font-weight: 600; color: var(--teal-text); white-space: nowrap; }
.cookie-cat__text { margin: 8px 0 0 28px; font-size: var(--fs-small); color: var(--muted); line-height: 1.5; }
.cookie-switch { position: relative; display: inline-flex; cursor: pointer; flex-shrink: 0; }
.cookie-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie-switch__track {
  width: 40px; height: 22px; border-radius: 999px; background: var(--sand-200); position: relative; transition: background 0.25s;
}
.cookie-switch__track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow-sm); transition: translate 0.25s var(--ease);
}
.cookie-switch input:checked + .cookie-switch__track { background: var(--brand-600); }
.cookie-switch input:checked + .cookie-switch__track::after { translate: 18px 0; }
.cookie-switch input:focus-visible + .cookie-switch__track { outline: 3px solid var(--brand-400); outline-offset: 2px; }
@media (max-width: 640px) {
  .cookie-bar { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

/* Botão com cara de link no rodapé ("Preferências de cookies") */
.site-footer__link-btn {
  padding: 0; border: 0; background: none; color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; text-align: left;
  transition: color 0.2s;
}
.site-footer__link-btn:hover { color: var(--white); }

/* ==========================================================================
   Conteúdo longo (artigos do blog e páginas institucionais)
   ========================================================================== */
/* Hero mais baixo, sem a faixa de destaques */
.hero--compact { padding-top: 150px; padding-bottom: 64px; }
/* Títulos longos de artigo: no celular um pouco menores para não passar de 4 linhas */
@media (max-width: 640px) { .hero__title--article { font-size: 1.875rem; } }
.article-meta { margin: 18px 0 0; font-size: var(--fs-small); color: rgba(255, 255, 255, 0.85); }

/* Coluna de leitura + sumário fixo ao lado */
.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 56px; justify-content: center; align-items: start; }
.doc-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.doc-toc { padding: 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--sand-200); }
.doc-toc__title,
.doc-cta__title { margin: 0 0 10px; font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-text); }
.doc-toc ol { display: grid; gap: 2px; counter-reset: toc; }
.doc-toc a {
  display: block; padding: 7px 10px; border-radius: 8px; font-size: 0.85rem; line-height: 1.4; color: var(--text);
  transition: background 0.2s, color 0.2s;
}
.doc-toc a:hover { background: var(--mint-100); color: var(--brand-700); }
.doc-cta { padding: 20px; border-radius: var(--radius); background: var(--brand-900); color: rgba(255, 255, 255, 0.88); }
.doc-cta .doc-cta__title { color: var(--teal-light); }
.doc-cta p { font-size: var(--fs-p); margin-bottom: 14px; }
.doc-cta .btn { width: 100%; }
.doc-cta__phone { display: block; margin-top: 12px; text-align: center; font-weight: 700; color: var(--white); }

/* Tipografia de leitura */
.prose { font-size: var(--fs-p); line-height: 1.8; color: var(--text); }
.prose > h2 { margin: 2.2em 0 0.6em; font-size: var(--fs-h2); scroll-margin-top: calc(var(--header-h) + 20px); }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin: 1.6em 0 0.4em; font-size: 1.15rem; }
.prose p { margin: 0 0 1.1em; }
.prose a:not(.btn) { color: var(--brand-600); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:not(.btn):hover { color: var(--brand-700); text-decoration-thickness: 2px; }
.prose ul:not([class]),
.prose ol:not([class]) { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose ul:not([class]) { list-style: disc; }
.prose ol:not([class]) { list-style: decimal; }
.prose li::marker { color: var(--brand-400); }
.prose li + li { margin-top: 0.4em; }
.prose .faq { margin-bottom: 1.5em; }
.callout--summary { margin: 0 0 2em; font-size: 1rem; line-height: 1.7; }
.doc-updated {
  display: inline-block; margin: 0 0 1.6em; padding: 6px 14px; border-radius: 999px;
  background: var(--mint-100); color: var(--brand-700); font-size: var(--fs-small); font-weight: 600;
}

/* Cartões de links internos ("Páginas citadas") */
.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 2em; }
.link-card {
  position: relative; display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--sand-200); box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-400); }
.link-card:hover .icon-badge { background: var(--brand-600); color: var(--white); }
.link-card h3 { margin: 0 0 4px; font-size: 0.98rem; line-height: 1.35; }
.prose .link-card h3 a { color: var(--brand-900); text-decoration: none; font-weight: 700; }
.link-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; } /* card inteiro clicável */
.link-card p { margin: 0; font-size: var(--fs-p); line-height: 1.5; color: var(--muted); }
.article-back { margin-top: 2em; }

@media (max-width: 1024px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .doc-aside { position: static; order: 2; }
  .doc-cta { display: none; } /* no celular a faixa de reserva logo abaixo já cumpre o papel */
}
@media (max-width: 640px) {
  .hero--compact { padding-top: 96px; padding-bottom: 48px; }
  .prose { font-size: 0.98rem; }
}
.prose .table-wrap { margin: 0 0 1.6em; }
.prose .compare-table tbody th { white-space: normal; width: 28%; }
/* Cartão de informações no celular: rótulo em cima, valor embaixo (e-mails longos não estouram) */
@media (max-width: 480px) {
  .info-card dl div { grid-template-columns: 1fr; gap: 2px; }
  .info-card dd { overflow-wrap: anywhere; }
}

/* Textos de cards: linhas equilibradas ("balance" não aumenta o número de linhas e evita palavra
   sozinha na última; o "pretty" cria linhas curtas em colunas estreitas) e no máximo 4 linhas,
   com reticências. O card inteiro é clicável e leva à página completa. */
:is(.feature-card, .room-card__body, .leisure-card, .holiday-card, .resort-card, .holiday-mini, .program-card__body, .mini-card, .compare-card, .attraction, .highlight-card, .post-card__body, .dining-card__body, .hotel-card__body) p { text-wrap: balance; }
:is(.feature-card, .room-card__body, .leisure-card, .holiday-card, .resort-card, .holiday-mini, .program-card__body, .post-card__body) > p,
.feature-card__body > p {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
}
.feature-cards--compact .feature-card p { display: block; overflow: visible; }
