.pdp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

main {
  width: var(--container);
  margin: 1.4rem auto 5rem;
  padding: 0 1rem; /* afasta conteúdo das bordas laterais */
}

.hero, .content-grid, .map-form {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.4rem; /* aumentado para dar mais respiro entre colunas */
  align-items: stretch;
}

.gallery, .hero-card, .description, .why, .map-box, .lead-form, .related-card, .agency article, .quick-info article {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding-top: 2rem;
}

  /* Galeria: aumenta espaçamento e altura para criar respiro visual */
  #gallery-placeholder
  .gallery { padding: 1rem; min-height: 340px; display: flex; flex-direction: column; }

  /* Faz a imagem principal crescer para preencher o espaço disponível
    mas mantém as miniaturas visíveis abaixo (flex layout). */
  #mainImage { width: 100%; height: auto; object-fit: cover; border-radius: 10px; cursor: zoom-in; flex: 1 1 auto; max-height: 360px; }
  .thumbs { margin-top: 1rem; flex: 0 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; }
  .thumbs img { width: 100%; height: 84px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
  .thumbs img.active { border-color: var(--accent); }

  .hero-card { padding: 1.4rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; min-height: 320px; }
  .badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .9rem; }
  .badges span { font-size: .74rem; padding: .34rem .6rem; border-radius: 999px; background: rgba(212, 177, 90, 0.14); color: var(--accent-soft); }
  .hero-card h1 { margin-bottom: .6rem; font-weight: 700; }
  .hero-card h2 { color: var(--accent-soft); margin: .45rem 0; font-size: 1.45rem; }
  .hero-card small, .hero-card p { color: var(--muted); }
  .btn.primary { background: linear-gradient(130deg, var(--accent) 0%, #b88f1c 100%); color: #111827; width: 100%; }
  .btn.ghost { background: transparent; color: var(--primary-soft); border: 1px solid var(--line); }
  .hero-actions { display: flex; gap: .9rem; margin-top: 1rem; align-items: center; }

  /* Força uma separação visual maior entre informações e o CTA */
  .hero-info { display: flex; flex-direction: column; gap: .55rem; }


.quick-info {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .7rem;
}
.quick-info article { padding: .9rem .7rem; text-align: center; }
.quick-info strong { display: block; color: var(--primary); font-size: 1rem; }
.quick-info span { color: var(--muted); font-size: .82rem; }

.content-grid, .map-form { margin-top: 1rem; }
.description, .why, .map-box, .lead-form { padding: 1.15rem; }
.description p, .description li, .map-box p, .why li { color: var(--muted); }

/* Faz a caixa do mapa ocupar 100% da largura (ambas as colunas do grid)
  e aumenta a altura mínima do iframe para melhor visualização. */
.map-box { grid-column: 1 / -1; }
.map-box iframe { width: 100%; min-height: 420px; border: 0; border-radius: 10px; }
.lead-form { display: grid; gap: .55rem; }
.lead-form input, .lead-form textarea {
  border: 1px solid var(--line);
  background: #0f1a2e;
  color: var(--text);
  border-radius: 10px;
  padding: .75rem .85rem;
  font: inherit;
}

.related, .agency { margin-top: 1rem; }
.related-grid, .agency-grid {padding: 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.related-card { text-decoration: none; color: inherit; overflow: hidden; transition: transform .25s ease; }
.related-card:hover { transform: translateY(-4px); }
.related-card img { width: 100%; height: 170px; object-fit: cover; }
.related-card p { margin: .7rem; font-weight: 600; color: var(--primary-soft); }
.agency article { padding: .9rem; font-weight: 600; color: var(--primary-soft); text-align: center; }

.floating-whatsapp {
  position: fixed;
  right: 16px;
  bottom: 78px;
  z-index: 40;
  background: #22c55e;
  color: #fff;
  text-decoration: none;
  padding: .78rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.35);
}

.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  background: rgba(8,14,27,.96);
  border-top: 1px solid rgba(148,163,184,.25);
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  padding: .55rem;
}
.mobile-cta a { text-align: center; text-decoration: none; padding: .75rem .6rem; border-radius: 10px; font-weight: 700; }
.mobile-cta a:first-child { background: #22c55e; color: #fff; }
.mobile-cta a:last-child { background: var(--accent); color: #111827; }

.pdp-footer { margin-top: 2rem; }

.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10, 14, 22, .92);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 12px; }

@media (max-width: 980px) {
  .hero, .content-grid, .map-form { grid-template-columns: 1fr; }
  .quick-info { grid-template-columns: repeat(3, 1fr); }
  .related-grid, .agency-grid { grid-template-columns: 1fr 1fr; }
  .hero { gap: 1rem; }
  .hero-card { min-height: auto; justify-content: flex-start; }
}
@media (max-width: 700px) {
  .gallery { min-height: 200px; }
  #mainImage { max-height: 200px; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .quick-info { grid-template-columns: repeat(2, 1fr); }
  .related-grid, .agency-grid { grid-template-columns: 1fr; }
  .mobile-cta { display: grid; }
}