/* =========================================================
   IMV SCF Destination Carousel
   Fully scoped to .imvscf-carousel to avoid theme/Elementor collisions.
========================================================= */

.imvscf-carousel,
.imvscf-carousel *,
.imvscf-carousel *::before,
.imvscf-carousel *::after {
    box-sizing: border-box;
}

.imvscf-carousel {
    --imvscf-cols: 4;
    --imvscf-gap: 12px;
    --imvscf-active-scale: 1.045;
    --imvscf-other-scale: .985;
    --imvscf-blur: 5px;
    --imvscf-other-opacity: .55;
    --imvscf-image-scale: 1.07;
    position: relative;
    width: 100%;
    min-width: 0;
    isolation: isolate;
}

.imvscf-carousel .imvscf-viewport {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 20px 6px 26px;
}

.imvscf-carousel .imvscf-track {
    display: flex;
    align-items: stretch;
    gap: var(--imvscf-gap);
    width: 100%;
    min-width: 0;
    transform: translate3d(0,0,0);
    transition-property: transform;
    transition-duration: 550ms;
    transition-timing-function: cubic-bezier(.22,1,.36,1);
    will-change: transform;
}

.imvscf-carousel .imvscf-card {
    position: relative;
    flex: 0 0 calc((100% - ((var(--imvscf-cols) - 1) * var(--imvscf-gap))) / var(--imvscf-cols));
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e8e8e4;
    border-radius: 12px;
    background: #fff;
    transform: scale(1);
    transform-origin: center center;
    filter: none;
    opacity: 1;
    z-index: 1;
    transition: transform .46s cubic-bezier(.22,1,.36,1), filter .4s ease, opacity .4s ease, border-color .4s ease, box-shadow .4s ease;
    will-change: transform, filter, opacity;
}

.imvscf-carousel .imvscf-image-link,
.imvscf-carousel .imvscf-link {
    text-decoration: none;
}

.imvscf-carousel .imvscf-card-image {
    position: relative;
    width: 100%;
    height: 235px;
    overflow: hidden;
    background: #efefec;
}

.imvscf-carousel .imvscf-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: scale(1.001);
    transition: transform .72s cubic-bezier(.22,1,.36,1);
    will-change: transform;
}

.imvscf-carousel .imvscf-card-content {
    padding: 17px 16px;
}

.imvscf-carousel .imvscf-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}

.imvscf-carousel .imvscf-title {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    color: #242424;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
}

.imvscf-carousel .imvscf-season {
    display: inline-block;
    flex: 0 0 auto;
    margin: 4px 0 0;
    padding: 0;
    color: #26769a;
    font-family: "Inter", Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

.imvscf-carousel .imvscf-description {
    margin: 0 0 13px;
    padding: 0;
    border: 0;
    color: #747474;
    font-family: "Inter", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0;
    text-transform: none;
}

.imvscf-carousel .imvscf-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #168566;
    font-family: "Inter", Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
    transition: gap .25s ease, color .25s ease;
}

.imvscf-carousel .imvscf-link svg {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.imvscf-carousel .imvscf-link:hover {
    gap: 6px;
}

.imvscf-carousel.imvscf-is-hovering .imvscf-card.imvscf-is-active {
    transform: scale(var(--imvscf-active-scale));
    filter: none;
    opacity: 1;
    z-index: 10;
}

.imvscf-carousel.imvscf-is-hovering .imvscf-card:not(.imvscf-is-active) {
    transform: scale(var(--imvscf-other-scale));
    filter: blur(var(--imvscf-blur));
    opacity: var(--imvscf-other-opacity);
    z-index: 1;
}

.imvscf-carousel .imvscf-card.imvscf-is-active .imvscf-card-image img {
    transform: scale(var(--imvscf-image-scale));
}

.imvscf-carousel .imvscf-arrow {
    position: absolute;
    top: 50%;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid #1f779c;
    border-radius: 999px;
    background: #fff;
    color: #1f779c;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 3px 9px rgba(0,0,0,.04);
    z-index: 30;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color .25s ease, color .25s ease, transform .25s ease, opacity .25s ease;
}

.imvscf-carousel .imvscf-arrow svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.imvscf-carousel .imvscf-prev { left: -49px; }
.imvscf-carousel .imvscf-next { right: -49px; }

.imvscf-carousel .imvscf-arrow:hover {
    background: #1f779c;
    color: #fff;
    transform: translateY(-50%) scale(1.07);
}

.imvscf-carousel .imvscf-arrow:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.imvscf-carousel .imvscf-arrow:disabled {
    opacity: .28;
    cursor: default;
    pointer-events: none;
}

.imvscf-empty {
    padding: 18px;
    border: 1px dashed #cfcfcf;
    background: #fafafa;
    font-family: Inter, Arial, sans-serif;
    font-size: 13px;
}

@media (hover: none), (pointer: coarse) {
    .imvscf-carousel.imvscf-is-hovering .imvscf-card,
    .imvscf-carousel.imvscf-is-hovering .imvscf-card:not(.imvscf-is-active) {
        filter: none;
        opacity: 1;
        transform: scale(1);
    }
}
