/* Galeria do detalhe do imovel (site publico).
   Estilos em arquivo externo (servido de '/static' = 'self') para respeitar a
   CSP `default-src 'self'`, que bloqueia style="" inline e <style> inline. */

.imovel-galeria-principal {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    background: #f5f5f5;
    cursor: zoom-in;
    display: block;
}

.imovel-galeria-thumbs {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.imovel-galeria-thumb {
    height: 70px;
    width: 100px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 1px rgba(0, 0, 0, .3);
    cursor: pointer;
    transition: border-color .15s;
}

.imovel-galeria-thumb.is-active,
.imovel-galeria-thumb:hover {
    border-color: #1e87f0;
}

/* Lightbox (overlay em tela cheia). */
.imovel-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.imovel-lightbox.is-open {
    display: flex;
}

.imovel-lightbox img {
    max-width: 92%;
    max-height: 88%;
    object-fit: contain;
    box-shadow: 0 0 25px rgba(0, 0, 0, .5);
}

.imovel-lightbox-btn {
    position: absolute;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    opacity: .8;
}

.imovel-lightbox-btn:hover {
    opacity: 1;
}

.imovel-lightbox-prev,
.imovel-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    padding: 10px 18px;
}

.imovel-lightbox-prev { left: 2%; }
.imovel-lightbox-next { right: 2%; }

.imovel-lightbox-close {
    top: 2%;
    right: 2%;
    font-size: 34px;
    padding: 6px 14px;
}

.imovel-lightbox-count {
    position: absolute;
    bottom: 3%;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 14px;
}
