/* ==========================================================================
   Sunny Beach 302 — Página de reservas (/reservas)
   Mesma identidade do guia do hóspede: terracota quente, areia e o dourado do
   sol da logo, com o azul-petróleo do mar como acento; Fraunces nos títulos e
   Figtree nos textos.
   Não depende do styles.css do guia: mudar um não quebra o outro.
   ========================================================================== */

:root {
  --terra-950: #2B120B;
  --terra-900: #4A2014;
  --terra-800: #7A3520;
  --terra-700: #9C4A2F;
  --mar: #1F6F7A;
  --mar-300: #9CCFD3;
  --areia: #FAF3EA;
  --sand-50: #F4E9DA;
  --sand-100: #EBDCC6;
  --sand-200: #DCC6A8;
  --sol: #D9A441;
  --sol-300: #EBC77A;
  --sol-700: #7E5813; /* texto pequeno dourado: AA também sobre o sand-50 */
  --ink: #2B1810;
  --ink-2: #4E3A30;
  --muted: #6F5D52;
  --line: rgba(43, 24, 16, .12);
  --line-strong: rgba(43, 24, 16, .22);
  --on-dark: #FBF4EA;
  --on-dark-2: rgba(251, 244, 234, .84);
  --line-dark: rgba(251, 244, 234, .16);
  --card: #FFFDF9;
  --focus: var(--terra-700);

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

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);

  --gutter: 20px;
  --header-h: 68px;
  --bookbar-h: 76px;
}
@media (min-width: 768px) { :root { --gutter: 40px; --header-h: 76px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (hover: hover) and (pointer: fine) { html { scrollbar-gutter: stable; } }
html.is-locked, html.modal-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--areia);
  color: var(--ink-2);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
/* Sobre fundo escuro, o contorno de foco fica dourado-claro */
.hero, .tone-dark, .site-footer, .lightbox, .site-header:not(.is-scrolled) { --focus: var(--sol-300); }
.tone-dark .booking { --focus: var(--terra-700); }
section[tabindex="-1"]:focus { outline: none; }
::selection { background: var(--sol-300); color: var(--terra-900); }

.i {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.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: fixed; top: -100px; left: 16px; z-index: 300;
  padding: 14px 20px; background: var(--terra-900); color: var(--on-dark);
  font-weight: 600; text-decoration: none; border-radius: 2px;
}
.skip-link:focus { top: 16px; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Tipografia ---------- */
h2 {
  font: 500 clamp(2rem, 1.3rem + 2.8vw, 3.4rem)/1.1 var(--serif);
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
}
h2 em, h1 em { font-style: italic; }
h2 em { color: var(--terra-700); }
h3 { font: 600 1.25rem/1.3 var(--serif); color: var(--ink); }
h4 { font: 700 1rem/1.3 var(--sans); color: var(--ink); }
.eyebrow {
  font: 700 .8125rem/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sol-700);
}
.lead { font-size: 1.125rem; line-height: 1.75; color: var(--ink-2); max-width: 54ch; }
.sec-lead { font-size: 1.125rem; line-height: 1.65; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.sec-num {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
  font: italic 500 1.125rem/1 var(--serif);
  color: var(--sol-700);
}
.sec-num::after { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .55; }
.eyebrow + h2 { margin-top: 14px; }
.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head h2 { margin-bottom: 18px; }
.sec-head--split { display: grid; gap: 8px; }
@media (min-width: 900px) {
  .sec-head--split { grid-template-columns: 1.15fr .85fr; align-items: end; gap: 56px; }
  .sec-head--split h2 { margin-bottom: 0; }
}

/* ---------- Seções e tons ---------- */
.section { padding-block: clamp(80px, 10vw, 140px); }
.tone-sand { background: var(--sand-50); }
/* Bloco escuro: terracota queimado com um brilho de sol no alto */
.tone-dark {
  color: var(--on-dark-2);
  background:
    radial-gradient(60% 50% at 92% 0%, rgba(217, 164, 65, .16), transparent 70%),
    radial-gradient(70% 60% at 0% 100%, rgba(156, 74, 47, .45), transparent 70%),
    linear-gradient(170deg, var(--terra-800) 0%, var(--terra-900) 62%);
}
.tone-dark :is(h2, h3, h4) { color: var(--on-dark); }
.tone-dark h2 em { color: var(--sol-300); }
.tone-dark :is(.eyebrow, .sec-num) { color: var(--sol-300); }
.tone-dark :is(.sec-lead, .lead) { color: var(--on-dark-2); }

.media-frame { position: relative; overflow: hidden; background: var(--sand-100); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  border: 1px solid transparent; border-radius: 999px;
  font: 700 .875rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease-out), box-shadow .3s;
}
.btn .i { width: 18px; height: 18px; }
.btn:active { transform: scale(.98); }
@media (max-width: 399px) { .btn { padding: 0 20px; letter-spacing: .05em; white-space: normal; text-align: center; } }
.btn-ghost-light { border-color: rgba(251, 244, 234, .42); color: var(--on-dark); }
.btn-ghost-light:hover { background: rgba(251, 244, 234, .1); border-color: var(--on-dark); }
.btn-sol { background: var(--sol); color: var(--terra-950); }
.btn-sol:hover { background: var(--sol-300); box-shadow: 0 14px 30px -14px rgba(217, 164, 65, .8); }
.btn-terra { background: var(--terra-700); color: #fff; }
.btn-terra:hover { background: var(--terra-800); box-shadow: 0 14px 30px -14px rgba(122, 53, 32, .8); }
.icon-button {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--line-dark); border-radius: 50%;
  background: transparent; color: inherit;
  transition: background-color .3s, border-color .3s, transform .3s var(--ease-out);
}
.icon-button .i { width: 22px; height: 22px; }
.icon-button:hover { background: rgba(251, 244, 234, .1); transform: rotate(90deg); }

/* ==========================================================================
   Abertura (splash) — igual à do guia, com outro texto
   ========================================================================== */
.splash { display: none; }
.has-splash .splash {
  display: block; position: fixed; inset: 0; z-index: 1000;
  animation: splashGone 0s linear 3.05s forwards;
}
.splash-done .splash { display: none; }
.splash-panel, .splash-curtain { position: absolute; inset: 0; will-change: transform; }
.splash-curtain {
  background: var(--terra-800);
  animation: splashLift .85s var(--ease-in-out) 2.12s forwards;
}
.splash-panel {
  display: grid; place-items: center;
  background: radial-gradient(120% 80% at 50% 40%, #FFFDF9 0%, var(--sand-50) 60%, var(--sand-100) 100%);
  animation: splashLift .85s var(--ease-in-out) 2s forwards;
}
.splash-inner { display: grid; justify-items: center; text-align: center; padding: 24px; }
.splash-logo {
  width: min(300px, 66vw); height: auto;
  clip-path: inset(0 100% 0 0);
  animation: logoReveal 1.25s var(--ease-out) .2s forwards;
}
.splash-wave {
  display: block; width: 150px; height: 20px; margin: 22px 0 16px;
  stroke: var(--sol); stroke-width: 1.6;
  stroke-dasharray: 340; stroke-dashoffset: 340;
  animation: waveDraw 1.5s var(--ease-out) .7s forwards;
}
.splash-label, .splash-place { opacity: 0; }
.splash-label {
  font: 700 .8125rem/1 var(--sans); letter-spacing: .42em; text-transform: uppercase;
  color: var(--terra-800); padding-left: .42em;
  animation: labelIn 1.1s var(--ease-out) .95s forwards;
}
.splash-place {
  margin-top: 12px;
  font: italic 400 1rem/1 var(--serif); color: var(--sol-700);
  animation: fadeUp .9s var(--ease-out) 1.2s forwards;
}
.splash-progress {
  position: absolute; left: 50%; bottom: calc(48px + env(safe-area-inset-bottom));
  width: 120px; height: 1px; margin-left: -60px; overflow: hidden;
  background: rgba(122, 53, 32, .12);
}
.splash-progress span {
  display: block; height: 100%; background: var(--terra-800);
  transform: scaleX(0); transform-origin: left;
  animation: progressFill 1.75s cubic-bezier(.65, 0, .35, 1) .15s forwards;
}
/* Pular: o visitante tocou na tela ou apertou uma tecla */
.splash-skipped .splash { animation: splashGoneNow 0s linear .75s forwards; }
.splash-skipped .splash-panel { animation: splashLiftNow .6s var(--ease-in-out) forwards; }
.splash-skipped .splash-curtain { animation: splashLiftNow .6s var(--ease-in-out) .09s forwards; }

@keyframes logoReveal {
  0% { clip-path: inset(0 100% 0 0); filter: blur(6px); transform: translateY(6px); }
  100% { clip-path: inset(0 0 0 0); filter: blur(0); transform: none; }
}
@keyframes waveDraw { to { stroke-dashoffset: 0; } }
@keyframes labelIn {
  from { opacity: 0; letter-spacing: .7em; }
  to { opacity: 1; letter-spacing: .42em; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes progressFill { to { transform: scaleX(1); } }
@keyframes splashLift { to { transform: translateY(-100%); } }
@keyframes splashLiftNow { to { transform: translateY(-100%); } }
@keyframes splashGone { to { visibility: hidden; } }
@keyframes splashGoneNow { to { visibility: hidden; } }

/* ==========================================================================
   Cabeçalho
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top);
  color: var(--on-dark);
  transition: background-color .45s, color .45s, box-shadow .45s, transform .5s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(250, 243, 234, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: min(1320px, 100% - 2 * var(--gutter)); height: var(--header-h); margin-inline: auto;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; line-height: 1; }
.wordmark-mark { display: none; width: auto; height: 34px; }
.wordmark-text { display: flex; flex-direction: column; }
.wordmark-name { font: 600 1.3rem/1 var(--serif); white-space: nowrap; }
.wordmark-meta {
  margin-top: 6px; font: 700 .6875rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  opacity: .85;
}
@media (min-width: 400px) { .wordmark-mark { display: block; } }
@media (min-width: 768px) { .wordmark-name { font-size: 1.45rem; } .wordmark-mark { height: 38px; } }
.header-nav { display: none; }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0 18px;
  border-radius: 999px; background: var(--sol); color: var(--terra-950);
  font: 700 .8125rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  transition: background-color .3s, transform .3s var(--ease-out);
}
.header-cta .i { width: 17px; height: 17px; }
.header-cta:hover { background: var(--sol-300); }
.is-scrolled .header-cta { background: var(--terra-700); color: #fff; }
.is-scrolled .header-cta:hover { background: var(--terra-800); }
.scroll-progress {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--sol); transform: scaleX(0); transform-origin: 0 50%;
  opacity: 0; transition: opacity .4s;
}
.is-scrolled .scroll-progress { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: progressFill linear both; animation-timeline: scroll(root); }
}
@media (min-width: 1024px) {
  .header-nav { display: flex; gap: 4px; margin-left: auto; }
  .header-nav a {
    position: relative; padding: 10px 14px; white-space: nowrap;
    font: 600 .9375rem/1 var(--sans); text-decoration: none; opacity: .86;
    transition: opacity .3s;
  }
  .header-nav a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
  }
  .header-nav a:hover, .header-nav a[aria-current] { opacity: 1; }
  .header-nav a:hover::after, .header-nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
}
/* Entre 1024 e 1199 px os seis links não cabiam e quebravam a linha */
@media (min-width: 1024px) and (max-width: 1199px) {
  .header-nav { gap: 0; }
  .header-nav a { padding-inline: 9px; }
  .header-nav a::after { left: 9px; right: 9px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; min-height: 100vh; min-height: 100svh;
  background: var(--terra-900); color: var(--on-dark);
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
/* Fotos claras (céu, piscina): o degradê garante leitura do texto por cima */
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(180deg, rgba(43, 18, 11, .5) 0%, rgba(43, 18, 11, .08) 15%, rgba(43, 18, 11, .14) 30%, rgba(43, 18, 11, .62) 46%, rgba(43, 18, 11, .86) 62%, rgba(43, 18, 11, .95) 100%);
}
@media (min-width: 1024px) {
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(43, 18, 11, .5) 0%, rgba(43, 18, 11, 0) 20%, rgba(43, 18, 11, 0) 58%, rgba(43, 18, 11, .72) 100%),
      linear-gradient(90deg, rgba(43, 18, 11, .84) 0%, rgba(43, 18, 11, .55) 40%, rgba(43, 18, 11, 0) 70%);
  }
}
.hero-content { text-shadow: 0 2px 22px rgba(43, 18, 11, .45); }
/* No título, a sombra seria cortada pelo overflow das linhas (aparece um retângulo) */
.hero-title { text-shadow: none; }
/* Celular baixinho: o texto começa mais alto, então o degradê escurece antes */
@media (max-width: 479px) and (max-height: 740px) {
  .hero-media::after {
    background: linear-gradient(180deg, rgba(43, 18, 11, .5) 0%, rgba(43, 18, 11, .22) 12%, rgba(43, 18, 11, .5) 26%, rgba(43, 18, 11, .8) 44%, rgba(43, 18, 11, .95) 100%);
  }
}
.js .hero-media { transform: scale(1.06); transition: transform 2.4s var(--ease-out); }
.is-ready .hero-media { transform: none; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide.is-leaving { opacity: 0; z-index: 2; transition-duration: 1.4s; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
  transform: scale(1.08); transition: transform 8s linear;
}
.hero-slide.is-active img { transform: scale(1); }

.hero-inner {
  display: grid; align-content: end; gap: 28px;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}
.hero-content { max-width: 720px; }
.hero .eyebrow { color: var(--sol-300); }
.hero-title {
  margin: 14px 0 18px;
  font: 400 clamp(2.2rem, 11vw, 6.6rem)/.98 var(--serif);
  letter-spacing: -.025em; color: #fff;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { color: var(--sol-300); font-weight: 400; }
.hero-lead { max-width: 52ch; font-size: 1.125rem; line-height: 1.6; color: var(--on-dark-2); text-wrap: pretty; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 24px; }
.hero-chips li {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px;
  border: 1px solid rgba(251, 244, 234, .28); border-radius: 999px;
  background: rgba(43, 18, 11, .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .875rem; color: var(--on-dark);
}
.hero-chips .i { width: 17px; height: 17px; color: var(--sol-300); }
@media (max-width: 359px) { .hero-chips .i { display: none; } }
@media (min-width: 600px) {
  .hero-chips { gap: 8px; margin: 24px 0 30px; }
  .hero-chips li { gap: 8px; min-height: 38px; padding: 0 14px; font-size: .9375rem; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* No celular, "Ver as fotos" vira um botão redondo só com o ícone */
@media (max-width: 479px) {
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .btn-sol { flex: 1; min-width: 0; }
  .hero-actions .btn-ghost-light { flex: none; width: 54px; padding: 0; }
  .hero-actions .btn-ghost-light span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

/* Legenda e marcadores: no celular, um embaixo do outro (são 6 fotos) */
.hero-indicators { display: grid; gap: 4px; }
.hero-caption { display: flex; align-items: baseline; gap: 12px; min-width: 0; font-size: .9375rem; color: var(--on-dark-2); }
.hero-caption-num { font: italic 500 1rem/1 var(--serif); color: var(--sol-300); }
.hero-dots { display: flex; gap: 4px; margin-left: -4px; }
.hero-dots button {
  display: grid; align-items: center; width: 40px; height: 32px; padding: 0 4px; border: 0; background: none;
}
@media (max-width: 359px) { .hero-dots button { width: 36px; } }
.hero-dots span { position: relative; display: block; height: 2px; overflow: hidden; background: rgba(251, 244, 234, .3); }
.hero-dots span::after {
  content: ""; position: absolute; inset: 0; background: var(--on-dark);
  transform: scaleX(0); transform-origin: left;
}
.hero-dots .is-done span::after { transform: scaleX(1); }
.hero-dots .is-active span::after { animation: progressFill var(--slide-ms, 6500ms) linear forwards; }
.hero-dots.is-static .is-active span::after { animation: none; transform: scaleX(1); }

/* Entrada: espera a abertura terminar (classe is-ready) */
.js .intro, .js .hero-title .line > span {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms + 100ms);
}
.js .hero-title .line > span { transform: translateY(105%); transition-duration: 1s, 1.2s; }
.is-ready .intro, .is-ready .hero-title .line > span { opacity: 1; transform: none; }

@media (min-width: 1024px) {
  .hero-inner { padding-bottom: 56px; grid-template-columns: 1fr auto; align-items: end; }
  .hero-indicators { justify-items: end; gap: 10px; }
  .hero-dots { margin: 0 -4px 0 0; }
}

/* ==========================================================================
   Destaques
   ========================================================================== */
.highlights { position: relative; z-index: 2; background: var(--areia); border-bottom: 1px solid var(--line); }
.highlights-list { display: grid; grid-template-columns: 1fr 1fr; }
.highlights-list li {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 20px 12px 20px 0;
  font-size: .9375rem; line-height: 1.35; color: var(--ink-2);
}
.highlights-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.highlights-list li:nth-child(even) { padding-left: 16px; padding-right: 0; }
.highlights-list li:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
.highlights-list .i { width: 26px; height: 26px; color: var(--terra-700); }
.highlights-list strong { color: var(--ink); font-weight: 700; }
@media (max-width: 359px) {
  .highlights-list li { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .highlights-list { grid-template-columns: repeat(3, 1fr); }
  .highlights-list li, .highlights-list li:nth-child(n) { padding: 22px 18px; border: 0; }
  .highlights-list li:nth-child(3n+1) { padding-left: 0; }
  .highlights-list li:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
  .highlights-list li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .highlights-list { grid-template-columns: repeat(6, 1fr); }
  .highlights-list li, .highlights-list li:nth-child(n) {
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 14px;
    padding: 34px 20px; border: 0; border-right: 1px solid var(--line);
  }
  .highlights-list li:first-child { padding-left: 0; }
  .highlights-list li:last-child { border-right: 0; }
}

/* ==========================================================================
   O studio
   ========================================================================== */
.studio-grid { display: grid; gap: 56px; align-items: center; }
.studio-copy .lead + .lead { margin-top: 16px; }
.studio-copy h2 { margin-bottom: 24px; }
.studio-facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 36px; border-top: 1px solid var(--line); }
.studio-facts div { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); }
.studio-facts div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.studio-facts dt {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
  font: 700 .75rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sol-700);
}
.studio-facts dt .i { width: 17px; height: 17px; }
.studio-facts dd { font: 500 1.125rem/1.3 var(--serif); color: var(--ink); }
/* Passeio em 3D: abre o studio-3d.html (o mesmo do guia) */
.studio-tour { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 32px; }
.studio-tour p { flex: 1 1 220px; margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.studio-collage { position: relative; padding: 0 0 56px 18%; }
.collage-main { aspect-ratio: 3 / 4; border-radius: var(--radius-lg); box-shadow: 0 40px 70px -40px rgba(74, 32, 20, .55); }
/* Fotos recortadas (object-fit: cover): --pos escolhe o pedaço que aparece */
.media-frame img, .g-btn img, .tile-btn img { object-position: var(--pos, 50% 50%); }
.collage-side {
  position: absolute; left: 0; bottom: 0; width: 42%; aspect-ratio: 3 / 4;
  border: 6px solid var(--areia); border-radius: var(--radius);
  box-shadow: 0 30px 50px -30px rgba(74, 32, 20, .6);
}
.collage-badge {
  position: absolute; top: 24px; left: calc(18% - 34px);
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: var(--terra-800); color: var(--on-dark);
  font: italic 500 1.75rem/1 var(--serif); text-align: center;
  box-shadow: 0 16px 30px -12px rgba(74, 32, 20, .6);
}
.collage-badge span { display: block; margin-bottom: -18px; font: 700 .625rem/1 var(--sans); letter-spacing: .2em; color: var(--sol-300); }
@media (min-width: 900px) {
  .studio-grid { grid-template-columns: 1.05fr .95fr; gap: 80px; }
}

.amenities { margin-top: clamp(64px, 9vw, 110px); }
.amenities h3 { margin-bottom: 24px; font-size: 1.5rem; }
.amenities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.amenities-grid li {
  display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 64px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
  font-size: .9375rem; line-height: 1.3; color: var(--ink);
  transition: border-color .3s, transform .4s var(--ease-out), box-shadow .4s;
}
.amenities-grid li:hover { border-color: var(--sol-300); transform: translateY(-2px); box-shadow: 0 14px 30px -22px rgba(74, 32, 20, .5); }
.amenities-grid .i { width: 24px; height: 24px; color: var(--mar); }
.amenities-note { margin-top: 16px; font-size: .9375rem; color: var(--muted); }
@media (max-width: 479px) { .amenities-grid li { gap: 10px; padding: 10px 12px; font-size: .875rem; } .amenities-grid .i { width: 22px; height: 22px; } }
@media (max-width: 359px) { .amenities-grid { grid-template-columns: 1fr; } .amenities-grid li { min-height: 52px; } }
@media (min-width: 700px) { .amenities-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .amenities-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }

/* ==========================================================================
   Condomínio
   ========================================================================== */
.condo > .wrap { container-type: inline-size; }
.condo-mosaic {
  --cols: 2; --gap: 10px;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap);
  grid-auto-rows: 30vw;
  grid-auto-rows: calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols) * .72);
}
.condo-tile { position: relative; min-width: 0; }
.condo-tile.is-big { grid-column: span 2; grid-row: span 2; }
.tile-btn {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0;
  overflow: hidden; border-radius: var(--radius); background: var(--terra-700);
}
.tile-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tile-btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(43, 18, 11, .72));
}
.tile-btn:hover img { transform: scale(1.06); }
.tile-cap {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1;
  font: 600 .9375rem/1.25 var(--sans); color: #fff; text-align: left;
}
.is-big .tile-cap { font: 500 1.375rem/1.2 var(--serif); left: 20px; bottom: 18px; }
@media (min-width: 900px) {
  .condo-mosaic { --cols: 4; --gap: 14px; grid-auto-rows: 15vw; grid-auto-rows: calc((100cqi - 3 * var(--gap)) / 4 * .72); }
  .is-big .tile-cap { font-size: 1.75rem; left: 28px; bottom: 24px; }
}
.condo-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 40px; }
.condo-list li {
  display: flex; align-items: center; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--line-dark); color: var(--on-dark); font-size: .9375rem;
}
.condo-list .i { width: 22px; height: 22px; color: var(--sol-300); }
@media (max-width: 359px) { .condo-list { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .condo-list { grid-template-columns: repeat(4, 1fr); gap: 0 32px; } }
.condo-note { max-width: 70ch; margin-top: 20px; font-size: .9375rem; line-height: 1.55; color: var(--on-dark-2); }

/* ==========================================================================
   Galeria: 2 colunas no celular, 4 a partir de 900 px. A altura das linhas
   acompanha a largura da coluna (unidades de contêiner), então cada forma
   tem sempre a mesma proporção: is-wide 2 × 1 (fotos largas, 20:9),
   is-tall 1 × 2 (fotos em pé) e is-big 2 × 2.
   ========================================================================== */
.gallery-filters {
  display: flex; gap: 8px; margin: 0 calc(-1 * var(--gutter)) 24px; padding: 2px var(--gutter) 6px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
}
.gallery-filters::-webkit-scrollbar { display: none; }
/* (o mesmo para os filtros do mapa, que vêm do mapa.css) */
.map-filters { scroll-padding-inline: var(--gutter); }
.gallery-filters button {
  display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: transparent;
  font: 600 .9375rem/1 var(--sans); color: var(--ink-2); white-space: nowrap; scroll-snap-align: start;
  transition: background-color .3s, color .3s, border-color .3s;
}
.gallery-filters button:hover { border-color: var(--terra-800); color: var(--ink); }
.gallery-filters button[aria-pressed="true"] {
  background: var(--terra-800); border-color: var(--terra-800); color: var(--areia);
}
.gallery-filters .count { font-size: .8125rem; opacity: .75; }
@media (min-width: 700px) { .gallery-filters { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; } }

.gallery > .wrap { container-type: inline-size; }
.gallery-grid {
  --cols: 2; --gap: 8px; --shown: 9;
  --row: 40vw;
  --row: calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols) * .9);
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap);
  grid-auto-flow: row dense; grid-auto-rows: var(--row);
}
@media (min-width: 900px) { .gallery-grid { --cols: 4; --gap: 14px; --shown: 5; } }
/* Recolhida: só as primeiras linhas, com um esmaecido até o botão "Ver todas" */
.js .gallery-grid.is-collapsed {
  max-height: calc(var(--shown) * (var(--row) + var(--gap)) - var(--gap)); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 240px), transparent 96%);
  mask-image: linear-gradient(180deg, #000 calc(100% - 240px), transparent 96%);
}
.gallery-more { display: none; }
.js .gallery-grid.is-collapsed + .gallery-more {
  position: relative; z-index: 1; display: flex; justify-content: center; margin-top: -68px;
}
.gallery-more .btn { box-shadow: 0 18px 36px -18px rgba(74, 32, 20, .7); }
.g-item { min-width: 0; }
.g-item.is-wide { grid-column: span 2; }
.g-item.is-tall { grid-row: span 2; }
.g-item.is-big { grid-column: span 2; grid-row: span 2; }
.g-btn {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0;
  overflow: hidden; border-radius: 12px; background: var(--sand-100);
}
.g-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.g-btn::after {
  content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(43, 18, 11, .72));
  font: 600 .875rem/1.3 var(--sans); color: #fff; text-align: left;
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease-out);
}
.g-btn:hover img { transform: scale(1.05); }
.g-btn:hover::after, .g-btn:focus-visible::after { opacity: 1; transform: none; }

