/* ================================================================
   GoExplore Tours List – [goexplore_tours_list]
   Image cards with days + title; hover reveals overview + rising shade
   ================================================================ */

.goexplore-tours-list {
    --ge-gap: clamp(20px, 2.5vw, 32px);
    --ge-card-height: 546px;
    --ge-ease: cubic-bezier(0.33, 1, 0.68, 1);
    --ge-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    font-family: var(--sd-body-font, var(--sd-font-body, "Open Sans", sans-serif));
    color: #fff;
    width: 100%;
}

.goexplore-tours-list--cols-1 .goexplore-tours-list__grid {
    grid-template-columns: 1fr;
}

.goexplore-tours-list--cols-2 .goexplore-tours-list__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.goexplore-tours-list--cols-3 .goexplore-tours-list__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.goexplore-tours-list--cols-4 .goexplore-tours-list__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.goexplore-tours-list *,
.goexplore-tours-list *::before,
.goexplore-tours-list *::after {
    box-sizing: border-box;
}

.goexplore-tours-list__grid {
    display: grid;
    gap: var(--ge-gap);
    align-items: stretch;
}

/* ── Card shell ─────────────────────────────────────────────────── */

.goexplore-tour-card {
    min-width: 0;
    min-height: var(--ge-card-height);
    height: var(--ge-card-height);
}

.goexplore-tour-card__link {
    display: block;
    position: relative;
    min-height: var(--ge-card-height);
    height: var(--ge-card-height);
    max-height: none;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background: #1a1a1a;
    isolation: isolate;
}

.goexplore-tour-card__media {
    position: absolute;
    inset: 0;
    background-color: #2a3d36;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 0.75s var(--ge-ease-out);
    z-index: 0;
}

.goexplore-tour-card__media--empty {
    background-image: linear-gradient(135deg, #3d4a42 0%, #1a2420 100%);
}

.goexplore-tour-card__link:hover .goexplore-tour-card__media,
.goexplore-tour-card__link:focus-visible .goexplore-tour-card__media {
    transform: scale(1.05);
}

/* Base shade – short strip at bottom */
.goexplore-tour-card__shade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 34%;
    background: linear-gradient(
        to top,
        rgba(8, 8, 8, 0.94) 0%,
        rgba(8, 8, 8, 0.72) 42%,
        rgba(8, 8, 8, 0.28) 78%,
        transparent 100%
    );
    transition: height 0.7s var(--ge-ease), opacity 0.55s ease;
    pointer-events: none;
}

/* Moving wash – slides up on hover for visible motion */
.goexplore-tour-card__shade-flow {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 55%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.22) 55%,
        transparent 100%
    );
    transform: translateY(72%);
    opacity: 0.55;
    transition: transform 0.75s var(--ge-ease-out), opacity 0.65s ease;
    pointer-events: none;
}

.goexplore-tour-card__link:hover .goexplore-tour-card__shade,
.goexplore-tour-card__link:focus-visible .goexplore-tour-card__shade {
    height: 80%;
}

.goexplore-tour-card__link:hover .goexplore-tour-card__shade-flow,
.goexplore-tour-card__link:focus-visible .goexplore-tour-card__shade-flow {
    transform: translateY(0);
    opacity: 0.95;
}

/* ── Content ────────────────────────────────────────────────────── */

.goexplore-tour-card__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: clamp(18px, 2.5vw, 28px) clamp(20px, 2.8vw, 32px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0;
    pointer-events: none;
}

.goexplore-tour-card__head {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 22px);
    transform: translateY(0);
    transition: transform 0.65s var(--ge-ease-out);
}

.goexplore-tour-card__link:hover .goexplore-tour-card__head,
.goexplore-tour-card__link:focus-visible .goexplore-tour-card__head {
    transform: translateY(-12px);
}

.goexplore-tour-card__days {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    text-align: center;
    line-height: 1;
}

