/* ==========================================================
   SOU VALORA — pages/imovel.css
   Galeria, detalhe do imóvel, sidebar de contato — REDESIGN UX/UI v2
   ========================================================== */

/* ---------- WRAPPER COM BACKGROUND IMAGE ---------- */
.detail-wrapper {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.detail-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,9,26,0.85) 0%, rgba(7,9,26,0.75) 50%, rgba(7,9,26,0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

.breadcrumb, .detail-gallery, .detail-hero-info {
  position: relative;
  z-index: 2;
}

/* ---------- GALERIA PREMIUM (estilo Airbnb / imobiliária de luxo) ---------- */
.detail-gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 10px;
  padding: 32px 64px 24px;
  position: relative;
  z-index: 2;
  height: 580px;
}

/* Imagem principal grande */
.gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: zoom-in;
  background: var(--navy-mid);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.gallery-main:hover img {
  transform: scale(1.04);
}

.gallery-zoom-hint {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 42px;
  height: 42px;
  background: rgba(7,9,26,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.gallery-main:hover .gallery-zoom-hint {
  opacity: 1;
}

/* Grid lateral 2x2 */
.gallery-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.gallery-side-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: zoom-in;
  background: var(--navy-mid);
}

.gallery-side-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.gallery-side-item:hover img {
  transform: scale(1.06);
}

.gallery-side-empty {
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(201,169,110,0.15);
  cursor: default;
  pointer-events: none;
}

/* Overlay "+N fotos" no último item */
.gallery-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7,9,26,0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--white);
  pointer-events: none;
  transition: background 0.3s;
}

.gallery-side-item.has-more:hover .gallery-more-overlay {
  background: rgba(7,9,26,0.5);
}

.gallery-more-overlay i {
  font-size: 1.4rem;
  color: var(--gold);
}

