/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    z-index: 1;
}

/* Swiper container */
.heroSwiper {
    width: 100%;
    height: auto;
}

/* Desktop: 2:1 aspect ratio (1800x900) */
@media (min-width: 769px) {
    .heroSwiper {
        aspect-ratio: 2 / 1;
        min-height: 450px;
        max-height: calc(100vh - 100px);
    }
}

/* Mobile: 3:4 aspect ratio (600x800) */
@media (max-width: 768px) {
    .heroSwiper {
        aspect-ratio: 3 / 4;
        width: 100%;
        max-width: 100vw;
        height: auto;
    }
}

/* Swiper wrapper */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Slides */
.swiper-slide {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f0f0f0;
}

/* Picture element */
.swiper-slide picture {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
}

/* Images */
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Mobile images */
@media (max-width: 768px) {
    .swiper-slide img {
        object-fit: contain;
        background: #000;
    }
}

/* Optional: Gradient overlay */
.swiper-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(0,0,0,0.2) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Fix slider controls z-index and clickability */
.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    width: 50px !important;
    height: 50px !important;
    margin-top: -25px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 10 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.swiper-button-prev {
    left: 20px !important;
    right: auto !important;
}

.swiper-button-next {
    right: 20px !important;
    left: auto !important;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1);
}

/* Arrow icons */
.swiper-button-prev::after,
.swiper-button-next::after {
    font-family: 'swiper-icons';
    font-size: 20px !important;
    text-transform: none !important;
    letter-spacing: 0;
    font-variant: initial;
    line-height: 1;
    color: #333;
}

.swiper-button-prev::after {
    content: 'prev';
}

.swiper-button-next::after {
    content: 'next';
}

/* Pagination */
.swiper-pagination {
    position: absolute !important;
    bottom: 20px !important;
    left: 0 !important;
    width: 100% !important;
    text-align: center;
    z-index: 10 !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1 !important;
    margin: 0 5px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.8);
}

.swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 5px;
    background: #d4af37 !important;
}

/* Progress bar */
.swiper-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 11;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: #d4af37;
    transition: width 5s linear;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    opacity: 0.8;
}

.mouse {
    width: 24px;
    height: 35px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
    }
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .hero-slider {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    
    .heroSwiper {
        width: 100%;
        aspect-ratio: 3 / 4 !important;
        max-height: none;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 40px !important;
        height: 40px !important;
        margin-top: -20px !important;
        background: rgba(255, 255, 255, 0.7) !important;
    }
    
    .swiper-button-prev {
        left: 10px !important;
    }
    
    .swiper-button-next {
        right: 10px !important;
    }
    
    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 16px !important;
    }
    
    .swiper-pagination {
        bottom: 15px !important;
    }
    
    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 3px !important;
    }
    
    .swiper-pagination-bullet-active {
        width: 24px;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .swiper-slide::after {
        height: 80px;
    }
}

/* Small mobile (portrait) */
@media (max-width: 480px) {
    .heroSwiper {
        aspect-ratio: 3 / 4 !important;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 35px !important;
        height: 35px !important;
    }
    
    .swiper-button-prev {
        left: 8px !important;
    }
    
    .swiper-button-next {
        right: 8px !important;
    }
    
    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 14px !important;
    }
}

/* Landscape orientation mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .heroSwiper {
        aspect-ratio: 16 / 9 !important;
        max-height: 90vh;
    }
}

/* Large desktop */
@media (min-width: 1400px) {
    .heroSwiper {
        min-height: 600px;
        max-height: 800px;
    }
}

/* Extra large desktop */
@media (min-width: 1920px) {
    .heroSwiper {
        min-height: 700px;
        max-height: 900px;
    }
}

/* Fix for aspect ratio support */
@supports (aspect-ratio: 1) {
    @media (max-width: 768px) {
        .heroSwiper {
            height: calc(100vw * 4 / 3);
        }
    }
}

/* Ensure slider doesn't block other elements */
.hero-slider {
    position: relative;
    z-index: 1;
}

/* Ensure slider controls are always clickable */
.swiper-button-next,
.swiper-button-prev,
.swiper-pagination,
.swiper-pagination-bullet {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .swiper-button-next,
    .swiper-button-prev {
        -webkit-transform: translate3d(0, 0, 0);
    }
}