/**
 * 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: var(--contact-cta-radius, 16px);
    border: 2px solid var(--contact-cta-accent-border, rgba(252, 208, 0, 0.55));
    box-shadow: var(--contact-cta-shadow, 0 4px 18px rgba(0, 0, 0, 0.28));
    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: calc(var(--contact-cta-radius, 16px) - 2px);
}

/* 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;
}

/* Nav chips: layout in hero-cta.css */

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

.slideshow-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 2px solid var(--contact-cta-accent-border, rgba(252, 208, 0, 0.55));
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 100%);
    box-shadow: var(--contact-cta-shadow, 0 4px 18px rgba(0, 0, 0, 0.28));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.slideshow-dots .dot {
    width: 0.65rem;
    height: 0.65rem;
    min-width: 0.65rem;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
    font: inherit;
    line-height: 0;
}

.slideshow-dots .dot:hover,
.slideshow-dots .dot:focus-visible {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.15);
    border-color: var(--contact-cta-accent-border, rgba(252, 208, 0, 0.55));
    outline: none;
}

.slideshow-dots .dot.active {
    background: var(--contact-cta-accent-b, #fcd000);
    transform: scale(1.25);
    border-color: #fff;
    box-shadow: 0 0 10px color-mix(in srgb, var(--contact-cta-accent-b, #fcd000) 70%, #fff);
}

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

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

    .slideshow-container {
        height: 300px;
    }

    .slideshow-dots {
        bottom: 0.65rem;
        gap: 0.4rem;
        padding: 0.35rem 0.65rem;
    }

    .slideshow-dots .dot {
        width: 0.55rem;
        height: 0.55rem;
        min-width: 0.55rem;
    }
}

/* 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;
    }
}

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

    .slideshow-dots .dot {
        transition: none;
    }

    .slide.active {
        animation: none;
    }
}
