/* ==========================================================================
   Condomínio Praias de Maragogi — identidade
   Verde-água do selo + areia + mar profundo. Títulos em serifa, texto em sans.
   ========================================================================== */
:root {
  --teal: #2daeab;
  --teal-600: #1f8f8c;
  --teal-50: #e6f5f4;
  --sea: #0e3d42;
  --sea-900: #08282c;
  --sand: #f3ece1;
  --sand-200: #e8dccb;
  --paper: #fbf8f3;
  --ink: #1b2a2b;
  --ink-soft: #4d5d5e;
  --line: rgba(27, 42, 43, .14);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1280px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--teal); color: #fff; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 999; background: #fff; padding: .5rem 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font: 600 .75rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal-600);
}
.eyebrow .n { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; font-size: 1rem; }
.eyebrow::after { content: ""; width: 2.5rem; height: 1px; background: currentColor; opacity: .5; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); }
h2 em, h1 em { font-style: italic; color: var(--teal); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 400; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 38ch; }

/* ---------- botões ---------- */
.btn {
  --bg: var(--teal); --fg: #fff;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.6rem; border: 1px solid var(--bg); border-radius: 999px;
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  font: 600 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--teal-600); border-color: var(--teal-600); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: #fff; color: var(--sea); border-color: #fff; }
.btn--dark { --bg: var(--sea); }
.btn--dark:hover { background: var(--sea-900); border-color: var(--sea-900); }
.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-600);
  padding-bottom: .4rem; border-bottom: 1px solid currentColor;
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- cabeçalho ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff; transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease),
    opacity .8s var(--ease) .5s, transform .8s var(--ease) .5s;
}
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 96px; transition: height .4s var(--ease); }
.header.is-solid .header__bar { height: 78px; }
.header.is-solid { background: rgba(251, 248, 243, .94); color: var(--ink); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
/* logo levemente recuada para dentro da coluna, para o círculo do selo "sentar" melhor na margem */
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; margin-left: clamp(10px, 2.6vw, 40px); }
.brand__seal { width: 80px; height: 80px; transition: width .4s var(--ease), height .4s var(--ease); }
.brand__seal img { width: 100%; height: 100%; }
.brand__seal .on-solid { display: none; }
.header.is-solid .brand__seal { width: 62px; height: 62px; }
.header.is-solid .brand__seal .on-dark { display: none; }
.header.is-solid .brand__seal .on-solid { display: block; }
.brand__name { font: 400 1.05rem/1.1 var(--serif); }
.brand__name small { display: block; font: 600 .62rem/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; opacity: .8; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font: 500 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; position: relative; padding: .4rem 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { right: 0; }
.header .btn { padding: .85rem 1.3rem; }

/* seletor de idioma */
.lang-switch { display: flex; align-items: center; gap: .15rem; }
.lang-switch a { text-decoration: none; font: 600 .72rem/1 var(--sans); letter-spacing: .12em; padding: .45rem .4rem; border-radius: 4px; opacity: .65; transition: opacity .2s, background .2s; }
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current] { opacity: 1; box-shadow: inset 0 -2px 0 var(--teal); }
.lang-switch--drawer { justify-content: center; gap: .5rem; margin-bottom: .5rem; }
.lang-switch--drawer a { font-size: .85rem; letter-spacing: .04em; padding: .6rem .8rem; border: 1px solid rgba(255,255,255,.25); }
.lang-switch--drawer a[aria-current] { box-shadow: none; border-color: var(--teal); color: var(--teal); }
.lang-switch--footer a { font-weight: 500; letter-spacing: .04em; color: rgba(255,255,255,.6); }
.lang-switch--footer a[aria-current] { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s var(--ease), opacity .3s; }

/* menu de tela cheia (mobile) — numerado, como um índice */
.drawer {
  position: fixed; inset: 0; z-index: 60; background: var(--sea); color: #fff;
  display: flex; flex-direction: column; padding: 1.25rem var(--gutter) 2rem;
  transform: translateY(-100%); transition: transform .6s var(--ease); visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; }
