/* HERO DE VÍDEO - IMÓVEIS */
.imoveis-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 160px;
    padding-bottom: 60px;
    margin-top: -80px; /* Compensa o header fixo se necessário */
}

/* Compensar header */
body {
    padding-top: 80px; /* Header space */
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Escurece o vídeo para dar destaque ao filtro */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

/* PAINEL DE BUSCA (Estilo Ofertas de Cotas) */
.search-container {
    background-color: rgba(18, 37, 26, 0.96); /* Usa o var(--primary-dark) com transparência */
    padding: 24px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 0;
    position: relative;
}

@media (max-width: 768px) {
    .search-container {
        padding: 16px;
    }
}

.search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.search-field-group {
    display: flex;
    flex-direction: column;
}

.search-field-group label {
    font-size: 0.8rem;
    margin-bottom: 6px;
    color: #e2e8f0;
    font-weight: 600;
}

.search-field-group select,
.search-field-group input {
    padding: 10px 12px;
    border-radius: 6px;
    border: none;
    font-size: 0.9rem;
    background: #ffffff;
    color: #1e2521;
    outline: none;
}

.search-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-group {
    flex: 1;
    min-width: 250px;
}

.price-slider-container {
    display: flex;
    flex-direction: column;
}

.price-slider {
    width: 100%;
    accent-color: var(--accent);
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-top: 5px;
    color: #e2e8f0;
}

.search-ref-box {
    display: flex;
    background: white;
    border-radius: 6px;
    overflow: hidden;
}

.search-ref-box input {
    border: none;
    padding: 10px 12px;
    outline: none;
    width: 150px;
}

.search-btn {
    background: var(--accent); /* Dourado */
    color: var(--primary-dark);
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(200, 169, 106, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    transform: translateY(-2px);
    background: var(--accent-light);
    box-shadow: 0 6px 20px rgba(200, 169, 106, 0.4);
}

/* COMPENSAR O MARGIN DO PAINEL NA GRID DE IMÓVEIS */
#reGridContainer {
    margin-top: 140px;
}
@media (max-width: 768px) {
    #reGridContainer {
        margin-top: 60px;
    }
}