/* ---------- Tela cheia ---------- */
.lightbox {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--terra-950); color: var(--on-dark);
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(43, 18, 11, .92); }
.lightbox[open] { display: flex; flex-direction: column; animation: fadeIn .35s ease; }
.lb-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px 20px;
}
.lb-count { font: italic 500 1.125rem/1 var(--serif); color: var(--on-dark-2); }
.lb-sep { margin: 0 6px; opacity: .5; }
.lb-stage { position: relative; flex: 1; display: grid; place-items: center; min-height: 0; padding: 0 12px 16px; touch-action: pan-y; }
.lb-figure { display: grid; justify-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.lb-figure img {
  max-width: min(100%, 1200px); max-height: calc(100svh - 150px); width: auto; height: auto;
  border-radius: 8px; object-fit: contain; user-select: none;
  transition: opacity .35s, transform .45s var(--ease-out);
}
.lb-figure img.is-loading { opacity: 0; transform: scale(.985); }
.lb-figure figcaption { padding-bottom: env(safe-area-inset-bottom); font-size: .9375rem; color: var(--on-dark-2); text-align: center; }
.lb-nav {
  position: absolute; top: 50%; z-index: 2; display: grid; place-items: center;
  width: 52px; height: 52px; margin-top: -26px; padding: 0;
  border: 1px solid var(--line-dark); border-radius: 50%; background: rgba(43, 18, 11, .5); color: var(--on-dark);
  transition: background-color .3s;
}
.lb-nav:hover { background: rgba(251, 244, 234, .12); }
.lb-nav .i { width: 24px; height: 24px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (max-width: 699px) { .lb-nav { top: auto; bottom: 18px; margin-top: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* sem a faixa reservada para a barra de rolagem, que ficaria como uma tira clara à direita */
html:has(.lightbox[open]) { scrollbar-gutter: auto; }

/* ==========================================================================
   Descubra Porto de Galinhas
   ========================================================================== */
.places { padding-top: 0; }
.places-banner { height: clamp(220px, 34vw, 420px); margin-bottom: clamp(56px, 8vw, 96px); }
/* No desktop, a foto fica na largura do conteúdo */
@media (min-width: 900px) {
  .places { padding-top: clamp(80px, 10vw, 140px); }
  .places-banner { width: min(1200px, 100% - 2 * var(--gutter)); height: 380px; margin-inline: auto; border-radius: var(--radius-lg); }
}
.js .reveal-img::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--sand-100); transform-origin: 50% 0;
  transition: transform 1.3s var(--ease-in-out);
}
.js .reveal-img img { opacity: 0; transition: opacity 1.2s var(--ease-out) .2s; }
.js .reveal-img.is-visible::after { transform: scaleY(0); }
.js .reveal-img.is-visible img { opacity: 1; }

.tabs {
  display: flex; gap: 6px; margin: 0 calc(-1 * var(--gutter)) 28px; padding: 2px var(--gutter) 6px;
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: transparent;
  font: 600 .9375rem/1 var(--sans); color: var(--ink-2); white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s;
}
.tabs button .i { width: 18px; height: 18px; color: var(--sol-700); transition: color .3s; }
.tabs button:hover { border-color: var(--terra-800); }
.tabs button[aria-selected="true"] { background: var(--terra-800); border-color: var(--terra-800); color: var(--areia); }
.tabs button[aria-selected="true"] .i { color: var(--sol-300); }
@media (min-width: 900px) { .tabs { margin-inline: 0; padding-inline: 0; overflow: visible; } }
.tab-panel { animation: fadeUp .5s var(--ease-out); }

.spot-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .spot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .spot-grid { grid-template-columns: repeat(4, 1fr); }
  .spot-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
}
.spot {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.spot:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 30px 50px -36px rgba(74, 32, 20, .6); }
.spot-photo { aspect-ratio: 16 / 10; }
.spot-photo img { transition: transform 1.2s var(--ease-out); }
.spot:hover .spot-photo img { transform: scale(1.05); }
.spot-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 18px 16px; }
.spot-body p { flex: 1; font-size: .9375rem; line-height: 1.5; }