.drawer__top img { width: 52px; }
.drawer__close { background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; width: 44px; height: 44px; cursor: pointer; }
.drawer ol { list-style: none; margin: auto 0; padding: 0; counter-reset: i; }
.drawer li { counter-increment: i; border-bottom: 1px solid rgba(255,255,255,.12); }
.drawer li a { display: flex; align-items: baseline; gap: 1rem; padding: .9rem 0; text-decoration: none; font: 300 clamp(1.7rem, 7vw, 2.4rem)/1.1 var(--serif); }
.drawer li a::before { content: "0" counter(i); font: italic 400 .95rem var(--serif); color: var(--teal); width: 2rem; }
.drawer__foot { display: grid; gap: 1rem; }
.drawer__foot .btn { justify-content: center; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--sea); }
.hero__media, .hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(75deg, rgba(8,40,44,.74) 0%, rgba(8,40,44,.46) 38%, rgba(8,40,44,0) 70%), linear-gradient(180deg, rgba(8,40,44,.45) 0%, rgba(8,40,44,0) 30%, rgba(8,40,44,.15) 55%, rgba(8,40,44,.75) 100%); }
/* justify-self: center mantém o bloco na mesma coluna central do cabeçalho (alinhado à logo) */
.hero__content { position: relative; justify-self: center; padding-bottom: clamp(3rem, 9vh, 6rem); padding-top: 120px; }
.hero h1 { font-size: clamp(3rem, 7.8vw, 6.8rem); max-width: 14ch; font-weight: 500; text-shadow: 0 1px 3px rgba(8,40,44,.55), 0 3px 28px rgba(8,40,44,.6); }
.hero .eyebrow { text-shadow: 0 1px 10px rgba(8,40,44,.6); }
.hero h1 em { color: #fff; }
.hero__sub { max-width: 34rem; margin: 1.5rem 0 2.2rem; font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 500; text-shadow: 0 1px 12px rgba(8,40,44,.6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
/* alinhada à margem direita da coluna central (mesma linha do botão Reservar) */
.hero__meta { position: absolute; right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); bottom: clamp(3rem, 9vh, 6rem); display: grid; gap: .4rem; text-align: right; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.hero__meta strong { font: 300 2.6rem/1 var(--serif); letter-spacing: 0; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.25rem; width: 1px; height: 48px; background: rgba(255,255,255,.35); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; inset: 0; background: #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- seções ---------- */
.section { padding: clamp(5rem, 12vw, 9rem) 0; position: relative; }
.section--sand { background: var(--sand); }
.section--sea { background: var(--sea); color: #fff; }
.section--sea .eyebrow { color: var(--teal); }
.section--sea .lead { color: rgba(255,255,255,.78); }
.section__head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section__head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; }

/* intro: texto + imagem sobreposta */
.wrap.intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.intro__text h2 { margin: 1.4rem 0 1.8rem; }
.intro__media { position: relative; }
.intro__media .a { aspect-ratio: 4/5; object-fit: cover; width: 85%; margin-left: auto; }
.intro__media .b { position: absolute; left: 0; bottom: -2.5rem; width: 46%; aspect-ratio: 3/4; object-fit: cover; border: 8px solid var(--paper); }
.intro__seal { position: absolute; top: -2rem; left: 8%; width: 120px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2.5rem; border-top: 1px solid var(--line); }
.facts div { padding: 1.4rem 1rem 0 0; }
.facts strong { display: block; font: 300 clamp(2rem, 3.4vw, 2.8rem)/1 var(--serif); color: var(--teal-600); }
.facts span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

/* frase de transição em tela cheia */
.statement { position: relative; min-height: 80vh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.statement img, .statement video { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.statement::after { content: ""; position: absolute; inset: 0; background: rgba(8,40,44,.42); }
.statement blockquote { position: relative; z-index: 1; margin: 0; padding: 0 var(--gutter); max-width: 22ch; font: 300 clamp(2rem, 5vw, 4rem)/1.15 var(--serif); }
.statement blockquote em { color: var(--teal-50); }
.statement .flower { position: relative; z-index: 1; width: 44px; margin: 0 auto 1.6rem; color: #fff; }

/* acomodações */
/* abas: uma por tipo de acomodação */
.unit-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.unit-tab {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .35rem; align-items: baseline;
  padding: 1.6rem 1.5rem 1.6rem 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink-soft);
  transition: color .3s var(--ease);
}
.unit-tab::before { content: ""; position: absolute; left: 0; right: 1.5rem; top: -1px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.unit-tab__n { grid-row: span 2; align-self: start; padding-top: .35rem; font: italic 400 1rem/1 var(--serif); color: var(--teal-600); }
.unit-tab { grid-template-rows: 1fr auto; }
.unit-tab__name { font: 300 clamp(1.25rem, 1.8vw, 1.6rem)/1.15 var(--serif); align-self: start; }
.unit-tab__meta { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; align-self: end; }
.unit-tab:hover, .unit-tab.is-active { color: var(--ink); }
.unit-tab.is-active::before { transform: scaleX(1); }
.unit-tab:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }

.units { display: grid; }
.unit { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.unit[hidden] { display: none; }
.unit.is-active { animation: unit-in .7s var(--ease); }
@keyframes unit-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.unit__media { position: relative; overflow: hidden; }
.unit__slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.unit__slides::-webkit-scrollbar { display: none; }
.unit__slides img { flex: 0 0 100%; aspect-ratio: 4/3; object-fit: cover; scroll-snap-align: start; }
.unit__nav { position: absolute; right: 1rem; bottom: 1rem; display: flex; gap: .5rem; }
.unit__nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(251,248,243,.92); color: var(--sea); cursor: pointer; font-size: 1.1rem; }
.unit__nav button:hover { background: #fff; }
.unit__count { position: absolute; left: 1rem; bottom: 1rem; color: #fff; font-size: .8rem; letter-spacing: .14em; background: rgba(8,40,44,.5); padding: .35rem .7rem; border-radius: 99px; }
.unit__body .tag { font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--teal-600); }
.unit__body h3 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 300; margin: .8rem 0 1.2rem; }
.specs { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.specs li { border: 1px solid var(--line); border-radius: 99px; padding: .45rem .9rem; font-size: .82rem; }

/* resumo das acomodações (home, logo abaixo do topo) */
.stays-section { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.stays { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.stay { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.stay:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(8, 40, 44, .12); }
.stay figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand-200); }
.stay img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.stay:hover img { transform: scale(1.04); }
.stay__body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.2rem, 2vw, 1.6rem); }
.stay .tag { font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--teal-600); }
.stay h3 { font-size: clamp(1.45rem, 2vw, 1.75rem); font-weight: 300; margin: .7rem 0 .6rem; }
.stay p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.stay .specs { margin: 1.1rem 0 1.3rem; }
.stay .specs li { font-size: .78rem; padding: .38rem .75rem; }
.stay .link-arrow { margin-top: auto; align-self: flex-start; }
.stays__cta { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 960px) {
  .stays { grid-template-columns: 1fr; }
  .stay { display: grid; grid-template-columns: 40% 1fr; }
  .stay figure { aspect-ratio: auto; height: 100%; }
}
@media (max-width: 560px) {
  .stay { display: flex; }
  .stay figure { aspect-ratio: 16 / 10; height: auto; }
  .stays__cta .btn { width: 100%; justify-content: center; }
}

/* estrutura / lazer */
.amenities { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.amenity { position: relative; overflow: hidden; color: #fff; min-height: 340px; display: flex; align-items: flex-end; }
.amenity img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.amenity:hover img { transform: scale(1.05); }
.amenity::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8,40,44,.8)); }
.amenity div { position: relative; z-index: 1; padding: 1.6rem; }
.amenity h3 { font-size: 1.6rem; font-weight: 300; }
.amenity p { margin: .4rem 0 0; font-size: .92rem; opacity: .88; }
.amenity:nth-child(1) { grid-column: span 7; min-height: 480px; }
.amenity:nth-child(2) { grid-column: span 5; min-height: 480px; }
.amenity:nth-child(3), .amenity:nth-child(4), .amenity:nth-child(5) { grid-column: span 4; }
.icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.14); }
.icons li { list-style: none; display: flex; align-items: center; gap: .9rem; padding: 1.4rem 1rem 1.4rem 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: .95rem; }
.icons svg { width: 26px; height: 26px; flex: none; color: var(--teal); }
.icons { padding: 0; }

/* maragogi */
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.place figure { margin: 0; overflow: hidden; }
.place img { aspect-ratio: 3/4; object-fit: cover; width: 100%; transition: transform 1.2s var(--ease); }
.place:hover img { transform: scale(1.04); }
.place h3 { margin: 1.2rem 0 .5rem; }
.place p { color: var(--ink-soft); font-size: .97rem; }
.place:nth-child(2) { margin-top: 4rem; }

/* galeria */
.gallery__filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: .6rem 1.1rem; cursor: pointer; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.chip.is-active, .chip:hover { background: var(--sea); color: #fff; border-color: var(--sea); }
.masonry { columns: 4 260px; column-gap: 1rem; }
.masonry button { display: block; width: 100%; margin: 0 0 1rem; padding: 0; border: 0; background: var(--sand-200); cursor: zoom-in; position: relative; break-inside: avoid; overflow: hidden; }
.masonry img { width: 100%; height: auto; transition: transform .8s var(--ease), opacity .6s; }
.masonry button:hover img { transform: scale(1.03); }
.masonry .play, .mosaic .play { position: absolute; inset: 0; display: grid; place-items: center; }
.masonry .play span, .mosaic .play span { width: 58px; height: 58px; border-radius: 50%; background: rgba(251,248,243,.9); display: grid; place-items: center; color: var(--sea); }
.gallery__more { text-align: center; margin-top: 2.5rem; }

.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(8,24,26,.96); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox__stage { max-width: 92vw; max-height: 86vh; }
.lightbox__stage img, .lightbox__stage video { max-width: 92vw; max-height: 86vh; width: auto; height: auto; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; width: 56px; height: 56px; font-size: 1.8rem; }
.lightbox__close { top: .75rem; right: .75rem; }
.lightbox__prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: .5rem; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .8rem; letter-spacing: .14em; }

/* avaliação */
.rating { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.rating__score { font: 300 clamp(5rem, 12vw, 9rem)/.9 var(--serif); color: var(--teal); }
.rating__score small { font-size: .3em; color: rgba(255,255,255,.6); }
.rating__tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; padding: 0; list-style: none; }
.rating__tags li { border: 1px solid rgba(255,255,255,.25); border-radius: 99px; padding: .5rem 1rem; font-size: .85rem; }

/* informações */
.info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.info div { padding: 1.8rem 1.5rem 1.8rem 0; border-bottom: 1px solid var(--line); }
.info dt { font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--teal-600); margin-bottom: .7rem; }
.info dd { margin: 0; font: 300 1.5rem/1.25 var(--serif); }
.info dd small { display: block; font: 400 .88rem/1.5 var(--sans); color: var(--ink-soft); margin-top: .3rem; }

