/* Apartaments slider card */
.experienceListingCard {
    display: flex;
    flex-direction: column;
    border-radius: var(--rounded-4);
    overflow: hidden;
    background-color: #fff;
    position: relative;
}

.experienceListingCard:not(:last-child) {
    margin-bottom: var(--size-8);
}

.experienceListingCard__left {
    background-color: #fff;
    padding: var(--size-6) var(--size-4);
    height: 100%;
    display: flex;
    flex-flow: column wrap;
    align-items: center;
}

.experienceListingCard__name {
    font-size: var(--text-base);
    font-family: var(--font-primary);
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1;
    text-align: center;
    position: relative;
    margin-top: -3rem;
    border-radius: var(--rounded-4);
    padding: var(--size-4);
    margin-bottom: 0;
    background-color: #fff;
    width: 95%;
}

.experienceListingCard__subtitle {
    font-size: var(--base);
    font-family: var(--font-primary);
    font-weight: bold;
}

.experienceListingCard__description {
    color: var(--text);
    text-align: center;
}


.experienceListingCard__btns {
    display: flex;
    margin-top: var(--size-6);
}

.experienceListingCard__btn-booking {
    background-color: var(--secondary);
    border-radius: var(--rounded-full);
    text-transform: uppercase;
    font-weight: bold;
    font-size: var(--text-sm);
    margin-bottom: 0;
    padding: var(--size-3) var(--size-6);
    border-radius: var(--rounded-full);
    transition: all .5s ease-out;
}

.experienceListingCard__btn-booking:hover {
    background-color: var(--primary);
    color: #fff;
    text-decoration: none;
}

button.experienceListingCard__btn-info {
    --duration: .5s;
    --timing: ease-out;
    font-size: var(--text-sm);
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-weight: bold;
    text-transform: uppercase;
    background-color: transparent;
    border: 2px solid var(--primary);
    transition: background-color var(--duration) var(--timing), color var(--duration) var(--timing);
    margin-bottom: 0;
}

.experienceListingCard__photo {
    border-radius: var(--rounded-4);
    display: flex;
    overflow: hidden;
    height: clamp(1rem, 55vw, 400px);
    position: relative;
}

.experienceListingCard__photo::after {
    --size: 90%;
    content: "";
    width: var(--size);
    height: var(--size);
    position: absolute;
    border: 1px solid #fff;
    border-radius: var(--rounded-3);
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 1;
}

.experienceListingCard__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experienceListingCard__gallery {
    --width: 90%;
    --padding: var(--size-4);
    position: absolute;
    bottom: -1rem;
    width: var(--width);
    border-radius: var(--rounded-4) var(--rounded-4) 0 0;
    padding: var(--padding);
    left: 0;
    right: 0;
    margin: 0 auto;
    background-color: #fff;
    overflow: hidden;
}

.experienceListingCard__gallery .gallery {
    --cols: 4;
    margin: 0;
    list-style: none;
    display: flex;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overflow: auto;
}

.experienceListingCard__gallery .gallery-item {
    --margin: var(--size-2);
    --cols: 4.5;
    --width: calc(100% / var(--cols));
    width: var(--width) !important;
    float: none;
    margin-bottom: 0 !important;
    display: flex;
    overflow: hidden;
    flex: none;
    scroll-snap-align: center;
}

.experienceListingCard__gallery .gallery-item .gallery-icon {
    width: 100% !important;
    margin: 0 5% !important;
}

.experienceListingCard__gallery .mask {
    display: none !important;
}

.experienceListingCard__gallery .gallery-item .image_frame:not(.no_link) img {
    height: 100% !important;
    object-fit: cover;
    border-radius: var(--rounded-2);
    margin-bottom: 0 !important;
}

.experienceListingCard__gallery__arrow {
    display: none;
}

@supports (aspect-ratio: auto) {
    .experienceListingCard__gallery .gallery-item .image_frame:not(.no_link) img {
        aspect-ratio: 16/12;
    }
}

@supports not (aspect-ratio: auto) {
    .experienceListingCard__gallery .gallery-item .image_frame:not(.no_link) img {
        --height: 3rem;
        height: var(--height) !important;
    }

    @media only screen and (min-width: 768px) {
        .experienceListingCard__gallery .gallery-item .image_frame:not(.no_link) img {
            --height: 5rem;
        }
    }

}

.experienceListingCard__right {
    position: relative;
}

@media only screen and (min-width: 768px) and (orientation: landscape) {
    .experienceListingCard {
        padding: var(--size-4);
    }
}

/* Responsive */
@media only screen and (min-width: 768px) and (orientation: portrait) {
    .experienceListingCard__left {
        padding: var(--size-8);
    }

    .experienceListingCard__btns {
        flex-direction: row;
        justify-content: flex-start;
    }

    button.experienceListingCard__btn-info {
        margin-bottom: 0;
    }

    .experienceListingCard__gallery .gallery-item {
        --cols: 5.5;
    }
}

@media only screen and (orientation: landscape) and (min-width: 992px) {
    .experienceListingCard {
        display: flex;
        background-color: transparent;
        align-items: center;
        overflow: visible;
    }

    .experienceListingCard::before {
        content: "";
        width: 70%;
        height: 100%;
        background-color: #fff;
        z-index: -1;
        position: absolute;
        border-radius: var(--rounded-4);
    }

    .experienceListingCard__left {
        background-color: transparent;
        padding: 0;
        width: 100%;
    }


    .experienceListingCard__right {
        flex-grow: 1;
        height: 85%;
    }

    .experienceListingCard__name {
        font-size: var(--text-base);
        width: 80%;
        padding: var(--size-6);
        margin-top: -2rem;
    }

    .experienceListingCard__btns {
        flex-flow: row nowrap;
    }

    .experienceListingCard__gallery .gallery-item {
        --cols: 4;
    }

    .experienceListingCard__gallery {
        display: flex;
        align-items: center;
        --padding: var(--size-6);
        bottom: -2rem;
    }

    .experienceListingCard__gallery .gallery {
        flex: 1;
        overflow: hidden;
    }

    button.experienceListingCard__btn-info {
        margin-bottom: 0;
    }

    button.experienceListingCard__gallery__arrow {
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        background-color: #fff !important;
        margin: 0;
    }

    button.experienceListingCard__gallery__arrow svg {
        height: var(--size-base);
        width: var(--size-base);
    }

    .experienceListingCard__description {
        padding: 0 var(--size-8);
    }

}

@media only screen and (min-width: 1366px) {

    .experienceListingCard:not(:last-child) {
        margin-bottom: 3rem;
    }
}