/*
 * IMV Day Tours Story Showcase v1.0.4
 * Desktop geometry is calibrated against the supplied video (1280 x 716 reference space)
 * and the supplied smaller-desktop screenshot. Exact mode has a viewport-height reference
 * option plus a manual-height option. The CSS is deliberately isolated from Elementor/theme defaults.
 */
.imv-day-story,
.imv-day-story * {
    box-sizing: border-box;
}

.imv-day-story {
    --imv-transition: 520ms;
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    background-color: #263c36;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    font-family: "Poppins", Arial, sans-serif;
}

.imv-day-story::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: rgba(7, 18, 17, .48);
}

.imv-day-story__inner {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    padding: 0;
}

.imv-day-story__top,
.imv-day-story__stage,
.imv-day-story__card,
.imv-day-story__image-link {
    margin: 0;
}

.imv-day-story__heading,
.imv-day-story__tour-title,
.imv-day-story__intro,
.imv-day-story__description,
.imv-day-story__starting {
    text-transform: none;
}

.imv-day-story__heading,
.imv-day-story__tour-title {
    font-family: inherit;
}

.imv-day-story__heading,
.imv-day-story__tour-title,
.imv-day-story__intro,
.imv-day-story__description,
.imv-day-story__starting,
.imv-day-story__cta {
    box-shadow: none;
    text-shadow: none;
}

.imv-day-story__tour-title-link,
.imv-day-story__tour-title-link:visited,
.imv-day-story__image-link,
.imv-day-story__image-link:visited {
    color: inherit;
    text-decoration: none !important;
}

.imv-day-story__cta,
.imv-day-story__cta:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: #000;
    color: #fff;
    text-decoration: none !important;
    font-family: inherit;
    font-weight: 600;
    white-space: nowrap;
    transition: transform .25s ease, opacity .25s ease;
}

.imv-day-story__cta:hover {
    color: #fff;
    transform: translateY(-1px);
    opacity: .92;
}

.imv-day-story__cta--static {
    cursor: default;
}

.imv-day-story__card {
    z-index: 4;
    border: 1px solid rgba(255,255,255,.50);
    background: rgba(5, 16, 15, .10);
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
}

.imv-day-story__tour-title {
    padding: 0;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0;
}

.imv-day-story__description,
.imv-day-story__starting {
    color: #fff;
    font-weight: 400;
}

.imv-day-story__starting {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
}

.imv-day-story__starting strong {
    font-weight: 500;
}

.imv-day-story__image-link {
    z-index: 3;
    display: block;
}

.imv-day-story__image-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: rgba(255,255,255,.06);
    border-radius: 5px;
    transition: opacity var(--imv-transition) ease, transform var(--imv-transition) cubic-bezier(.22,.61,.36,1), filter var(--imv-transition) ease;
}

.imv-day-story__image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover;
    object-position: center center;
    border: 0 !important;
    border-radius: inherit;
    transition: transform 1.15s ease;
}

.imv-day-story:hover .imv-day-story__image {
    transform: scale(1.01);
}

.imv-day-story__nav {
    position: absolute;
    z-index: 8;
    display: flex;
    align-items: center;
}

/* Liquid-glass circular navigation buttons (matches reference video) */
.imv-day-story__nav-button,
.imv-day-story__nav-button:hover,
.imv-day-story__nav-button:focus {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255,255,255,.52);
    border-radius: 50%;
    outline: none;
    background:
        linear-gradient(145deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.055) 42%, rgba(0,0,0,.18) 100%);
    color: #fff;
    box-shadow:
        0 7px 20px rgba(0,0,0,.22),
        inset 0 1px 0 rgba(255,255,255,.34),
        inset 0 -1px 0 rgba(255,255,255,.06);
    -webkit-backdrop-filter: blur(14px) saturate(155%);
    backdrop-filter: blur(14px) saturate(155%);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transform: translateZ(0);
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}

.imv-day-story__nav-button::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(circle at 28% 20%, rgba(255,255,255,.36) 0%, rgba(255,255,255,.12) 24%, transparent 52%),
        linear-gradient(165deg, rgba(255,255,255,.11), transparent 48%, rgba(0,0,0,.10));
    opacity: .78;
}

.imv-day-story__nav-button::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: 66%;
    height: 30%;
    left: 17%;
    top: 7%;
    border-radius: 999px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,0));
    filter: blur(.2px);
    opacity: .7;
}

.imv-day-story__nav-button:hover {
    transform: scale(1.055) translateY(-1px);
    border-color: rgba(255,255,255,.72);
    background:
        linear-gradient(145deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,.08) 42%, rgba(0,0,0,.20) 100%);
    box-shadow:
        0 10px 26px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.42),
        inset 0 -1px 0 rgba(255,255,255,.08);
}