/* localização */
.location { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 5rem); align-items: stretch; }
.location__map { min-height: 440px; background: var(--sand-200); }
.location__map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; filter: saturate(.8); }
.address { font: 300 1.5rem/1.35 var(--serif); margin: 1.5rem 0; font-style: normal; }
.distances { list-style: none; padding: 0; margin: 0 0 2rem; }
.distances li { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.distances span:last-child { color: var(--teal-600); font-weight: 600; white-space: nowrap; }

/* reserva */
.booking { position: relative; color: #fff; overflow: hidden; }
.booking > img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.booking::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,40,44,.92) 0%, rgba(8,40,44,.7) 55%, rgba(8,40,44,.35)); }
.booking .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.booking h2 em { color: var(--teal); }
.booking .lead { color: rgba(255,255,255,.82); }
.booking .eyebrow { color: var(--teal); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; background: rgba(251,248,243,.98); color: var(--ink); padding: clamp(1.5rem, 3vw, 2.5rem); }
.form label { display: grid; gap: .4rem; font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: .7rem 0;
  font: 400 1rem/1.4 var(--sans); color: var(--ink); border-radius: 0; text-transform: none; letter-spacing: 0;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--teal); }
.form textarea { resize: vertical; min-height: 80px; }
.form .btn { justify-content: center; width: 100%; }
.form__note { grid-column: 1 / -1; font-size: .78rem; color: var(--ink-soft); margin: 0; text-align: center; }

