/* Featured Voyages - FV isolated styles */

.fv-section {
    position: relative;
}

.fv-slider-wrapper {
    width: 100%;
    position: relative;
    /* Avoid blocking vertical page scroll */
    overflow-x: hidden;
    overflow-y: visible;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.fv-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 0; /* use margins on items to avoid fractional rounding */
    padding: 0; /* avoid left/right gutters that can look like offset; spacing comes from item margins */
    margin: 0;
    box-sizing: border-box;
    width: 100%;
}


/* Ensure first card starts flush regardless of theme margins */
.fv-slider > .fv-item:first-child { margin-left: 0 !important; }
.fv-slider::-webkit-scrollbar {
    display: none;
}

/* Spacer to allow last item to snap fully into view */
.fv-slider::after { content: ''; flex: 0 0 0; }

.fv-item {
    --fv-gap: 53px;
    width: calc((100% - var(--fv-gap)) / 2); /* exactly 2 cards per view with current spacing */
    min-width: calc((100% - var(--fv-gap)) / 2);
    flex-basis: calc((100% - var(--fv-gap)) / 2);
    margin-right: var(--fv-gap);
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background: white;
    border-radius: 0px;
    overflow: hidden;
    box-sizing: border-box;
}
.fv-item:last-child { margin-right: 0; }

.fv-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 0;
}

.fv-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fv-content-wrapper {
    width: 100%;
    padding: 10px;
    background: white;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fv-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 20px;
}

.fv-duration {
    color: var(--body-primary);
    font-size: 16px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    line-height: 25.60px;
}

.fv-title {
    color: var(--heading-primary);
    font-size: 20px !important;
    font-family: 'KoPub Batang', serif;
    font-weight: 400;
    margin: 0;
}

.fv-destinations {
    width: 100%;
    /* add breathing room from title above and separator below */
    margin-top: 8px;
    margin-bottom: 16px;
}

.fv-destination-tags {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fv-dest-row {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.fv-destination-tag {
    padding: 6px 12px;
    background: rgba(84.82, 84.82, 84.82, 0.06);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--heading-primary);
    font-size: 16px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

.fv-separator {
    margin-left: 20px;
    height: 0.5px;
    background: rgba(52.36, 52.36, 52.36, 0.40);
}

/* Bottom row holds price (left) and details button (right) aligned */
.fv-bottom-row {
    margin: 0 20px 10px 20px;
    display: flex;
    flex-direction: column; /* price above link */
    align-items: flex-start;
    gap: 12px;
    margin-top: auto; /* stick to bottom */
}

.fv-price {
    padding-top: 20px;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
}

.fv-price-label {
    color: var(--heading-primary);
    font-size: 18px;
    font-family: 'KoPub Batang', serif;
    font-weight: 400;
    line-height: 18px;
}

.fv-price-amount {
    color: var(--heading-primary);
    font-size: 22px;
    font-family: 'KoPub Batang', serif;
    font-weight: 700;
    line-height: 24px;
}

.fv-price-term {
    color: var(--heading-primary);
    font-size: 18px;
    font-family: 'KoPub Batang', serif;
    font-weight: 400;
    line-height: 18px;
}

.fv-details-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--heading-primary);
    width: max-content; /* requested: width max-content */
}

.fv-details-link a {
    color: var(--heading-primary);
    font-size: 16px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    text-decoration: none;
}


.fv-slider-controls {
    inline-size: 60% !important;
    width: 60%;
    height: 24px;
    margin: 40px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.fv-slider-progress {
    width: 100%;
    height: 3px;
    position: relative;
    background: #E5E5E5;
    border-radius: 2px;
}

.fv-progress-track {
    width: 100%;
    height: 3px;
    position: relative;
    background: #E5E5E5;
    border-radius: 2px;
}

.fv-progress-fill {
    height: 3px;
    background: var(--heading-primary);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 1200px) {
    .fv-slider {
        gap: 0;
    }

    .fv-item { --fv-gap: 30px; width: calc((100% - var(--fv-gap)) / 2); min-width: calc((100% - var(--fv-gap)) / 2); flex-basis: calc((100% - var(--fv-gap)) / 2); }

    .fv-slider::after { flex-basis: 0; }
}

@media (max-width: 768px) {
    .fv-slider {
        gap: 0;
    }

    .fv-item { --fv-gap: 20px; width: 100%; min-width: 100%; flex-basis: 100%; margin-right: var(--fv-gap); }
    .fv-item:last-child { margin-right: 0; }

    .fv-content {
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
        padding: 20px;
    }

    .fv-title {
        width: 100%;
    }

    .fv-separator {
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
        margin: 20px 0;
    }

    .fv-bottom-row { margin: 0 20px 10px 20px; gap: 10px; }
    .fv-price { margin: 10px 0 0 0; }

    .fv-content-wrapper {
        height: auto;
    }

    .fv-slider-controls {
        position: relative;
        left: auto;
        transform: none;
        top: auto;
        margin-top: 40px;
    }

    .fv-slider::after { flex-basis: 0; }
}

@media (max-width: 480px) {
    .fv-slider {
        gap: 0;
        padding: 0 16px !important;
    }

    .fv-item { --fv-gap: 18px; width: 100%; min-width: 100%; flex-basis: 100%; margin-right: var(--fv-gap); }
    .fv-item:last-child { margin-right: 0; }

    .fv-content {
        padding: 15px;
    }

    .fv-title {
        font-size: 16px;
    }

    .fv-duration {
        font-size: 14px;
        line-height: 23px;
    }

    .fv-details-link a {
        font-size: 14px;
    }

    .fv-slider-controls {
        width: 100%;
        max-width: 300px;
    }

    .fv-slider::after { flex-basis: 0; }
}



/* Button (no rotation here) */
.fv-arrow {
    border-bottom: none !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* keep only this transform */
    width: 44px;
    height: 44px;
    padding: 0 !important;
    border: none;
    background: transparent !important;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 3;
    transition: box-shadow .2s ease, transform .2s ease, opacity .2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.fv-arrow:active {
    transform: translateY(-50%) scale(.98);
}

/* Inline SVGs */
.fv-arrow svg {
    width: 27px;
    height: 8px;
    pointer-events: none;
    /* clicks hit the button */
}

/* Show active icon by default; swap when disabled */
.fv-arrow .icon-inactive {
    display: none;
}

.fv-arrow.is-disabled .icon-active {
    display: none;
}

.fv-arrow.is-disabled .icon-inactive {
    display: block;
}

/* Orientations:
   - Your SVGs point RIGHT by default
   - Flip PREV icons so they point LEFT
*/
.fv-prev .icon-active,
.fv-prev .icon-inactive {
    transform: rotate(180deg);
}

/* PREV: active (right) → rotate to left; inactive already left → no rotate */
.fv-prev .icon-active {
    transform: rotate(180deg);
}

.fv-prev .icon-inactive {
    transform: none;
}

/* NEXT: active already right → no rotate; inactive (left) → rotate to right */
.fv-next .icon-active {
    transform: none;
}

.fv-next .icon-inactive {
    transform: rotate(180deg);
}

/* Arrow positions: offset outside on desktop */
.fv-prev { left: -50px; }

.fv-next { right: -50px; }

@media (max-width: 768px) {
    .fv-prev { left: 8px; }
    .fv-next { right: 8px; }
}