.go-map {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  min-height: 44px; margin-top: 4px; padding: 0; border: 0; background: none; text-align: left;
  font: 700 .8125rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--mar);
}
.go-time {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: var(--sand-100); color: var(--ink); letter-spacing: 0; text-transform: none; font-weight: 600;
}
.go-time:empty { display: none; }
.go-time .i { width: 15px; height: 15px; }
.go-label { display: inline-flex; align-items: center; gap: 6px; }
.go-label::after { content: "→"; transition: transform .3s var(--ease-out); }
.go-map:hover .go-label::after { transform: translateX(4px); }

.rows-title { margin: 44px 0 14px; font-size: 1.375rem; }
.rows { display: grid; gap: 8px; margin-top: 8px; }
.spot-grid + .rows { margin-top: 16px; }
.row {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px;
  padding: 14px 16px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line);
}
.row-icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--cat, var(--mar)); color: #fff;
}
.row-icon .i { width: 18px; height: 18px; }
.row-body p { margin-top: 2px; font-size: .9375rem; line-height: 1.45; }
.row .go-map { grid-column: 2; margin-top: 0; }
@media (min-width: 700px) {
  .row { grid-template-columns: auto 1fr auto; padding: 16px 20px; }
  .row .go-map { grid-column: auto; flex-direction: column; align-items: flex-end; gap: 6px; }
}
.panel-lead { margin-bottom: 18px; }
/* Dica do anfitrião: acento azul-petróleo do mar */
.tip {
  display: flex; align-items: flex-start; gap: 14px; margin-top: 20px; padding: 18px 20px;
  border-radius: var(--radius); background: rgba(31, 111, 122, .08); box-shadow: inset 3px 0 0 var(--mar);
  font-size: .9375rem; line-height: 1.55; color: var(--ink-2);
}
.tip .i { width: 24px; height: 24px; margin-top: 1px; color: var(--mar); }
.tip strong { color: var(--ink); }
.photo-credits { margin-top: 36px; font-size: .8125rem; line-height: 1.6; color: var(--muted); }
.photo-credits a { color: inherit; text-underline-offset: 2px; }
.photo-credits a:hover { color: var(--terra-700); }

