/* =========================================
   1. VARIÁVEIS E BASE
   ========================================= */
:root {
    --primary-color: #1a2e35;
    --secondary-color: #2c3e50;
    --accent-color: #27ae60;
    --bg-light: #f8f9fa;
    --font-main: 'Inter', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* Utilitários Customizados */
.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.op-9 {
    opacity: 0.9;
}

.lh-base {
    line-height: 1.6;
}

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.navbar-brand span {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-left: 10px;
    vertical-align: middle;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color) !important;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700;
}

/* =========================================
   3. HERO SECTION & BUSCA
   ========================================= */
.hero-section {
    background: linear-gradient(rgba(26, 46, 53, 0.85), rgba(26, 46, 53, 0.7)),
        url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 80px 0;
    margin-top: -1px;
}

.hero-title {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* =========================================
   4. CARDS DE IMÓVEIS
   ========================================= */
.card-imovel {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-imovel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #eee;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-imovel:hover .card-img-top {
    transform: scale(1.05);
}

.badge-tipo {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(26, 46, 53, 0.9);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-text-bairro {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-features {
    display: flex;
    gap: 15px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #555;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: auto;
    margin-bottom: 1rem;
}

.btn-detalhes {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
    display: block;
}

.btn-detalhes:hover {
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
}

/* =========================================
   5. SEÇÕES (Sobre, Features, CTA)
   ========================================= */
.section-sobre {
    padding: 5rem 0;
    background-color: #fff;
}

.sobre-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-height: 300px;
}

.features-section {
    background-color: #fff;
    padding: 5rem 0;
}

.feature-icon-box {
    width: 70px;
    height: 70px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--accent-color);
    transition: transform 0.3s, background-color 0.3s;
}

.feature-col:hover .feature-icon-box {
    transform: scale(1.1);
    background-color: var(--accent-color);
    color: #fff;
}

.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

/* =========================================
   6. CARROSSEL
   ========================================= */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 20px;
    background-size: 50%;
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 3rem 0;
    margin-top: auto;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #fff;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
    margin-bottom: 5px;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-copy {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   8. MEDIA QUERIES
   ========================================= */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 60px 0;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .search-card {
        margin-top: 30px;
        padding: 1.5rem;
    }
}