/* motor de reservas (HBook) — cartão "Reserva online" logo abaixo do hero, sobreposto à borda dele.
   O script do HBook cria uma barra fixa no topo (#HSystemSearchBoxInline); main.js a move para dentro do cartão.
   O CSS do widget é carregado depois deste e usa !important: por isso as regras abaixo têm !important e mais ids. */
.booking-dock { position: relative; z-index: 2; margin-top: -3.5rem; padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.booking-dock__card {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end;
  background: var(--paper); border-top: 2px solid var(--teal);
  padding: clamp(1.25rem, 2.6vw, 2rem) clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: 0 24px 60px -24px rgba(8, 40, 44, .45);
}
.booking-dock__intro .eyebrow { margin-bottom: .8rem; }
.booking-dock__title { margin: 0; font: 300 clamp(1.45rem, 2.2vw, 1.9rem)/1.1 var(--serif); }
.booking-dock__title em { font-style: italic; color: var(--teal); }
/* antes do widget carregar (ou se for bloqueado) fica só o botão para o site de reservas */
.booking-dock__engine { display: flex; justify-content: flex-end; min-height: 3.2rem; }
.booking-dock__engine > * { flex: 1; }
.booking-dock__engine > .btn { flex: none; align-self: end; }
/* o hero ganha espaço embaixo para o cartão não cobrir os botões e a nota */
body:has(.booking-dock) .hero__content { padding-bottom: calc(clamp(3rem, 9vh, 6rem) + 3.5rem); }
body:has(.booking-dock) .hero__meta { bottom: calc(clamp(3rem, 9vh, 6rem) + 3.5rem); }
body:has(.booking-dock) .page-hero .wrap { padding-bottom: calc(clamp(2.5rem, 7vh, 4.5rem) + 3.5rem); }
body:has(.booking-dock) .scroll-cue { display: none; }

/* .booking-dock__engine a mais vence também o .hidden que o widget põe em quem já fechou a barra antes */
.booking-dock .booking-dock__engine #HSystemSearchBoxInline {
  position: static !important; display: block !important; background: none !important;
  padding: 0 !important; animation: none !important; transition: none !important;
}
.booking-dock #HSystemSearchBoxInline * { font-family: var(--sans) !important; }
.booking-dock #HSystemSearchBoxInline .container { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.booking-dock #HSystemSearchBoxInline #HSystemSearchBoxInline_Form {
  display: grid !important; grid-template-columns: 1fr 1fr 1fr auto; gap: 1.5rem; align-items: end; margin: 0 !important;
}
.booking-dock #HSystemSearchBoxInline #HSystemSearchBoxInline_Form .col { display: block !important; margin: 0 !important; max-width: none; }
.booking-dock #HSystemSearchBoxInline #HSystemSearchBoxInline_Form label.label {
  margin: 0 0 .4rem !important; font: 600 .7rem/1 var(--sans) !important; letter-spacing: .16em;
  text-transform: uppercase; white-space: nowrap !important; color: var(--ink-soft) !important;
}
.booking-dock #HSystemSearchBoxInline #HSystemSearchBoxInline_Form .HSystemForm-Control {
  border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important; padding: .7rem 1.8rem .7rem 0 !important;
  font: 400 1rem/1.4 var(--sans) !important; color: var(--ink) !important; cursor: pointer;
}
.booking-dock #HSystemSearchBoxInline #HSystemSearchBoxInline_Form_promoCode { cursor: text; }
.booking-dock #HSystemSearchBoxInline #HSystemSearchBoxInline_Form .HSystemForm-Control:focus { border-bottom-color: var(--teal) !important; }
.booking-dock #HSystemSearchBoxInline #HSystemSearchBoxInline_Form .HSystemForm-Control::placeholder { color: var(--ink-soft); opacity: .6; }
.booking-dock #HSystemSearchBoxInline #HSystemSearchBoxInline_Form svg { top: auto !important; bottom: .85rem; right: 0 !important; width: 18px !important; height: 18px !important; pointer-events: none; }
.booking-dock #HSystemSearchBoxInline #HSystemSearchBoxInline_Form .col .btn {
  display: inline-flex; justify-content: center; margin: 0 !important; padding: 1rem 1.6rem !important;
  border: 1px solid var(--teal) !important; border-radius: 999px !important; background: var(--teal) !important; color: #fff !important;
  font: 600 .8rem/1 var(--sans) !important; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.booking-dock #HSystemSearchBoxInline #HSystemSearchBoxInline_Form .col .btn:hover { background: var(--teal-600) !important; border-color: var(--teal-600) !important; }
/* dentro da página a barra não se fecha; o popup "Faça sua reserva!" (que aparece ao fechar) fica sem uso */
.booking-dock #HSystemSearchBoxInline .HSystemSearchBoxInline_Close, body #HSystemSearchBox_Popup { display: none !important; }

