/**
 * Expedition tour cards — image grid with yellow hover overlay.
 */

.sd-exp-tours {
    --exp-yellow: #ffb82e;
    --exp-yellow-badge: #ffb82e;
    --exp-ink: #3d1f17;
    --exp-white: #ffffff;
    --exp-gap: 15px;
    --exp-heading: var(--sd-heading-font, var(--sd-font-heading, "Helvetica Neue", Helvetica, Arial, sans-serif));
    --exp-body: var(--sd-body-font, var(--sd-font-body, "Helvetica Neue", Helvetica, Arial, sans-serif));
    width: 100%;
    max-width: none;
    font-family: var(--exp-body);
    color: var(--exp-ink);
}

.sd-exp-tours *,
.sd-exp-tours *::before,
.sd-exp-tours *::after {
    box-sizing: border-box;
}

.sd-exp-tours__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--exp-gap);
}

.sd-exp-tours--cols-3 .sd-exp-tours__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sd-exp-tours--cols-2 .sd-exp-tours__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sd-exp-tours--cols-1 .sd-exp-tours__grid {
    grid-template-columns: 1fr;
}

.sd-exp-card.is-hidden {
    display: none;
}

.sd-exp-card.is-filter-hidden {
    display: none;
}

.sd-exp-tours__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0 0 1rem;
}

.sd-exp-tours__filter {
    appearance: none;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    background: #fff;
    color: var(--exp-ink);
    padding: 0.55rem 1rem;
    font-family: var(--exp-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sd-exp-tours__filter:hover,
.sd-exp-tours__filter.is-active {
    background: var(--exp-yellow);
    border-color: var(--exp-yellow);
    color: var(--exp-ink);
}

.sd-exp-card {
    position: relative;
    overflow: hidden;
    background: #ddd;
    height: 100%;
    border: none !important;
    box-shadow: none !important;
}

.sd-exp-card__link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none !important;
    border: none !important;
}

.sd-exp-card__media {
    position: relative;
    aspect-ratio: 1.08 / 1;
    overflow: hidden;
    background: #c8c8c8;
    min-height: 280px;
    border: none !important;
}

.sd-exp-card__media img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    display: block;
    transform: scale(1);
    transition: transform 0.45s ease;
}