.gallery-more-overlay span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Botão flutuante "Ver todas as fotos" */
.gallery-show-all {
  position: absolute;
  bottom: 40px;
  right: 80px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 2px;
  font-family: var(--ff-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 3;
}

.gallery-show-all:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.gallery-show-all i {
  font-size: 0.85rem;
}

/* ---------- LIGHTBOX MODAL FULL-SCREEN ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(7,9,26,0.97);
  backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.lightbox.open {
  display: flex;
  opacity: 1;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  flex-shrink: 0;
}

.lightbox-counter {
  color: var(--white);
  font-family: var(--ff-sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.lightbox-counter span {
  color: var(--gold);
  font-weight: 600;
}

.lightbox-close {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.lightbox-close:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  transform: rotate(90deg);
}

.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  min-height: 0;
  position: relative;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: lightboxFade 0.35s var(--ease);
}

@keyframes lightboxFade {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  z-index: 2;
  backdrop-filter: blur(6px);
}

.lightbox-nav:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* Thumbnails inferiores */
.lightbox-thumbs {
  display: flex;
  gap: 8px;
  padding: 20px 32px 32px;
  overflow-x: auto;
  justify-content: center;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.lightbox-thumbs::-webkit-scrollbar { height: 4px; }
.lightbox-thumbs::-webkit-scrollbar-thumb { background: var(--gold); }

.lightbox-thumb {
  width: 84px;
  height: 60px;
  flex-shrink: 0;
  border: 2px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  padding: 0;
  opacity: 0.55;
  transition: all 0.3s var(--ease);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-thumb:hover {
  opacity: 0.85;
}

.lightbox-thumb.active {
  opacity: 1;
  border-color: var(--gold);
  transform: scale(1.05);
}

/* Bloquear scroll do body quando lightbox aberto */
body.lightbox-open {
  overflow: hidden;
}

/* ---------- INFO BAND PREMIUM v2 (Hero Section) ---------- */
.detail-hero-info {
  padding: 44px 64px;
  display: flex;
  flex-direction: column;
}

/* Hero Head: Título + Preço lado a lado */
.detail-hero-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 40px;
  gap: 40px;
}

.detail-hero-left {
  flex: 1;
}

.detail-hero-right {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* Badges */
.detail-hero-info .detail-tags-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.detail-hero-info .detail-badge {
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 1px;
}

.detail-hero-info .detail-badge-melnick {
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: rgba(255,255,255,0.08);
  color: var(--gold);
  border: 1px solid rgba(201,169,110,0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 1px;
}

/* Título BRANCO */
.detail-title {
  font-family: var(--ff-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  margin-top: 0;
  word-break: break-word;
}

/* Localização */
.detail-hero-info .detail-location {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Preço Column */
.detail-price-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.detail-price {
  font-family: var(--ff-serif);
  font-size: 2.6rem;
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
}

.detail-ref {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}

/* CTA WhatsApp */
.detail-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: var(--white);
  padding: 12px 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: background 0.2s var(--ease);
  text-decoration: none;
}

.detail-hero-cta:hover {
  background: #1fb058;
}

.detail-hero-cta i {
  font-size: 0.95rem;
}

/* Características - Full Width Strip */
.detail-feats-strip {
  display: flex;
  border-top: 1px solid rgba(201,169,110,0.2);
}

.detail-feat-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 28px;
  border-right: 1px solid rgba(201,169,110,0.15);
}

.detail-feat-item:last-child {
  border-right: none;
}

.detail-feat-item i {
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
}

.detail-feat-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-feat-item strong {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  color: var(--white);
  font-weight: 500;
  line-height: 1;
}

.detail-feat-item span {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

/* ---------- CORPO DO DETALHE (cream) ---------- */
.detail-body {
  padding: 60px 64px;
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 52px;
  align-items: start;
}

/* Section titles com acento gold */
.detail-section-title {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  border-bottom: none;
}

.detail-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.95;
  font-weight: 300;
  margin-bottom: 36px;
}

/* ============================================================
   Cronograma do Empreendimento — timeline elegante
   ============================================================ */
.cronograma {
  position: relative;
  padding: 32px 36px 28px;
  margin-bottom: 40px;
  background: var(--white);
  border: 1px solid rgba(7,9,26,0.06);
  border-left: 2px solid var(--gold);
  box-shadow: 0 2px 12px rgba(7,9,26,0.04);
}

/* Badge de status no topo direito */
.cronograma-status {
  position: absolute;
  top: 18px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--cream);
  border: 1px solid var(--border-gold);
  font-family: var(--ff-sans);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
}
.cronograma-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.18);
}
.cronograma--em-obras .cronograma-status-dot {
  background: var(--gold);
  animation: cronoPulse 2.4s var(--ease) infinite;
}
.cronograma--entregue .cronograma-status-dot {
  background: #2f9e6b;
  box-shadow: 0 0 0 3px rgba(47,158,107,0.18);
}
.cronograma--em-breve .cronograma-status-dot {
  background: var(--gray);
  box-shadow: 0 0 0 3px rgba(138,143,160,0.18);
}
@keyframes cronoPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(201,169,110,0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(201,169,110,0.04); }
}

/* Timeline horizontal */
.cronograma-timeline {
  position: relative;
  margin-top: 36px;
  padding: 0 4px;
}

.cronograma-track {
  position: absolute;
  top: 22px;
  left: 26px;
  right: 26px;
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(7,9,26,0.06) 0%,
    rgba(7,9,26,0.06) 100%
  );
  z-index: 0;
}
.cronograma-track::before,
.cronograma-track::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(7,9,26,0.12);
  border-radius: 50%;
  background: var(--white);
  transform: translateY(-50%);
}
.cronograma-track::before { left: -10px; }
.cronograma-track::after  { right: -10px; }

.cronograma-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  transition: width 0.8s var(--ease);
}

/* Pontos lançamento/conclusão */
.cronograma-points {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  z-index: 1;
}
.cronograma-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 50%;
}
.cronograma-point--start { align-items: flex-start; text-align: left; }
.cronograma-point--end   { align-items: flex-end;   text-align: right; }

