/**
 * GoExplore Destinations Megamenu – [goexplore_destinations_megamenu]
 */


/* ── Tokens ── */

.gem-wrap {
    --gem-accent: #dab565;
    --gem-accent-soft: rgba(218, 181, 101, 0.14);
    --gem-detail-yellow: #f0e6c8;
    --gem-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --gem-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: transparent;
    background-color: transparent;
}

.gem-wrap--light {
    --gem-text: #000000;
    --gem-text-active: var(--sd-primary, #008080);
    --gem-detail-text: #000000;
    --gem-detail-yellow: #000000;
    --gem-section-label: #000000;
    --gem-muted: rgba(0, 0, 0, 0.55);
    --gem-divider: rgba(0, 0, 0, 0.1);
    --gem-accent: var(--sd-primary, #008080);
}

.gem-wrap a.gem-dest,
.gem-wrap a.gem-link,
.gem-wrap a.gem-dest:link,
.gem-wrap a.gem-link:link,
.gem-wrap a.gem-dest:visited,
.gem-wrap a.gem-link:visited,
.gem-wrap a.gem-dest:hover,
.gem-wrap a.gem-link:hover,
.gem-wrap a.gem-dest:focus-visible,
.gem-wrap a.gem-link:focus-visible,
.gem-wrap a.gem-dest.is-active {
    background: transparent !important;
    background-color: transparent !important;
}

.gem-wrap--dark {
    --gem-text: rgba(255, 255, 255, 0.58);
    --gem-text-active: #ffffff;
    --gem-detail-text: #f0e6c8;
    --gem-detail-yellow: #f0e6c8;
    --gem-section-label: #f0e6c8;
    --gem-muted: rgba(240, 230, 200, 0.72);
    --gem-divider: rgba(255, 255, 255, 0.14);
    --gem-accent: #ffffff;
}

.gem-wrap *,
.gem-wrap *::before,
.gem-wrap *::after {
    box-sizing: border-box;
}

.gem-wrap a,
.gem-wrap a:link,
.gem-wrap a:visited,
.gem-wrap a:hover,
.gem-wrap a:focus,
.gem-wrap a:active,
.gem-wrap a:focus-visible {
    text-decoration: none !important;
    text-decoration-line: none !important;
    -webkit-text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background-image: none !important;
    outline: none !important;
}

.gem-wrap a.gem-panel__view,
.gem-wrap a.gem-panel__view:link,
.gem-wrap a.gem-panel__view:visited {
    border: 1px solid var(--gem-accent) !important;
}

.gem-wrap img {
    max-width: 100%;
    display: block;
}


/* ── Layout: 3 visual columns ── */

.gem-wrap,
.gem-wrap--light,
.gem-wrap--dark,
.gem-grid,
.gem-detail,
.gem-panel,
.gem-panel__col {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.gem-grid {
    display: grid;
    /* Bootstrap col-md-5 + col-md-7 wrapper for parks (4) + tours (3) */
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(20px, 2.5vw, 40px);
    align-items: start;
    width: 100%;
    min-height: 0;
}

.gem-dests {
    position: relative;
    min-width: 0;
    padding-right: clamp(16px, 2vw, 28px);
    border-right: 1px solid var(--gem-divider);
}

.gem-detail {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 0;
}


/* ── Destination list ── */

.gem-dests__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2.2vw, 28px);
}

.gem-dests__item {
    margin: 0;
}

.gem-dest {
    display: inline-flex;
    align-items: center;
    width: 100%;
    padding: 4px 0;
    text-decoration: none !important;
    color: var(--gem-text);
    font-family: var(--sd-heading-font, var(--sd-font-heading, inherit));
    font-size: clamp(20px, 1.75vw, 30px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.01em;
    text-transform: none;
    transform: translateX(0);
    transition:
        color 0.32s var(--gem-ease),
        transform 0.38s var(--gem-ease-out);
}

.gem-dest__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateX(-10px);
    transition:
        width 0.34s var(--gem-ease-out),
        opacity 0.28s ease,
        transform 0.34s var(--gem-ease-out),
        margin 0.34s var(--gem-ease-out);
    margin-right: 0;
    color: var(--gem-accent);
}

.gem-dest__arrow svg {
    display: block;
    width: 16px;
    height: 16px;
}

.gem-dest__label {
    display: block;
    font-family: inherit;
    font-weight: inherit;
}

.gem-wrap--light .gem-dest,
.gem-wrap--light .gem-dest:link,
.gem-wrap--light .gem-dest:visited {
    color: #000000 !important;
}

.gem-wrap--light .gem-dest:hover,
.gem-wrap--light .gem-dest:focus-visible,
.gem-wrap--light .gem-dest.is-active,
.gem-wrap--light .gem-dest.is-active:link,
.gem-wrap--light .gem-dest.is-active:visited {
    color: var(--sd-primary, #008080) !important;
}

.gem-wrap--dark .gem-dest,
.gem-wrap--dark .gem-dest:link,
.gem-wrap--dark .gem-dest:visited {
    color: rgba(255, 255, 255, 0.62) !important;
}

.gem-wrap--dark .gem-dest:hover,
.gem-wrap--dark .gem-dest:focus-visible,
.gem-wrap--dark .gem-dest.is-active,
.gem-wrap--dark .gem-dest.is-active:link,
.gem-wrap--dark .gem-dest.is-active:visited {
    color: #ffffff !important;
}

.gem-dest:hover,
.gem-dest:focus-visible,
.gem-dest.is-active {
    color: var(--gem-text-active);
    transform: translateX(10px);
    outline: none;
}

.gem-dest:hover .gem-dest__arrow,
.gem-dest:focus-visible .gem-dest__arrow,
.gem-dest.is-active .gem-dest__arrow {
    width: 22px;
    opacity: 1;
    transform: translateX(0);
    margin-right: 10px;
}


/* ── Detail panels ── */

.gem-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: grid;
    /* col-md-4 + col-md-3 within the 7/12 detail area (= 4/12 + 3/12 overall) */
    grid-template-columns: minmax(0, 4fr) minmax(0, 3fr);
    gap: clamp(20px, 2.5vw, 40px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(18px);
    pointer-events: none;
    transition:
        opacity 0.34s var(--gem-ease),
        transform 0.42s var(--gem-ease-out),
        visibility 0.34s;
}

.gem-panel.is-active {
    position: relative;
    width: 100%;
    max-width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

.gem-panel__col {
    min-width: 0;
    width: 100%;
}

.gem-panel__heading {
    margin: 0 0 18px;
    font-family: var(--sd-body-font, var(--sd-font-body, "Founders Grotesk", sans-serif));
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gem-section-label);
    text-decoration: none !important;
}

.gem-panel__empty {
    margin: 0;
    font-family: var(--sd-body-font, var(--sd-font-body, "Founders Grotesk", sans-serif));
    font-size: 15px;
    font-weight: 300;
    color: var(--gem-detail-text);
    line-height: 1.6;
    text-transform: none;
}

.gem-panel__view {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin-top: clamp(16px, 2vw, 28px);
    padding: 11px 26px;
    border: 1px solid var(--gem-accent);
    border-radius: 0;
    background: transparent;
    font-family: var(--sd-body-font, var(--sd-font-body, "Founders Grotesk", sans-serif));
    font-size: 14px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none !important;
    color: var(--gem-detail-text);
    transition:
        background-color 0.28s var(--gem-ease),
        color 0.28s ease,
        border-color 0.28s ease,
        gap 0.28s var(--gem-ease);
}

.gem-panel__view:hover,
.gem-panel__view:focus-visible {
    gap: 14px;
    background: var(--gem-accent);
    border-color: var(--gem-accent);
    color: #ffffff;
    outline: none;
}

.gem-panel__view-arrow {
    transition: transform 0.28s var(--gem-ease);
}

.gem-panel__view:hover .gem-panel__view-arrow {
    transform: translateX(4px);
}


/* ── Link lists (parks + tours) ── */

.gem-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gem-links__item {
    margin: 0;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.34s var(--gem-ease),
        transform 0.38s var(--gem-ease-out);
}

.gem-panel.is-active .gem-links__item {
    opacity: 1;
    transform: none;
}

.gem-panel.is-active .gem-links__item:nth-child(1) { transition-delay: 0.04s; }
.gem-panel.is-active .gem-links__item:nth-child(2) { transition-delay: 0.08s; }
.gem-panel.is-active .gem-links__item:nth-child(3) { transition-delay: 0.12s; }
.gem-panel.is-active .gem-links__item:nth-child(4) { transition-delay: 0.16s; }
.gem-panel.is-active .gem-links__item:nth-child(5) { transition-delay: 0.20s; }
.gem-panel.is-active .gem-links__item:nth-child(6) { transition-delay: 0.24s; }
.gem-panel.is-active .gem-links__item:nth-child(7) { transition-delay: 0.28s; }
.gem-panel.is-active .gem-links__item:nth-child(8) { transition-delay: 0.32s; }
.gem-panel.is-active .gem-links__item:nth-child(n+9) { transition-delay: 0.36s; }

.gem-link {
    display: block;
    padding: 7px 0;
    text-decoration: none !important;
    color: var(--gem-detail-text);
    letter-spacing: normal !important;
    position: relative;
    transition: color 0.24s ease, transform 0.28s var(--gem-ease), opacity 0.24s ease;
}

.gem-link:hover,
.gem-link:focus-visible {
    color: var(--gem-text-active);
    transform: translateX(6px);
    outline: none;
}

.gem-link:hover .gem-link__text,
.gem-link:hover .gem-link__meta,
.gem-link:focus-visible .gem-link__text,
.gem-link:focus-visible .gem-link__meta {
    color: var(--gem-text-active);
}

.gem-link__meta {
    display: block;
    margin-bottom: 3px;
    font-family: var(--sd-body-font, var(--sd-font-body, "Founders Grotesk", sans-serif));
    font-size: 13px;
    font-weight: 300;
    letter-spacing: normal !important;
    text-transform: none;
    color: var(--gem-muted);
}

.gem-link__text {
    display: block;
    font-family: var(--sd-body-font, var(--sd-font-body, "Founders Grotesk", sans-serif));
    font-size: clamp(14px, 1.1vw, 16px);
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: normal !important;
    text-transform: none;
    color: var(--gem-detail-text);
}


/* ── Brizy megamenu overrides (high specificity) ── */

.brz-mega-menu .gem-wrap,
.brz .brz-mega-menu .gem-wrap,
.brz .brz-wp-shortcode .gem-wrap,
.brz-wp-shortcode .gem-wrap,
.brz-mega-menu .brz-wp-shortcode:has(.gem-wrap),
.brz .brz-mega-menu .brz-wp-shortcode:has(.gem-wrap),
.brz-wp-shortcode:has(.gem-wrap) {
    background: transparent !important;
    background-color: transparent !important;
}

.brz-mega-menu .brz-wp-shortcode:has(.gem-wrap),
.brz .brz-mega-menu .brz-wp-shortcode:has(.gem-wrap),
.brz-wp-shortcode:has(.gem-wrap) {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.brz-mega-menu .gem-wrap a:not(.gem-panel__view),
.brz .brz-mega-menu .gem-wrap a:not(.gem-panel__view),
.brz .brz-wp-shortcode .gem-wrap a:not(.gem-panel__view),
.brz-wp-shortcode .gem-wrap a:not(.gem-panel__view) {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.brz-mega-menu .gem-wrap a,
.brz-mega-menu .gem-wrap a:link,
.brz-mega-menu .gem-wrap a:visited,
.brz-mega-menu .gem-wrap a:hover,
.brz-mega-menu .gem-wrap a:focus,
.brz .brz-mega-menu .brz-wp-shortcode .gem-wrap a,
.brz .brz-mega-menu .brz-wp-shortcode .gem-wrap a:link,
.brz .brz-mega-menu .brz-wp-shortcode .gem-wrap a:visited,
.brz-wp-shortcode .gem-wrap a,
.brz-wp-shortcode .gem-wrap a:link,
.brz-wp-shortcode .gem-wrap a:visited {
    text-decoration: none !important;
    text-decoration-line: none !important;
    -webkit-text-decoration: none !important;
    border: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
    outline: none !important;
}

.brz-mega-menu .gem-wrap--light a.gem-dest,
.brz-mega-menu .gem-wrap--light a.gem-dest:link,
.brz-mega-menu .gem-wrap--light a.gem-dest:visited,
.brz-mega-menu .gem-wrap--light .gem-dest__label,
.brz .brz-mega-menu .gem-wrap--light a.gem-dest,
.brz .brz-wp-shortcode .gem-wrap--light a.gem-dest,
.brz-wp-shortcode .gem-wrap--light a.gem-dest {
    font-family: var(--sd-heading-font, var(--sd-font-heading, inherit)) !important;
    font-weight: 400 !important;
    color: #000000 !important;
}

.brz-mega-menu .gem-wrap--light a.gem-dest:hover,
.brz-mega-menu .gem-wrap--light a.gem-dest.is-active,
.brz .brz-mega-menu .gem-wrap--light a.gem-dest.is-active,
.brz .brz-wp-shortcode .gem-wrap--light a.gem-dest.is-active,
.brz-wp-shortcode .gem-wrap--light a.gem-dest.is-active {
    color: var(--sd-primary, #008080) !important;
}

.brz-mega-menu .gem-wrap--light div.gem-panel__heading,
.brz-mega-menu .gem-wrap--light .gem-panel__heading,
.brz .brz-mega-menu .gem-wrap--light div.gem-panel__heading,
.brz .brz-wp-shortcode .gem-wrap--light div.gem-panel__heading,
.brz-wp-shortcode .gem-wrap--light div.gem-panel__heading {
    font-family: var(--sd-body-font, var(--sd-font-body, "Founders Grotesk", sans-serif)) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: #000000 !important;
    text-decoration: none !important;
}

.brz-mega-menu .gem-wrap--light .gem-link__text,
.brz-mega-menu .gem-wrap--light .gem-link__meta,
.brz-mega-menu .gem-wrap--light a.gem-link,
.brz .brz-wp-shortcode .gem-wrap--light .gem-link__text,
.brz-wp-shortcode .gem-wrap--light .gem-link__text {
    font-family: var(--sd-body-font, var(--sd-font-body, "Founders Grotesk", sans-serif)) !important;
    text-transform: none !important;
    text-decoration: none !important;
    letter-spacing: normal !important;
    color: #000000 !important;
}

.brz-mega-menu .gem-wrap--light .gem-link__meta {
    color: rgba(0, 0, 0, 0.55) !important;
}

.brz-mega-menu .gem-wrap--light a.gem-link:hover,
.brz-mega-menu .gem-wrap--light a.gem-link:focus-visible,
.brz .brz-wp-shortcode .gem-wrap--light a.gem-link:hover,
.brz-wp-shortcode .gem-wrap--light a.gem-link:hover {
    color: var(--sd-primary, #008080) !important;
}

.brz-mega-menu .gem-wrap--light a.gem-link:hover .gem-link__text,
.brz-mega-menu .gem-wrap--light a.gem-link:hover .gem-link__meta,
.brz-wp-shortcode .gem-wrap--light a.gem-link:hover .gem-link__text,
.brz-wp-shortcode .gem-wrap--light a.gem-link:hover .gem-link__meta {
    color: var(--sd-primary, #008080) !important;
}

.brz-mega-menu .gem-wrap--light a.gem-panel__view,
.brz-mega-menu .gem-wrap--light a.gem-panel__view:link,
.brz-mega-menu .gem-wrap--light a.gem-panel__view:visited,
.brz .brz-wp-shortcode .gem-wrap--light a.gem-panel__view,
.brz-wp-shortcode .gem-wrap--light a.gem-panel__view {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin-top: clamp(16px, 2vw, 28px) !important;
    padding: 11px 26px !important;
    border: 1px solid var(--sd-primary, #008080) !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-family: var(--sd-body-font, var(--sd-font-body, "Founders Grotesk", sans-serif)) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: #000000 !important;
    transition: background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease !important;
}

.brz-mega-menu .gem-wrap--light a.gem-panel__view:hover,
.brz-mega-menu .gem-wrap--light a.gem-panel__view:focus-visible,
.brz .brz-wp-shortcode .gem-wrap--light a.gem-panel__view:hover,
.brz-wp-shortcode .gem-wrap--light a.gem-panel__view:hover {
    background: var(--sd-primary, #008080) !important;
    border-color: var(--sd-primary, #008080) !important;
    color: #ffffff !important;
}

.brz-mega-menu .gem-wrap--dark a.gem-dest,
.brz-mega-menu .gem-wrap--dark a.gem-dest:link,
.brz-mega-menu .gem-wrap--dark a.gem-dest:visited,
.brz-mega-menu .gem-wrap--dark .gem-dest__label,
.brz .brz-mega-menu .gem-wrap--dark a.gem-dest,
.brz .brz-wp-shortcode .gem-wrap--dark a.gem-dest {
    font-family: var(--sd-heading-font, var(--sd-font-heading, inherit)) !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.62) !important;
}

.brz-mega-menu .gem-wrap--dark a.gem-dest:hover,
.brz-mega-menu .gem-wrap--dark a.gem-dest.is-active,
.brz .brz-mega-menu .gem-wrap--dark a.gem-dest.is-active,
.brz .brz-wp-shortcode .gem-wrap--dark a.gem-dest.is-active {
    color: #ffffff !important;
}

.brz-mega-menu .gem-wrap--dark div.gem-panel__heading,
.brz-mega-menu .gem-wrap--dark .gem-panel__heading,
.brz .brz-mega-menu .gem-wrap--dark div.gem-panel__heading,
.brz .brz-wp-shortcode .gem-wrap--dark div.gem-panel__heading,
.brz-wp-shortcode .gem-wrap--dark div.gem-panel__heading {
    font-family: var(--sd-body-font, var(--sd-font-body, "Founders Grotesk", sans-serif)) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: #f0e6c8 !important;
    text-decoration: none !important;
}

.brz-mega-menu .gem-wrap--dark .gem-link__text,
.brz-mega-menu .gem-wrap--dark .gem-link__meta,
.brz .brz-wp-shortcode .gem-wrap--dark .gem-link__text,
.brz-wp-shortcode .gem-wrap--dark .gem-link__text {
    font-family: var(--sd-body-font, var(--sd-font-body, "Founders Grotesk", sans-serif)) !important;
    text-transform: none !important;
    text-decoration: none !important;
    letter-spacing: normal !important;
    color: #f0e6c8 !important;
}

.brz-mega-menu .gem-wrap--dark a.gem-link:hover,
.brz-mega-menu .gem-wrap--dark a.gem-link:focus-visible,
.brz .brz-wp-shortcode .gem-wrap--dark a.gem-link:hover,
.brz-wp-shortcode .gem-wrap--dark a.gem-link:hover {
    color: #ffffff !important;
}

.brz-mega-menu .gem-wrap--dark a.gem-link:hover .gem-link__text,
.brz-mega-menu .gem-wrap--dark a.gem-link:hover .gem-link__meta,
.brz-wp-shortcode .gem-wrap--dark a.gem-link:hover .gem-link__text,
.brz-wp-shortcode .gem-wrap--dark a.gem-link:hover .gem-link__meta {
    color: #ffffff !important;
}

.brz .brz-wp-shortcode:has(.gem-wrap),
.brz-wp-shortcode:has(.gem-wrap),
.brz-shortcode:has(.gem-wrap) {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.brz .brz-wp-shortcode:has(.gem-wrap) > div,
.brz-wp-shortcode:has(.gem-wrap) > div {
    width: 100% !important;
    max-width: none !important;
}

.brz .gem-wrap,
.brz .brz-wp-shortcode .gem-wrap,
.brz-wp-shortcode .gem-wrap,
.brz-mega-menu .gem-wrap,
.brz .brz-mega-menu .gem-wrap {
    width: 100% !important;
    max-width: none !important;
}

.brz .gem-wrap .gem-grid,
.brz .brz-wp-shortcode .gem-grid,
.brz-wp-shortcode .gem-grid,
.brz-mega-menu .gem-grid {
    width: 100% !important;
    max-width: none !important;
}

.brz .gem-wrap .gem-detail,
.brz .gem-wrap .gem-panel.is-active,
.brz-wp-shortcode .gem-detail,
.brz-wp-shortcode .gem-panel.is-active {
    width: 100% !important;
    max-width: none !important;
}

.brz .gem-wrap,
.brz .brz-wp-shortcode .gem-wrap,
.brz-wp-shortcode .gem-wrap {
    text-align: left !important;
}

.brz .gem-wrap a,
.brz .gem-wrap a:hover,
.brz .gem-wrap a:focus,
.brz .brz-wp-shortcode .gem-wrap a,
.brz-wp-shortcode .gem-wrap a {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}


/* ── Responsive ── */

@media (max-width: 900px) {
    .gem-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 0;
    }

    .gem-dests {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--gem-divider);
        padding-bottom: 20px;
    }

    .gem-panel {
        position: relative;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .gem-dest {
        font-size: clamp(18px, 5vw, 26px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gem-dest,
    .gem-dest__arrow,
    .gem-panel,
    .gem-links__item,
    .gem-link,
    .gem-panel__view {
        transition: none !important;
    }

    .gem-panel {
        transform: none !important;
    }

    .gem-links__item {
        opacity: 1 !important;
        transform: none !important;
    }
}
