/* ================================================================
   MONICA CARVALHO — CONSULTORA IMOBILIÁRIA | style.css
   Mobile-first · Paleta "Barra da Tijuca": areia clara + verde-
   atlântico + dourado discreto · Fraunces (títulos) + Plus Jakarta
   ================================================================ */

/* ================================================================
   ★ DESIGN TOKENS — EDITE AQUI ★
   Todas as cores, fontes e medidas do site saem destas variáveis.
   Troque um valor aqui e o site inteiro acompanha.
   ================================================================ */
:root {
  /* ---------- CORES ----------
     --primary      cor principal (botões, títulos de destaque)
     --primary-dark tom mais escuro (hover dos botões, CTA final)
     --gold         acento dourado (detalhes premium, botão especial)
     --bg           fundo geral do site (areia clara)
     --bg-tinted    fundo de seções alternadas (levemente esverdeado)
     --surface      fundo dos cards (branco)
     --text         cor do texto principal
     --muted        cor do texto secundário (cinza-esverdeado)
     --border       cor das bordas finas
     --whatsapp     verde oficial do WhatsApp (não precisa mudar)   */
  --primary: #0f3d3e;
  --primary-dark: #0a2b2c;
  --gold: #b98a44;
  --gold-soft: rgba(185, 138, 68, 0.14);
  --bg: #faf8f4;
  --bg-tinted: #f1efe8;
  --surface: #ffffff;
  --text: #1d2a28;
  --muted: #5c6b67;
  --border: rgba(15, 61, 62, 0.12);
  --whatsapp: #25d366;

  /* ---------- IMAGEM DE FUNDO DO TOPO (HERO) ----------
     Para usar uma FOTO no topo (ex.: orla da Barra), troque "none"
     pela URL da imagem, assim:
       --hero-image: url("imagens/orla-barra.jpg");
     A foto recebe automaticamente uma camada verde-escura por cima
     para o texto continuar legível (veja .hero__overlay).          */
  --hero-image: url("imagens/main-site/orla-barra.webp");

  /* ---------- FONTES ----------
     Se trocar as fontes no <head> do index.html, atualize aqui.    */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  /* ---------- MEDIDAS ---------- */
  --container: 72rem;      /* largura máxima do conteúdo */
  --radius: 1rem;          /* arredondamento dos cards   */
  --radius-lg: 1.4rem;
  --shadow-card: 0 8px 28px rgba(15, 61, 62, 0.08);
  --shadow-hover: 0 18px 44px rgba(15, 61, 62, 0.16);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================================
   RESET E BASE (raramente precisa editar daqui para baixo)
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--primary);
}

h1 { font-size: clamp(2.2rem, 6.5vw, 3.9rem); }
h2 { font-size: clamp(1.65rem, 4.5vw, 2.5rem); }
h3 { font-size: 1.15rem; }