/* ==========================================================================
   Avaliações. O Airbnb só mostra a nota média a partir da 3ª avaliação:
   enquanto isso, nada de nota, só o selo de novidade e os comentários.
   ========================================================================== */
.reviews { padding-block: clamp(72px, 9vw, 120px); }
.reviews-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .reviews-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.reviews-badge {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px 0 12px;
  border-radius: 999px; background: var(--mar); color: #fff;
  font: 700 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.reviews-badge .i { width: 16px; height: 16px; color: var(--sol-300); }
.reviews-intro h2 { margin: 18px 0; }
.reviews-count { color: var(--ink); }
.praise-title {
  margin-top: 28px; font: 700 .8125rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--sol-700);
}
.praise { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.praise li {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line);
  font: italic 500 1rem/1.2 var(--serif); color: var(--ink);
}
.praise .i { width: 18px; height: 18px; color: var(--terra-700); }

.review-list { display: grid; gap: 16px; }
.review {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 28px 24px 24px; border-radius: var(--radius-lg); background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 40px 70px -50px rgba(74, 32, 20, .55);
}
.review::before {
  content: "\201C"; position: absolute; top: 4px; right: 22px;
  font: 400 6.5rem/1 var(--serif); color: var(--sol); opacity: .5; pointer-events: none;
}
.review-stars { display: inline-flex; gap: 3px; color: var(--sol); }
.review-stars .i { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.review blockquote { display: grid; gap: 10px; margin: 0; font-size: 1rem; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
/* Um comentário só: em destaque, como citação */
.review:only-child { padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 44px) 28px; }
.review:only-child .review-stars .i { width: 22px; height: 22px; }
.review:only-child blockquote { font: 400 clamp(1.625rem, 1.2rem + 1.8vw, 2.375rem)/1.25 var(--serif); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.review-author strong { display: block; font: 600 1.0625rem/1.3 var(--serif); color: var(--ink); }
.review-avatar {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--terra-700); color: #fff; font: 500 1.125rem/1 var(--serif);
}
.review-more {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 12px;
  font: 700 .8125rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--mar); text-decoration: none;
}
.review-more .i { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.review-more:hover .i { transform: translate(2px, -2px); }

/* ==========================================================================
   Datas e reserva
   ========================================================================== */
.book-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1000px) { .book-grid { grid-template-columns: .85fr 1.15fr; gap: 72px; } }
.book-copy h2 { margin-bottom: 20px; }
.book-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.book-facts li {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px;
  border: 1px solid var(--line-dark); border-radius: 12px; font-size: .9375rem; line-height: 1.35;
}
.book-facts strong { display: block; color: var(--on-dark); }
.book-facts .i { width: 20px; height: 20px; color: var(--sol-300); margin-top: 1px; }
.rules-title { margin: 36px 0 12px; font-size: 1.125rem; }
.book-rules li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-dark); font-size: .9375rem; }
.book-rules .i { width: 20px; height: 20px; color: var(--sol-300); }