.cronograma-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 14px;
  box-shadow: 0 0 0 4px var(--white);
  transition: all 0.3s var(--ease);
}
.cronograma--entregue .cronograma-point--end .cronograma-marker,
.cronograma--entregue .cronograma-point--start .cronograma-marker {
  background: var(--gold);
  color: var(--white);
}
.cronograma--em-obras .cronograma-point--start .cronograma-marker {
  background: var(--gold);
  color: var(--white);
}

.cronograma-point-label {
  font-family: var(--ff-sans);
  font-size: 0.62rem;
  color: var(--gray);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}
.cronograma-point-value {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.3;
  text-transform: capitalize;
}

/* Responsivo: mantém timeline horizontal compacta até 520px,
   abaixo disso empilha verticalmente */
@media (max-width: 720px) {
  .cronograma { padding: 26px 22px 22px; }
  .cronograma-status {
    position: static;
    margin-bottom: 18px;
  }
  .cronograma-timeline { margin-top: 8px; }
  .cronograma-point-value { font-size: 1rem; }
}
@media (max-width: 520px) {
  .cronograma-track,
  .cronograma-track::before,
  .cronograma-track::after { display: none; }
  .cronograma-points {
    flex-direction: column;
    gap: 28px;
  }
  .cronograma-point,
  .cronograma-point--start,
  .cronograma-point--end {
    max-width: 100%;
    align-items: center;
    text-align: center;
    position: relative;
    padding-left: 56px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .cronograma-point .cronograma-marker {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-bottom: 0;
  }
  .cronograma-point-label,
  .cronograma-point-value {
    text-align: left;
    width: 100%;
  }
}

/* Comodidades Premium */
.amenities-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.amenity-item {
  background: rgba(201,169,110,0.05);
  border: 1px solid rgba(201,169,110,0.18);
  padding: 9px 18px;
  font-size: 0.78rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 2px;
  transition: all 0.2s var(--ease);
}
.amenity-item:hover {
  background: rgba(201,169,110,0.1);
  border-color: rgba(201,169,110,0.3);
}
.amenity-item i { color: var(--gold); font-size: 0.72rem; }

/* Mapa */
.map-wrap { border: 1px solid rgba(0,0,0,0.08); margin-bottom: 40px; }

/* ---------- SIDEBAR DE CONTATO ---------- */
.contact-sidebar {
  background: var(--white);
  padding: 40px;
  border: 1px solid rgba(0,0,0,0.08);
  position: sticky;
  top: 90px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}
.agent-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-gold);
}
.agent-av {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
}
.agent-av img { width: 100%; height: 100%; object-fit: cover; }
.agent-name { font-family: var(--ff-serif); font-size: 1rem; color: var(--navy); font-weight: 500; }
.agent-creci { font-size: 0.72rem; color: var(--gray); margin-top: 2px; }

.contact-sidebar h2 {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 20px;
  margin-top: 0;
  font-weight: 500;
}

.contact-sidebar input,
.contact-sidebar textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 12px 16px;
  font-family: var(--ff-sans);
  font-size: 0.875rem;
  outline: none;
  margin-bottom: 10px;
  transition: border-color 0.3s, background-color 0.3s;
  background: var(--cream);
  color: var(--text);
  border-radius: 2px;
}
.contact-sidebar input:focus,
.contact-sidebar textarea:focus {
  border-color: var(--gold);
  background: var(--white);
}
.contact-sidebar textarea { height: 100px; resize: none; }

.sidebar-phone {
  text-align: center;
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--gray);
}
.sidebar-phone a {
  color: var(--gold);
  font-weight: 600;
  transition: color 0.2s;
}
.sidebar-phone a:hover { color: var(--gold-light); }

.sidebar-share {
  margin-top: 20px;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 24px;
  background: var(--white);
}
.sidebar-share p {
  font-size: 0.72rem;
  color: var(--gray);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}
