/* ==========================================================
   Romana Imóveis — premium, minimalista, editorial
   Mobile-first
   ========================================================== */

:root {
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6B7280;
  --line: #E7E5E0;
  --paper: #FAF9F6;
  --white: #FFFFFF;
  --navy: #0B1426;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-pill: 52px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .04), 0 4px 14px rgba(17, 24, 39, .05);
  --shadow-md: 0 2px 6px rgba(17, 24, 39, .05), 0 18px 40px rgba(17, 24, 39, .09);
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
}

:focus-visible { outline: 2px solid #C96B2C; outline-offset: 3px; border-radius: 8px; }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: linear-gradient(180deg, #1B2A4A 0%, #C0703A 100%); /* fallback */
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/img/hero-mobile.webp") 68% 22% / cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}

@keyframes heroZoom { to { transform: scale(1); } }

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 20, 38, .55) 0%, rgba(11, 20, 38, .15) 30%, rgba(11, 20, 38, .35) 55%, rgba(11, 20, 38, .88) 100%);
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: calc(18px + env(safe-area-inset-top, 0px));
  padding-bottom: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--white);
}
.logo__icon { width: 26px; height: 26px; }
.logo__text { font-weight: 400; }
.logo__text strong { font-weight: 700; }
.logo--dark { color: var(--ink); }

.topbar__links { display: none; }

.topbar__actions { display: flex; align-items: center; gap: 10px; }

.menu-btn {
  width: 42px; height: 42px;
  display: grid;
  place-content: center;
  gap: 5px;
  border-radius: 50%;
}
.menu-btn span { display: block; width: 22px; height: 1.8px; background: currentColor; border-radius: 2px; }