.imv-day-story__nav-button:active {
    transform: scale(.97);
}

.imv-day-story__nav-button:focus-visible {
    outline: 2px solid rgba(255,255,255,.88);
    outline-offset: 3px;
}

.imv-day-story__nav-button svg {
    position: relative;
    z-index: 2;
    display: block;
    margin: 0;
    padding: 0;
    fill: none;
    stroke: #fff;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.28));
}

/* =========================================================
   EXACT REFERENCE MODE
   Reference: 1280 x 716
   heading x170, card x121 y309 516x401, image x732 y42 457x533
   ========================================================= */
@media (min-width: 768px) {
    /* Reference video fills the available screen height. This class intentionally
       wins over Elementor's saved height CSS so existing widgets update correctly. */
    .imv-day-story.imv-day-story--exact.imv-day-story--viewport-height {
        height: 100vh !important;
        min-height: 0 !important;
    }

    @supports (height: 100svh) {
        .imv-day-story.imv-day-story--exact.imv-day-story--viewport-height {
            height: 100svh !important;
        }
    }

    .imv-day-story.imv-day-story--exact.imv-day-story--manual-height {
        height: var(--imv-day-story-height, 716px) !important;
        min-height: var(--imv-day-story-height, 716px) !important;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__inner {
        width: min(100%, 1280px) !important;
        height: 100% !important;
        min-height: 0 !important;
        container-type: inline-size;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__top {
        position: absolute !important;
        z-index: 6;
        top: 7.96% !important;
        left: 13.28125% !important;
        width: 43.75% !important;
        max-width: 560px !important;
        text-align: left;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__heading {
        margin: 0 0 clamp(10px, 1.015625vw, 13px) !important;
        padding: 0 !important;
        font-size: clamp(28px, 2.8125vw, 36px) !important;
        line-height: 1.09 !important;
        font-weight: 600 !important;
        letter-spacing: -.02em !important;
        color: #fff;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__intro {
        width: 100% !important;
        max-width: 540px !important;
        margin: 0 !important;
        font-size: clamp(10.5px, 1.09375vw, 14px) !important;
        line-height: 1.52 !important;
        font-weight: 400 !important;
        color: #fff;
        opacity: .98;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__cta {
        width: clamp(188px, 19.53125vw, 250px) !important;
        min-width: 0 !important;
        height: clamp(33px, 3.4375vw, 44px) !important;
        min-height: 0 !important;
        margin-top: clamp(28px, 2.96875vw, 38px) !important;
        padding: 0 12px !important;
        font-size: clamp(10px, .9375vw, 12px) !important;
        line-height: 1 !important;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__stage {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__card {
        position: absolute !important;
        left: 9.453125% !important;
        top: 43.156425% !important;
        bottom: auto !important;
        width: 40.3125% !important;
        height: 55.97% !important;
        min-height: 0 !important;
        padding:
            clamp(41px, 4.296875vw, 55px)
            clamp(36px, 3.75vw, 48px)
            clamp(68px, 7.1875vw, 92px) !important;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__tour-title {
        width: 100% !important;
        max-width: 390px !important;
        margin: 0 0 clamp(17px, 1.875vw, 24px) !important;
        font-size: clamp(17px, 1.640625vw, 21px) !important;
        line-height: 1.18 !important;
        font-weight: 600 !important;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__description {
        width: 100% !important;
        max-width: 390px !important;
        margin: 0 !important;
        font-size: clamp(11px, 1.015625vw, 13px) !important;
        line-height: 1.36 !important;
        font-weight: 400 !important;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__starting {
        position: absolute !important;
        left: clamp(36px, 3.75vw, 48px) !important;
        bottom: clamp(46px, 4.84375vw, 62px) !important;
        max-width: calc(100% - clamp(145px, 14.84375vw, 190px)) !important;
        font-size: clamp(11px, 1.09375vw, 14px) !important;
        line-height: 1.35 !important;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__image-link {
        position: absolute !important;
        top: 5.865922% !important;
        left: 57.1875% !important;
        right: auto !important;
        width: 35.703125% !important;
        height: 74.441341% !important;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__image-wrap {
        width: 100% !important;
        height: 100% !important;
        border-radius: 5px !important;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__nav {
        right: clamp(20px, 2.109375vw, 27px) !important;
        bottom: clamp(23px, 2.421875vw, 31px) !important;
        gap: clamp(11px, 1.09375vw, 14px) !important;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__nav-button {
        width: clamp(44px, 4.53125vw, 58px) !important;
        height: clamp(44px, 4.53125vw, 58px) !important;
        min-width: 0 !important;
        min-height: 0 !important;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__nav-button svg {
        width: clamp(19px, 1.953125vw, 25px) !important;
        height: clamp(19px, 1.953125vw, 25px) !important;
    }
}

/* =========================================================
   SMALL DESKTOP / TABLET LANDSCAPE REFERENCE
   Calibrated from the supplied 968 x 534 screenshot.
   This is intentionally a separate breakpoint because the reference
   composition tightens horizontally on smaller desktop widths.
   ========================================================= */
@media (min-width: 768px) and (max-width: 1099px) {
    .imv-day-story.imv-day-story--exact .imv-day-story__top {
        top: 7.9% !important;
        left: 12.603306% !important;
        width: 40% !important;
        max-width: none !important;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__heading {
        margin-bottom: clamp(8px, 1.15cqw, 12px) !important;
        font-size: clamp(25px, 2.80cqw, 31px) !important;
        line-height: 1.08 !important;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__intro {
        max-width: 100% !important;
        font-size: clamp(9px, 1.03cqw, 11px) !important;
        line-height: 1.48 !important;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__cta {
        width: clamp(165px, 18.181818cqw, 200px) !important;
        height: clamp(30px, 3.31cqw, 36px) !important;
        margin-top: clamp(24px, 2.9cqw, 31px) !important;
        font-size: clamp(9px, .93cqw, 11px) !important;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__card {
        left: 8.987603% !important;
        top: 41.573034% !important;
        width: 37.809917% !important;
        height: 53.370787% !important;
        padding:
            clamp(38px, 4.25cqw, 46px)
            clamp(32px, 3.70cqw, 40px)
            clamp(62px, 7.10cqw, 76px) !important;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__tour-title {
        max-width: 100% !important;
        margin-bottom: clamp(14px, 1.72cqw, 18px) !important;
        font-size: clamp(15px, 1.62cqw, 18px) !important;
        line-height: 1.18 !important;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__description {
        max-width: 100% !important;
        font-size: clamp(9.5px, 1.02cqw, 11px) !important;
        line-height: 1.35 !important;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__starting {
        left: clamp(32px, 3.70cqw, 40px) !important;
        bottom: clamp(40px, 4.55cqw, 49px) !important;
        max-width: calc(100% - clamp(126px, 14.3cqw, 150px)) !important;
        font-size: clamp(9.5px, 1.03cqw, 11px) !important;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__image-link {
        top: 6.367041% !important;
        left: 53.822314% !important;
        width: 33.367769% !important;
        height: 70.599251% !important;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__nav {
        right: clamp(17px, 1.86cqw, 20px) !important;
        bottom: clamp(20px, 2.2cqw, 24px) !important;
        gap: clamp(9px, 1.03cqw, 11px) !important;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__nav-button {
        width: clamp(40px, 4.34cqw, 46px) !important;
        height: clamp(40px, 4.34cqw, 46px) !important;
    }

    .imv-day-story.imv-day-story--exact .imv-day-story__nav-button svg {
        width: clamp(18px, 1.95cqw, 21px) !important;
        height: clamp(18px, 1.95cqw, 21px) !important;
    }
}

/* =========================================================
   CUSTOM MODE - Elementor geometry controls can work normally.
   ========================================================= */
@media (min-width: 768px) {
    .imv-day-story.imv-day-story--custom {
        min-height: 720px;
    }

    .imv-day-story.imv-day-story--custom .imv-day-story__inner {
        width: min(1040px, calc(100% - 48px));
        min-height: inherit;
    }

    .imv-day-story.imv-day-story--custom .imv-day-story__top {
        position: absolute;
        z-index: 6;
        top: 54px;
        left: 48px;
        width: min(540px, calc(100% - 540px));
        max-width: 540px;
        text-align: left;
    }

    .imv-day-story.imv-day-story--custom .imv-day-story__heading {
        margin: 0 0 14px;
        padding: 0;
        font-size: 36px;
        line-height: 1.08;
        font-weight: 600;
        letter-spacing: -.025em;
        color: #fff;
    }

    .imv-day-story.imv-day-story--custom .imv-day-story__intro {
        max-width: 525px;
        margin: 0;
        font-size: 14px;
        line-height: 1.52;
        color: #fff;
    }

    .imv-day-story.imv-day-story--custom .imv-day-story__cta {
        min-height: 44px;
        margin-top: 38px;
        padding: 11px 36px;
        font-size: 12px;
        line-height: 1;
    }

    .imv-day-story.imv-day-story--custom .imv-day-story__stage {
        position: absolute;
        inset: 0;
        min-height: 720px;
    }

    .imv-day-story.imv-day-story--custom .imv-day-story__card {
        position: absolute;
        left: 0;
        bottom: 10px;
        width: 50%;
        min-height: 401px;
        padding: 55px 48px 92px;
    }

    .imv-day-story.imv-day-story--custom .imv-day-story__tour-title {
        max-width: 390px;
        margin: 0 0 24px;
        font-size: 21px;
        line-height: 1.18;
    }

    .imv-day-story.imv-day-story--custom .imv-day-story__description {
        max-width: 390px;
        margin: 0;
        font-size: 13px;
        line-height: 1.34;
    }

    .imv-day-story.imv-day-story--custom .imv-day-story__starting {
        position: absolute;
        left: 48px;
        bottom: 61px;
        max-width: calc(100% - 190px);
        font-size: 14px;
        line-height: 1.35;
    }

    .imv-day-story.imv-day-story--custom .imv-day-story__image-link {
        position: absolute;
        top: 42px;
        right: 0;
        width: 44%;
    }

    .imv-day-story.imv-day-story--custom .imv-day-story__image-wrap {
        height: 534px;
    }

    .imv-day-story.imv-day-story--custom .imv-day-story__nav {
        right: 24px;
        bottom: 30px;
        gap: 14px;
    }

    .imv-day-story.imv-day-story--custom .imv-day-story__nav-button {
        width: 56px;
        height: 56px;
    }

    .imv-day-story.imv-day-story--custom .imv-day-story__nav-button svg {
        width: 25px;
        height: 25px;
    }
}

/* Slide transition */
.imv-day-story__tour-title,
.imv-day-story__description,
.imv-day-story__starting {
    transition: opacity 260ms ease, transform 320ms ease, filter 260ms ease;
}

.imv-day-story.is-changing .imv-day-story__tour-title,
.imv-day-story.is-changing .imv-day-story__description,
.imv-day-story.is-changing .imv-day-story__starting {
    opacity: .06;
    transform: translateX(-7px);
    filter: blur(1px);
}

.imv-day-story.is-changing .imv-day-story__image-wrap {
    opacity: .08;
    transform: translateX(10px) scale(.992);
    filter: blur(1.5px);
}

/* =========================================================
   MOBILE - keeps the same visual language without squeezing the desktop composition.
   ========================================================= */
@media (max-width: 767px) {
    .imv-day-story,
    .imv-day-story.imv-day-story--exact,
    .imv-day-story.imv-day-story--custom {
        height: auto !important;
        min-height: 0 !important;
    }

    .imv-day-story__inner {
        width: calc(100% - 32px) !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 36px 0 36px !important;
    }

    .imv-day-story__top {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .imv-day-story__heading {
        margin: 0 0 12px !important;
        font-size: 29px !important;
        line-height: 1.12 !important;
        font-weight: 600 !important;
        color: #fff;
    }

    .imv-day-story__intro {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        font-size: 12px !important;
        line-height: 1.55 !important;
        color: #fff;
    }

    .imv-day-story__cta {
        width: auto !important;
        height: auto !important;
        min-height: 42px !important;
        margin-top: 24px !important;
        padding: 10px 22px !important;
        font-size: 11px !important;
    }

    .imv-day-story__stage {
        position: relative !important;
        inset: auto !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin-top: 30px !important;
    }

    .imv-day-story__image-link {
        position: relative !important;
        inset: auto !important;
        order: 1;
        width: 100% !important;
    }

    .imv-day-story__image-wrap {
        width: 100% !important;
        height: min(112vw, 470px) !important;
        border-radius: 5px !important;
    }

    .imv-day-story__card {
        position: relative !important;
        inset: auto !important;
        order: 2;
        width: 100% !important;
        height: auto !important;
        min-height: 300px !important;
        margin-top: 18px !important;
        padding: 30px 24px 104px !important;
    }

    .imv-day-story__tour-title {
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 16px !important;
        font-size: 21px !important;
        line-height: 1.2 !important;
    }

    .imv-day-story__description {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        font-size: 12px !important;
        line-height: 1.5 !important;
    }

    .imv-day-story__starting {
        position: absolute !important;
        left: 24px !important;
        bottom: 66px !important;
        max-width: calc(100% - 48px) !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    .imv-day-story__nav {
        right: 20px !important;
        bottom: 16px !important;
        gap: 10px !important;
    }

    .imv-day-story__nav-button {
        width: 44px !important;
        height: 44px !important;
    }

    .imv-day-story__nav-button svg {
        width: 20px !important;
        height: 20px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .imv-day-story *,
    .imv-day-story *::before,
    .imv-day-story *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
