.ys-featured-listings-grid .listivo-listing-carousel-with-tabs-v2__content {
    margin-top: 34px;
}

.ys-featured-listings-grid .listivo-listing-carousel-with-tabs-v2__content > .listivo-swiper-container {
    width: 100%;
    padding: 5px 5px 10px;
    margin: -5px -5px -10px;
    overflow: hidden;
}

.ys-featured-listings-grid .listivo-listing-carousel-with-tabs-v2__content > .listivo-swiper-container > .listivo-swiper-wrapper {
    align-items: stretch;
}

.ys-featured-listings-grid .listivo-listing-carousel-with-tabs-v2__content > .listivo-swiper-container > .listivo-swiper-wrapper > .ys-featured-listings-grid__slide {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 22px;
    height: auto;
}

.ys-featured-listings-grid__item {
    min-width: 0;
}

@media (max-width: 1024px) {
    .ys-featured-listings-grid .listivo-listing-carousel-with-tabs-v2__content > .listivo-swiper-container > .listivo-swiper-wrapper > .ys-featured-listings-grid__slide {
        gap: 20px;
    }
}

.ys-featured-listing-card {
    width: 100%;
    height: auto;
    max-height: 230px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: #e9eef2;
    box-shadow: 0 8px 24px rgba(22, 37, 49, .11);
    isolation: isolate;
    transform: translateY(0);
    transition: transform .22s ease, box-shadow .22s ease;
}

.ys-featured-listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(22, 37, 49, .16) !important;
}

.ys-featured-listing-card .listivo-listing-card-v3__gallery,
.ys-featured-listing-card .listivo-listing-card-v3__gallery > div,
.ys-featured-listing-card .listivo-listing-card-v3__gallery > lst-card-gallery,
.ys-featured-listing-card .listivo-listing-card-v3__gallery > lst-card-gallery > div,
.ys-featured-listing-card .listivo-listing-card-v3__gallery .listivo-swiper-container,
.ys-featured-listing-card .listivo-listing-card-v3__gallery .listivo-swiper-wrapper,
.ys-featured-listing-card .listivo-listing-card-v3__gallery .listivo-swiper-slide {
    width: 100%;
    height: 100%;
}

.ys-featured-listing-card .listivo-listing-card-v3__gallery {
    position: absolute;
    inset: 0;
    border-radius: 16px;
}

.ys-featured-listing-card .listivo-listing-card-v3__gallery .listivo-swiper-container {
    transform: none;
}

.ys-featured-listing-card .listivo-listing-card-v3__gallery img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}

.ys-featured-listing-card .listivo-listing-card-v3__gallery::before,
.ys-featured-listing-card .listivo-listing-card-v3__body,
.ys-featured-listing-card .listivo-listing-card-v3__pagination,
.ys-featured-listing-card .listivo-listing-card-v3__prev-holder,
.ys-featured-listing-card .listivo-listing-card-v3__next-holder,
.ys-featured-listing-card .listivo-listing-card-v3__prev,
.ys-featured-listing-card .listivo-listing-card-v3__next {
    display: none !important;
}

.ys-featured-listing-card__brand {
    position: absolute;
    z-index: 25;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 72%;
    height: 50px;
    padding: 6px 11px 6px 6px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .38);
    color: #233d52;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .13);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(5px);
}

.ys-featured-listing-card__brand img {
    display: block;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.ys-featured-listing-card__brand-placeholder {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffb323;
    color: #182f42;
    font-size: 16px;
}

.ys-featured-listing-card__brand-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ys-featured-listing-card .listivo-listing-card-v3__featured,
.ys-featured-listing-card .listivo-listing-card-v3__labels {
    right: 14px;
    left: auto;
    top: 14px;
    max-width: 42%;
    justify-content: flex-end;
}

.ys-featured-listing-card__overlay {
    position: absolute;
    z-index: 22;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 0;
    padding: 32px 18px 15px;
    gap: 8px;
    color: #fff;
    background: linear-gradient(
        180deg,
        rgba(5, 8, 10, 0) 0%,
        rgba(5, 8, 10, .42) 48%,
        rgba(5, 8, 10, .78) 100%
    );
    text-shadow: 0 1px 3px rgba(0, 0, 0, .38);
    pointer-events: none;
}

.ys-featured-listing-card__category,
.ys-featured-listing-card__location {
    display: flex;
    align-items: center;
    min-width: 0;
}

.ys-featured-listing-card__category {
    gap: 9px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.ys-featured-listing-card__meta-icon {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffb300;
    color: #172b3b;
    font-size: 14px;
}

.ys-featured-listing-card__location {
    gap: 11px;
    padding-left: 7px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
}

.ys-featured-listing-card__location > i {
    flex: 0 0 17px;
    width: 17px;
    color: #fff;
    font-size: 18px;
    text-align: center;
}

.ys-featured-listing-card__category > span:last-child,
.ys-featured-listing-card__location > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .ys-featured-listings-grid .listivo-listing-carousel-with-tabs-v2__content {
        margin-top: 24px;
    }

    .ys-featured-listing-card {
        max-height: 230px;
        border-radius: 12px;
    }

    .ys-featured-listings-grid .listivo-listing-carousel-with-tabs-v2__content > .listivo-swiper-container > .listivo-swiper-wrapper > .ys-featured-listings-grid__slide {
        gap: 12px;
    }

    .ys-featured-listing-card__brand {
        top: 8px;
        left: 8px;
        width: 40px;
        max-width: none;
        height: 40px;
        padding: 4px;
        border-radius: 50%;
    }

    .ys-featured-listing-card__brand img {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .ys-featured-listing-card__brand-placeholder {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .ys-featured-listing-card__brand-name {
        display: none;
    }

    .ys-featured-listing-card__overlay {
        padding: 22px 8px 8px;
        gap: 4px;
    }

    .ys-featured-listing-card__category {
        gap: 5px;
        font-size: 12px;
    }

    .ys-featured-listing-card__meta-icon {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .ys-featured-listing-card__location {
        gap: 5px;
        padding-left: 3px;
        font-size: 11px;
    }

    .ys-featured-listing-card__location > i {
        flex-basis: 17px;
        width: 17px;
        font-size: 14px;
    }
}
