/* =========================================
   1. RESET E GERAL
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body { background: var(--bg-body); color: var(--text-main); }
a { text-decoration: none; }
img { max-width: 100%; display: block; }

/* =========================================
   2. HEADER (TOPO)
   ========================================= */
.site-header {
    background: var(--bg-card);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 1.5rem; color: var(--primary); letter-spacing: -1px; }

.btn-whatsapp {
    background: #25D366; color: #fff; padding: 10px 20px; border-radius: 50px;
    font-weight: 600; display: flex; align-items: center; gap: 8px;
    transition: transform 0.2s; font-size: 0.9rem;
}
.btn-whatsapp:hover { transform: scale(1.05); }

/* =========================================
   3. HERO (HOME)
   ========================================= */
.hero {
    background: var(--primary);
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('https://images.unsplash.com/photo-1600596542815-2495db98dada?auto=format&fit=crop&w=1920&q=80');
    background-size: cover; background-position: center;
    color: #fff; padding: 6rem 1.5rem; text-align: center;
}
.hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; opacity: 0.9; }

/* =========================================
   4. CARDS DE IMÃ“VEIS (HOME)
   ========================================= */
.section-title { text-align: center; margin: 4rem 0 2rem; font-size: 2rem; color: var(--primary); font-weight: 700; }
.imoveis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; padding-bottom: 4rem; }

.imovel-card {
    background: var(--bg-card); border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05); position: relative;
}
.imovel-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

.card-img { height: 220px; width: 100%; object-fit: cover; background: #e2e8f0; }
.card-content { padding: 1.5rem; }
.card-price { font-size: 1.5rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.5rem; }
.card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-main); line-height: 1.4; }
.card-local { font-size: 0.9rem; color: #64748B; display: flex; align-items: center; gap: 5px; margin-bottom: 1rem; }

.card-features { display: flex; gap: 15px; border-top: 1px solid #f1f5f9; padding-top: 1rem; font-size: 0.85rem; color: #64748B; }
.feat { display: flex; align-items: center; gap: 5px; }

.btn-detalhes {
    display: block; width: 100%; text-align: center; background: var(--primary); color: #fff;
    padding: 12px; margin-top: 1rem; border-radius: min(var(--btn-radius, 8px), 12px); font-weight: 600; transition: opacity 0.2s;
}
.btn-detalhes:hover { opacity: 0.9; }

/* =========================================
   5. PÃGINA DE DETALHES (IMPORTANTÃSSIMO)
   ========================================= */
.lp-container { 
    padding: 3rem 1.5rem; 
    display: grid; 
    grid-template-columns: 2fr 1fr; /* 2 partes conteudo, 1 parte sidebar */
    gap: 3rem; 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* Galeria */
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 10px; 
    margin-bottom: 2rem; 
}
.gallery-main { 
    grid-column: span 4; /* Ocupa tudo */
    height: 400px; 
    width: 100%; 
    object-fit: cover; 
    border-radius: 12px;
    background: #e2e8f0;
}
.gallery-item { 
    height: 100px; 
    width: 100%;
    object-fit: cover; 
    border-radius: 8px;
    cursor: pointer; 
    opacity: 0.7; 
    transition: 0.2s; 
}
.gallery-item:hover { opacity: 1; border: 2px solid var(--secondary); }

/* InformaÃ§Ãµes do ImÃ³vel */
.imovel-header { border-bottom: 1px solid #e2e8f0; padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.imovel-price { font-size: 2.5rem; font-weight: 800; color: var(--secondary); margin: 0.5rem 0; }
.features-list { display: flex; gap: 20px; margin: 1.5rem 0; font-size: 1.1rem; color: #475569; background: #f8fafc; padding: 1.5rem; border-radius: 12px; }
.description { line-height: 1.8; color: var(--text-main); font-size: 1.05rem; }

/* Sidebar (O Simulador) */
.lp-sidebar { position: sticky; top: 100px; height: fit-content; }
.simulador-card {
    background: var(--bg-card); padding: 2rem; border-radius: 16px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1); 
    border: 1px solid rgba(0,0,0,0.05);
}
.simulador-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; color: var(--primary); display: flex; align-items: center; gap: 10px; }

/* Mobile */
@media (max-width: 768px) {
    .lp-container { grid-template-columns: 1fr; } /* Vira uma coluna sÃ³ no celular */
    .gallery-main { height: 250px; }
    .features-list { flex-wrap: wrap; }
}