/* calendário do widget (jQuery UI datepicker): o tema que o HBook tenta carregar não existe, então o visual é todo daqui */
/* fechado até o primeiro clique (o jQuery UI só põe display/posição inline ao abrir); sem isso aparece solto após o rodapé */
#ui-datepicker-div {
  display: none; position: absolute; top: 0; left: 0;
  z-index: 55 !important; width: 18.5rem; margin-top: .4rem; padding: 1rem 1rem .75rem;
  background: var(--paper); color: var(--ink); border-top: 2px solid var(--teal);
  box-shadow: 0 24px 60px -20px rgba(8, 40, 44, .45); font: 400 .9rem/1 var(--sans);
}
#ui-datepicker-div .ui-datepicker-header { position: relative; display: flex; align-items: center; justify-content: center; height: 2.2rem; margin-bottom: .5rem; }
#ui-datepicker-div .ui-datepicker-title { font: 400 1.15rem/1 var(--serif); }
#ui-datepicker-div .ui-datepicker-prev, #ui-datepicker-div .ui-datepicker-next {
  position: absolute; top: 0; display: grid; place-items: center; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; font-size: 0; color: var(--teal-600); cursor: pointer; transition: background .2s;
}
#ui-datepicker-div .ui-datepicker-prev { left: 0; }
#ui-datepicker-div .ui-datepicker-next { right: 0; }
#ui-datepicker-div .ui-datepicker-prev::before, #ui-datepicker-div .ui-datepicker-next::before {
  content: ""; width: .5rem; height: .5rem; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: translateX(2px) rotate(45deg);
}
#ui-datepicker-div .ui-datepicker-next::before { transform: translateX(-2px) rotate(-135deg); }
#ui-datepicker-div .ui-datepicker-prev:hover, #ui-datepicker-div .ui-datepicker-next:hover { background: var(--teal-50); }
#ui-datepicker-div .ui-datepicker-prev.ui-state-disabled, #ui-datepicker-div .ui-datepicker-next.ui-state-disabled { opacity: .25; background: none; cursor: default; }
#ui-datepicker-div .ui-datepicker-calendar { width: 100%; border-collapse: collapse; }
#ui-datepicker-div .ui-datepicker-calendar th { padding: .4rem 0; font: 600 .65rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
#ui-datepicker-div .ui-datepicker-calendar td { padding: 1px; text-align: center; }
#ui-datepicker-div .ui-datepicker-calendar td a, #ui-datepicker-div .ui-datepicker-calendar td span {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; color: inherit; text-decoration: none; font-variant-numeric: tabular-nums;
}
#ui-datepicker-div .ui-datepicker-calendar td a:hover { background: var(--teal-50); }
#ui-datepicker-div .ui-datepicker-calendar .ui-state-highlight { box-shadow: inset 0 0 0 1px var(--teal); }
#ui-datepicker-div .ui-datepicker-calendar .ui-state-active { background: var(--teal); color: #fff; }
#ui-datepicker-div .ui-datepicker-unselectable span { opacity: .3; }
.ui-helper-hidden-accessible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 1100px) {
  .booking-dock__card { grid-template-columns: 1fr; gap: 1.25rem; }
  .booking-dock__engine { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .booking-dock #HSystemSearchBoxInline #HSystemSearchBoxInline_Form { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .booking-dock #HSystemSearchBoxInline #HSystemSearchBoxInline_Form .col.visible-md { display: none !important; }
  .booking-dock #HSystemSearchBoxInline #HSystemSearchBoxInline_Form .col:last-child { grid-column: 1 / -1; }
  .booking-dock #HSystemSearchBoxInline #HSystemSearchBoxInline_Form .col .btn { width: 100%; }
  .booking-dock__engine > .btn { flex: 1; justify-content: center; }
}

/* rodapé */
.footer { background: var(--sea-900); color: rgba(255,255,255,.78); padding: 5rem 0 2rem; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer img.seal { width: 120px; margin-bottom: 1.5rem; }
.footer h4 { font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin: 0 0 1.2rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: rgba(255,255,255,.5); }
.social { display: flex; gap: .7rem; margin-top: 1.5rem; }
.social a { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: grid; place-items: center; }
.social svg { width: 18px; height: 18px; }

/* ==========================================================================
   Páginas internas
   ========================================================================== */
.btn--ink { color: var(--sea); border-color: var(--sea); }
.btn--ink:hover { background: var(--sea); color: #fff; border-color: var(--sea); }
.section__aside { display: grid; gap: 1.4rem; justify-items: start; }

/* banner do topo */
.page-hero { position: relative; min-height: 68vh; display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--sea); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,40,44,.55) 0%, rgba(8,40,44,.1) 35%, rgba(8,40,44,.8) 100%); }
.page-hero .wrap { position: relative; z-index: 1; padding-top: 140px; padding-bottom: clamp(2.5rem, 7vh, 4.5rem); }
.page-hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); max-width: 16ch; margin: 1rem 0 1.2rem; }
.page-hero h1 em { color: #fff; }
.page-hero p { max-width: 40rem; font-size: clamp(1rem, 1.4vw, 1.15rem); opacity: .92; margin: 0; }
.crumbs { display: flex; gap: .6rem; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* submenu fixo da página (atalhos para as seções) */
.subnav { position: sticky; top: 78px; z-index: 30; background: rgba(251,248,243,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 1.1rem 0; white-space: nowrap; text-decoration: none; font: 500 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.is-active { color: var(--ink); border-bottom-color: var(--teal); }
[id] { scroll-margin-top: 150px; }

/* texto + imagem */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split--rev > :first-child { order: 2; }
.split h2 { margin: 1.2rem 0 1.4rem; }
.split img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.prose p { color: var(--ink-soft); }
.prose p.lead { color: var(--ink); }

/* mosaico de fotos (abre no lightbox) */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: .8rem; }
.mosaic button { padding: 0; border: 0; background: var(--sand-200); cursor: zoom-in; overflow: hidden; position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.mosaic button:hover img { transform: scale(1.04); }
.mosaic .w2 { grid-column: span 2; }
.mosaic .h2 { grid-row: span 2; }
.mosaic .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8,40,44,.55); color: #fff; font: 300 1.6rem var(--serif); }

/* lista de comodidades */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem; }
.features h4 { font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--teal-600); margin: 0 0 1rem; }
.features ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.features li { position: relative; padding-left: 1.4rem; font-size: .95rem; }
.features li::before { content: ""; position: absolute; left: 0; top: .62em; width: .6rem; height: .6rem; border-radius: 50%; border: 1.5px solid var(--teal); }
.section--sea .features li::before { border-color: var(--teal); }

/* bloco de cada acomodação na página de acomodações */
.room { padding: clamp(4rem, 9vw, 7rem) 0; border-top: 1px solid var(--line); }
.room:first-of-type { border-top: 0; }
.room__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: end; margin-bottom: 2.5rem; }
.room__head h2 { margin: 1rem 0 0; }
.room__specs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 2.5rem 0 0; }
.room__specs div { padding: 1.2rem 1rem 1.2rem 0; }
.room__specs strong { display: block; font: 300 2rem/1 var(--serif); color: var(--teal-600); }
.room__specs span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.room__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