.sd-exp-card__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 28%, rgba(0, 0, 0, 0.18) 52%, rgba(0, 0, 0, 0) 72%);
    opacity: 1;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.sd-exp-card__hover-panel {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    transform: translateY(6%);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.sd-exp-card__hover-panel svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.sd-exp-card__price {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 4;
    background: var(--exp-yellow-badge);
    color: var(--exp-ink) !important;
    padding: 0.45rem 0.72rem;
    font-family: var(--exp-body) !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

.sd-exp-card__content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1rem 3.25rem;
    text-align: center;
    color: var(--exp-white);
    transition: color 0.35s ease, padding 0.35s ease, justify-content 0.35s ease;
}

.sd-exp-card__title {
    margin: 0 0 0.4rem;
    color: inherit !important;
    font-family: var(--exp-heading) !important;
    font-size: 1.125rem !important;
    font-weight: 800 !important;
    line-height: 1.22 !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.sd-exp-card__desc {
    margin: 0;
    max-width: 92%;
    color: inherit !important;
    font-family: var(--exp-body) !important;
    font-size: clamp(0.82rem, 1vw, 0.95rem) !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    opacity: 0.95;
}

.sd-exp-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    margin-top: 0.55rem;
    max-width: 96%;
}

.sd-exp-card__tag {
    display: inline-block;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    font-family: var(--exp-body) !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: inherit;
}

.sd-exp-card:hover .sd-exp-card__tag,
.sd-exp-card:focus-within .sd-exp-card__tag {
    background: rgba(61, 31, 23, 0.08);
    border-color: rgba(61, 31, 23, 0.35);
    color: var(--exp-ink) !important;
}

.sd-exp-card__cta {
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: var(--exp-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    transition: right 0.35s ease, bottom 0.35s ease, left 0.35s ease, transform 0.35s ease;
}

.sd-exp-card__cta svg {
    display: block;
    width: 1.05rem;
    height: auto;
}

.sd-exp-card:hover .sd-exp-card__media img,
.sd-exp-card:focus-within .sd-exp-card__media img {
    transform: scale(1.05);
}

.sd-exp-card:hover .sd-exp-card__shade,
.sd-exp-card:focus-within .sd-exp-card__shade {
    opacity: 0;
}

.sd-exp-card:hover .sd-exp-card__hover-panel,
.sd-exp-card:focus-within .sd-exp-card__hover-panel {
    opacity: 1;
    transform: translateY(0);
}

.sd-exp-card:hover .sd-exp-card__content,
.sd-exp-card:focus-within .sd-exp-card__content {
    color: var(--exp-ink);
    justify-content: flex-start;
    padding-top: clamp(2rem, 14%, 3.25rem);
    padding-bottom: 4.5rem;
}

.sd-exp-card:hover .sd-exp-card__cta,
.sd-exp-card:focus-within .sd-exp-card__cta {
    right: auto;
    left: 50%;
    bottom: 14%;
    transform: translateX(-50%);
}

.sd-exp-tours__more {
    display: flex;
    justify-content: center;
    margin-top: 1.75rem;
}

.sd-exp-tours__btn {
    appearance: none;
    border: 1px solid var(--exp-ink);
    background: #fff;
    color: var(--exp-ink);
    min-width: 160px;
    min-height: 46px;
    padding: 0.7rem 1.4rem;
    font-family: var(--exp-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sd-exp-tours__btn:hover,
.sd-exp-tours__btn:focus {
    background: var(--exp-ink);
    color: #fff;
}

.brz .sd-exp-tours,
.brz-wp-shortcode .sd-exp-tours,
.brz-shortcode .sd-exp-tours {
    width: 100% !important;
    max-width: none !important;
    font-family: var(--exp-body) !important;
}

.brz .sd-exp-tours h4,
.brz .sd-exp-tours .sd-exp-card__title,
.brz .sd-exp-tours .sd-exp-card__price,
.brz-wp-shortcode .sd-exp-tours h4,
.brz-wp-shortcode .sd-exp-tours .sd-exp-card__title,
.brz-wp-shortcode .sd-exp-tours .sd-exp-card__price {
    font-family: var(--exp-heading) !important;
}

.brz .sd-exp-tours h4.sd-exp-card__title,
.brz-wp-shortcode .sd-exp-tours h4.sd-exp-card__title {
    font-size: 1.125rem !important;
    text-align: center !important;
}

.brz .sd-exp-tours .sd-exp-card__price,
.brz-wp-shortcode .sd-exp-tours .sd-exp-card__price {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
}

.brz .sd-exp-card,
.brz-wp-shortcode .sd-exp-card,
.brz .sd-exp-card__media,
.brz-wp-shortcode .sd-exp-card__media {
    border: none !important;
    border-top: none !important;
    box-shadow: none !important;
}

.brz .sd-exp-tours p,
.brz .sd-exp-tours .sd-exp-card__desc,
.brz .sd-exp-tours .sd-exp-tours__btn,
.brz-wp-shortcode .sd-exp-tours p,
.brz-wp-shortcode .sd-exp-tours .sd-exp-card__desc {
    font-family: var(--exp-body) !important;
}

.brz .sd-exp-card:hover .sd-exp-card__content,
.brz .sd-exp-card:focus-within .sd-exp-card__content,
.brz-wp-shortcode .sd-exp-card:hover .sd-exp-card__content,
.brz-wp-shortcode .sd-exp-card:focus-within .sd-exp-card__content {
    color: var(--exp-ink) !important;
}

@media (max-width: 1100px) {
    .sd-exp-tours__grid,
    .sd-exp-tours--cols-4 .sd-exp-tours__grid,
    .sd-exp-tours--cols-3 .sd-exp-tours__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sd-exp-tours__grid,
    .sd-exp-tours--cols-4 .sd-exp-tours__grid,
    .sd-exp-tours--cols-3 .sd-exp-tours__grid,
    .sd-exp-tours--cols-2 .sd-exp-tours__grid {
        grid-template-columns: 1fr;
    }

    .sd-exp-card__media {
        min-height: 240px;
    }
}

@media (hover: none) {
    .sd-exp-card:focus-within .sd-exp-card__hover-panel {
        opacity: 1;
        transform: translateY(0);
    }

    .sd-exp-card:focus-within .sd-exp-card__shade {
        opacity: 0;
    }

    .sd-exp-card:focus-within .sd-exp-card__content {
        color: var(--exp-ink);
        justify-content: flex-start;
        padding-top: 2rem;
        padding-bottom: 4.5rem;
    }

    .sd-exp-card:focus-within .sd-exp-card__cta {
        right: auto;
        left: 50%;
        bottom: 14%;
        transform: translateX(-50%);
    }
}
