/* =========================================================
   CONTAINER
========================================================= */
.imovel-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 20px;
}

/* =========================================================
   1 - TÍTULO
========================================================= */
.titulo-imovel {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
}

/* =========================================================
   2 - IMAGEM DE CAPA (HERO)
========================================================= */
.hero-capa {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.hero-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

@media (min-width: 900px) {
    .hero-img {
        width: 80%;
        max-height: 550px;
    }
}

/* =========================================================
   3 - MINIATURAS
========================================================= */
.thumbs-container {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb-img {
    height: 80px;
    width: 120px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform .2s;
}

.thumb-img:hover {
    transform: scale(1.05);
}
@media (min-width: 900px) {
    .thumbs-container {
        justify-content: center;
    }
}

/* =========================================================
   LIGHTBOX (com navegação + swipe)
========================================================= */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox-content {
    max-width: 92%;
    max-height: 92%;
    border-radius: 6px;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

/* SETAS */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 55px;
    padding: 10px 18px;
    color: white;
    cursor: pointer;
    user-select: none;
    transition: .2s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    color: #dcdcdc;
}

.lightbox-nav.left { left: 25px; }
.lightbox-nav.right { right: 25px; }

/* =========================================================
   4 - PREÇO
========================================================= */
.preco-imovel {
    font-size: 28px;
    font-weight: bold;
    color: #0077cc;
    margin: 25px 0;
}

/* =========================================================
   5 - INFORMAÇÕES
========================================================= */
.info-imovel {
    margin-bottom: 30px;
}

/* =========================================================
   7 - AGENTE
========================================================= */
.agente-box {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    background: #f9f9f9;
    margin-top: 30px;
}

/* =========================================================
   8 - IMÓVEIS RELACIONADOS — estilo index
========================================================= */
.imoveis-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* CARD */
.card-imovel.vertical {
    width: 280px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    transition: .15s;
    text-decoration: none;
    color: inherit;
}

.card-imovel.vertical:hover {
    transform: translateY(-3px);
}

.card-imovel.vertical img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* CONTEÚDO DO CARD */
.card-content {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #000;
}

.card-preco {
    font-size: 20px;
    font-weight: 700;
    color: #0081c9;
    display: block;
    margin-bottom: 8px;
}

.card-local {
    font-size: 14px;
    color: #555;
}
