/**
 * Attractions Carousel Styles
 * 
 * Custom styling for the attractions carousel
 */

.attractions-carousel-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
}

.attractions-carousel {
    position: relative;
    overflow: hidden;
}

/* Individual attraction slide */
.attraction-slide {
    display: flex;
    flex-direction: column;
    height: auto;
    background: var(--base);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.attraction-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Attraction image */
.attraction-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.attraction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.attraction-slide:hover .attraction-image img {
    transform: scale(1.05);
}

/* Attraction content */
.attraction-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.attraction-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.attraction-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

/* Swiper navigation arrows */
.attractions-carousel .swiper-button-next,
.attractions-carousel .swiper-button-prev {
    width: 44px;
    height: 44px;
    background-color: rgba(67, 98, 120, 0.9);
    border-radius: 50%;
    color: #333;
    transition: all 0.3s ease;
}

.attractions-carousel .swiper-button-next:hover,
.attractions-carousel .swiper-button-prev:hover {
    background-color: #fff;
    color: #007cba;
}

.attractions-carousel .swiper-button-next::after,
.attractions-carousel .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

/* Swiper button positioning */
.attractions-carousel .swiper-button-next {
    right: 10px;
}

.attractions-carousel .swiper-button-prev {
    left: 10px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .attractions-carousel-container {
        padding: 15px;
    }
    
    .attraction-image {
        height: 180px;
    }
    
    .attraction-content {
        padding: 15px;
    }
    
    .attraction-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .attraction-description {
        font-size: 0.9rem;
    }
    
    /* Adjust navigation arrows for mobile */
    .attractions-carousel .swiper-button-next,
    .attractions-carousel .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .attractions-carousel .swiper-button-next::after,
    .attractions-carousel .swiper-button-prev::after {
        font-size: 16px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .attraction-image {
        height: 220px;
    }
    
    .attraction-content {
        padding: 18px;
    }
    
    .attraction-title {
        font-size: 1.2rem;
    }
}

@media (min-width: 1024px) {
    .attraction-image {
        height: 240px;
    }
    
    .attraction-content {
        padding: 22px;
    }
    
    .attraction-title {
        font-size: 1.3rem;
    }
    
    .attraction-description {
        font-size: 1rem;
    }
}

/* Loading state */
.attractions-carousel.swiper-initialized {
    opacity: 1;
}

.attractions-carousel:not(.swiper-initialized) {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Focus states for accessibility */
.attractions-carousel .swiper-button-next:focus,
.attractions-carousel .swiper-button-prev:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .attraction-slide {
        border: 2px solid #000;
    }
    
    .attractions-carousel .swiper-button-next,
    .attractions-carousel .swiper-button-prev {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .attraction-slide,
    .attraction-slide:hover,
    .attraction-image img,
    .attraction-slide:hover .attraction-image img {
        transition: none;
        transform: none;
    }
}
