.tour-carousel {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: #e8e8e8;
    aspect-ratio: 16 / 9;
}

.tour-carousel__viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.tour-carousel__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.tour-carousel__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    will-change: opacity;
}

.tour-carousel__slide--active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.tour-carousel__image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.tour-carousel__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: carouselZoom 8s ease-in-out forwards;
    transform-origin: center center;
}

@keyframes carouselZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

.tour-carousel__slide--active .tour-carousel__image {
    animation: carouselZoom 8s ease-in-out forwards;
}

.tour-carousel__slide:not(.tour-carousel__slide--active) .tour-carousel__image {
    animation: none;
    transform: scale(1);
}

.tour-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
}

.tour-carousel:hover .tour-carousel__arrow {
    opacity: 1;
}

.tour-carousel__arrow:hover {
    background: rgba(34, 139, 34, 0.9);
    color: white;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 16px rgba(34, 139, 34, 0.3);
}

.tour-carousel__arrow:focus-visible {
    opacity: 1;
    outline: 2px solid #228b22;
    outline-offset: 2px;
}

.tour-carousel__arrow--prev {
    left: 16px;
}

.tour-carousel__arrow--next {
    right: 16px;
}

.tour-carousel__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    border-radius: 20px;
}

.tour-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.tour-carousel__dot--active {
    background: white;
    transform: scale(1.3);
}

.tour-carousel__dot:hover {
    background: rgba(255, 255, 255, 0.85);
}

.tour-carousel__dot:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .tour-carousel {
        border-radius: 8px;
        aspect-ratio: 3 / 2;
    }

    .tour-carousel__arrow {
        width: 36px;
        height: 36px;
        opacity: 1;
    }

    .tour-carousel__arrow--prev {
        left: 8px;
    }

    .tour-carousel__arrow--next {
        right: 8px;
    }

    .tour-carousel__arrow svg {
        width: 18px;
        height: 18px;
    }

    .tour-carousel__dots {
        bottom: 10px;
        gap: 6px;
        padding: 4px 10px;
    }

    .tour-carousel__dot {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    .tour-carousel {
        border-radius: 6px;
    }
    
    .tour-carousel__arrow {
        width: 32px;
        height: 32px;
    }

    .tour-carousel__arrow svg {
        width: 16px;
        height: 16px;
    }
}