/* tabela comparativa */
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { text-align: left; padding: 1rem 1.2rem 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 300 1.3rem/1.2 var(--serif); color: var(--ink); }
.compare tbody th { font: 600 .72rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-600); width: 22%; }
.compare .yes { color: var(--teal-600); font-weight: 600; }
.compare .no { color: var(--ink-soft); }

/* perguntas frequentes */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem 0; font: 300 clamp(1.15rem, 1.8vw, 1.4rem)/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 1.6rem/1 var(--sans); color: var(--teal-600); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.4rem; max-width: 60ch; color: var(--ink-soft); }

/* linha do tempo (um dia no condomínio) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; counter-reset: t; }
.timeline li { border-top: 1px solid rgba(255,255,255,.2); padding-top: 1.4rem; position: relative; }
.timeline li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.timeline time { font: italic 400 1rem var(--serif); color: var(--teal); }
.timeline h3 { font-size: 1.35rem; margin: .5rem 0 .6rem; }
.timeline p { font-size: .92rem; color: rgba(255,255,255,.75); margin: 0; }

/* cartões (passeios, dicas, rotas) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { background: #fff; border: 1px solid var(--line); padding: 2rem; display: grid; gap: .7rem; align-content: start; }
.section--sand .card { background: var(--paper); }
.card .tag { font: 600 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--teal-600); }
.card h3 { font-size: 1.5rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.card svg { width: 30px; height: 30px; color: var(--teal); }

/* destaque de lugar (Maragogi) */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); }
.spot:first-child { border-top: 0; padding-top: 0; }
.spot--rev .spot__media { order: 2; }
.spot__media { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: .8rem; height: clamp(360px, 46vw, 560px); }
.spot__media button { padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--sand-200); }
.spot__media button:first-child { grid-row: span 2; }
.spot__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.spot__media button:hover img { transform: scale(1.04); }
.spot h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 1rem 0 1.4rem; }
.tip { margin-top: 1.6rem; padding: 1.2rem 1.4rem; background: var(--teal-50); border-left: 3px solid var(--teal); font-size: .95rem; }
.tip strong { display: block; font: 600 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--teal-600); margin-bottom: .5rem; }