.booking {
  position: relative; padding: 22px 18px 20px; border-radius: var(--radius-lg);
  background: var(--areia); color: var(--ink-2);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .8);
}
@media (min-width: 600px) { .booking { padding: 28px 28px 24px; } }
.cal-head { position: absolute; top: 14px; left: 10px; right: 10px; display: flex; justify-content: space-between; pointer-events: none; }
@media (min-width: 600px) { .cal-head { top: 20px; left: 18px; right: 18px; } }
.cal-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cal-nav {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink);
  pointer-events: auto; transition: border-color .3s, opacity .3s;
}
.cal-nav:hover:not(:disabled) { border-color: var(--terra-800); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-months { display: grid; gap: 28px; }
.cal-months.is-double { grid-template-columns: 1fr 1fr; gap: 32px; }
.cal-month-name {
  display: grid; place-items: center; height: 44px; margin-bottom: 10px;
  font: 600 1.125rem/1 var(--serif); color: var(--ink);
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
@media (max-width: 359px) { .cal-month-name { font-size: 1rem; } .cal-nav { width: 40px; height: 40px; } }
.cal-dow { padding-bottom: 8px; font: 700 .6875rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }
.cal-cell { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-height: 48px; }
.cal-cell::before { content: ""; position: absolute; inset: 3px 0; background: transparent; }
.cal-cell.in-range::before, .cal-cell.is-preview::before { background: var(--sand-100); }
.cal-cell.is-start.has-end::before { left: 50%; background: var(--sand-100); }
.cal-cell.is-end::before { right: 50%; background: var(--sand-100); }
.cal-day {
  position: relative; display: grid; place-items: center; width: min(44px, 100%); aspect-ratio: 1; padding: 0;
  border: 1px solid transparent; border-radius: 50%; background: transparent;
  font: 600 .9375rem/1 var(--sans); color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
.cal-day:hover:not(:disabled) { border-color: var(--terra-800); }
.cal-day:disabled { color: rgba(43, 24, 16, .28); cursor: default; text-decoration: line-through; text-decoration-color: rgba(43, 24, 16, .2); }
.cal-day.is-today::after { content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--sol); }
.is-start .cal-day, .is-end .cal-day { background: var(--terra-800); border-color: var(--terra-800); color: var(--areia); }
.is-start .cal-day.is-today::after, .is-end .cal-day.is-today::after { background: var(--sol-300); }

.guests { display: grid; margin-top: 22px; border-top: 1px solid var(--line); }
.guest { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.guest p { display: grid; gap: 2px; }
.guest strong { color: var(--ink); }
.guest span { font-size: .8125rem; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--ink);
  transition: border-color .3s, opacity .3s;
}
.stepper button .i { width: 16px; height: 16px; }
.stepper button:hover:not(:disabled) { border-color: var(--terra-800); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 1.5ch; font: 600 1.125rem/1 var(--serif); color: var(--ink); text-align: center; }

.book-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 14px; }
#book-summary { font: 500 1.0625rem/1.4 var(--serif); color: var(--ink); }
.book-clear {
  min-height: 36px; padding: 0; border: 0; background: none;
  font: 700 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--mar);
  text-decoration: underline; text-underline-offset: 3px;
}
.book-cta { width: 100%; min-height: 58px; padding-block: 12px; font-size: .9375rem; line-height: 1.3; white-space: normal; text-align: center; }
.book-grid > * { min-width: 0; }
.book-note { margin-top: 12px; font-size: .8125rem; line-height: 1.45; color: var(--muted); text-align: center; }
.cal-noscript { padding: 12px 0; }

