.houses-image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Fix for Elementor container height inheritance */
.elementor-widget-houses-slider,
.elementor-widget-houses-slider .elementor-widget-container {
    height: 100%;
}

.houses-image-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.houses-image-slider .swiper-zoom-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.houses-image-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.houses-image-slider .swiper-button-next,
.houses-image-slider .swiper-button-prev {
    color: #fff;
}

.houses-image-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
}

.houses-image-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Expand button */
.houses-slider-expand {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.houses-slider-expand:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.houses-slider-expand svg {
    width: 22px;
    height: 22px;
}

/* Lightbox */
.houses-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.houses-lightbox.is-active {
    opacity: 1;
    visibility: visible;
}

.houses-lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.houses-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.houses-lightbox-image.is-loaded {
    opacity: 1;
}

.houses-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.houses-lightbox-close:hover {
    opacity: 0.7;
}

.houses-lightbox-prev,
.houses-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.houses-lightbox-prev:hover,
.houses-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.houses-lightbox-prev {
    left: 20px;
}

.houses-lightbox-next {
    right: 20px;
}