/* Hero content */
.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 40px;
  padding-bottom: 88px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 14px;
}
.eyebrow--dark { color: #C96B2C; }

.headline {
  font-size: clamp(34px, 9vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 14ch;
  text-wrap: balance;
}

/* Slogan: sans fina nas duas primeiras linhas + "Lar" grande em serifa itálica.
   Branco puro; o único acento de cor é o ponto final dourado. */
.headline {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-shadow: 0 1px 20px rgba(11, 20, 38, .35);
}
/* fio dourado curto acima do slogan */
.headline::before {
  content: "";
  display: block;
  width: 28px;
  height: 1.5px;
  margin-bottom: .55em;
  background: #E9B07A;
}
.headline__line { display: block; white-space: nowrap; }
.headline__accent {
  font-family: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 2.6em;
  line-height: .82;
  letter-spacing: -0.02em;
  margin-left: .03em; /* compensa a inclinação do L itálico e alinha com as linhas de cima */
  padding-right: .08em;
}
.headline__dot { color: #E9B07A; }

.lead {
  margin-top: 16px;
  font-size: clamp(15px, 3.9vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
  max-width: 44ch;
}

/* Search */
.search { margin-top: 28px; max-width: 620px; }

.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  background: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.segmented__opt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.segmented__opt svg { width: 17px; height: 17px; }
.segmented__opt:hover { color: var(--ink); }
.segmented__opt.is-active { background: var(--ink); color: var(--white); }

.search__field {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  padding: 0 7px 0 20px;
  background: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  color: var(--muted);
}
.search__icon { width: 20px; height: 20px; }
.search__field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
/* Lista "O que você quer ver?" (no celular abre o seletor nativo) */
.search__field select {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.search__field select:has(option[value=""]:checked) { color: var(--muted); }
.search__field select option { color: var(--ink); }
.search__field:focus-within { outline: 2px solid #C96B2C; outline-offset: 2px; }
.search__caret { width: 18px; height: 18px; flex: none; pointer-events: none; margin-right: 4px; }
.search__go {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  transition: transform .2s var(--ease);
}
.search__go svg { width: 20px; height: 20px; }
.search__go:hover { transform: translateX(2px); }

.chips {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background .25s var(--ease);
}
.chip:hover { background: rgba(255, 255, 255, .26); }
.chip.is-active,
.chips--light .chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip img, .chip__ico {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.chip__ico { display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--ink); }
.chip__ico svg { width: 15px; height: 15px; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}
.scroll-hint svg { width: 18px; height: 18px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

.below-hero-mobile { display: none; }

/* ================= HERO — CELULAR =================
   Foto 591×1008: rosto no lado direito, entre ~15% e ~32% da altura;
   braços/mãos até ~75%. Então:
   - título numa coluna estreita à esquerda (montanha/cidade), ao lado do rosto
   - busca colada embaixo (calça/folhagem), abaixo das mãos
   - pílulas e descrição saem da foto e vão logo abaixo dela
   Medidas em vw para acompanhar a foto em qualquer largura de celular. */
@media (max-width: 639px) {
  .hero {
    min-height: 0;
    aspect-ratio: 591 / 1008; /* mostra a foto inteira, sem cortes */
  }
  .hero__bg { background-position: center top; }
  .hero__overlay {
    background:
      radial-gradient(ellipse 70% 50% at 0% 22%, rgba(11, 20, 38, .6) 0%, rgba(11, 20, 38, .25) 55%, rgba(11, 20, 38, 0) 100%),
      linear-gradient(180deg, rgba(11, 20, 38, .5) 0%, rgba(11, 20, 38, 0) 15%, rgba(11, 20, 38, 0) 80%, rgba(11, 20, 38, .35) 100%);
  }
  .hero__bg { animation: none; transform: none; }
  .topbar { padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: 4px; }
  .hero__content {
    justify-content: space-between;
    padding-top: 2.5vw;
    padding-bottom: 4vw;
  }
  .hero__intro { max-width: 60vw; }
  .headline {
    font-size: 7.4vw;
    line-height: 1.06;
    max-width: none;
    text-shadow: 0 1px 16px rgba(11, 20, 38, .45);
  }
  .hero__intro .lead,
  .chips--hero,
  .scroll-hint { display: none; }

  .search { margin-top: 0; margin-bottom: 60px; }
  .segmented__opt { padding: 7px 14px; font-size: 13.5px; }
  .search__field { height: 52px; margin-top: 8px; }
  .search__go { width: 40px; height: 40px; }

  .below-hero-mobile { display: block; padding-top: 16px; }
  .chips--light .chip {
    background: var(--white);
    border-color: var(--line);
    color: var(--ink);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: var(--shadow-sm);
  }
  .chips--light .chip__ico { background: var(--paper); }
  .chips { padding-block: 2px 6px; }
}

/* ================= MENU (mobile) ================= */
.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(11, 20, 38, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: flex-end;
}
.menu[hidden] { display: none; }
.menu__panel {
  width: min(360px, 88vw);
  height: 100%;
  background: var(--paper);
  padding: calc(20px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  animation: slideIn .35s var(--ease);
}
@keyframes slideIn { from { transform: translateX(100%); } }
.menu__head { display: flex; justify-content: space-between; align-items: center; }
.menu__close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); }
.menu__close svg { width: 20px; height: 20px; }
.menu__links { margin-top: 36px; display: flex; flex-direction: column; }
.menu__links a {
  padding: 16px 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
}

/* ================= HIGHLIGHTS ================= */
.highlights { padding-top: 28px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-head h2 { font-size: clamp(21px, 5.8vw, 34px); white-space: nowrap; font-weight: 700; letter-spacing: -0.03em; }
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.link-more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-more:hover svg { transform: translateX(3px); }
.link-more[hidden] { display: none; }
.link-more[aria-expanded="true"] svg { transform: rotate(-90deg); }
button.link-more { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }

.section-head__actions { display: flex; align-items: center; gap: 8px; }
/* Setas do carrossel: só no computador (no celular, arrasta com o dedo) */
.nav-btn {
  display: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-2);
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: opacity .2s, box-shadow .2s;
}
.nav-btn svg { width: 16px; height: 16px; }
.nav-btn[data-dir="-1"] svg { transform: rotate(180deg); }
.nav-btn:hover:not(:disabled) { box-shadow: var(--shadow-sm); }
.nav-btn:disabled { opacity: .35; cursor: default; }
.nav-btn:last-of-type { margin-right: 8px; }
.highlights + .highlights { padding-top: 36px; }

/* Mobile: carrossel horizontal */
.cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  padding-top: 4px;
  padding-bottom: 8px;
}
.cards::-webkit-scrollbar { display: none; }
/* "Ver todos": o carrossel vira lista completa */
.cards.cards--all {
  grid-auto-flow: row;
  grid-template-columns: 1fr;
  grid-auto-columns: auto;
  overflow: visible;
}

.card {
  position: relative;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #E9E6DF; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }

.card__tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
}

/* O link do título cobre o card inteiro (o coração fica por cima) */
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 2px solid #C96B2C; outline-offset: 3px; }

.fav {
  z-index: 2;
  position: absolute;
  top: 12px; right: 12px;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  transition: transform .2s var(--ease);
}
.fav svg { width: 20px; height: 20px; fill: transparent; transition: fill .2s, color .2s; }
.fav:active { transform: scale(.9); }
.fav.is-on svg { fill: #E0493E; color: #E0493E; }

.card__body { padding: 18px 20px 20px; }
.card__price { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.card__price small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 1px;
}
.card__title { margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.card__loc { margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.card__specs {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-2);
}
.card__specs { flex-wrap: wrap; row-gap: 8px; }
.card__specs span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.card__specs svg { width: 17px; height: 17px; color: var(--muted); }

.cards__empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--ink-2);
  max-width: 560px;
}

/* Botão verde do WhatsApp */
.btn-zap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  background: #1FAF5A;
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn-zap:hover { background: #179A4D; }
.btn-zap:active { transform: scale(.98); }
.btn-zap svg { width: 20px; height: 20px; }

/* ================= CTA ================= */
.cta { padding-top: 64px; }
.cta__box {
  border-radius: var(--radius-xl);
  background: var(--navy);
  color: var(--white);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.cta__box::after {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  right: -140px; top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 107, 44, .45), transparent 65%);
  pointer-events: none;
}
.cta h2 { font-size: clamp(24px, 6vw, 36px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.cta p:not(.eyebrow) { margin-top: 10px; color: rgba(255, 255, 255, .72); max-width: 46ch; }
.btn-light {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  z-index: 1;
}
.btn-light svg { width: 18px; height: 18px; }
.btn-light .btn-light__wa { width: 20px; height: 20px; color: #25D366; }

/* ================= FOOTER ================= */
.footer {
  padding-top: 48px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* ================= TABLET ================= */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .cards { grid-auto-columns: calc(50% - 7px); }
  .cards.cards--all { grid-template-columns: repeat(2, 1fr); }
  .cta__box { padding: 44px; }
}

/* ================= DESKTOP ================= */
@media (min-width: 1024px) {
  :root { --gutter: 48px; }

  /* Foto horizontal 1280×720: pessoa à direita (rosto em ~77–87% da largura,
     ~17–40% da altura); lado esquerdo livre (céu, pôr do sol, cidade)
     para o slogan e a busca. */
  /* Layout "boxed": conteúdo com largura padrão de 1240px no centro,
     laterais abertas no fundo claro. O hero vira um cartão alinhado
     com as seções de baixo. */
  .container { max-width: calc(1240px + 2 * var(--gutter)); }
  .hero {
    width: calc(100% - 2 * var(--gutter));
    max-width: 1240px;
    margin: 20px auto 0;
    min-height: min(84vh, 800px);
    border-radius: 32px;
    box-shadow: var(--shadow-md);
  }
  .hero .container { max-width: none; padding-inline: 56px; }
  .hero__bg {
    background-image: url("assets/img/hero-desktop.webp");
    background-position: 72% 28%;
  }
  .hero__overlay {
    background:
      linear-gradient(90deg, rgba(11, 20, 38, .62) 0%, rgba(11, 20, 38, .38) 30%, rgba(11, 20, 38, 0) 56%),
      linear-gradient(180deg, rgba(11, 20, 38, .45) 0%, rgba(11, 20, 38, 0) 18%, rgba(11, 20, 38, 0) 78%, rgba(11, 20, 38, .4) 100%);
  }
  .hero__content { justify-content: center; }
  .hero__intro, .search { max-width: min(620px, 46vw); }
  .topbar { padding-top: 26px; }
  .topbar__links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0 0 0 auto; padding: 0;
    font-size: 15px;
    font-weight: 500;
  }
  .topbar__links a { opacity: .85; transition: opacity .2s; }
  .topbar__links a:hover { opacity: 1; }
  .menu-btn { display: none; }

  .hero__content { padding-top: 24px; padding-bottom: 96px; }
  .search { margin-top: 40px; }
  .chips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }


  .highlights { padding-top: 44px; }
  .highlights + .highlights { padding-top: 56px; }
  .cards {
    grid-auto-columns: calc((100% - 40px) / 3);
    gap: 20px;
  }
  .cards.cards--all { grid-template-columns: repeat(3, 1fr); }
  .nav-btn { display: inline-flex; }
  .nav-btn[hidden] { display: none; }
  .cta { padding-top: 88px; }
  .cta__box { flex-direction: row; align-items: center; justify-content: space-between; padding: 56px; }
  .btn-light { align-self: center; }
  .footer { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ==========================================================
   PÁGINA DO IMÓVEL (imovel.html)
   ========================================================== */
.pd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: calc(18px + env(safe-area-inset-top, 0px));
  padding-bottom: 18px;
}
.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.pd-back svg { width: 16px; height: 16px; }

.pd-main {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #E9E6DF;
}
.pd-track {
  display: flex;
  width: 100%; height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.pd-track::-webkit-scrollbar { display: none; }
.pd-slide {
  flex: 0 0 100%;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 72%; /* prioriza a parte de baixo (porteira, casa) */
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.pd-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform .2s var(--ease), background .2s;
}
.pd-nav:hover { background: var(--white); transform: translateY(-50%) scale(1.06); }
.pd-nav svg { width: 20px; height: 20px; }
.pd-nav--prev { left: 14px; }
.pd-nav--next { right: 14px; }
.pd-nav--next svg { transform: scaleX(-1); }
@media (max-width: 639px) { .pd-nav { display: none; } } /* no celular, arrasta com o dedo */
.pd-count {
  position: absolute;
  right: 14px; bottom: 14px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(11, 20, 38, .6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
}
.pd-thumbs { display: flex; gap: 10px; margin-top: 8px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumb {
  flex-shrink: 0;
  width: 84px; height: 60px;
  border-radius: 12px;
  overflow: hidden;
  opacity: .55;
  transition: opacity .2s var(--ease);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.is-active, .pd-thumb:hover { opacity: 1; }
.pd-thumb.is-active { outline: 2px solid var(--ink); outline-offset: 2px; }

.pd-grid { display: grid; gap: 28px; margin-top: 28px; }

.pd-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #C96B2C;
}
.pd-title {
  margin-top: 10px;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 9vw, 58px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.pd-loc {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 15px;
}
.pd-loc svg { width: 18px; height: 18px; }

.pd-specs {
  list-style: none;
  margin: 24px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.pd-specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 14.5px;
  font-weight: 500;
}
.pd-specs svg { width: 20px; height: 20px; color: #C96B2C; }

.pd-h2 { margin-top: 36px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.pd-desc p { margin-top: 12px; color: var(--ink-2); line-height: 1.7; max-width: 65ch; }

.pd-list {
  list-style: none;
  margin: 14px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 20px;
}
.pd-list li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.pd-list svg { width: 18px; height: 18px; color: #1FAF5A; }

.pd-card {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.pd-card__label { font-size: 13px; color: var(--muted); }
.pd-card__price { margin-top: 2px; font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.pd-card__sub { margin-top: 4px; font-size: 14px; color: var(--muted); }
.pd-card__cta { width: 100%; margin-top: 22px; padding-block: 16px; }
.pd-share {
  width: 100%;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .2s var(--ease);
}
.pd-share:hover { background: var(--paper); }
.pd-share svg { width: 18px; height: 18px; }
.pd-card__note { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }

/* Barra fixa com preço + WhatsApp (celular) */
.pd-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px max(var(--gutter), env(safe-area-inset-left, 0px)) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.pd-bar__price { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.pd-bar__price small { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.pd-bar__loc { font-size: 12.5px; color: var(--muted); }
.pd-bar .btn-zap { padding: 12px 18px; font-size: 14.5px; white-space: nowrap; flex-shrink: 0; }
.page-imovel .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }

.pd-missing { padding-block: 64px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.pd-missing h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 44px; }
.pd-missing p { color: var(--muted); }

@media (min-width: 1024px) {
  .pd-top { padding-top: 26px; padding-bottom: 22px; }
  .pd-main { aspect-ratio: 16 / 9; max-height: 72vh; width: 100%; }
  .pd-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; margin-top: 40px; align-items: start; }
  .pd-aside { position: sticky; top: 24px; }
  .pd-bar { display: none; }
  .page-imovel .footer { padding-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
