/* ============================================
 * Module: Imoveis
 * Source views: index, show
 * ============================================ */

/* --- Index: Grid Layout --- */
.imovel-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.imovel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}
.imovel-card .card-title a:hover {
    color: var(--site-primary) !important;
}

/* --- Index: List Layout --- */
.imovel-card-list {
    transition: box-shadow 0.2s ease;
}
.imovel-card-list:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}
.imovel-card-list .card-title a:hover {
    color: var(--site-primary) !important;
}
.imovel-card-list .row {
    min-height: 200px;
}
@media (max-width: 767.98px) {
    .imovel-card-list .col-md-4 {
        max-height: 200px;
    }
}

/* --- Show: Gallery --- */
.imovel-gallery {
    background: #fff;
}
.gallery-main-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.gallery-thumb:hover {
    border-color: var(--site-primary);
}
.gallery-thumb.active {
    border-color: var(--site-primary);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
}

/* --- Show: Description --- */
.imovel-description {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 780px;
}

/* --- Show: Ad Positions --- */
.ad-floating-left {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    max-width: 160px;
}
@media (max-width: 1400px) {
    .ad-floating-left { display: none !important; }
}
.ad-position { text-align: center; }
.ad-position img { max-width: 100%; height: auto; }

/* --- Map Page --- */
#imoveis-map { z-index: 1; }
.leaflet-popup-content { margin: 8px 12px; line-height: 1.4; }
.leaflet-popup-content img { border-radius: 4px; }
@media (max-width: 767.98px) {
    #imoveis-map { height: 60vh !important; min-height: 300px !important; }
}