/* faixa final de chamada para reserva */
.cta-band { background: var(--teal); color: #fff; padding: clamp(3.5rem, 8vw, 5.5rem) 0; text-align: center; }
.cta-band h2 { color: #fff; max-width: 20ch; margin: 0 auto 1.2rem; }
.cta-band h2 em { color: var(--sea); }
.cta-band p { max-width: 36rem; margin: 0 auto 2rem; opacity: .92; }
.cta-band .btn { --bg: var(--sea); }
.cta-band .btn:hover { background: var(--sea-900); border-color: var(--sea-900); }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.cta-band .btn--ghost:hover { background: #fff; color: var(--sea); }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* vídeo em destaque */
.feature-video { position: relative; aspect-ratio: 9/16; max-height: 640px; width: 100%; object-fit: cover; background: var(--sea-900); }

@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .split, .room__head, .spot { grid-template-columns: 1fr; }
  .split--rev > :first-child, .spot--rev .spot__media { order: 0; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .room__specs { grid-template-columns: repeat(2, 1fr); }
  .subnav { top: 72px; }
}
@media (max-width: 560px) {
  .features, .timeline, .cards { grid-template-columns: 1fr; }
  .page-hero { min-height: 60vh; }
  .spot__media { height: 340px; }
}

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.2); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- abertura (tela de carregamento) ----------
   Camada escura (verde-mar) + cortina clara em SVG por cima, com o selo e o nome pulsando.
   Saída: a marca sobe, a cortina recolhe com a borda curva e a camada escura desliza para cima. */
.intro-loader { display: none; }
html.intro { overflow: hidden; }
html.intro .intro-loader, html.leaving .intro-loader {
  display: flex; position: fixed; inset: 0; z-index: 1000;
  align-items: center; justify-content: center; background: var(--sea); overflow: hidden;
  /* camada própria desde o início (sem custo extra quando começa a subir) e "quase opaca":
     assim o navegador já desenha a página por baixo, em vez de desenhar tudo na hora da revelação */
  will-change: transform; opacity: .999;
}

/* Fundo de reserva: em telas grandes o navegador pode não terminar de desenhar a página a tempo
   da revelação; o que ainda não foi desenhado mostra a cor de fundo da raiz. Durante a abertura
   ela é verde-mar (a mesma da camada que sobe), então não aparecem "buracos" claros. */
html.intro { background: var(--sea); }
html.intro body { background-color: transparent; }
/* ao fim da abertura o fundo passa de verde-mar para areia num esmaecimento único (tudo já desenhado) */
body { transition: background-color .9s ease; }

/* entrada da página ao fim da abertura: a imagem/vídeo surge do verde-mar, um pouco ampliada,
   e assenta no lugar; texto e menu entram logo depois */
/* o esmaecimento começa um pouco depois da camada verde começar a subir: dá tempo de o navegador
   terminar de desenhar a tela inteira, e a imagem aparece por igual (não em blocos) */
.hero__media, .page-hero > img { transition: transform 2.2s cubic-bezier(.22,.61,.36,1), opacity 1.2s ease .55s; }
html.intro .hero__media, html.intro .page-hero > img { opacity: 0; }
/* o restante da página (abaixo do topo) também entra por esmaecimento, em vez de aparecer em blocos */
main > :not(.hero):not(.page-hero) { transition: opacity .9s ease .6s; }
html.intro main > :not(.hero):not(.page-hero) { opacity: 0; }
html.intro.intro-out main > :not(.hero):not(.page-hero) { opacity: 1; }
.hero__content, .page-hero .wrap { transition: opacity 1s var(--ease) .8s, transform 1.25s var(--ease) .8s; }
html.intro .hero__media, html.intro .page-hero > img { transform: scale(1.1); will-change: transform; }
/* camadas preparadas (desenhadas) ainda por baixo da abertura, prontas para a revelação */
html.intro .hero__content, html.intro .page-hero .wrap, html.intro .header { will-change: transform, opacity; }
html.intro .hero__content, html.intro .page-hero .wrap { opacity: 0; transform: translateY(46px); }
html.intro .header { opacity: 0; transform: translateY(-16px); }
html.intro.intro-out .hero__media, html.intro.intro-out .page-hero > img,
html.intro.intro-out .hero__content, html.intro.intro-out .page-hero .wrap,
html.intro.intro-out .header { opacity: 1; transform: none; }
.intro-loader__curtain { position: absolute; top: 0; left: 0; width: 100vw; height: 110vh; fill: var(--paper); }
.intro-loader__mark { position: relative; z-index: 1; display: grid; justify-items: center; padding: 0 1rem; }
.intro-loader__mark img { width: clamp(160px, 30vw, 240px); height: auto; animation: intro-breathe 2.4s ease-in-out infinite; }
/* o selo "respira": cresce levemente e esmaece, no ritmo das letras pulsando da referência */
@keyframes intro-breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: .55; } }
@media (prefers-reduced-motion: reduce) {
  .intro-loader__mark img { animation: none; }
}

/* ---------- animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; } .reveal-d2 { transition-delay: .24s; } .reveal-d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .intro__seal, .scroll-cue::after { animation: none; }
}

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav { gap: 1rem; }
  .menu-toggle { display: block; }
  .header .nav .btn { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .info { grid-template-columns: repeat(2, 1fr); }
  .icons { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .section__head--split, .wrap.intro, .unit, .location, .booking .wrap, .rating { grid-template-columns: 1fr; }
  .unit-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .unit-tabs::-webkit-scrollbar { display: none; }
  .unit-tab { flex: 0 0 auto; min-width: 72%; scroll-snap-align: start; }
  .intro__media { margin-bottom: 2.5rem; }
  .amenities { grid-template-columns: 1fr 1fr; }
  .amenity, .amenity:nth-child(n) { grid-column: span 1; min-height: 300px; }
  .amenity:nth-child(1) { grid-column: 1 / -1; }
  .places { grid-template-columns: 1fr; }
  .place:nth-child(2) { margin-top: 0; }
  .place img { aspect-ratio: 4/3; }
  .hero__meta { display: none; }
  .booking::before { background: rgba(8,40,44,.82); }
}
@media (max-width: 560px) {
  .header__bar, .header.is-solid .header__bar { height: 72px; }
  .brand__seal, .header.is-solid .brand__seal { width: 56px; height: 56px; }
  .brand__name { display: none; }
  .facts { grid-template-columns: 1fr 1fr 1fr; }
  .facts strong { font-size: 1.8rem; }
  .facts span { font-size: .66rem; }
  .amenities { grid-template-columns: 1fr; }
  .icons, .info { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .masonry { columns: 2; column-gap: .6rem; }
  .masonry button { margin-bottom: .6rem; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero .eyebrow { line-height: 1.5; }
  .hero .eyebrow::after { display: none; }
  .hero h1 { margin-top: .6rem; }
  .hero__media::after { background: linear-gradient(180deg, rgba(8,40,44,.5) 0%, rgba(8,40,44,.12) 20%, rgba(8,40,44,.6) 36%, rgba(8,40,44,.6) 64%, rgba(8,40,44,.24) 80%, rgba(8,40,44,.3) 100%); }
  .hero .btn--ghost { background: rgba(8,40,44,.38); }
  .unit__nav { top: 1rem; bottom: auto; }
  .wa-float { width: 52px; height: 52px; right: 1rem; bottom: 1rem; }
}

/* ---------- passeio imersivo das acomodações (montado por main.js) ---------- */
.tour-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.tour-cta p { margin: 0; max-width: 46ch; color: var(--ink-soft); font-size: .95rem; }
.tour-cta .btn svg { width: 1.2em; height: 1.2em; }