/* ==========================================================================
   Rodapé e barra de reserva (celular)
   ========================================================================== */
.site-footer {
  padding: 64px 0 calc(40px + var(--bookbar-h) + env(safe-area-inset-bottom));
  background: var(--terra-950); color: var(--on-dark-2);
}
.footer-inner { display: grid; justify-items: center; gap: 18px; text-align: center; }
.footer-logo { width: 170px; }
.footer-address { max-width: 32ch; font-size: .9375rem; text-wrap: balance; }
.footer-address .i { display: inline-block; margin-right: 6px; vertical-align: -4px; color: var(--sol-300); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.footer-links a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; color: var(--on-dark); text-decoration: none;
}
.footer-links .i { width: 16px; height: 16px; color: var(--sol-300); }
.footer-links a:hover { color: var(--sol-300); }
.footer-copy { font-size: .8125rem; opacity: .7; }
@media (min-width: 1024px) { .site-footer { padding-bottom: 48px; } }

.bookbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(250, 243, 234, .94); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 -1px 0 var(--line), 0 -16px 40px -24px rgba(74, 32, 20, .4);
  transform: translateY(110%); transition: transform .5s var(--ease-out);
}
.bookbar.is-shown { transform: none; }
.bookbar-info { display: grid; gap: 2px; min-width: 0; }
.bookbar-name { display: inline-flex; align-items: center; gap: 6px; font: 600 1rem/1.2 var(--serif); color: var(--ink); white-space: nowrap; }
.bookbar-name .i { width: 17px; height: 17px; color: var(--sol-700); }
@media (max-width: 359px) { .bookbar-name .i { display: none; } .bookbar-btn { padding: 0 18px; } }
.bookbar-dates { overflow: hidden; font-size: .8125rem; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.bookbar-btn { flex: none; min-height: 48px; padding: 0 22px; font-size: .8125rem; white-space: nowrap; }
@media (min-width: 1024px) { .bookbar { display: none; } }

/* ==========================================================================
   Passeio em 3D: texto ao lado e a mesma caixa do guia (.t3d); o modelo
   (studio-3d.html, num iframe) só carrega depois do toque
   ========================================================================== */
.tour-grid { display: grid; gap: 40px; align-items: center; }
.tour-copy h2 { margin-bottom: 22px; }
.tour-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.tour-features li {
  display: flex; flex-direction: column; gap: 10px; padding: 16px;
  border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
  background: rgba(251, 244, 234, .05); font-size: .9375rem; line-height: 1.35; color: var(--on-dark);
}
.tour-features .i { width: 24px; height: 24px; color: var(--sol-300); }
@media (min-width: 1000px) { .tour-grid { grid-template-columns: 5fr 7fr; gap: 64px; } }

.t3d {
  --focus: var(--sol-300);
  overflow: hidden; border-radius: var(--radius-lg); background: var(--terra-900);
  border: 1px solid var(--line-dark); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .6);
}
.t3d-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 8px 8px 8px 18px; color: var(--on-dark); }
.t3d-name { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 1.05rem/1.2 var(--serif); }
.t3d-name .i { width: 20px; height: 20px; color: var(--sol-300); }
.t3d-expand {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border: 1px solid rgba(251, 244, 234, .34); border-radius: 999px; background: none; color: var(--on-dark);
  font: 700 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  transition: background-color .3s, border-color .3s;
}
.t3d-expand[hidden] { display: none; }
.t3d-expand .i { width: 16px; height: 16px; }
.t3d-expand:hover { background: rgba(251, 244, 234, .1); border-color: var(--on-dark); }
.t3d-stage { position: relative; height: min(62svh, 520px); background: var(--sand-100); }
.t3d-poster, .t3d-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.t3d-cover {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 14px; padding: 24px 20px 28px; text-align: center;
  background: linear-gradient(180deg, rgba(43, 18, 11, 0) 48%, rgba(43, 18, 11, .8));
}
.t3d-note { margin: 0; max-width: 36ch; font-size: .875rem; line-height: 1.45; color: var(--on-dark-2); }
.t3d-frame { display: block; width: 100%; height: 100%; border: 0; background: var(--sand-100); }
/* Tela cheia feita com CSS (funciona também no iPhone); o iframe não sai do lugar, então não recarrega */
.t3d.is-big {
  position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column;
  border: 0; border-radius: 0; padding-top: env(safe-area-inset-top);
}
.t3d.is-big .t3d-stage { flex: 1; height: auto; }
html:has(.t3d.is-big) { scrollbar-gutter: auto; }
@media (min-width: 1000px) { .t3d-stage { height: min(72vh, 620px); } }

