/* ==========================================================================
   CRUISE CAROUSEL - Coverflow Style
   Center image large, sides recede, text bottom-right
   ========================================================================== */

.cruise-carousel-container {
    position: relative;
    width: 100%;
    min-height: 700px;
    padding: 60px 0 120px;
    overflow: hidden;
}

.cruise-carousel {
    position: relative;
    width: 100%;
    height: 700px;
    perspective: 1800px;
}

.cruise-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   CRUISE SLIDE - 3D Positioning (5 slides visible: L2, L1, Center, R1, R2)
   ========================================================================== */

.cruise-slide {
    position: absolute;
    width: 900px;  /* 16:9 aspect ratio (900x506) */
    height: 506px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Center/Active Slide - Hero Position (16:9) */
.cruise-slide.active {
    z-index: 10;
    transform: translateX(0) translateZ(0) scale(1);
    opacity: 1;
}

/* Left Slides - Recede to the left */
.cruise-slide.left-1 {
    z-index: 9;
    transform: translateX(-550px) translateZ(-200px) rotateY(25deg) scale(0.7);
    opacity: 0.7;
}

.cruise-slide.left-2 {
    z-index: 8;
    transform: translateX(-950px) translateZ(-350px) rotateY(35deg) scale(0.5);
    opacity: 0.5;
}

.cruise-slide.left-3 {
    z-index: 7;
    transform: translateX(-1250px) translateZ(-500px) rotateY(45deg) scale(0.35);
    opacity: 0;
    pointer-events: none;
}

/* Right Slides - Recede to the right */
.cruise-slide.right-1 {
    z-index: 9;
    transform: translateX(550px) translateZ(-200px) rotateY(-25deg) scale(0.7);
    opacity: 0.7;
}

.cruise-slide.right-2 {
    z-index: 8;
    transform: translateX(950px) translateZ(-350px) rotateY(-35deg) scale(0.5);
    opacity: 0.5;
}

.cruise-slide.right-3 {
    z-index: 7;
    transform: translateX(1250px) translateZ(-500px) rotateY(-45deg) scale(0.35);
    opacity: 0;
    pointer-events: none;
}

/* Hidden slides (too far away) */
.cruise-slide.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ==========================================================================
   SLIDE MEDIA (Image/Video)
   ========================================================================== */

.cruise-slide-media {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: #000;
}

.cruise-image,
.cruise-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}

.cruise-video {
    display: block;
}

/* ==========================================================================
   SLIDE CONTENT - Bottom Right Corner
   ========================================================================== */

.cruise-slide-content {
    position: absolute;
    bottom: 0;
    right: 0;
    max-width: 400px;
    padding: 30px;
    background: linear-gradient(
        to top left,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 70%,
        transparent 100%
    );
    border-radius: 16px 0 16px 0;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
    pointer-events: none;
}

/* Show content only on active slide */
.cruise-slide.active .cruise-slide-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cruise-title {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin: 0 0 12px 0;
    color: white;
}

.cruise-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.9);
}

.cruise-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.cruise-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.detail-icon {
    font-size: 1rem;
}

.cruise-cta {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cruise-cta:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

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

.cruise-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    pointer-events: none;
    z-index: 20;
}

.cruise-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.cruise-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.cruise-nav-btn svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   INDICATORS (Dots)
   ========================================================================== */

.cruise-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.cruise-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(39, 39, 39, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.cruise-indicator.active {
    width: 32px;
    border-radius: 5px;
    background: rgba(39, 39, 39, 0.9);
}

.cruise-indicator:hover {
    background: rgba(39, 39, 39, 0.6);
}

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

@media (max-width: 1200px) {
    .cruise-slide {
        width: 500px;
        height: 420px;
    }

    .cruise-slide.left-1,
    .cruise-slide.right-1 {
        transform: translateX(-380px) translateZ(-120px) rotateY(20deg) scale(0.7);
    }

    .cruise-slide.left-2,
    .cruise-slide.right-2 {
        transform: translateX(-600px) translateZ(-240px) rotateY(30deg) scale(0.5);
    }
}

@media (max-width: 768px) {
    .cruise-carousel-container {
        min-height: 500px;
    }

    .cruise-carousel {
        height: 500px;
        perspective: 800px;
    }

    .cruise-slide {
        width: 350px;
        height: 400px;
    }

    /* Mobile: stack slides vertically, no 3D */
    .cruise-slide.active {
        transform: translateX(0) scale(1);
    }

    .cruise-slide.left-1,
    .cruise-slide.right-1,
    .cruise-slide.left-2,
    .cruise-slide.right-2,
    .cruise-slide.left-3,
    .cruise-slide.right-3 {
        opacity: 0;
        transform: translateX(0) scale(0.8);
    }

    .cruise-slide-content {
        max-width: 100%;
        padding: 20px;
    }

    .cruise-title {
        font-size: 1.4rem;
    }

    .cruise-excerpt {
        font-size: 0.85rem;
    }

    .cruise-nav {
        padding: 0 20px;
    }

    .cruise-nav-btn {
        width: 40px;
        height: 40px;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .cruise-slide,
    .cruise-slide-content {
        transition: none !important;
    }
}
