/* Estilos Gerais */
:root {
    --primary-color: #0F172A; /* Slate 900 */
    --primary-hover: #1E293B; /* Slate 800 */
    --secondary-color: #E11D48; /* Red highlight */
    --text-color: #334155;
    --light-gray: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #fcfcfc;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.98);
}

.navbar {
    padding: 1rem 0;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    color: var(--text-color);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Banner Principal */
.main-banner {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.main-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.banner-content {
    position: relative;
    z-index: 1;
}

/* Filtro de Busca */
.search-filter {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: -75px;
    position: relative;
    z-index: 2;
}

/* Cards Estilizados Soft UI */
.property-card {
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background: #ffffff;
    height: 100%; /* Igualar alturas */
}
.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.property-card .card-img-top {
    height: 220px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}
.property-card .property-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
}
.property-card .property-features {
    color: #6c757d;
    font-size: 0.9rem;
}
.property-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
}
.badge-destaque {
    background: var(--secondary-color);
    border-radius: 20px;
    padding: 6px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(225, 29, 72, 0.3);
    color: white;
}

/* Seções */
.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Footer */
.site-footer {
    background: var(--secondary-color);
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .main-banner {
        height: 400px;
    }
    
    .intelligent-search {
        margin-top: -40px;
        padding: 20px;
        border-radius: 12px;
    }

    .search-filter {
        margin-top: -50px;
    }

    .property-card .card-img-top {
        height: 150px;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Botões alinhados ao visual do site */
.btn-primary, .search-button, .search-type-button.active {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.btn-primary:hover, .search-button:hover, .search-type-button.active:hover {
    background: var(--primary-hover) !important;
    color: #fff !important;
}
.btn-secondary {
    background: var(--secondary-color) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600;
}
.btn-secondary:hover {
    background: #BE123C !important;
    color: #fff !important;
}

/* Faixa de Financiamento de Imóveis */
.faixa-financiamento {
    background: var(--secondary-color);
    border-radius: 14px;
    margin: 40px 0 0 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 32px 0;
}
.faixa-financiamento .financiamento-texto h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 12px;
}
.faixa-financiamento .financiamento-texto p {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin-bottom: 18px;
}
.faixa-financiamento .btn-primary {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.faixa-financiamento .btn-primary:hover {
    background: var(--primary-hover) !important;
    color: #fff !important;
    transform: translateY(-2px) scale(1.03);
}
.faixa-financiamento .financiamento-img img {
    max-width: 180px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.10));
}
@media (max-width: 991px) {
    .faixa-financiamento .container {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    .faixa-financiamento .financiamento-img {
        margin-top: 18px;
    }
}

/* -----------------------------------------
   Estilos Globais UI/UX e Mobile-First 
   ----------------------------------------- */
/* Variáveis adicionais */
:root {
    --gold-color: #d4af37;
    --gold-hover: #b5952f;
}

/* Forçar altura mínima de 48px para ergonomia mobile (Fitts' Law) */
.form-control, 
.form-select, 
.btn,
.input-group-text {
    min-height: 48px;
}

/* Hero Section e Busca Flutuante */
.main-banner {
    padding-bottom: 80px; /* Mais respiro por causa da busca flutuante */
}
.intelligent-search {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-top: -80px; /* Sobrepor ao banner */
    position: relative;
    z-index: 10;
    padding: 30px;
}

/* Abas (Tabs) */
.search-tabs .nav-link {
    color: #6c757d;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-tabs .nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
}
.search-tabs .nav-link:not(.active):hover {
    background-color: var(--light-gray);
}

/* Campos de Formulário Modernos */
.intelligent-search .form-control, 
.intelligent-search .form-select,
.intelligent-search .input-group-text {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background-color: var(--light-gray);
    color: #495057;
}
.intelligent-search .input-group-text {
    border-right: none;
}
.intelligent-search .form-control,
.intelligent-search .form-select {
    border-left: none;
}
.intelligent-search .form-control:focus, 
.intelligent-search .form-select:focus {
    box-shadow: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
}
.intelligent-search .input-group:focus-within .input-group-text,
.intelligent-search .input-group:focus-within .form-control,
.intelligent-search .input-group:focus-within .form-select {
    border-color: var(--primary-color);
    background-color: #ffffff;
}

/* Botão Principal Extra */
.btn-gold {
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-gold:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badges da Seção "Por que escolher" */
.features-badge {
    background: #eff6ff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.05);
}
.features-badge i {
    font-size: 2rem;
} 