/* ==========================================================================
   Revelação ao rolar, títulos palavra por palavra, rolagem suave
   ========================================================================== */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .split-words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.js .split-words .w > span {
  display: inline-block; transform: translateY(110%);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.js .split-words.is-visible .w > span { transform: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
[data-parallax] { will-change: transform; }
.magnetic { will-change: transform; }

/* ---------- Cozinha e café, camas e enxoval, varanda e praia ----------
   As mesmas seções do guia (styles.css), com as mesmas classes; sem as regras da casa. */
.split { display: grid; gap: 48px; align-items: center; }
.split-media { order: 2; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); }
.split-copy { min-width: 0; }
.feature-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px;
  margin-top: 32px; border-top: 1px solid var(--line-strong);
}
.feature-list li {
  display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 62px; padding: 12px 0;
  border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.3; color: var(--ink);
}
.feature-list .i { flex-shrink: 0; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--sand-50); color: var(--terra-700); }
.tone-sand .feature-list .i { background: #fff; }
.note {
  display: flex; gap: 16px; margin-top: 28px; padding: 20px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.note > .i { flex-shrink: 0; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--sand-50); color: var(--terra-700); }
.note h3 { margin-bottom: 6px; font: 600 1.15rem/1.25 var(--serif); color: var(--ink); }
.note p { font-size: 1rem; color: var(--ink-2); }
.coffee { margin-top: clamp(64px, 9vw, 120px); }
.coffee-head { display: flex; align-items: center; gap: 16px; padding-bottom: 4px; }
.coffee-head > .i { flex-shrink: 0; width: 54px; height: 54px; padding: 13px; border-radius: 50%; background: var(--terra-700); color: var(--sol-300); }
.coffee-head h3 { font: 600 clamp(1.5rem, 1.2rem + 1.1vw, 2rem)/1.15 var(--serif); color: var(--ink); }
.coffee-head p { margin-top: 4px; font: 700 .8125rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sol-700); }
.coffee-lead { margin-top: 24px; }
.signature { margin-top: 28px; font: italic 400 1.35rem/1.35 var(--serif); color: var(--terra-700); }

