/* ============================================
   NOVA TERRA — Página do Imóvel (imovel.css)
   Extensões ao design Terracota Luxe existente
   ============================================ */

/* ---- NAVBAR ESPECÍFICA DO IMÓVEL ---- */
.imovel-navbar {
  background: transparent;
  padding: 24px 0;
}

.imovel-navbar.scrolled {
  background: rgba(244,239,230,.95);
  backdrop-filter: blur(16px);
}

.btn-imovel-voltar {
  font-size: .85rem;
  font-weight: 600;
  color: var(--bone);
  padding: 10px 24px;
  border: 1.5px solid rgba(244,239,230,.4);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition);
}

.imovel-navbar.scrolled .btn-imovel-voltar {
  color: var(--ink);
  border-color: rgba(20,17,15,.2);
}

.btn-imovel-voltar:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.imovel-navbar.scrolled .btn-imovel-voltar:hover {
  color: var(--clay);
  border-color: var(--clay);
}

/* ---- HERO DO IMÓVEL ---- */
.imovel-hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.imovel-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.imovel-hero-bg.loaded { transform: scale(1); }

.imovel-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20,17,15,.4) 0%,
    rgba(20,17,15,.6) 60%,
    rgba(20,17,15,.85) 100%
  );
}

.imovel-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px,5vw,80px);
  width: 100%;
}

.imovel-eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(8px,2vw,16px);
}

.imovel-titulo {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem,7vw,5.5rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: clamp(8px,2vw,16px);
}

.imovel-subtitulo {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem,2.5vw,1.6rem);
  font-style: italic;
  color: rgba(244,239,230,.8);
  margin-bottom: clamp(16px,3vw,32px);
}

.imovel-preco-box {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: rgba(20,17,15,.6);
  backdrop-filter: blur(12px);
  padding: clamp(16px,2.5vw,24px) clamp(24px,3vw,40px);
  border-radius: var(--radius-lg);
}

.imovel-moeda {
  font-family: var(--font-sans);
  font-size: clamp(.9rem,1.5vw,1.2rem);
  font-weight: 600;
  color: var(--gold);
}

.imovel-valor {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem,4vw,3.2rem);
  font-weight: 800;
  color: #fff;
}

/* ---- GALLERY CAROUSEL ---- */
.imovel-gallery {
  padding: clamp(60px,10vw,120px) 0;
  background: var(--bone-light);
}

.imovel-gallery .section-title {
  text-align: center;
  margin-bottom: clamp(32px,5vw,60px);
}

.gallery-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.gallery-main img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease, transform .8s cubic-bezier(.25,.8,.25,1);
}

.gallery-main img.active {
  opacity: 1;
  transform: scale(1);
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(48px,6vw,72px);
  height: clamp(48px,6vw,72px);
  background: rgba(20,17,15,.6);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-btn:hover {
  background: rgba(20,17,15,.85);
  transform: translateY(-50%) scale(1.1);
}

.gallery-prev { left: clamp(12px,2vw,24px); }
.gallery-next { right: clamp(12px,2vw,24px); }

.gallery-thumbs {
  display: flex;
  gap: clamp(8px,1.5vw,16px);
  padding: clamp(16px,2vw,24px) 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: rgba(20,17,15,.2); border-radius: 4px; }

.gallery-thumb {
  min-width: clamp(80px,12vw,140px);
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  opacity: .6;
}

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

.gallery-thumb.active {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* ---- DETAILS (MAIN + SIDEBAR) ---- */
.imovel-details {
  padding: clamp(60px,10vw,120px) 0;
  background: var(--bone);
}

.details-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(40px,6vw,80px);
  align-items: start;
}

.imovel-descricao {
  font-size: clamp(.95rem,1.3vw,1.1rem);
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: clamp(24px,4vw,48px);
}

.imovel-descricao p { margin-bottom: 16px; }

/* SPECS GRID */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(12px,2vw,20px);
}

