.hero-search {
    position: relative;
    width: 100%;
    text-align: center;
}

.hero-search__form {
    display: inline-block;
    width: 90vw;
    max-width: 100%;
}

.hero-search__bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    min-height: auto;
    padding: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    color: #000;
}

.hero-search__field {
    position: relative;
    width: 100%;
}

.hero-search__field--search input {
    width: 100%;
    height: 50px;
    padding: 0 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    color: #000;
    background: #fff;
}

.hero-search__field--search input:focus {
    outline: 1px solid #000;
}

.hero-search__dropdown {
    position: relative;
    width: 100%;
}

.hero-search__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 50px;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    text-align: left;
}

.hero-search__trigger:focus {
    outline: none;
    box-shadow: 0 0 0 1px #000;
}

.hero-search__trigger-label {
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.hero-search__trigger-label svg {
    flex-shrink: 0;
}

.hero-search__chevron {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    flex-shrink: 0;
}

.hero-search__menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 50;
    max-height: 240px;
    overflow-y: auto;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: none;
}

.hero-search__dropdown.is-open .hero-search__menu {
    display: block;
}

.hero-search__option {
    padding: 10px 12px;
    font-size: 0.95rem;
    color: #000;
    cursor: pointer;
}

.hero-search__option:hover,
.hero-search__option.is-selected {
    background: #f5f5f5;
}

.hero-search__native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-search__submit {
    width: 100%;
    min-height: 50px;
    border: none;
    border-radius: 12px;
    background: #000;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.hero-search__submit:hover:not(:disabled) {
    background: #222;
}

.hero-search__submit:disabled {
    background: #D51C39;
    color: #fff;
    cursor: default;
    opacity: 1;
}

.hero-search__no-results {
    display: none;
    margin-top: 1.5rem;
    padding: 1rem;
    text-align: center;
    color: #666;
    font-size: 1rem;
}

.hero-search__no-results.is-visible {
    display: block;
}

.property-grid-wrap .hero-search__no-results {
    grid-column: 1 / -1;
    width: 100%;
}

@media only screen and (min-width: 992px) {
    .hero-search__form {
        width: 53vw;
    }

    .hero-search__bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        min-height: 60px;
        padding: 0;
    }

    .hero-search__field {
        width: 25%;
        height: 100%;
    }

    .hero-search__field--search {
        width: 25%;
    }

    .hero-search__field--property {
        width: 25%;
    }

    .hero-search__field--search input {
        height: 100%;
        min-height: 60px;
        border: 0;
        border-radius: 0;
    }

    .hero-search__dropdown {
        height: 100%;
    }

    .hero-search__trigger {
        min-height: 60px;
        height: 100%;
        border: 0;
        border-radius: 0;
        padding-left: 8px;
    }

    .hero-search__field--location .hero-search__trigger {
        margin-left: 8px;
    }

    .hero-search__submit {
        width: 25%;
        min-height: 60px;
        height: 100%;
        border-radius: 0 12px 12px 0;
    }
}

.home-banner .search-filter-wrap {
    max-width: none;
    width: 100%;
}

.property-listing-banner .search-filter-wrap .hero-search {
    text-align: left;
}

.property-listing-banner .search-filter-wrap .hero-search__form {
    width: 100%;
    max-width: 720px;
}

@media only screen and (min-width: 992px) {
    .property-listing-banner .search-filter-wrap .hero-search__form {
        width: 100%;
        max-width: 720px;
    }
}
