.imv-dts,
.imv-dts * {
    box-sizing: border-box;
}

.imv-dts {
    --imv-dts-overlay: rgba(4,39,14,.86);
    --imv-dts-overlay-start: 35%;
    position: relative;
    width: 100%;
    min-height: 560px;
    overflow: hidden;
    isolation: isolate;
    background: #0c2713;
    color: #fff;
}

.imv-dts__backgrounds,
.imv-dts__bg,
.imv-dts__shade {
    position: absolute;
    inset: 0;
}

.imv-dts__backgrounds {
    z-index: -3;
    background: #102a17;
}

.imv-dts__bg {
    opacity: 0;
    visibility: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.015);
    transition: opacity .48s ease, visibility .48s ease, transform 1.25s ease;
    will-change: opacity, transform;
}

.imv-dts__bg.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.imv-dts__shade {
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(4,13,8,.08) 0%, rgba(4,18,9,.16) var(--imv-dts-overlay-start), var(--imv-dts-overlay) 100%);
}

.imv-dts__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: inherit;
    display: flex;
    align-items: flex-end;
    padding: 28px 18px 30px;
}

.imv-dts__content-row {
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 82px;
}

.imv-dts__left {
    width: 64%;
    flex: 0 0 auto;
    min-width: 0;
}

.imv-dts__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.imv-dts__card {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    min-height: 68px;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 8px;
    padding: 4px;
    display: none;
    align-items: center;
    gap: 8px;
    text-align: left;
    font: inherit;
    color: inherit;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    outline: none;
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition:
        background .28s ease,
        border-color .28s ease,
        opacity .28s ease,
        transform .28s ease,
        box-shadow .28s ease;
}

.imv-dts__card.is-page-visible {
    display: flex;
}

.imv-dts__card.is-page-entered {
    opacity: 1;
    transform: translateY(0);
}

.imv-dts__card:hover,
.imv-dts__card:focus-visible {
    border-color: rgba(255,255,255,.42);
}