.spec-item {
  background: #fff;
  padding: clamp(16px,2.5vw,24px);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

.spec-value {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem,1.8vw,1.4rem);
  font-weight: 700;
  color: var(--ink);
}

/* SIDEBAR */
.details-sidebar { position: sticky; top: 100px; }

.sidebar-card {
  background: #fff;
  padding: clamp(28px,4vw,40px);
  border-radius: var(--radius-lg);
  margin-bottom: clamp(16px,2.5vw,32px);
}

.sidebar-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem,2vw,1.8rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.sidebar-subtitle, .compare-subtitle {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: clamp(20px,3vw,32px);
}

.imovel-form { display: flex; flex-direction: column; gap: 12px; }

.imovel-form input, .imovel-form select {
  padding: clamp(12px,2vw,16px) clamp(16px,2vw,24px);
  background: var(--bone-light);
  border: 1px solid rgba(20,17,15,.1);
  border-radius: var(--radius-md);
  font-size: .9rem;
  color: var(--ink);
  transition: all var(--transition);
}

.imovel-form input::placeholder { color: var(--muted); }

.imovel-form input:focus, .imovel-form select:focus {
  border-color: var(--clay);
  background: #fff;
}

/* CONSULTOR */
.sidebar-consultor {
  margin-top: clamp(20px,3vw,32px);
  padding-top: clamp(16px,2.5vw,24px);
  border-top: 1px solid rgba(20,17,15,.08);
}

.consultor-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 12px;
}

.consultor-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.consultor-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.consultor-nome {
  display: block;
  font-size: .95rem;
  color: var(--ink);
}

.consultor-creci {
  font-size: .8rem;
  color: var(--muted);
}

/* COMPARE */
.compare-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(12px,2vw,16px);
  background: var(--bone-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.compare-option:hover { background: rgba(198,93,59,.08); }

.compare-option.selected {
  background: rgba(198,93,59,.12);
  border: 1px solid var(--clay);
}

.compare-option-nome {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
}

.compare-option-preco {
  font-size: .8rem;
  color: var(--muted);
}

/* ---- HIGHLIGHTS ---- */
.imovel-highlights {
  padding: clamp(60px,10vw,120px) 0;
  background: var(--bone-light);
}

.highlights-list { display: flex; flex-direction: column; gap: 16px; }

.highlight-item {
  display: flex;
  align-items: center;
  gap: clamp(16px,2.5vw,24px);
  padding: clamp(20px,3vw,28px);
  background: #fff;
  border-radius: var(--radius-md);
}

.highlight-icon {
  flex-shrink: 0;
  width: clamp(48px,6vw,64px);
  height: clamp(48px,6vw,64px);
  background: rgba(198,93,59,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.highlight-text {
  font-size: clamp(.95rem,1.4vw,1.1rem);
  line-height: 1.6;
  color: var(--ink);
}

/* ---- MAP PLACEHOLDER ---- */
.imovel-map {
  padding: clamp(60px,10vw,120px) 0;
  background: var(--bone);
}

.map-container {
  width: 100%;
  max-width: none;
}

.map-container .section-title { margin-bottom: clamp(16px,3vw,32px); }

.map-placeholder {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-placeholder iframe {
  width: 100vw;
  left: calc(50% - 50vw);
  height: 450px;
  border: none;
  display: block;
  position: relative;
}

/* ---- IMÓVEL CTA ---- */
.imovel-cta .cta-title { font-size: clamp(1.8rem,4vw,3rem); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .details-container { grid-template-columns: 1fr; }
  .details-sidebar { position: static; order: -1; }
}

@media (max-width: 768px) {
  .imovel-hero { height: 70vh; min-height: 500px; }
  .gallery-btn { width: 48px; height: 48px; font-size: 1.5rem; }
  .spec-item { padding: 16px; }
}

@media (max-width: 480px) {
  .imovel-preco-box { flex-direction: column; align-items: flex-start; gap: 4px; }
  .sidebar-card { padding: 24px; }
}