/* Compact homepage hero: search first, swirls stay as background. */

.fm24-hero.listivo-hero-search-v7 {
    padding: 28px 0 36px;
}

@media (min-width: 1025px) {
    .fm24-hero.listivo-hero-search-v7 {
        padding: 32px 0 40px;
    }
}

.fm24-hero .listivo-hero-search-v7__content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.fm24-hero .listivo-hero-search-v7__form {
    max-width: 100%;
    margin: 0;
    padding: 12px;
}

.fm24-hero .fm24-hero__form-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
}

.fm24-hero .listivo-hero-search-v7__label {
    display: none;
}

.fm24-hero .listivo-hero-search-v7__fields {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 0 !important;
    display: block;
    grid-gap: 0;
}

.fm24-hero .listivo-hero-search-v7__fields lst-keyword-search-field,
.fm24-hero .listivo-hero-search-v7__fields .listivo-field-v2 {
    display: block;
    width: 100%;
    margin: 0;
}

.fm24-hero .listivo-hero-search-v7__fields .listivo-autocomplete-input {
    width: 100%;
}

.fm24-hero .listivo-hero-search-v7__button {
    flex: 0 0 auto;
    width: auto !important;
    height: 60px;
    min-height: 44px;
    min-width: 120px;
    margin-top: 0 !important;
    margin-left: 0;
    margin-right: 0;
    padding: 0 22px;
}

.fm24-hero .listivo-hero-search-v7__left {
    max-width: 100%;
    align-items: stretch;
    gap: 12px;
}

.fm24-hero .listivo-hero-search-v7__terms-container {
    width: 100%;
}

.fm24-hero .listivo-hero-search-v7__terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fm24-hero .listivo-hero-search-v7__term.fm24-hero__chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    margin: 0;
    border-radius: 999px;
    background: var(--e-global-color-lcolor5-op-1, rgba(255, 255, 255, 0.88));
    color: var(--e-global-color-lcolor1, inherit);
    box-shadow: none;
    text-decoration: none;
}

.fm24-hero .listivo-hero-search-v7__term.fm24-hero__chip .listivo-hero-search-v7__term-label {
    margin: 0;
    color: inherit;
}

.fm24-hero .listivo-hero-search-v7__term.fm24-hero__chip:hover,
.fm24-hero .listivo-hero-search-v7__term.fm24-hero__chip:focus-visible {
    background: var(--e-global-color-lprimary1, #3f71f0);
    color: #fff;
    outline: 2px solid var(--e-global-color-lprimary1, #3f71f0);
    outline-offset: 2px;
}

.home .listivo-breadcrumbs-widget {
    display: none;
}

@media (max-width: 767px) {
    .fm24-hero.listivo-hero-search-v7 {
        padding: 16px 0 24px;
    }

    .fm24-hero .fm24-hero__form-row {
        flex-wrap: wrap;
    }

    .fm24-hero .listivo-hero-search-v7__button {
        width: 100%;
    }
}

.home .elementor-section:has(.fm24-listing-carousel) {
    overflow-x: clip;
}

.home .elementor-section:has(.fm24-listing-carousel) .elementor-container,
.home .elementor-section:has(.fm24-listing-carousel) .elementor-widget-wrap,
.home .elementor-widget-lst_listing_carousel,
.home .elementor-widget-lst_listing_carousel .elementor-widget-container {
    overflow: visible;
}

.home .fm24-listing-carousel .listivo-listing-carousel__content {
    max-width: none !important;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: visible;
}

.home .fm24-listing-carousel .listivo-swiper,
.home .fm24-listing-carousel .listivo-swiper-container {
    overflow: visible;
}

.home .fm24-listing-carousel .listivo-swiper-slide {
    max-width: none;
}