.imv-dts__card.is-active {
    background: rgba(226,236,221,.78);
    border-color: rgba(255,255,255,.42);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.imv-dts__thumb-wrap {
    flex: 0 0 auto;
    display: block;
    line-height: 0;
}

.imv-dts__thumb {
    display: block;
    width: 62px;
    height: 62px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
}

.imv-dts__thumb--empty {
    background: rgba(255,255,255,.14);
}

.imv-dts__card-title {
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 400;
    transition: color .25s ease;
}

.imv-dts__card.is-active .imv-dts__card-title {
    color: #17361d;
}

.imv-dts__nav {
    flex: 0 0 auto;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: -70px;
    margin-right: -60px;
    position: relative;
    z-index: 4;
}

.imv-dts__nav.is-hidden {
    visibility: hidden;
    pointer-events: none;
}

.imv-dts__arrow {
    -webkit-appearance: none;
    appearance: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    display: grid;
    place-items: center;
    background: #4e9b45;
    color: #fff;
    cursor: pointer;
    transition: transform .25s ease, opacity .25s ease, filter .25s ease;
}

.imv-dts__arrow:hover,
.imv-dts__arrow:focus-visible {
    transform: scale(1.07);
    filter: brightness(1.06);
    outline: none;
}

.imv-dts__arrow.is-disabled {
    opacity: .38;
    cursor: default;
}

.imv-dts__arrow svg {
    width: 17px;
    height: 17px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.imv-dts__details {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 165px;
}

.imv-dts__detail {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}

.imv-dts__detail.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.imv-dts__title {
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(23px, 2.1vw, 34px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -.02em;
}

.imv-dts__description {
    max-width: 530px;
    color: #fff;
    font-size: 14px;
    line-height: 1.58;
}

.imv-dts__description p {
    margin: 0 0 12px;
}

.imv-dts__description p:last-child {
    margin-bottom: 0;
}

.imv-dts__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 124px;
    min-height: 36px;
    margin-top: 14px;
    padding: 8px 18px;
    border-radius: 4px;
    border: 0;
    background: #4e9b45;
    color: #fff;
    text-decoration: none !important;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.imv-dts__button:hover,
.imv-dts__button:focus-visible {
    background: #fff;
    color: #17361d;
    transform: translateY(-1px);
    outline: none;
}

.imv-dts-empty {
    padding: 18px;
    border: 1px dashed #bbb;
    background: #fafafa;
    color: #555;
    font-family: sans-serif;
}

@media (max-width: 1024px) {
    .imv-dts__inner {
        padding: 26px 22px;
    }

    .imv-dts__content-row {
        align-items: flex-end;
        gap: 24px;
        flex-wrap: wrap;
    }

    .imv-dts__left {
        width: calc(100% - 56px);
        order: 2;
    }

    .imv-dts__nav {
        order: 3;
        margin: 0;
        align-self: center;
    }

    .imv-dts__details {
        order: 1;
        flex: 0 0 100%;
        min-height: 180px;
    }

    .imv-dts__description {
        max-width: 700px;
    }
}

@media (max-width: 767px) {
    .imv-dts {
        min-height: 760px;
    }

    .imv-dts__shade {
        background: linear-gradient(180deg, rgba(3,12,7,.18) 0%, rgba(4,22,10,.52) 35%, var(--imv-dts-overlay) 100%);
    }

    .imv-dts__inner {
        padding: 18px 14px 18px;
    }

    .imv-dts__content-row {
        gap: 14px;
    }

    .imv-dts__details {
        min-height: 0;
    }

    .imv-dts__left {
        width: calc(100% - 48px);
    }

    .imv-dts__cards {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .imv-dts__card {
        min-height: 60px;
    }

    .imv-dts__thumb {
        width: 54px;
        height: 54px;
    }

    .imv-dts__card-title {
        font-size: 13px;
    }

    .imv-dts__nav {
        gap: 7px;
    }

    .imv-dts__arrow {
        width: 34px;
        height: 34px;
    }

    .imv-dts__title {
        font-size: 26px;
    }

    .imv-dts__description {
        font-size: 13px;
        line-height: 1.55;
    }
}

@media (prefers-reduced-motion: reduce) {
    .imv-dts__bg,
    .imv-dts__card,
    .imv-dts__detail,
    .imv-dts__arrow,
    .imv-dts__button {
        transition: none !important;
    }
}

/* v1.0.1 - keep reference-video navigation circles visible and immune to theme button styles */
.imv-dts .imv-dts__nav:not(.is-hidden) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.imv-dts .imv-dts__arrow {
    min-width: 34px;
    min-height: 34px;
    flex: 0 0 34px;
    line-height: 1;
    box-shadow: none;
}

.imv-dts .imv-dts__arrow svg {
    pointer-events: none;
}


/* ==========================================================
   v1.0.2 - CSS CONFLICT SHIELD
   Keeps theme / Elementor global styles from leaking into the
   Day Tours widget while preserving Elementor style controls.
   ========================================================== */

/* Keep common theme rules such as button{}, a{}, h2{}, p{} and img{}
   from changing the widget structure. Elementor's generated per-widget
   selectors are still more specific and can override configurable values. */
.elementor-widget-imv_day_tours_showcase .imv-dts,
.elementor-widget-imv_day_tours_showcase .imv-dts *,
.elementor-widget-imv_day_tours_showcase .imv-dts *::before,
.elementor-widget-imv_day_tours_showcase .imv-dts *::after {
    box-sizing: border-box;
}

.elementor-widget-imv_day_tours_showcase .imv-dts {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    text-align: left;
    line-height: normal;
}

.elementor-widget-imv_day_tours_showcase .imv-dts .imv-dts__inner,
.elementor-widget-imv_day_tours_showcase .imv-dts .imv-dts__content-row,
.elementor-widget-imv_day_tours_showcase .imv-dts .imv-dts__left,
.elementor-widget-imv_day_tours_showcase .imv-dts .imv-dts__cards,
.elementor-widget-imv_day_tours_showcase .imv-dts .imv-dts__nav,
.elementor-widget-imv_day_tours_showcase .imv-dts .imv-dts__details,
.elementor-widget-imv_day_tours_showcase .imv-dts .imv-dts__detail,
.elementor-widget-imv_day_tours_showcase .imv-dts .imv-dts__thumb-wrap {
    box-sizing: border-box;
}

/* Card buttons: neutralize global/theme button styles. */
.elementor-widget-imv_day_tours_showcase .imv-dts button.imv-dts__card {
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    font-style: normal;
    text-transform: none;
    letter-spacing: normal;
    text-decoration: none;
    white-space: normal;
    vertical-align: middle;
    margin: 0;
    box-shadow: none;
    background-image: none;
    outline-offset: 0;
}

.elementor-widget-imv_day_tours_showcase .imv-dts button.imv-dts__card::before,
.elementor-widget-imv_day_tours_showcase .imv-dts button.imv-dts__card::after,
.elementor-widget-imv_day_tours_showcase .imv-dts button.imv-dts__arrow::before,
.elementor-widget-imv_day_tours_showcase .imv-dts button.imv-dts__arrow::after {
    content: none;
    display: none;
}

/* Image reset protects fixed thumbnail dimensions from theme img rules. */
.elementor-widget-imv_day_tours_showcase .imv-dts img.imv-dts__thumb {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    object-fit: cover;
    object-position: center;
}

/* Text reset. */
.elementor-widget-imv_day_tours_showcase .imv-dts .imv-dts__card-title {
    margin: 0;
    padding: 0;
    text-decoration: none;
    text-transform: none;
}

.elementor-widget-imv_day_tours_showcase .imv-dts h2.imv-dts__title {
    padding: 0;
    border: 0;
    text-transform: none;
    text-decoration: none;
    background: none;
    box-shadow: none;
}

.elementor-widget-imv_day_tours_showcase .imv-dts .imv-dts__description,
.elementor-widget-imv_day_tours_showcase .imv-dts .imv-dts__description p {
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    text-transform: none;
    text-decoration: none;
}

.elementor-widget-imv_day_tours_showcase .imv-dts .imv-dts__description p {
    margin-top: 0;
}

/* CTA link: neutralize global anchor/button classes. */
.elementor-widget-imv_day_tours_showcase .imv-dts a.imv-dts__button,
.elementor-widget-imv_day_tours_showcase .imv-dts a.imv-dts__button:visited {
    font-style: normal;
    text-transform: none;
    letter-spacing: normal;
    text-decoration: none;
    box-shadow: none;
    background-image: none;
    border-style: solid;
    border-width: 0;
}

.elementor-widget-imv_day_tours_showcase .imv-dts a.imv-dts__button::before,
.elementor-widget-imv_day_tours_showcase .imv-dts a.imv-dts__button::after {
    content: none;
    display: none;
}

/* Arrow buttons: hard reset the properties most commonly overridden by themes. */
.elementor-widget-imv_day_tours_showcase .imv-dts button.imv-dts__arrow {
    -webkit-appearance: none;
    appearance: none;
    float: none;
    position: relative;
    margin: 0;
    padding: 0;
    min-width: 34px;
    min-height: 34px;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-style: solid;
    border-width: 0;
    border-radius: 50%;
    background-image: none;
    box-shadow: none;
    font: inherit;
    line-height: 1;
    text-indent: 0;
    text-transform: none;
    letter-spacing: normal;
    overflow: visible;
}

.elementor-widget-imv_day_tours_showcase .imv-dts button.imv-dts__arrow svg {
    display: block;
    margin: 0;
    padding: 0;
    max-width: none;
    pointer-events: none;
}

/* Prevent generic lists/grids/flex rules from leaking in. */
.elementor-widget-imv_day_tours_showcase .imv-dts .imv-dts__cards {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Some themes add transforms/filters to every hovered button/link. Reassert only
   widget-owned interaction states; Elementor color controls remain effective. */
.elementor-widget-imv_day_tours_showcase .imv-dts button.imv-dts__card:hover,
.elementor-widget-imv_day_tours_showcase .imv-dts button.imv-dts__card:focus,
.elementor-widget-imv_day_tours_showcase .imv-dts button.imv-dts__card:active {
    text-decoration: none;
}

.elementor-widget-imv_day_tours_showcase .imv-dts button.imv-dts__arrow:focus,
.elementor-widget-imv_day_tours_showcase .imv-dts button.imv-dts__arrow:active {
    outline: none;
    box-shadow: none;
}

/* Elementor editor itself sometimes injects button min-height and line-height. */
.elementor-editor-active .elementor-widget-imv_day_tours_showcase .imv-dts button.imv-dts__card,
.elementor-editor-active .elementor-widget-imv_day_tours_showcase .imv-dts button.imv-dts__arrow {
    font-family: inherit;
}


/* ==========================================================
   v1.0.4 - FIXED FULL CARD WINDOW
   More than 6 tours must never create empty grid slots.
   ========================================================== */
.elementor-widget-imv_day_tours_showcase .imv-dts button.imv-dts__card {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none !important;
}

.elementor-widget-imv_day_tours_showcase .imv-dts button.imv-dts__card.is-page-visible {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Remove the old stagger state as a source of temporary blank slots. */
.elementor-widget-imv_day_tours_showcase .imv-dts button.imv-dts__card.is-page-entered {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}


/* ==========================================================
   v1.0.5 - FULL ELEMENTOR EDITABILITY
   The detail block no longer reserves artificial height on
   tablet/mobile. Elementor controls can now tune every key gap.
   ========================================================== */
@media (max-width: 1024px) {
    .elementor-widget-imv_day_tours_showcase .imv-dts .imv-dts__details {
        min-height: 0;
    }
}

.elementor-widget-imv_day_tours_showcase .imv-dts .imv-dts__details,
.elementor-widget-imv_day_tours_showcase .imv-dts .imv-dts__title,
.elementor-widget-imv_day_tours_showcase .imv-dts .imv-dts__description,
.elementor-widget-imv_day_tours_showcase .imv-dts .imv-dts__button,
.elementor-widget-imv_day_tours_showcase .imv-dts .imv-dts__left,
.elementor-widget-imv_day_tours_showcase .imv-dts .imv-dts__nav {
    box-sizing: border-box;
}

/* Keep the active detail content in normal flow. This makes spacing controls
   predictable and prevents hidden slides from creating phantom whitespace. */
.elementor-widget-imv_day_tours_showcase .imv-dts .imv-dts__detail.is-active {
    height: auto;
}
