/* ========================================================= */
/* ========================= HERO =========================== */
/* ========================================================= */
.hero{
    padding:40px 30px;
    text-align:center;
}

.hero h2{
    max-width:500px;
    margin:0 auto 15px;
    color:var(--cor-primaria);
    font-size:28px;
    font-weight:700;
    line-height:1.2;
}

.hero p{
    max-width:300px;
    margin:0 auto;
    color:var(--cor-secundaria);
    font-size:16px;
    line-height:1.5;
}

/* ========================================================= */
/* ======================== BUSCA =========================== */
/* ========================================================= */

/* ======================================== */
/* -------- Bloco Busca ------------------- */
/* ======================================== */
.busca{
    margin:20px;
    margin-top:0;
    padding:20px;
    border-radius:20px;
    background:var(--cor-hover-menu);
}

.busca h3{
    margin-bottom:15px;
    text-align:center;
    color:var(--cor-primaria);
    font-size:22px;
}

/* ======================================== */
/* -------- Formulário -------------------- */
/* ======================================== */
form{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.campos-busca{
    display:flex;
    flex-direction:column;
    gap:10px;
}

/* ======================================== */
/* ------ Comprar / Alugar ---------------- */
/* ======================================== */
.tipo-negocio{
    display:flex;
    width:100%;
    overflow:hidden;
    border-radius:15px;
    background:#FFFFFF;
}

.btn-comprar, .btn-alugar{
    flex:1;
    padding:12px 20px;
    border:none;
    background:#FFFFFF;
    color:var(--cor-secundaria);
    font-weight:bold;
    cursor:pointer;
}

.ativo{
    background:#45578C;
    color:#FFFFFF;
}

/* ======================================== */
/* -------- Select ------------------------ */
/* ======================================== */
select{
    width:100%;
    padding:12px;
    border:2px solid #FFFFFF;
    border-radius:12px;
    background:#FFFFFF;
    color:var(--cor-secundaria);
    font-size:15px;
}

select:focus{
    outline:none;
    border-color:#45578C;
}

/* ======================================== */
/* -------- Botão Buscar ------------------ */
/* ======================================== */
.btn-buscar{
    padding:12px;
    border:none;
    border-radius:12px;
    background:var(--cor-destaque);
    color:#FFFFFF;
    font-size:16px;
    font-weight:bold;
    box-shadow:0 4px 10px rgba(0,0,0,.15);
    cursor:pointer;
    transition:.30s;
}

.btn-buscar:hover{
    transform:translateY(-2px);
}

/* ========================================================= */
/* ====================== DESTAQUES ========================= */
/* ========================================================= */
.destaques{
    padding:20px 0;
}

.destaques h2{
    text-align:center;
    margin-bottom:30px;
    color:var(--cor-primaria);
    font-size:32px;
    font-weight:700;
}

/* ========================================================= */
/* ======================== CARDS =========================== */
/* ========================================================= */

/* ======================================== */
/* -------- Card do Imóvel ---------------- */
/* ======================================== */
.card-imovel{
    margin:15px;
    overflow:hidden;
    border:4px solid var(--cor-secundaria);
    border-radius:20px;
    background:#FFFFFF;
}

.card-imovel img{
    width:100%;
    height:220px;
    display:block;
    object-fit:cover;
}

/* ======================================== */
/* -------- Informações ------------------- */
/* ======================================== */
.info-imovel{
    padding:20px;
}

.info-imovel h3{
    margin-bottom:2px;
    color:var(--cor-primaria);
    font-size:30px;
    font-weight:bold;
}

.codigo{
    margin-bottom:5px;
    color:var(--cor-codigo);
    font-size:13px;
}

.preco{
    margin-bottom:18px;
    color:var(--cor-destaque);
    font-size:30px;
    font-weight:bold;
}

.endereco, .bairro{
    color:var(--cor-secundaria);
    font-size:15px;
    font-weight:700;
}

.endereco{
    margin-bottom:8px;
}

.bairro{
    margin-bottom:18px;
}

.descricao{
    margin-bottom:25px;
    color:var(--cor-secundaria);
    font-size:17px;
    line-height:1.5;
}

/* ======================================== */
/* -------- Botão Detalhes ---------------- */
/* ======================================== */
.btn-detalhes{
    display:block;
    width:100%;
    padding:15px;
    text-align:center;
    border-radius:12px;
    background:var(--cor-destaque);
    color:#FFFFFF;
    font-size:17px;
    font-weight:bold;
    box-shadow:0 4px 10px rgba(0,0,0,.15);
    transition:.30s;
}

.btn-detalhes:hover{
    transform:translateY(-2px);
}

/* ========================================================= */
/* ======================== STATUS ========================== */
/* ========================================================= */
.status-card{
    display:inline-block;
    margin:10px 0;
    padding:8px 15px;
    border-radius:999px;
    font-weight:bold;
}

.status-disponivel{
    background:var(--status-disponivel-bg);
    color:var(--status-disponivel);
}

.status-vendido{
    background:var(--status-vendido-bg);
    color:var(--status-vendido);
}

.status-reservado{
    background:var(--status-reservado-bg);
    color:var(--status-reservado);
}

.status-alugado{
    background:var(--status-alugado-bg);
    color:var(--status-alugado);
}

/* ========================================================= */
/* ======================== TABLET ========================= */
/* ========================================================= */
@media (min-width:768px){

    .hero p{
        max-width:420px;
        font-size:20px;
        line-height:1.6;
    }

    /* ======================================== */
    /* -------- Busca ------------------------- */
    /* ======================================== */
    .tipo-negocio button{
        font-size:18px;
        font-weight:600;
    }

    .busca{
        margin:20px 35px 0;
        padding:26px;
    }

    .busca h3{
        font-size:36px;
        margin-bottom:25px;
    }

    form{
        gap:14px;
    }

    select{
        height:50px;
        font-size:17px;
    }

    .btn-buscar{
        height:50px;
        font-size:18px;
    }

    /* ======================================== */
    /* -------- Destaques --------------------- */
    /* ======================================== */
    .destaques{
        margin-top:70px;
        margin-bottom:40px;
    }

    .destaques h2{
        font-size: 42px;
        margin-bottom: 35px;
    }

    #lista-destaques{
        display:flex;
        flex-direction:column;
        gap:25px;
        align-items:center;
    }

    .card-imovel{
        width:100%;
        max-width:650px;
        margin:0;
    }

    .card-imovel img{
        height:300px;
    }

    .info-imovel h3{
        font-size:40px;
    }

    .codigo{
        font-size:17px;
    }

    .preco{
        font-size:42px;
    }

    .endereco, .bairro{
    font-size:19px;
    }

    .descricao{
        font-size:22px;
        line-height:1.6;
    }

    .status-card{
        font-size:18px;
        padding:10px 18px;
    }

    .btn-detalhes{
        font-size:22px;
        padding:18px;
    }
}

