/**
 * TTMenus v2 - Modern Slideshow Styles
 * Beautiful, user-friendly client tour slideshow
 */

/* ============================================
   SLIDESHOW CONTAINER
   ============================================ */

.client-tour-slideshow {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    position: relative;
    padding: 0 1em;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   SLIDES
   ============================================ */

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 20px;
}

/* Slide fade animation */
@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide.active {
    animation: slideFadeIn 0.6s ease-in-out;
}

/* ============================================
   NAVIGATION ARROWS
   ============================================ */

.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 16px 20px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    line-height: 1;
}

.slideshow-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.slideshow-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slideshow-nav.prev {
    left: 20px;
}

.slideshow-nav.next {
    right: 20px;
}

/* Hide arrows on mobile when not needed */
@media (max-width: 768px) {
    .slideshow-nav {
        width: 48px;
        height: 48px;
        padding: 12px 16px;
        font-size: 20px;
    }

    .slideshow-nav.prev {
        left: 10px;
    }

    .slideshow-nav.next {
        right: 10px;
    }
}

/* ============================================
   DOT INDICATORS
   ============================================ */

.slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.dot.active {
    background: #fff;
    transform: scale(1.3);
    border-color: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

/* Pulse animation for active dot */
@keyframes dotPulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 1);
    }
}

.dot.active {
    animation: dotPulse 2s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Mobile */
@media (max-width: 768px) {
    .client-tour-slideshow {
        margin: 1rem auto;
        padding: 0 0.5em;
    }

    .slideshow-container {
        height: 300px;
        border-radius: 16px;
    }

    .slide img {
        border-radius: 16px;
    }

    .slideshow-dots {
        bottom: 15px;
        gap: 8px;
        padding: 6px 12px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .slideshow-container {
        height: 450px;
    }
}

/* Desktop Large */
@media (min-width: 1025px) {
    .slideshow-container {
        height: 500px;
    }

    .client-tour-slideshow {
        margin: 3rem auto;
    }
}

/* Very Large Screens */
@media (min-width: 1440px) {
    .slideshow-container {
        height: 600px;
    }
}

/* Touch-friendly for mobile */
@media (hover: none) {
    .slideshow-nav {
        background: rgba(0, 0, 0, 0.8);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .dot:hover {
        transform: scale(1.1);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .slide {
        transition: opacity 0.3s ease;
    }

    .slideshow-nav,
    .dot {
        transition: none;
    }

    .slide.active {
        animation: none;
    }

    .dot.active {
        animation: none;
    }
}
