/* Shared photographic tour card used by the tours catalog and home. */
.xbt-tour-card {
    --xbt-white: #fffdf9;
    --xbt-radius: 10px;
}

.xbt-tour-card {
    position: relative;
    isolation: isolate;
    min-height: 590px;
    overflow: hidden;
    border: 1px solid rgba(91, 61, 40, 0.22);
    border-radius: var(--xbt-radius);
    background: #8c725e;
}

.xbt-tour-card__media {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.xbt-tour-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.xbt-tour-card:hover .xbt-tour-card__media img {
    transform: scale(1.045);
}

.xbt-tour-card__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at 22% 20%,
            rgba(255, 250, 244, 0.22),
            transparent 30%
        ),
        linear-gradient(145deg, #b7997d, #72523c);
    color: rgba(255, 253, 249, 0.82);
    font-size: 72px;
}

.xbt-tour-card::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(
        180deg,
        rgba(25, 16, 10, 0.1) 0%,
        rgba(25, 16, 10, 0.1) 30%,
        rgba(25, 16, 10, 0.88) 78%,
        rgba(25, 16, 10, 0.97) 100%
    );
    content: '';
}

.xbt-tour-card::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--xbt-radius);
    content: '';
    pointer-events: none;
}

.xbt-tour-card__body {
    display: flex;
    min-height: 590px;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.xbt-tour-card__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.xbt-pill {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: var(--xbt-radius);
    background: rgba(45, 31, 22, 0.72);
    color: var(--xbt-white);
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.xbt-pill--featured {
    border-color: #f0d0a7;
    background: #f2dfc6;
    color: #61432e;
}

.xbt-tour-card__content {
    color: var(--xbt-white);
}

.xbt-tour-card__people {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    color: #f1dfcb;
    font-size: 13px;
    font-weight: 700;
}

.xbt-tour-card h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(25px, 2.3vw, 34px);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -0.55px;
    text-wrap: balance;
}

.xbt-tour-card__description {
    display: -webkit-box;
    overflow: hidden;
    margin: 13px 0 18px;
    color: rgba(255, 253, 249, 0.86);
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.xbt-tour-card__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.xbt-price small {
    display: block;
    margin-bottom: 3px;
    color: #e4cfba;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.xbt-price strong {
    display: block;
    color: #fff;
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.xbt-price strong span {
    color: #ead2b8;
    font-size: 13px;
    font-weight: 700;
}

.xbt-tour-card__actions {
    display: flex;
    gap: 8px;
}

.xbt-btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: var(--xbt-radius);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.xbt-btn:hover {
    transform: translateY(-2px);
}

.xbt-btn--ghost {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.xbt-btn--ghost:hover,
.xbt-btn--ghost:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.17);
    color: #fff;
}

.xbt-btn--solid {
    border-color: #f2dfc6;
    background: #f2dfc6;
    color: #523824;
}

.xbt-btn--solid:hover,
.xbt-btn--solid:focus {
    border-color: #fffaf4;
    background: #fffaf4;
    color: #3f2b1e;
}

@media (max-width: 1199.98px) {
    .xbt-tour-card,
    .xbt-tour-card__body {
        min-height: 555px;
    }

    .xbt-tour-card__bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .xbt-tour-card__actions,
    .xbt-btn {
        flex: 1 1 0;
    }
}

@media (max-width: 767.98px) {
    .xbt-tour-card,
    .xbt-tour-card__body {
        min-height: 540px;
    }

    .xbt-tour-card__body {
        padding: 16px;
    }
}

@media (max-width: 420px) {
    .xbt-tour-card__actions {
        flex-direction: column;
    }

    .xbt-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .xbt-tour-card__media img,
    .xbt-btn {
        transition: none;
    }

    .xbt-tour-card:hover .xbt-tour-card__media img,
    .xbt-btn:hover {
        transform: none;
    }
}

/* Home featured tours layout. */
.xbt-home-featured-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

.xbt-home-featured-copy {
    max-width: 760px;
}

.xbt-home-featured-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #b77a50;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.xbt-home-featured-head h2 {
    margin: 0;
    color: #342217;
    font-size: clamp(29px, 3.2vw, 43px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.7px;
}

.xbt-home-featured-head p {
    max-width: 620px;
    margin: 11px 0 0;
    color: #77685e;
    font-size: 15px;
    line-height: 1.65;
}

.xbt-home-featured-more {
    display: inline-flex;
    min-height: 46px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 19px;
    border: 1px solid #6f4b32;
    border-radius: 10px;
    background: #6f4b32;
    color: #fffdf9;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.xbt-home-featured-more:hover,
.xbt-home-featured-more:focus {
    border-color: #342217;
    background: #342217;
    color: #fff;
    transform: translateY(-2px);
}

.xbt-home-featured-more i {
    transition: transform 0.2s ease;
}

.xbt-home-featured-more:hover i,
.xbt-home-featured-more:focus i {
    transform: translateX(3px);
}

.ximbal-featured-carousel > .xbt-home-tour-card {
    flex: 0 0 calc(33.333% - 14px);
    scroll-snap-align: start;
}

@media (max-width: 991.98px) {
    .ximbal-featured-carousel > .xbt-home-tour-card {
        flex-basis: calc(50% - 10px);
    }
}

@media (max-width: 767.98px) {
    .xbt-home-featured-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 24px;
    }

    .xbt-home-featured-more {
        align-self: flex-end;
    }

    .ximbal-featured-carousel > .xbt-home-tour-card {
        flex-basis: 88%;
    }
}

@media (max-width: 420px) {
    .xbt-home-featured-more {
        width: 100%;
    }
}