/* ========================================================= */
/* ======================= NOTEBOOK ========================= */
/* ========================================================= */
@media (min-width:1024px){

    .hero{
        padding:60px 40px 70px;
    }

    .hero h2{
        max-width:700px;
        margin:0 auto 20px;
        font-size:46px;
    }

    .hero p{
        max-width:760px;
        margin:0 auto;
        font-size:18px;
        line-height:1.7;
    }

    /* ======================================== */
    /* -------- Busca ------------------------- */
    /* ======================================== */
    .busca{
        max-width:1180px;
        margin:-40px auto 60px;
        padding:35px;
        border-radius:24px;
    }

    .busca h3{
        margin-bottom:40px;
        font-size:28px;
    }

    form{
        gap:20px;
    }

    .tipo-negocio{
        width:520px;
        margin:0 auto 20px;
    }

    .campos-busca{
        display:grid;
        grid-template-columns:repeat(4,1fr);
        gap:20px;
        align-items:end;
    }

    select{
        height:48px;
    }

    .btn-buscar{
        height:48px;
        font-size:18px;
    }

    /* ======================================== */
    /* -------- Destaques --------------------- */
    /* ======================================== */
    .destaques{
        margin-top:95px;
        margin-bottom:40px;
    }

    .destaques h2{
        margin-bottom:28px;
        text-align:center;
        font-size:38px;
        font-weight:700;
    }

    #lista-destaques{
        display:grid;
        grid-template-columns:repeat(2,1fr);
        gap:30px;
        max-width:900px;
        margin:0 auto;
    }

    .card-imovel{
        display:flex;
        flex-direction:column;
        width:100%;
        max-width:430px;
        min-height:100%;
        margin:0;
    }

    .card-imovel img{
        height:240px;
        object-fit:cover;
    }

    .info-imovel{
        display:flex;
        flex-direction:column;
        flex:1;
        padding:20px;
    }

    .info-imovel h3{
        margin-bottom:2px;
        font-size:35px;
    }

    .codigo{
        font-size: 17px;
    }

    .status-card{
        width:fit-content;
        min-width:140px;
        padding:10px 20px;
    }

    .btn-detalhes{
        margin-top:auto;
    }

    .preco{
        font-size:30px;
    }
}

/* ========================================================= */
/* ======================== DESKTOP ========================= */
/* ========================================================= */
@media (min-width:1440px){

    .hero{
        padding:60px 40px 70px;
    }

    .hero h2{
        max-width:900px;
        font-size:56px;
    }

    .hero p{
        max-width:900px;
        font-size:19px;
    }

    /* ======================================== */
    /* -------- Busca ------------------------- */
    /* ======================================== */
    .busca{
        max-width:1600px;
        margin:-45px auto 40px;
        padding:40px;
    }

    .busca h3{
        margin-bottom:40px;
        font-size:34px;
    }

    .tipo-negocio{
        width:600px;
        margin:0 auto 25px;
    }

    .campos-busca{
        grid-template-columns:repeat(4,1fr);
        gap:25px;
    }

    select{
        height:55px;
        font-size:18px;
    }

    .btn-buscar{
        height:55px;
        font-size:20px;
    }

    /* ======================================== */
    /* -------- Destaques --------------------- */
    /* ======================================== */
    .destaques{
        max-width:1750px;
        margin:95px auto 60px;
        padding:0 30px;
    }

    .destaques h2{
        margin-bottom:30px;
        text-align:center;
        font-size:42px;
        font-weight:700;
    }

    #lista-destaques{
        display:grid;
        grid-template-columns:repeat(4,1fr);
        gap:28px;
        max-width:1700px;
        margin:0 auto;
    }

    .card-imovel{
        width:100%;
        max-width:390px;
        margin:0 auto;
    }

    .card-imovel img{
        height:240px;
    }

    .info-imovel{
        padding:22px;
    }

    .info-imovel h3{
        font-size:24px;
    }

    .preco{
        font-size:30px;
    }

    .btn-detalhes{
        padding:16px;
        font-size:18px;
    }
}