.sidebar-share-btns { display: flex; gap: 10px; }
.share-btn {
  flex: 1;
  padding: 11px;
  border: 1px solid rgba(0,0,0,0.1);
  background: none;
  font-size: 0.78rem;
  color: var(--gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}
.share-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,169,110,0.04);
}

/* ===================== RESPONSIVO ===================== */
@media (max-width: 1024px) {
  .detail-hero-head {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 32px;
    gap: 24px;
  }

  .detail-hero-right {
    text-align: left;
    align-items: flex-start;
  }

  .detail-hero-right .detail-price-column {
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .detail-gallery {
    grid-template-columns: 1fr;
    height: auto;
    padding: 20px 24px 16px;
    gap: 8px;
  }
  .gallery-main { height: 320px; }
  .gallery-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 100px 100px;
  }
  .gallery-show-all {
    bottom: 28px;
    right: 36px;
    padding: 9px 16px;
    font-size: 0.72rem;
  }
  .lightbox-header { padding: 14px 16px; }
  .lightbox-stage { padding: 0 12px; }
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-thumbs { padding: 12px 16px 20px; }
  .lightbox-thumb { width: 64px; height: 48px; }

  .detail-hero-info {
    padding: 28px 24px 0;
  }

  .detail-hero-head {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 24px;
    gap: 20px;
  }

  .detail-hero-right {
    text-align: left;
    align-items: flex-start;
  }

  .detail-hero-right .detail-price-column {
    align-items: flex-start;
  }

  .detail-title { font-size: 2rem; }

  .detail-feats-strip {
    flex-wrap: wrap;
  }

  .detail-feat-item {
    flex: 1 1 50%;
    border-right: none;
    border-bottom: 1px solid rgba(201,169,110,0.15);
  }

  .detail-feat-item:last-child {
    border-bottom: none;
  }

  .detail-body { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
}

@media (max-width: 640px) {
  /* Hero do imóvel: parallax desligado pra evitar jank em iOS Safari */
  .detail-wrapper { background-attachment: scroll; }

  .detail-hero-info { padding: 20px 16px 0; }
  .detail-title { font-size: 1.7rem; line-height: 1.18; }
  .detail-subtitulo { font-size: 1rem; }
  .detail-price { font-size: 2rem; }

  /* Hero-right: ocupa largura toda em mobile, CTA full-width */
  .detail-hero-right { width: 100%; gap: 14px; }
  .detail-hero-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 22px;
    font-size: 0.85rem;
  }

  /* Features: grid 2×2 (mais elegante que coluna única vertical) */
  .detail-feats-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .detail-feat-item {
    flex: none;
    padding: 18px 16px;
    border-right: 1px solid rgba(201,169,110,0.15);
    border-bottom: 1px solid rgba(201,169,110,0.15);
  }
  .detail-feat-item:nth-child(2n)        { border-right: none; }
  .detail-feat-item:nth-last-child(-n+2) { border-bottom: none; }
  /* Caso só haja 3 itens, o último (sozinho na linha) zera border-right */
  .detail-feat-item:nth-last-child(1):nth-child(odd) { border-right: none; }

  .detail-gallery {
    padding: 16px 12px 12px;
  }
  .gallery-main { height: 240px; }
  .gallery-side { grid-template-rows: 80px 80px; gap: 6px; }
  .gallery-more-overlay i { font-size: 1.1rem; }
  .gallery-more-overlay span { font-size: 0.72rem; }
  .gallery-show-all {
    bottom: 22px;
    right: 22px;
    padding: 8px 12px;
    font-size: 0.66rem;
    gap: 6px;
  }

  .contact-sidebar { padding: 28px 20px; top: 68px; }

  /* Lightbox: stage com altura controlada — evita sobreposição com setas */
  .lightbox-stage img { max-height: 70vh; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 0.85rem; }

  /* Body com gap vertical reduzido (menos scroll) */
  .detail-body { gap: 20px; padding: 24px 16px; }

  /* Bairro block: padding interno menor pra ganhar largura no conteúdo */
  .detail-bairro-block { padding: 22px 18px; gap: 18px; }
  .detail-bairro-stats { gap: 8px; }
  .detail-bairro-stat  { flex: 1 1 calc(50% - 4px); min-width: 0; }

  /* Plantas: card de planta com altura proporcional */
  .detail-planta-card img { height: 220px; }

  /* Vídeo: aspect-ratio mantido, sem ajustes adicionais */

  /* FAQ: touch target mais confortável */
  .detail-faq-pergunta { min-height: 48px; padding: 14px 44px 14px 18px; font-size: 1rem; }
  .detail-faq-pergunta::after { right: 16px; }
  .detail-faq-resposta { padding: 0 18px 18px; font-size: 0.9rem; }

  /* Cronograma intermediário: empilha entre 520 e 640 (antes esmagava) */
  .cronograma-track,
  .cronograma-track::before,
  .cronograma-track::after { display: none; }
  .cronograma-points { flex-direction: column; gap: 18px; align-items: stretch; }
  .cronograma-point,
  .cronograma-point--start,
  .cronograma-point--end { align-items: flex-start; text-align: left; max-width: none; }
}