h1 em {
  font-style: italic;
  color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Utilitários ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section { padding-block: 4.5rem; }
.section--tinted { background: var(--bg-tinted); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow--light { color: #dfc79a; }

.section-head { text-align: center; max-width: 44rem; margin: 0 auto 2.75rem; }
.section-head p { color: var(--muted); margin-top: 0.9rem; }

/* ================================================================
   BOTÕES
   .btn--primary       verde (ação principal)
   .btn--outline       contorno verde (ação secundária)
   .btn--gold          dourado (destaque no CTA final)
   .btn--outline-light contorno claro (sobre fundo escuro)
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), border-color var(--transition),
              color var(--transition);
}

.btn--primary {
  background: var(--primary);
  color: #f6f3ec;
  box-shadow: 0 8px 22px rgba(15, 61, 62, 0.28);
  border: 1.5px solid #ffffff;
}
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 61, 62, 0.38);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: #f6f3ec;
  transform: translateY(-3px);
}

.btn--gold {
  background: var(--gold);
  color: #241a0c;
  box-shadow: 0 8px 22px rgba(185, 138, 68, 0.4);
}
.btn--gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(185, 138, 68, 0.55);
}

.btn--outline-light {
  background: transparent;
  color: #f6f3ec;
  border-color: rgba(246, 243, 236, 0.5);
}
.btn--outline-light:hover {
  border-color: #f6f3ec;
  background: rgba(246, 243, 236, 0.1);
  transform: translateY(-3px);
}

/* ================================================================
   CABEÇALHO
   ================================================================ */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.header.is-scrolled {
  background: rgba(250, 248, 244, 0.97);
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.logo { display: inline-flex; align-items: center; gap: 0.65rem; }
.logo__badge {
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: #f6f3ec;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__text strong { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--primary); }
.logo__text small { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.nav { display: none; }
.header__cta { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav.is-open {
  display: flex;
  position: absolute;
  top: 100%;
  inset-inline: 0;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.25rem;
  animation: fade-down 0.3s ease both;
  box-shadow: var(--shadow-card);
}

.nav__link {
  position: relative;
  padding: 0.6rem 0.25rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.35rem;
  width: 100%; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav__link:hover { color: var(--primary); }
.nav__link:hover::after { transform: scaleX(1); }

/* ================================================================
   HERO (topo)
   Fundo: gradiente verde-atlântico. Se definir --hero-image no topo
   deste arquivo, a foto entra por baixo do gradiente escurecedor.
   ================================================================ */
.hero {
  position: relative;
  padding-top: 10rem;
  padding-bottom: 4.5rem;
  background-color: var(--primary);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Camada que escurece a foto para o texto ficar legível.
   Ajuste a opacidade (0.82) se a foto ficar escura demais/de menos. */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 43, 44, 0.92) 0%, rgba(15, 61, 62, 0.82) 55%, rgba(23, 82, 78, 0.72) 100%);
  pointer-events: none;
}

.hero__inner { position: relative; }
.hero__content { max-width: 40rem; }

.hero h1 { color: #f6f3ec; }

.hero__lead {
  color: rgba(246, 243, 236, 0.82);
  font-size: 1.08rem;
  margin-top: 1.2rem;
  max-width: 33rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.9rem; }
.hero .btn--outline {
  color: #f6f3ec;
  border-color: rgba(246, 243, 236, 0.55);
}
.hero .btn--outline:hover { background: rgba(246, 243, 236, 0.12); color: #f6f3ec; }

/* Números animados */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-top: 2.6rem;
  padding-top: 1.9rem;
  border-top: 1px solid rgba(246, 243, 236, 0.2);
}
.stats__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--gold);
}
.stats__item span { color: rgba(246, 243, 236, 0.7); font-size: 0.85rem; }

/* ================================================================
   SOBRE
   ================================================================ */
.about__grid { display: grid; gap: 2.5rem; align-items: center; }

.about__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  max-width: 24rem;
  margin-inline: auto;
}
.about__media img { width: 100%; object-fit: cover; }

.about__chip {
  position: absolute;
  bottom: 1rem; left: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #241a0c;
  background: var(--gold);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(185, 138, 68, 0.45);
}

.about__content h2 { margin-bottom: 1rem; }
.about__content > p { color: var(--muted); margin-bottom: 1.4rem; max-width: 32rem; }

.about__tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.7rem; }
.about__tags li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--gold-soft);
  border: 1px solid rgba(185, 138, 68, 0.3);
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  transition: transform var(--transition), background var(--transition);
}
.about__tags li:hover { transform: translateY(-2px); background: rgba(185, 138, 68, 0.24); }

/* ================================================================
   ATENDIMENTO (etapas)
   ================================================================ */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(185, 138, 68, 0.45);
}

.process-step__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.55rem;
}
.process-step h3 { margin-bottom: 0.4rem; }
.process-step p { color: var(--muted); font-size: 0.92rem; }

/* ================================================================
   IMÓVEIS — filtros e cards
   (os cards são gerados pelo script.js; o estilo deles está aqui)
   ================================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}

.filter-btn {
  display: inline-flex;      /* garante o mesmo visual em <button> e <a> */
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.3rem;
  cursor: pointer;
  transition: color var(--transition), background var(--transition),
              border-color var(--transition), transform var(--transition);
}
.filter-btn:hover { color: var(--primary); transform: translateY(-2px); border-color: var(--gold); }
.filter-btn.is-active {
  background: var(--primary);
  color: #f6f3ec;
  border-color: var(--primary);
}

.properties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Card de imóvel (gerado via JS) */
.property-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(185, 138, 68, 0.45);
}

.property-card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 11; }
.property-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.property-card:hover .property-card__media img { transform: scale(1.05); }

/* Etiqueta "Venda" / "Locação" / "Lançamento" sobre a foto */
.property-card__badge {
  position: absolute;
  top: 0.85rem; left: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f6f3ec;
  background: var(--primary);
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
}
.property-card__badge--gold { background: var(--gold); color: #241a0c; }

.property-card__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.property-card__location {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.property-card__body h3 { margin-bottom: 0.5rem; }
.property-card__desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }

/* Linha com quartos · área · vagas */
.property-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.82rem;
  color: var(--muted);
  padding-block: 0.8rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.property-card__price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--primary);
  margin-block: 0.6rem 1rem;
}
.property-card__price small { font-size: 0.8rem; color: var(--muted); font-family: var(--font-body); }

/* Mensagem quando não há imóveis no filtro/lista */
.properties-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
}

.properties-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 1.8rem;
  opacity: 0.8;
}

/* ================================================================
   DEPOIMENTOS
   ================================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(185, 138, 68, 0.45);
}

.testimonial-card p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.testimonial-card footer strong { display: block; font-size: 0.95rem; color: var(--primary); }
.testimonial-card footer span { color: var(--muted); font-size: 0.82rem; }

/* ================================================================
   CTA FINAL (fundo verde escuro)
   ================================================================ */
