.cruise-line-slider {
    padding-block: 2.5rem;
    overflow: hidden;
    position: relative;
}

@media (min-width: 48rem) {
    .cruise-line-slider {
        padding-block: 5rem;
    }
}

.cruise-line-slider:has( + .destinations ) {
    
    &::after { 
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 50%;
        background: var( --color-bg-light );
        z-index: -1;
    }
}

.cruise-line-slider + .destinations {
    background: var( --color-bg-light );
}

/* Title — centered above slider */
.cruise-line-slider__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: var( --color-text-heading );
    text-align: center;
    margin: 0 0 2rem;
    padding: 0 1rem;
}

/* Swiper container — centered with overflow visible so slides peek out both sides */
.cruise-line-slider__swiper {
    max-width: var(--container-max-width);
    margin: 0 auto;
    overflow: visible;
}

/* Slides */
.cruise-line-slider__slide {
    height: 626px;
    transition: opacity 0.3s ease;
}

.cruise-line-slider__slide:not(.swiper-slide-active) {
    opacity: 0.4;
}

/* Card */
.cruise-line-slider__card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    color: var( --color-white );
    position: relative;
}

.cruise-line-slider__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 50%);
    border-radius: 16px;
}

/* Card content — name/eyebrow left, button right */
.cruise-line-slider__card-content {
    position: relative;
    z-index: 1;
    padding: 32px 40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.cruise-line-slider__card-info {
    display: flex;
    flex-direction: column;
}

.cruise-line-slider__card-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 2px;
    color: var( --color-white );
}

.cruise-line-slider__card-eyebrow {
    display: block;
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
}

.cruise-line-slider__card-btn {
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Controls — prev + scrollbar + next, centered below slider */
.cruise-line-slider__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 2rem;
    padding: 0 1rem;
}

.cruise-line-slider__nav-btn {
    width: 51px;
    min-width: 51px;
    height: 51px;
    border-radius: 50%;
    border: 1.5px solid hsl(0, 0%, 82%);
    background: var( --color-white );
    color: var( --color-text-heading );
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, border-color 0.2s;
}

.cruise-line-slider__nav-btn:hover {
    background: hsl(0, 0%, 94%);
    border-color: hsl(0, 0%, 60%);
}

.cruise-line-slider__nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

/* Scrollbar */
.cruise-line-slider__scrollbar {
    width: 200px;
    height: 4px;
    background: hsl(0, 0%, 88%);
    border-radius: 2px;
    position: relative;
}

.cruise-line-slider__scrollbar .swiper-scrollbar-drag {
    background: var( --color-text-heading );
    border-radius: 2px;
    height: 100%;
}

/* ========================================================================
   Responsive
   ======================================================================== */

@media (max-width: 1200px) {
    .cruise-line-slider__slide {
        height: 450px;
    }
}

@media (max-width: 991px) {
    .cruise-line-slider__title {
        font-size: 26px;
    }

    .cruise-line-slider__slide {
        height: 340px;
    }

    .cruise-line-slider__card-content {
        padding: 24px 28px;
    }
}

@media (max-width: 767px) {
    .cruise-line-slider__slide {
        height: 300px;
    }

    .cruise-line-slider__nav-btn {
        width: 42px;
        min-width: 42px;
        height: 42px;
    }

    .cruise-line-slider__card-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575px) {
    .cruise-line-slider__slide {
        height: 260px;
    }

    .cruise-line-slider__card-name {
        font-size: 18px;
    }

    .cruise-line-slider__card-eyebrow {
        font-size: 14px;
    }

    .cruise-line-slider__card-btn {
        font-size: 13px;
        padding: 8px 20px;
    }
}