.goexplore-tour-card__days-num {
    font-family: var(--sd-heading-font, var(--sd-font-heading, inherit));
    font-size: clamp(2.5rem, 4.5vw, 3.35rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #fff;
}

.goexplore-tour-card__days-label {
    margin-top: 0.4rem;
    font-family: var(--sd-body-font, var(--sd-font-body, "Open Sans", sans-serif));
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.goexplore-tour-card__rule {
    flex-shrink: 0;
    align-self: stretch;
    width: 1px;
    min-height: 3.5rem;
    background: rgba(255, 255, 255, 0.72);
}

.goexplore-tour-card__title {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--sd-heading-font, var(--sd-font-heading, inherit)) !important;
    font-size: clamp(1.15rem, 1.9vw, 1.45rem) !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    color: #fff !important;
    letter-spacing: 0.01em;
}

.goexplore-tour-card__overview {
    margin: 0;
    padding-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    font-family: var(--sd-body-font, var(--sd-font-body, "Open Sans", sans-serif));
    font-size: clamp(0.82rem, 1.05vw, 0.92rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(16px);
    transition:
        max-height 0.65s var(--ge-ease-out),
        opacity 0.55s ease 0.05s,
        transform 0.65s var(--ge-ease-out) 0.05s,
        padding-top 0.65s var(--ge-ease-out);
}

.goexplore-tour-card__link:hover .goexplore-tour-card__overview,
.goexplore-tour-card__link:focus-visible .goexplore-tour-card__overview {
    max-height: 8em;
    opacity: 1;
    padding-top: clamp(10px, 1.4vw, 14px);
    transform: translateY(0);
}

/* ── Brizy isolation ────────────────────────────────────────────── */

.brz .brz-wp-shortcode:has(.goexplore-tours-list),
.brz-wp-shortcode:has(.goexplore-tours-list),
.brz-shortcode:has(.goexplore-tours-list) {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.brz .brz-wp-shortcode:has(.goexplore-tours-list) > div,
.brz-wp-shortcode:has(.goexplore-tours-list) > div {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.brz .goexplore-tours-list,
.brz .goexplore-tours-list p,
.brz .goexplore-tours-list .goexplore-tour-card__overview,
.brz .goexplore-tours-list .goexplore-tour-card__days-label {
    font-family: var(--sd-body-font, var(--sd-font-body, "Open Sans", sans-serif)) !important;
    letter-spacing: normal !important;
}

.brz .goexplore-tours-list h2.goexplore-tour-card__title,
.brz .goexplore-tours-list h3.goexplore-tour-card__title,
.brz .goexplore-tours-list .goexplore-tour-card__title,
.brz .goexplore-tours-list .goexplore-tour-card__days-num,
.brz .brz-wp-shortcode h2.goexplore-tour-card__title,
.brz .brz-wp-shortcode h3.goexplore-tour-card__title,
.brz .brz-wp-shortcode .goexplore-tour-card__title,
.brz-wp-shortcode h2.goexplore-tour-card__title,
.brz-wp-shortcode h3.goexplore-tour-card__title,
.brz-wp-shortcode .goexplore-tour-card__title,
.brz-shortcode h2.goexplore-tour-card__title,
.brz-shortcode h3.goexplore-tour-card__title,
.brz-shortcode .goexplore-tour-card__title {
    font-family: var(--sd-heading-font, var(--sd-font-heading, inherit)) !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
}

.brz .goexplore-tours-list .goexplore-tour-card__days-label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em !important;
}

.brz .goexplore-tours-list .goexplore-tour-card,
.brz .goexplore-tours-list a.goexplore-tour-card__link,
.brz .goexplore-tours-list .goexplore-tour-card__link,
.brz .brz-wp-shortcode .goexplore-tour-card,
.brz .brz-wp-shortcode a.goexplore-tour-card__link,
.brz .brz-wp-shortcode .goexplore-tour-card__link,
.brz-wp-shortcode .goexplore-tour-card,
.brz-wp-shortcode a.goexplore-tour-card__link,
.brz-wp-shortcode .goexplore-tour-card__link {
    display: block !important;
    text-decoration: none !important;
    color: #fff !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    min-height: 546px !important;
    height: 546px !important;
    max-height: none !important;
    aspect-ratio: auto !important;
}

.brz .goexplore-tour-card__title,
.brz h2.goexplore-tour-card__title,
.brz h3.goexplore-tour-card__title,
.brz .brz-wp-shortcode h2.goexplore-tour-card__title,
.brz .brz-wp-shortcode h3.goexplore-tour-card__title {
    color: #fff !important;
    text-align: left !important;
    font-family: var(--sd-heading-font, var(--sd-font-heading, inherit)) !important;
}

.brz .goexplore-tour-card__overview {
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: left !important;
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .goexplore-tours-list--cols-3 .goexplore-tours-list__grid,
    .goexplore-tours-list--cols-4 .goexplore-tours-list__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .goexplore-tours-list {
        --ge-card-height: min(72vw, 540px);
    }

    .goexplore-tours-list .goexplore-tours-list__grid {
        grid-template-columns: 1fr !important;
        gap: clamp(18px, 4vw, 28px);
    }

    .goexplore-tour-card__link {
        min-height: var(--ge-card-height);
        height: var(--ge-card-height);
    }

    .brz .goexplore-tours-list a.goexplore-tour-card__link,
    .brz .goexplore-tours-list .goexplore-tour-card__link,
    .brz .brz-wp-shortcode a.goexplore-tour-card__link,
    .brz-wp-shortcode a.goexplore-tour-card__link {
        min-height: min(72vw, 540px) !important;
        height: min(72vw, 540px) !important;
    }

    .goexplore-tour-card__head {
        gap: 12px;
    }

    .goexplore-tour-card__title {
        font-size: clamp(1.1rem, 4.5vw, 1.35rem) !important;
    }

    .goexplore-tour-card__content {
        padding: clamp(16px, 4vw, 22px) clamp(18px, 4.5vw, 24px);
    }
}

.brz .goexplore-tours-list .goexplore-tours-list__grid,
.brz .brz-wp-shortcode .goexplore-tours-list__grid,
.brz-wp-shortcode .goexplore-tours-list__grid,
.brz-shortcode .goexplore-tours-list__grid {
    display: grid !important;
    gap: var(--ge-gap) !important;
    row-gap: var(--ge-gap) !important;
    column-gap: var(--ge-gap) !important;
}

@media (max-width: 767px) {
    .brz .goexplore-tours-list .goexplore-tours-list__grid {
        grid-template-columns: 1fr !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .goexplore-tour-card__media,
    .goexplore-tour-card__shade,
    .goexplore-tour-card__shade-flow,
    .goexplore-tour-card__head,
    .goexplore-tour-card__overview {
        transition: none !important;
    }

    .goexplore-tour-card__link:hover .goexplore-tour-card__shade,
    .goexplore-tour-card__link:focus-visible .goexplore-tour-card__shade {
        height: 80%;
    }

    .goexplore-tour-card__link:hover .goexplore-tour-card__shade-flow,
    .goexplore-tour-card__link:focus-visible .goexplore-tour-card__shade-flow {
        transform: translateY(0);
    }

    .goexplore-tour-card__link:hover .goexplore-tour-card__overview,
    .goexplore-tour-card__link:focus-visible .goexplore-tour-card__overview {
        max-height: 8em;
        opacity: 1;
        transform: none;
    }
}
