/* Páginas editoriais dos imóveis: texto à esquerda, fotos que acompanham a leitura */

/* Hero dividido (para fotos menores ou verticais) */
.prop-hero--split { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 80px);
  padding: 0 0 0 var(--edge); background: var(--paper-2); color: var(--ink); --gold-text: var(--gold); }
.prop-hero--split .prop-hero__copy { padding: 0; text-align: left; justify-items: start; order: 1; }
.prop-hero--split .eyebrow { color: var(--bronze); }
.prop-hero--split .eyebrow__line { background: var(--gold); }
.prop-hero--split .prop-hero__title { font-size: clamp(2.4rem, 5.4vw, 4.6rem); letter-spacing: .12em; }
.prop-hero--split .prop-hero__fig { order: 2; margin: 0; height: 100svh; min-height: 560px; }
.prop-hero--split .prop-hero__fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prop-hero--split .prop-hero__copy { padding: calc(var(--nav-h) + 24px) 0 64px; align-self: center; }
.prop-hero--split .prop-hero__shade, .prop-hero--split > .prop-hero__img { display: none; }
.ed__scroll { margin-top: 38px; display: inline-flex; align-items: center; gap: 12px; font: 400 .62rem/1 var(--font-body); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); }
.ed__scroll i { display: block; width: 1px; height: 38px; background: var(--gold); transform-origin: top; animation: ed-drop 2.2s var(--ease-io) infinite; }
.prop-hero:not(.prop-hero--split) .ed__scroll { color: var(--paper); margin-top: 34px; }
@keyframes ed-drop { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Corpo editorial */
.ed { padding: clamp(60px, 10vh, 120px) var(--gutter) 0 var(--edge); }
.ed__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.ed__steps { display: grid; }
.ed__step { min-height: 86vh; display: flex; flex-direction: column; justify-content: center; padding: 6vh 0; opacity: .28; transition: opacity .6s var(--ease-out); }
.ed__step.is-active { opacity: 1; }
.ed__step--photo { min-height: 62vh; }
.ed__kicker { margin: 0 0 18px; font: 400 .64rem/1.4 var(--font-body); letter-spacing: .26em; text-transform: uppercase; color: var(--bronze); display: flex; align-items: center; gap: 12px; }
.ed__kicker::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.ed__text { margin: 0; max-width: 46ch; font: 300 1.08rem/1.85 var(--font-body); color: var(--ink); }
.ed__text--lead { font: 300 clamp(1.35rem, 2.3vw, 1.95rem)/1.5 var(--font-display); max-width: 30ch; }
.ed__text + .ed__text { margin-top: 1.2em; }
.ed__photo-cap { margin: 0; font: italic 300 1.05rem/1.5 var(--font-accent); color: var(--ink-soft); max-width: 30ch; }
.ed__photo-cap b { display: block; margin-bottom: 8px; font: 400 .62rem/1.4 var(--font-body); font-style: normal; letter-spacing: .26em; text-transform: uppercase; color: var(--bronze); }
.ed__inline { display: none; }

.ed--wide .ed__layout { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); }
.ed__stage-col { align-content: center; justify-items: center; position: sticky; top: calc(var(--nav-h) + 12px); height: calc(100svh - var(--nav-h) - 36px); display: grid; grid-template-rows: auto auto auto; gap: 14px; }
.ed__meta, .ed__progress { width: 100%; }
.ed__stage { position: relative; min-height: 0; overflow: hidden; background: var(--sand); transition: width .7s var(--ease-out), height .7s var(--ease-out); }
/* páginas com fotos horizontais: palco mais largo e mais baixo, sem sobras */
.ed__slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.025); transition: opacity .8s var(--ease-out), transform 1.4s var(--ease-out); overflow: hidden; }
.ed__slide.is-on { opacity: 1; transform: none; }
.ed__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ed__img--fill { object-fit: cover; }
.ed__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font: 400 .62rem/1.4 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.ed__meta [data-ed-cap] { font: italic 300 .95rem/1.3 var(--font-accent); letter-spacing: 0; text-transform: none; text-align: right; }
.ed__progress { height: 1px; background: rgba(57, 30, 29, .14); position: relative; }
.ed__progress i { position: absolute; left: 0; top: 0; height: 1px; width: 0; background: var(--gold); transition: width .5s var(--ease-out); }