.cta {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(185, 138, 68, 0.16) 0%, transparent 55%),
    var(--primary-dark);
}
.cta__inner { text-align: center; max-width: 44rem; }
.cta h2 { color: #f6f3ec; }
.cta__inner p { color: rgba(246, 243, 236, 0.75); margin-block: 1rem 1.9rem; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }

/* ================================================================
   RODAPÉ
   ================================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem 2rem;
  background: var(--bg);
}
.footer__inner { text-align: center; display: grid; gap: 1.1rem; justify-items: center; }
.footer__tagline { color: var(--muted); font-size: 0.92rem; max-width: 26rem; }

.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.footer__links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--gold); }

.footer__copy { color: var(--muted); font-size: 0.78rem; opacity: 0.75; }

/* ================================================================
   BOTÃO FLUTUANTE DO WHATSAPP (pulsar)
   ================================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  animation: whatsapp-pulse 2.2s ease-out infinite;
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.6);
}

/* ================================================================
   ANIMAÇÕES
   ================================================================ */
@keyframes whatsapp-pulse {
  0%   { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Aparecer suave ao rolar (ativado pelo script.js) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Acessibilidade: usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ================================================================
   RESPONSIVO (mobile-first)
   ================================================================ */

/* Tablets ≥ 640px */
@media (min-width: 40em) {
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* Desktop ≥ 900px */
@media (min-width: 56.25em) {
  .section { padding-block: 6rem; }

  .nav { display: flex; align-items: center; gap: 0.35rem; position: static; box-shadow: none; }
  .nav__link { padding: 0.5rem 0.8rem; }
  .header__cta { display: inline-flex; }
  .nav-toggle { display: none; }

  .hero { padding-top: 12rem; padding-bottom: 6rem; }

  .properties-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(4, 1fr); }

  .about__grid { grid-template-columns: 0.8fr 1.2fr; gap: 3.5rem; }
  .about__media { margin-inline: 0; }

  .whatsapp-float { width: 4rem; height: 4rem; bottom: 1.8rem; right: 1.8rem; }
}

/* ================================================================
   PÁGINAS INTERNAS (imoveis.html e imovel.html)
   Estilos usados pelo catálogo e pela página de detalhes.
   ================================================================ */

/* ---------- Faixa de título das páginas internas ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 9rem 0 3.5rem;
  text-align: center;
}
.page-hero h1 { color: #f6f3ec; font-size: clamp(1.9rem, 5vw, 3rem); }
.page-hero p { color: rgba(246, 243, 236, 0.75); margin-top: 0.7rem; }

/* Botão "Ver catálogo completo" abaixo da grade no index */
.section-more { text-align: center; margin-top: 2.2rem; }

/* Links dentro do título dos cards (mesma cor, sublinha no hover) */
.property-card__body h3 a { transition: color var(--transition); }
.property-card__body h3 a:hover { color: var(--gold); }

/* ---------- Página de detalhes ---------- */
.section--detail { padding-top: 8rem; }

/* Trilha "Início › Venda › Nome do imóvel" */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}
.breadcrumb a { color: var(--muted); font-weight: 600; transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span:last-child { color: var(--primary); font-weight: 600; }

/* Grade: galeria à esquerda, informações à direita (no desktop) */
.detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

/* Galeria de fotos */
.gallery__main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 11;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.gallery__thumb {
  border: 2px solid transparent;
  border-radius: 0.6rem;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: none;
  aspect-ratio: 4 / 3;
  opacity: 0.7;
  transition: opacity var(--transition), border-color var(--transition), transform var(--transition);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; transform: translateY(-2px); }
.gallery__thumb.is-active { opacity: 1; border-color: var(--gold); }

/* Coluna de informações */
.detail__info h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin-block: 0.4rem 0.6rem; }

.detail__price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.1rem;
}

.detail__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.detail__features span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
}

/* Caixa de custos (condomínio / IPTU) */
.detail__costs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  background: var(--gold-soft);
  border: 1px solid rgba(185, 138, 68, 0.3);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 1.4rem;
}
.detail__costs strong { color: var(--primary); margin-right: 0.35rem; }

.detail__actions { display: flex; flex-direction: column; gap: 0.7rem; }

/* Texto longo e características */
.detail__body { max-width: 46rem; }
.detail__subtitle { font-size: 1.35rem; margin-block: 1.6rem 0.8rem; }
.detail__body p { color: var(--muted); margin-bottom: 0.9rem; }

.detail__caracteristicas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
.detail__caracteristicas li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text);
  font-size: 0.95rem;
}
.detail__caracteristicas li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Mensagem de imóvel não encontrado */
.detail-notfound {
  text-align: center;
  padding: 3rem 1rem;
}
.detail-notfound h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 0.7rem; }
.detail-notfound p { color: var(--muted); margin-bottom: 1.6rem; }

/* ---------- Responsivo das páginas internas ---------- */
@media (min-width: 40em) {
  .detail__caracteristicas { grid-template-columns: repeat(2, 1fr); }
  .detail__actions { flex-direction: row; }
}

@media (min-width: 56.25em) {
  .detail__grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: start; }
  .section--detail { padding-top: 9.5rem; }
  .page-hero { padding-top: 10.5rem; }
}
