/* IORI Mobile Slider Styles */

/* Mobile Slider Section - Show only on mobile */
.iori-mobile-slider-section {
    display: none;
}

.iori-mobile-slider-wrapper > .swiper-pagination {
    width: auto;
}

/* Show on mobile only */
@media (max-width: 768px) {
    .iori-mobile-slider-section {
        display: block;
        background: #2F373E;
        padding: 0;
    }
    
    .iori-mobile-slider-wrapper {
        position: relative;
        width: 100%;
    }
    
    /* Swiper Container */
    .iori-mobile-slider {
        width: 100%;
        height: auto;
    }
    
    .iori-mobile-slider.swiper {
        overflow: hidden;
    }
    
    /* Slide */
    .iori-mobile-slider-slide {
        position: relative;
        width: 100%;
        height: 60vh;
        min-height: 300px;
        max-height: 500px;
        outline: none;
    }
    
    .iori-mobile-slider-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Overlay */
    .iori-mobile-slider-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 60%);
        pointer-events: none;
        z-index: 1;
    }
    
    /* Navigation - Arrows */
    .iori-mobile-slider-wrapper > .swiper-button-next {
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 50%;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        position: absolute;
        top: auto;
        bottom: 2rem;
        transform: none;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .iori-mobile-slider-wrapper > .swiper-button-prev {
        display: none;
    }
    
    .iori-mobile-slider-wrapper > .swiper-button-next {
        right: 16px;
    }
    
    .iori-mobile-slider-wrapper > .swiper-button-prev {
        left: 16px;
    }
    
    .iori-mobile-slider-wrapper > .swiper-button-next svg,
    .iori-mobile-slider-wrapper > .swiper-button-prev svg {
        width: 20px;
        height: 20px;
        fill: #FFFFFF;
        color: #FFFFFF;
    }
    
    .iori-mobile-slider-wrapper > .swiper-button-next:hover,
    .iori-mobile-slider-wrapper > .swiper-button-prev:hover {
        background: #F3A623;
    }
    
    .iori-mobile-slider-wrapper > .swiper-button-next:after,
    .iori-mobile-slider-wrapper > .swiper-button-prev:after {
        display: none;
    }
    
    /* Navigation - Dots/Pagination */
    .iori-mobile-slider-wrapper > .swiper-pagination {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 8px;
        z-index: 10;
        width: auto;
        justify-content: center;
    }
    
    .iori-mobile-slider-wrapper .swiper .swiper-pagination-bullets.swiper-pagination-horizontal {
        bottom: -1.6rem;
    }
    
    .iori-mobile-slider-wrapper > .swiper-pagination li {
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .iori-mobile-slider-wrapper .swiper-pagination-bullet {
        width: 10vw;
        max-width: 40px;
        height: 6px;
        padding: 0;
        border: none;
        border-radius: 3px;
        background: rgba(255, 255, 255, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
        opacity: 1;
        margin: 0 4px;
    }
    
    .iori-mobile-slider-wrapper .swiper-pagination .swiper-pagination-bullet-active {
        background: #F3A623;
    }
    
    .iori-mobile-slider-wrapper .swiper-pagination-bullet:hover {
        background: rgba(255, 255, 255, 0.6);
    }
    
    /* Hide desktop sections on mobile */
    .iori-block-hero-section,
    .iori-block-hero-gallery-section {
        display: none !important;
    }

    .elementor-element .swiper ~ .swiper-pagination-bullets.swiper-pagination-horizontal,
    .iori-mobile-slider-wrapper > .swiper-pagination {
        bottom: -1.6rem;
    }
}

/* Smaller mobile devices */
@media (max-width: 480px) {

    .iori-mobile-slider-wrapper > .swiper-pagination {
        width: 100%;
    }

    .iori-mobile-slider-slide {
        height: 50vh;
        min-height: 250px;
    }
    
    .iori-mobile-slider-wrapper > .swiper-button-next{
        width: 40px;
        height: 40px;
        bottom: 2rem;
    }
    
    .iori-mobile-slider-wrapper > .swiper-button-prev {
        display: none;
    }

    .elementor-element .swiper ~ .swiper-pagination-bullets.swiper-pagination-horizontal,
    .iori-mobile-slider-wrapper > .swiper-pagination {
        bottom: -1.6rem;
    }
}