/* Ficha técnica em faixa */
.ed-specs { margin: clamp(70px, 12vh, 130px) var(--gutter) 0 var(--edge); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid rgba(57, 30, 29, .18); }
.ed-specs > div { padding: 26px 18px 26px 0; border-bottom: 1px solid rgba(57, 30, 29, .18); }
.ed-specs dt { font: 400 .62rem/1.6 var(--font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.ed-specs dd { margin: 8px 0 0; font: 300 clamp(1.15rem, 1.8vw, 1.55rem)/1.25 var(--font-display); }

/* Todas as fotos */
.ed-all { padding: clamp(70px, 12vh, 130px) var(--gutter) 0 var(--edge); }
.ed-all__title { margin: 0 0 28px; font: 300 clamp(1.5rem, 2.6vw, 2.2rem)/1.2 var(--font-display); }
.ed-all__grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(190px, 24vw, 360px); gap: clamp(8px, 1.2vw, 16px); }
.ed-all__grid img { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--sand); }

@media (max-width: 960px) {
  .ed-all__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; }
  .ed-all__grid img { grid-column: span 1 !important; }
  .ed-all__grid img:last-child:nth-child(odd) { grid-column: span 2 !important; }
  .prop-hero--split { grid-template-columns: 1fr; padding: 0; min-height: auto; gap: 0; }
  .prop-hero--split .prop-hero__fig { order: 1; height: 64svh; min-height: 0; }
  .prop-hero--split .prop-hero__copy { order: 2; padding: 36px var(--gutter) 48px; }
  .ed, .ed--wide { padding: 28px 0 0; }
  .ed__layout, .ed--wide .ed__layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ed__stage-col { display: none; }
  .ed__steps { gap: 4px; }
  /* cada passo: foto em tela cheia com o texto sobreposto na parte de baixo */
  .ed__step, .ed__step--photo { position: relative; min-height: min(78svh, 640px); opacity: 1; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--espresso); }
  .ed__step--photo { min-height: min(64svh, 520px); }
  .ed__step--photo .ed__photo-cap { display: none; }
  .ed__inline { display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: cover; }
  .ed__step:not(.ed__step--photo)::after { content: ""; position: absolute; inset: auto 0 0 0; height: 78%; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(36, 19, 18, 0) 0%, rgba(36, 19, 18, .62) 42%, rgba(36, 19, 18, .9) 100%); }
  .ed__step .ed__kicker, .ed__step .ed__text { position: relative; z-index: 2; margin-left: var(--gutter); margin-right: var(--gutter); max-width: none; color: var(--paper); text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
  .ed__step .ed__kicker { margin-bottom: 12px; color: var(--gold-light, #E4C48C); }
  .ed__step .ed__kicker::before { background: var(--gold-light, #E4C48C); }
  .ed__step .ed__text { font-size: 1rem; line-height: 1.65; }
  .ed__step .ed__text--lead { font: 300 1.3rem/1.45 var(--font-display); }
  .ed__step .ed__text:last-child { margin-bottom: 30px; }
  /* planta: aparece inteira, com o texto abaixo */
  .ed__step--plan { min-height: 0; justify-content: flex-start; background: var(--sand); }
  .ed__step--plan .ed__inline { position: static; height: auto; object-fit: contain; }
  .ed__step--plan::after { display: none; }
  .ed__step--plan .ed__kicker, .ed__step--plan .ed__text { color: var(--ink); text-shadow: none; }
  .ed__step--plan .ed__kicker { margin-top: 22px; color: var(--bronze); }
  .ed__step--plan .ed__kicker::before { background: var(--gold); }
  .ed__step--plan .ed__text:last-child { margin-bottom: 26px; }
  .ed-specs { margin-left: var(--gutter); }
  .ed-all { margin: 0; padding-left: var(--gutter); }
}
@media (prefers-reduced-motion: reduce) {
  .ed__slide, .ed__step { transition: none; }
  .ed__scroll i { animation: none; }
}

.prop-hero__title--long { font-size: clamp(1.9rem, 4.6vw, 4.2rem); letter-spacing: .1em; margin-right: -.1em; max-width: 100%; overflow-wrap: anywhere; }
.prop-hero { overflow-x: clip; }

/* Botão de visita logo após o texto */
.ed-visit { margin: clamp(36px, 7vh, 80px) var(--gutter) 0 var(--edge); padding: 28px 0; border-top: 1px solid rgba(57, 30, 29, .18); display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.ed-visit__text { margin: 0; font: 300 clamp(1.15rem, 1.8vw, 1.5rem)/1.4 var(--font-display); max-width: 34ch; }
@media (max-width: 960px) { .ed-visit { margin: 32px var(--gutter) 0; flex-direction: column; align-items: stretch; text-align: center; } .ed-visit .btn { justify-content: center; } .ed-visit__text { max-width: none; } }

.ed__meta [data-ed-num] { white-space: nowrap; flex: none; }

@media (max-width: 960px) {
  .ed__step:not(.ed__step--plan) .ed__kicker { color: #F1DDB2; font-weight: 500; }
  .ed__step:not(.ed__step--plan) .ed__kicker::before { background: #F1DDB2; }
}
