/* =============================
   GERAL
============================= */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

.container-page {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* =============================
   IMAGEM TOPO
============================= */
.topo-imagem {
    width: 100vw; 
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.topo-imagem img {
    width: 100%;
    height: 200px; /* altura mais elegante */
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.topo-imagem img:hover {
    transform: scale(1.05);
}

/* =============================
   VOLTAR
============================= */
.voltar {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
    color: #fff;
    background: #f39c12;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.voltar:hover {
    background: #e67e22;
}

/* =============================
   TITULO & DESCRIÇÃO
============================= */
.titulo h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 10px 0;
}

.descricao-topo {
    font-size: 18px;
    color: #444;
    margin-top: 10px;
    max-width: 800px;
    line-height: 1.6;
    font-weight: 500;
}

/* =============================
   GRID DE IMÓVEIS
============================= */
.grid-imoveis {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

/* =============================
   CARD DE IMÓVEL
============================= */
.card-imovel {
    flex: 1 1 300px;
    max-width: 350px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.card-imovel:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* CARROSSEL DE IMAGEM */
.card-imovel .carousel {
    width: 100%;
    height: 250px;
}

.card-imovel .carousel .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* CONTEÚDO DO CARD */
.conteudo-card {
    padding: 15px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.conteudo-card h3 {
    font-size: 20px;
    margin-bottom: 5px;
    font-weight: 600;
}

.conteudo-card .local {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.conteudo-card .infos {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 10px;
}

.conteudo-card .preco {
    font-size: 18px;
    color: #27ae60;
    font-weight: bold;
    margin-bottom: 10px;
}

/* BOTÃO */
.conteudo-card .btn {
    background: #f39c12;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px;
    transition: 0.3s;
}

.conteudo-card .btn:hover {
    background: #e67e22;
}

/* =============================
   MODAL
============================= */
.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* MAPA LEAFLET */
.leaflet-container {
    height: 300px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin-bottom: 15px;
}

/* =============================
   RESPONSIVO
============================= */
@media (max-width: 1200px) {
    .card-imovel {
        flex: 1 1 45%;
        max-width: 45%;
    }
}

@media (max-width: 768px) {
    .grid-imoveis {
        flex-direction: column !important;
        align-items: center;
    }

    .card-imovel {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    .card-imovel .carousel {
        height: 200px;
    }

    .conteudo-card h3 {
        font-size: 18px;
    }

    .conteudo-card .preco {
        font-size: 18px;
    }

    .descricao-topo {
        font-size: 16px;
    }

    .topo-imagem img {
        height: 150px;
    }
}