body{
    font-family:'Segoe UI', Arial, sans-serif;
    background:#f4f6f9;
    color:#333;
}

/* =========================
   GRID DOS IMÓVEIS
========================= */

.lista-imoveis{
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:22px;
    padding:25px;
}

/* =========================
   TOPO
========================= */

.topo-imoveis{
    display:flex;
    align-items:center;
    gap:15px;
    padding:0 25px; /* mesmo alinhamento dos cards */
}

.topo-imoveis h3{
    flex:1;
    text-align:center;
    margin:0;
}

/* =========================
   BOTÃO FILTRO
========================= */

.btn-filtros{
    background:#007bff;
    color:white;
    border:none;
    border-radius:8px;
    padding:10px 16px;
    font-size:14px;
    cursor:pointer;
    box-shadow:0 4px 12px rgba(0,0,0,0.25);
    transition:0.3s;
}

.btn-filtros:hover{
    background:#0056b3;
}

/* =========================
   CARD
========================= */

.card{
    width:100%;
    background:#fff;
    border-radius:12px;
    box-shadow:0 3px 15px rgba(0,0,0,0.08);
    overflow:hidden;
    transition:all 0.25s ease;
    border:1px solid #eee;
}

.card:hover{
    transform:translateY(-6px);
    box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

/* =========================
   CARROSSEL CARD
========================= */

.carousel-inner{
    width:100%;
    height:220px;
}

.carousel-inner .item{
    width:100%;
    height:220px;
}

.carousel-inner .item img{
    width:100%;
    height:220px;
    object-fit:cover;
    transition:0.4s;
}

.card:hover img{
    transform:scale(1.05);
}

/* =========================
   CONTEÚDO CARD
========================= */

.card-body{
    padding:14px;
}

.card-body h4{
    font-size:17px;
    font-weight:600;
    margin-bottom:6px;
}

.card-body p{
    margin:3px 0;
    font-size:13px;
    color:#555;
}

.card-preco{
    font-size:20px;
    font-weight:700;
    color:#2e8b57;
    margin-top:6px;
}

.card-body .btn{
    margin-top:8px;
    padding:7px 14px;
    font-size:13px;
}

/* =========================
   BOTÃO PADRÃO
========================= */

.btn{
    display:inline-block;
    padding:8px 16px;
    background:#f39c12;
    color:white;
    text-decoration:none;
    border-radius:6px;
    font-size:14px;
    transition:0.2s;
}

.btn:hover{
    background:#f39c12;
    color:white;
}



.mapa-imovel {
    height: 200px;       /* altura menor que o carrossel */
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* =========================
   MODAL
========================= */

.modal-dialog.modal-lg{
    width:1000px;
    max-width:95%;
}

.modal-content{
    border-radius:8px;
    border:none;
}

.modal-header{
    padding:14px 18px;
}

.modal-body{
    padding:18px;
}

.modal-body .carousel-inner{
    width:100%;
    height:450px;
}

.modal-body .carousel-inner .item{
    width:100%;
    height:450px;
}

.modal-body .carousel-inner img{
    width:100%;
    height:450px;
    object-fit:cover;
    border-radius:6px;
}

.modal-body p{
    font-size:15px;
    margin:6px 0;
}

.modal-body h4{
    margin-top:18px;
    font-weight:600;
}

.modal-footer{
    padding:12px 18px;
}

/* =========================
   MENU LATERAL FILTRO
========================= */

#filtro-lateral{
    position:fixed;
    top:0;
    left:-320px;
    width:320px;
    height:100%;
    background:#fff;
    box-shadow:2px 0 15px rgba(0,0,0,0.2);
    z-index:2000;
    padding:20px;
    overflow-y:auto;
    transition:0.3s;
}

#filtro-lateral.ativo{
    left:0;
}

.filtro-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.fechar{
    cursor:pointer;
    font-size:22px;
}

/* =========================
   RESPONSIVO
========================= */

@media(max-width:1400px){
    .lista-imoveis{
        grid-template-columns:repeat(4, 1fr);
    }
}

@media(max-width:1100px){
    .lista-imoveis{
        grid-template-columns:repeat(3, 1fr);
    }
}

@media(max-width:768px){
    .lista-imoveis{
        grid-template-columns:repeat(2, 1fr);
    }

    .modal-body .carousel-inner,
    .modal-body .carousel-inner .item,
    .modal-body .carousel-inner img{
        height:300px;
    }
}

@media(max-width:480px){
    .lista-imoveis{
        grid-template-columns:1fr;
    }
}