/* Cenas de rolagem (cena.js): capa presa com as melhores fotos e "Por dentro" do imóvel em destaque.
   A foto fica num quadro do tamanho dela, que cabe inteiro na tela (sem corte e sem rolar para ver). */
.cn-f { position: absolute; left: 50%; top: 50%; margin: 0; width: 60%; height: 60%; transform: translate(-50%, -50%) scale(.97); opacity: 0; overflow: hidden; border-radius: calc(var(--r) + 4px); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); transition: opacity .7s ease, transform .9s var(--ease); cursor: pointer; background: rgba(0, 0, 0, .2); }
.cn-f img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.cn-f .cn-bg { position: absolute; inset: 0; object-fit: cover; filter: blur(22px) brightness(.62) saturate(1.2); transform: scale(1.15); }
.cn-f.on { opacity: 1; transform: translate(-50%, -50%); }
.cn-f.antes { transform: translate(-50%, -58%) scale(.94); }
.cn-f.depois { transform: translate(-50%, -42%) scale(.94); }

/* ---------- capa presa ---------- */
.hero.hs { display: block; min-height: 0; height: calc(100svh + (var(--n) - 1) * 40svh); background: var(--dark); align-items: initial; }
.hero.hs::after { display: none; }
.hs-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hs-amb { position: absolute; inset: -60px; z-index: 0; }
.hs-amb img { width: 100%; height: 100%; object-fit: cover; filter: blur(42px) brightness(.32) saturate(1.25); transition: opacity .6s; }
.hs-grid { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 44px; }
.hero.hs .hero-txt { padding: 0; }
.hero.hs .hero-pe { margin-top: 22px; }
.hero.hs .hero-pe .pontos { display: none; }
.hs-dir { height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 16px; }
.hs-palco { position: relative; min-height: 0; }
.hs-cap { display: grid; gap: 4px; color: #fff; text-decoration: none; justify-self: center; text-align: center; max-width: 100%; }
.hs-cap small { font: 600 10px/1.2 var(--f-body); letter-spacing: .24em; text-transform: uppercase; opacity: .7; }
.hs-cap b { font: var(--head-w) clamp(17px, 1.7vw, 22px)/1.15 var(--f-head); letter-spacing: var(--head-ls); }
.hs-cap span { font-size: 14px; color: var(--gold); font-weight: 600; }
.hs-cap[hidden] { display: none; }
.hs-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .14); z-index: 2; }
.hs-prog i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.hs-dica { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2; font: 600 10px/1 var(--f-body); letter-spacing: .28em; text-transform: uppercase; color: #fff; opacity: .6; transition: opacity .4s; pointer-events: none; }
.hs-dica::after { content: ""; display: block; width: 1px; height: 18px; margin: 8px auto 0; background: currentColor; animation: hsDica 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes hsDica { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hs-pin.rolou .hs-dica { opacity: 0; }
@media (max-width: 900px) {
  .hs-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 14px; padding-top: 80px; padding-bottom: 84px; align-items: stretch; }
  .hero.hs h1 { font-size: clamp(28px, 8.2vw, 40px); }
  .hero.hs p.sub { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero.hs .olho { margin-bottom: 8px; }
  .hero.hs .hero-txt { gap: 10px; }
  .hero.hs .hero-pe { display: none; }
  .hs-dir { gap: 10px; }
  .hs-dica { display: none; }
}

/* ---------- por dentro ---------- */
.tour { position: relative; height: calc(100svh + (var(--n) - 1) * 35svh); }
.tour-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.tour-grid { height: 100%; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 40px; }
.tour-palco { position: relative; height: 100%; min-height: 0; }
.tour .cn-f { box-shadow: 0 20px 50px rgba(0, 0, 0, .18); }
.tour-txt h2 { font-size: clamp(26px, 3.2vw, 44px); margin: 0 0 8px; }
.tour-preco { margin: 0 0 18px; font-size: 22px; font-weight: 700; color: var(--accent); }
.tour-it { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.tour-it li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; opacity: .3; transition: opacity .4s; }
.tour-it li svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 2px; }
.tour-it li.on { opacity: 1; }
.tour-it li.agora span { font-weight: 700; }
.tour-pe { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.tour-n { font: 600 12px/1 var(--f-body); letter-spacing: .2em; color: var(--muted); }
.tour-bts { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .tour-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 14px; padding-top: 76px; padding-bottom: 86px; align-items: stretch; }
  .tour-txt .olho { margin-bottom: 6px; }
  .tour-txt h2 { font-size: 22px; margin-bottom: 4px; }
  .tour-preco { font-size: 18px; margin-bottom: 8px; }
  .tour-it { margin-bottom: 12px; min-height: 22px; }
  .tour-it li { display: none; }
  .tour-it li.agora { display: flex; opacity: 1; }
  .tour-bts { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tour-bts .btn { min-height: 46px; padding: 0 10px; font-size: 14px; }
  .tour-n { order: -1; }
}
@media (prefers-reduced-motion: reduce) { .cn-f { transition: none; } }

/* "Por dentro" sem escolha no painel: as 3 características ficam paradas (não trocam com as fotos) */
@media (max-width: 899px) { .tour-fixo .tour-it li { display: flex; opacity: 1; } }


/* selo vermelho acima da foto do imóvel que passa ao rolar, na parte clara (Luiz 10/11) */
.tour-selo { position: absolute; z-index: 5; top: -64px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 12px; padding: 15px 28px 15px 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink, #fff); font: 700 19px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 14px 28px -14px var(--accent); pointer-events: none; white-space: nowrap; }
.tour-selo svg { width: 20px; height: 20px; fill: #ffffff; }
@media (max-width: 900px) { .tour-selo { font-size: 15px; padding: 12px 20px 12px 16px; gap: 9px; } .tour-selo svg { width: 16px; height: 16px; } }
@media (max-width: 900px) { .tour-grid { padding-top: 136px !important; } }