.bed-cards { display: grid; gap: 14px; }
.bed-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.bed-card figure { aspect-ratio: 16 / 10; }
.bed-card > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 14px; align-items: center; padding: 18px 20px 20px; }
.bed-card > div > .i { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--terra-700); color: var(--on-dark); }
.bed-card h3 { font: 600 1.3rem/1.2 var(--serif); color: var(--ink); }
.bed-card p { font-size: .9375rem; color: var(--muted); }
.linen { margin-top: 28px; padding: 24px 22px; border-radius: var(--radius-lg); background: var(--sand-50); border: 1px solid var(--line); }
.linen h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font: 600 1.3rem/1.2 var(--serif); color: var(--ink); }
.linen h3 .i { width: 20px; height: 20px; color: var(--sol-700); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 16px 6px 7px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: .9375rem; line-height: 1.3; color: var(--ink);
}
.chips .i { flex-shrink: 0; width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--sand-50); color: var(--terra-700); }

.beach-grid { display: grid; gap: 14px; }
.beach-main { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); }
.beach-side { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); }
.beach-kit { padding: 24px 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.beach-kit h3 { font: 600 1.6rem/1.15 var(--serif); color: var(--ink); }
.kit-label { margin: 18px 0 8px; font: 700 .75rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sol-700); }
.kit-list { display: grid; gap: 4px; }
.kit-list li { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--ink); font-weight: 600; }
.kit-list .i { flex-shrink: 0; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--terra-700); color: var(--on-dark); }
.kit-list--bring .i { background: var(--mar); }
.moments { margin-top: clamp(56px, 7vw, 88px); }
.moments-title { margin-bottom: 18px; font: 600 clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem)/1.15 var(--serif); color: var(--ink); }
.moments-list {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scroll-padding-inline: var(--gutter);
}
.moments-list::-webkit-scrollbar { display: none; }
.moment { flex: 0 0 82%; scroll-snap-align: start; }
.moment--tall { flex-basis: 56%; }
.moment figure { height: 240px; border-radius: var(--radius); }
.moment p { display: flex; gap: 10px; margin-top: 12px; font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.moment p .i { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; color: var(--sol-700); }

@media (min-width: 560px) {
  .moment { flex-basis: 64%; }
  .moment--tall { flex-basis: 40%; }
  .moment figure { height: 300px; }
}
@media (min-width: 700px) {
  .bed-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .beach-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .beach-main { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
  .beach-side { aspect-ratio: auto; height: 100%; min-height: 260px; }
}
@media (min-width: 768px) {
  .split-media { aspect-ratio: 4 / 5; }
}
@media (min-width: 900px) {
  .moments-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .6fr); overflow: visible; margin-inline: 0; padding: 0; }
  .moment figure { height: clamp(220px, 22vw, 300px); }
}
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(64px, 7vw, 120px); }
  .split--reverse .split-media { order: 0; }
  .beach-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, .8fr) minmax(0, 1fr); }
  .beach-main { grid-column: auto; aspect-ratio: auto; min-height: 380px; }
  .beach-side { min-height: 0; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .hero-slide img { transform: none !important; }
}