/* Phones muito pequenos (<420px): poupa ainda mais espaço */
@media (max-width: 420px) {
  .detail-title { font-size: 1.5rem; }
  .detail-price { font-size: 1.75rem; }
  .detail-feat-item { padding: 14px 12px; }
  .detail-bairro-stat { flex: 1 1 100%; }
}

/* ==========================================================
   SOU VALORA — Extensões SEO (v1.7.0)
   subtitulo, plantas, sobre o bairro, vídeo, FAQ
   ========================================================== */

.detail-subtitulo {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gray);
  margin-top: 8px;
  margin-bottom: 12px;
  line-height: 1.45;
  max-width: 720px;
}

.detail-desc--lead {
  font-size: 1.02rem;
  color: #444;
  line-height: 1.85;
  margin-bottom: 18px;
}

/* ---------- CARROSSEL DE PLANTAS ---------- */
.detail-plantas-intro {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray);
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.detail-plantas-intro i {
  color: var(--gold);
  font-size: 1rem;
}

.plantas-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fafafa;
  margin-bottom: 16px;
  padding: 20px 0;
}

/* Track: flex row for sliding */
.plantas-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  gap: 16px;
  padding: 0 16px;
}

/* Each slide: flex-shrink 0 to keep width */
.plantas-carousel-slide {
  flex: 0 0 calc(33.333% - 11px); /* 3 items per row on desktop */
  opacity: 0.6;
  transform: scale(0.95);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: auto;
  z-index: 1;
}

.plantas-carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.plantas-carousel-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  padding: 0;
  margin: 0;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.plantas-carousel-btn:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.plantas-carousel-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  display: block;
}

.plantas-carousel-zoom {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 26, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.plantas-carousel-btn:hover .plantas-carousel-zoom {
  opacity: 1;
}

/* Navigation arrows */
.plantas-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s var(--ease);
}
.plantas-carousel-nav:hover {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}
.plantas-carousel-prev { left: 10px; }
.plantas-carousel-next { right: 10px; }

/* Dot indicators */
.plantas-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.plantas-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s var(--ease);
}
.plantas-carousel-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* Progress bar (autoplay) */
.plantas-carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(0, 0, 0, 0.05);
  z-index: 6;
}
.plantas-carousel-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
}

/* Responsive */
@media (max-width: 1024px) {
  .plantas-carousel-slide { flex: 0 0 calc(50% - 8px); } /* 2 items on tablet */
}
@media (max-width: 640px) {
  .plantas-carousel-slide { flex: 0 0 100%; } /* 1 item on mobile */
  .plantas-carousel-track { padding: 0; gap: 0; }
  .plantas-carousel-nav { width: 36px; height: 36px; }
}

