/* Estilos para o overlay da imagem */
.property-image {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.property-image:hover {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.property-image:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 2rem;
    margin-bottom: 8px;
}

.image-overlay span {
    font-weight: 500;
    font-size: 1.1rem;
}

/* Estilos do Modal da Galeria */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.gallery-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 2% auto;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.close-gallery {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.close-gallery:hover,
.close-gallery:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Estilos do Swiper */
.gallerySwiper {
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

.gallerySwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.gallerySwiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Navegação do Swiper */
.gallerySwiper .swiper-button-next,
.gallerySwiper .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 60px;
    margin-top: -30px;
    line-height: 60px;
    text-align: center;
    transition: all 0.3s ease;
}

.gallerySwiper .swiper-button-next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.gallerySwiper .swiper-button-prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.gallerySwiper .swiper-button-next:hover,
.gallerySwiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Paginação do Swiper */
.gallerySwiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
}

.gallerySwiper .swiper-pagination-bullet-active {
    background: #25D366; /* Cor do WhatsApp para combinar */
    opacity: 1;
}

/* Efeito de zoom na imagem ao clicar */
.gallerySwiper .swiper-slide {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.gallerySwiper .swiper-slide-zoomed {
    cursor: grab;
}

/* Responsividade */
@media (max-width: 768px) {
    .gallery-modal-content {
        width: 95%;
        height: 80vh;
        margin: 10% auto;
    }
    
    .close-gallery {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .gallerySwiper .swiper-button-next,
    .gallerySwiper .swiper-button-prev {
        width: 30px;
        height: 50px;
        margin-top: -25px;
    }
}