.tour { --dx: 0; --dy: 0; position: fixed; inset: 0; z-index: 85; background: #050f10; color: #fff; overflow: hidden; }
.tour[hidden] { display: none; }
.tour__stage { position: absolute; inset: 0; cursor: pointer; }
.tour__stage::after { /* escurece topo e base para os textos */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(5,15,16,.6), transparent 24%, transparent 55%, rgba(5,15,16,.85));
}
.tour__slide { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.tour__bg {
  position: absolute; inset: -8%; width: 116%; height: 116%; max-width: none; object-fit: cover;
  filter: blur(42px) brightness(.5) saturate(1.25);
  transform: translate(calc(var(--dx) * 36px), calc(var(--dy) * 36px)); transition: transform .8s var(--ease);
}
.tour__frame {
  position: absolute; inset: -18px; overflow: hidden;
  transform: translate(calc(var(--dx) * -16px), calc(var(--dy) * -16px)); transition: transform .8s var(--ease);
}
.tour__img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }

.tour__progress { position: absolute; z-index: 3; top: calc(.75rem + env(safe-area-inset-top)); left: var(--gutter); right: var(--gutter); display: flex; gap: 10px; }
.tour__group { display: flex; gap: 3px; }
.tour__seg { flex: 1; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,.28); }
.tour__seg i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }

.tour__bar { position: absolute; z-index: 3; top: calc(1.5rem + env(safe-area-inset-top)); left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; pointer-events: none; }
.tour__bar > * { pointer-events: auto; }
.tour__kicker { margin: 0; font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #8fd0c9; }
.tour__title { margin: .5rem 0 0; font: 300 clamp(1.3rem, 2.6vw, 2rem)/1.1 var(--serif); color: #fff; }
.tour__close { flex: 0 0 auto; width: 48px; height: 48px; margin: -.4rem -.6rem 0 0; border: 0; background: none; color: #fff; font-size: 2rem; cursor: pointer; border-radius: 50%; }

.tour__caption { position: absolute; z-index: 3; left: var(--gutter); bottom: calc(4.75rem + env(safe-area-inset-bottom)); max-width: calc(100% - 2 * var(--gutter) - 156px); pointer-events: none; }
.tour__room { margin: 0 0 .35rem; font: 300 clamp(1.5rem, 3vw, 2.4rem)/1.1 var(--serif); }
.tour__alt { margin: 0; font-size: .9rem; color: rgba(255,255,255,.78); }

.tour__controls { position: absolute; z-index: 3; right: var(--gutter); bottom: calc(4.75rem + env(safe-area-inset-bottom)); display: flex; gap: .4rem; }
.tour__controls button {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255,255,255,.45); background: rgba(5,15,16,.35); color: #fff; transition: background .3s var(--ease), color .3s var(--ease);
}
.tour__controls button:hover { background: #fff; color: var(--sea); }
.tour__controls svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tour__controls [data-act="toggle"] svg path[d^="M8"] { fill: currentColor; }

.tour__rooms {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none;
  padding: .9rem var(--gutter) calc(1rem + env(safe-area-inset-bottom));
}
.tour__rooms::-webkit-scrollbar { display: none; }
.tour__rooms button {
  flex: 0 0 auto; padding: .7rem 1rem; border: 1px solid rgba(255,255,255,.4); border-radius: 99px; cursor: pointer;
  background: rgba(5,15,16,.35); color: #fff; font: 600 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.tour__rooms button:hover { background: rgba(255,255,255,.15); }
.tour__rooms button[aria-current="true"] { background: #fff; border-color: #fff; color: var(--sea); }
.tour button:focus-visible, .tour a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.tour__end {
  position: absolute; z-index: 4; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center;
  padding: var(--gutter); background: rgba(5,15,16,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tour__end[hidden] { display: none; }
.tour__end h3 { margin: 0; font: 300 clamp(2rem, 5vw, 3.4rem)/1.05 var(--serif); color: #fff; }
.tour__end p { margin: 0; max-width: 38ch; color: rgba(255,255,255,.82); }
.tour__end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .75rem; }
.tour__end .btn--ghost { color: #fff; }

/* telas largas: foto inteira (vertical) no centro, ambientes à direita, legenda à esquerda */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .tour__frame { inset: 0 auto; left: 50%; height: 100%; aspect-ratio: 3 / 4; box-shadow: 0 30px 90px rgba(0,0,0,.55); transform: translate(calc(-50% + var(--dx) * -16px), calc(var(--dy) * -16px)); }
  .tour__stage::after { background: linear-gradient(rgba(5,15,16,.55), transparent 22%, transparent 70%, rgba(5,15,16,.6)); }
  .tour__caption { bottom: 2.25rem; max-width: min(24rem, calc(50vw - 37.5vh - 2 * var(--gutter))); }
  .tour__controls { bottom: 2.25rem; }
  .tour__rooms { left: auto; right: var(--gutter); top: 50%; bottom: auto; transform: translateY(-50%); flex-direction: column; align-items: flex-end; padding: 0; overflow: visible; max-width: calc(50vw - 37.5vh - 2 * var(--gutter)); }
  .tour__rooms button { border: 0; border-radius: 0; background: none; padding: .55rem 0; text-align: right; white-space: normal; color: rgba(255,255,255,.6); }
  .tour__rooms button:hover { background: none; color: #fff; }
  .tour__rooms button[aria-current="true"] { background: none; color: #fff; box-shadow: inset -2px 0 0 var(--teal); padding-right: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .tour__bg, .tour__frame { transition: none; } }
@media (max-width: 640px) { .tour-cta .btn { width: 100%; justify-content: center; } }