.lightbox--plantas .lightbox-stage img {
  background: #fff;
  object-fit: contain;
}

/* ---------- SOBRE O BAIRRO ---------- */
.detail-bairro-block {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  background: var(--cream);
  border: 1px solid rgba(7, 9, 26, 0.06);
  border-radius: 8px;
  padding: 36px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .detail-bairro-block { grid-template-columns: 1fr; padding: 28px 22px; }
}

.detail-bairro-content { grid-column: 1; }

.detail-bairro-resumo {
  font-size: 0.98rem;
  color: #444;
  line-height: 1.85;
  margin-bottom: 20px;
}

.detail-bairro-perfil {
  background: var(--white);
  padding: 20px 22px;
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  margin-bottom: 20px;
}

.detail-bairro-perfil h3 {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-bairro-perfil h3 i { color: var(--gold); font-size: 0.95rem; }

.detail-bairro-perfil p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.75;
}

.detail-bairro-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 500;
  margin-top: 6px;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.detail-bairro-link:hover { color: var(--gold); gap: 14px; }
.detail-bairro-link i { font-size: 0.75rem; }

.detail-bairro-stats {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 900px) {
  .detail-bairro-stats { grid-column: 1; flex-direction: row; flex-wrap: wrap; }
}

.detail-bairro-stat {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--white);
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.detail-bairro-stat i {
  color: var(--gold);
  font-size: 1.05rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.detail-bairro-stat span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gray);
  display: block;
}
.detail-bairro-stat strong {
  font-family: var(--ff-serif);
  font-size: 1rem;
  color: var(--navy);
  display: block;
  margin-top: 2px;
  line-height: 1.3;
}

.detail-bairro-pois {
  grid-column: 1 / -1;
  margin-top: 8px;
}
.detail-bairro-pois h3 {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-bairro-pois h3 i { color: var(--gold); font-size: 0.95rem; }

.detail-bairro-pois-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.detail-bairro-poi {
  display: flex;
  gap: 12px;
  background: var(--white);
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.detail-bairro-poi i {
  color: var(--gold);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.detail-bairro-poi strong {
  font-family: var(--ff-serif);
  font-size: 0.98rem;
  color: var(--navy);
  display: block;
  margin-bottom: 2px;
}
.detail-bairro-poi span {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.55;
}

/* ---------- VÍDEO TOUR ---------- */
.detail-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}
.detail-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- FAQ ---------- */
.detail-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-faq-item {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.detail-faq-item[open] { border-color: var(--gold); }

.detail-faq-pergunta {
  cursor: pointer;
  padding: 18px 50px 18px 22px;
  font-family: var(--ff-serif);
  font-size: 1.08rem;
  color: var(--navy);
  font-weight: 500;
  position: relative;
  list-style: none;
  user-select: none;
}
.detail-faq-pergunta::-webkit-details-marker { display: none; }
.detail-faq-pergunta::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform 0.3s var(--ease);
}
.detail-faq-item[open] .detail-faq-pergunta::after {
  content: '–';
  transform: translateY(-50%) rotate(180deg);
}

.detail-faq-resposta {
  padding: 0 22px 20px;
  font-size: 0.94rem;
  color: #555;
  line-height: 1.8;
}

/* ---------- MELNICK BANNER (no detail) ---------- */
.detail-melnick-banner {
  background: var(--navy);
  border: 1px solid var(--border-gold);
  padding: 28px 32px;
  margin-bottom: 32px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.detail-melnick-icon {
  color: var(--gold);
  font-size: 2rem;
  flex-shrink: 0;
}
.detail-melnick-eyebrow {
  font-size: 0.62rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}
.detail-melnick-text {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
}
.detail-melnick-text strong { color: var(--gold); }
.detail-melnick-text a      { color: var(--gold); }

@media (max-width: 640px) {
  .detail-melnick-banner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 24px 20px;
  }
  .detail-melnick-icon { font-size: 1.7rem; }
  .detail-melnick-text { font-size: 0.85rem; }
}
