/* Airbnb Images Slider Styles */
.airbnb-images-slider-wrapper {
    width: 100%;
    margin: 20px 0;
    position: relative;
}

.airbnb-images-swiper {
    width: 100%;
    height: 500px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.airbnb-images-swiper .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.airbnb-slide-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.airbnb-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    opacity: 1;
}

/* Ensure first image is always visible */
.airbnb-slide-image img.swiper-lazy-loaded,
.airbnb-slide-image img:first-child {
    opacity: 1 !important;
}

.airbnb-slide-image:hover img {
    transform: scale(1.05);
}

/* Navigation Buttons */
.airbnb-images-swiper .swiper-button-next,
.airbnb-images-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.airbnb-images-swiper .swiper-button-next:hover,
.airbnb-images-swiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.airbnb-images-swiper .swiper-button-next::after,
.airbnb-images-swiper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

/* Pagination */
.airbnb-images-swiper .swiper-pagination {
    bottom: 20px;
}

.airbnb-images-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.airbnb-images-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #0073aa;
    transform: scale(1.2);
}

/* Thumbnails */
.airbnb-thumbs-swiper {
    width: 100%;
    height: 100px;
    margin-top: 10px;
}

.airbnb-thumbs-swiper .swiper-slide {
    width: auto;
    height: 100%;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
}

.airbnb-thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #0073aa;
}

.airbnb-thumb-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.airbnb-thumb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .airbnb-images-swiper {
        height: 400px;
    }
    
    .airbnb-thumbs-swiper {
        height: 80px;
    }
    
    .airbnb-images-swiper .swiper-button-next,
    .airbnb-images-swiper .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    
    .airbnb-images-swiper .swiper-button-next::after,
    .airbnb-images-swiper .swiper-button-prev::after {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .airbnb-images-swiper {
        height: 300px;
    }
    
    .airbnb-thumbs-swiper {
        height: 60px;
    }
    
    .airbnb-images-swiper .swiper-button-next,
    .airbnb-images-swiper .swiper-button-prev {
        width: 32px;
        height: 32px;
    }
}

/* Loading State */
.airbnb-slide-image img.swiper-lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.airbnb-slide-image img.swiper-lazy-loaded {
    opacity: 1;
}

/* Preloader */
.airbnb-slide-image .swiper-lazy-preloader {
    width: 42px;
    height: 42px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -21px;
    margin-top: -21px;
    z-index: 10;
    transform-origin: 50%;
    box-sizing: border-box;
    border: 4px solid var(--swiper-preloader-color, var(--swiper-theme-color));
    border-radius: 50%;
    border-top-color: transparent;
    animation: swiper-preloader-spin 1s linear infinite;
}

@keyframes swiper-preloader-spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Fade Effect */
.airbnb-images-swiper.swiper-effect-fade .swiper-slide {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.airbnb-images-swiper.swiper-effect-fade .swiper-slide-active {
    opacity: 1;
}

/* Cube Effect */
.airbnb-images-swiper.swiper-effect-cube {
    overflow: visible;
}

.airbnb-images-swiper.swiper-effect-cube .swiper-slide {
    pointer-events: none;
    transform-origin: 0 0;
}

.airbnb-images-swiper.swiper-effect-cube .swiper-slide-active {
    pointer-events: auto;
}

/* Coverflow Effect */
.airbnb-images-swiper.swiper-effect-coverflow .swiper-slide {
    transition-property: transform;
}

/* Accessibility */
.airbnb-images-swiper .swiper-button-next:focus,
.airbnb-images-swiper .swiper-button-prev:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.airbnb-images-swiper .swiper-pagination-bullet:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .airbnb-images-slider-wrapper {
        page-break-inside: avoid;
    }
    
    .airbnb-images-swiper .swiper-button-next,
    .airbnb-images-swiper .swiper-button-prev,
    .airbnb-images-swiper .swiper-pagination {
        display: none;
    }
    
    .airbnb-images-swiper {
        height: auto;
    }
    
    .airbnb-images-swiper .swiper-slide {
        display: block;
        page-break-inside: avoid;
    }
}

