/* ==========================================================================
   For-Sale Search Shell
   Target look: single rounded-pill row with separators and icon actions.
   ========================================================================== */

/* WPL mapview hard-caps search width at 1000px; remove for Alloy listings shell. */
body.wpl_property_listing #wpl_property_listing_container.wpl-property-listing-mapview .wpl_search_from_box,
body.wpl_property_listing #wpl_property_listing_container.alloy-map-active .wpl_search_from_box {
    max-width: none !important;
    width: 100% !important;
}

body.wpl_property_listing .wpl_property_listing_container.wpl-property-listing-mapview .wpl_search_from_box,
body.wpl_property_listing .wpl_property_listing_container.wpl-property-listing-mapview .wpl_search_widget_container,
body.wpl_property_listing .wpl_property_listing_container.alloy-map-active .wpl_search_from_box,
body.wpl_property_listing .wpl_property_listing_container.alloy-map-active .wpl_search_widget_container,
body.wpl_property_listing #wpl_property_listing_container.wpl-property-listing-mapview .wpl_search_widget_container,
body.wpl_property_listing #wpl_property_listing_container.alloy-map-active .wpl_search_widget_container {
    max-width: none !important;
    width: 100% !important;
}

.wpl_property_listing_container.wpl-property-listing-mapview .wpl_search_from_box,
#wpl_property_listing_container.wpl-property-listing-mapview .wpl_search_from_box,
#wpl_property_listing_container.alloy-map-active .wpl_search_from_box,
#wpl_property_listing_container.wpl-property-listing-mapview form.wpl_search_from_box,
#wpl_property_listing_container.alloy-map-active form.wpl_search_from_box {
    max-width: none !important;
    width: 100% !important;
}

/* Hide default WPL search widget title */
.widget_wpl_search_widget .widget-title,
.widget_wpl_search_widget .widget-title h1,
.widget_wpl_search_widget .widget-title h2,
.widget_wpl_search_widget .widget-title h3,
.widget_wpl_search_widget .widget-title h4,
.widget_wpl_search_widget .widget-title h5,
.widget_wpl_search_widget .widget-title h6 {
    display: none;
}

/* Keep More/Fewer options toggle on one line */
.more_search_option {
    display: none;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .more_search_option {
    flex-wrap: nowrap;
    white-space: nowrap;
    text-wrap: nowrap;
    word-break: keep-all;
    min-height: 22px;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .more_search_option > * {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

#wpl_default_search_7 .alloy-wpl-search-shell {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: none;
    margin: 0 auto 1.5rem;
    padding: 4px;
    border: 1px solid #cfd4da;
    border-radius: 9999px;
    background: #fff;
}

#wpl_default_search_7 #wpl7_search_field_container_41 {
    flex: 1 1 34%;
    min-width: 220px;
    margin: 0;
    padding: 0 1rem 0 0.875rem;
    border-right: 1px solid #d7dce1;
}

#wpl_default_search_7 #wpl7_search_widget_location_level_container_advanced_location_text {
    position: relative;
}

#wpl_default_search_7 #wpl7_search_widget_location_level_container_advanced_location_text::before {
    content: "";
    position: absolute;
    left: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("/wp-content/themes/wpl_twentyeight/wplhtml/frontend/property_listing/assets/css/icons/home.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

#wpl_default_search_7 #sf7_advancedlocationtextsearch {
    height: 46px;
    margin: 0;
    padding-left: 2.15rem;
    border: 0;
    border-right: 0;
    box-shadow: none;
    outline: none;
    font-size: 1rem;
    font-weight: 400;
    color: #1f2937;
    background: transparent;
}

#wpl_default_search_7 .city-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

#wpl_default_search_7 .db-cities {
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 1.5rem 0 0.125rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    font-size: 1rem;
    font-weight: 400;
    color: #111827;
    background: transparent;
    font-family: var(--body-font);
}

/* Chosen.js skin for restored city dropdown so it matches the search shell. */
#wpl_default_search_7 .city-wrapper #show-cities_chosen {
    width: 100% !important;
    min-width: 0;
    display: block;
}

#wpl_default_search_7 .city-wrapper #show-cities_chosen .chosen-single {
    height: 46px;
    padding: 0 1.75rem 0 0.125rem;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
    color: #111827;
    font-size: 1rem;
    font-weight: 400;
    line-height: 46px;
}

#wpl_default_search_7 .city-wrapper #show-cities_chosen .chosen-single div {
    right: 0.15rem;
    width: 1rem;
}

#wpl_default_search_7 .city-wrapper #show-cities_chosen .chosen-single div b {
    background-position: 0 12px;
}

#wpl_default_search_7 .city-wrapper #show-cities_chosen .chosen-drop {
    margin-top: 0.25rem;
    border: 1px solid #d1d5db;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
    background: #fff;
}

#wpl_default_search_7 .city-wrapper #show-cities_chosen .chosen-search {
    padding: 0.5rem;
}

#wpl_default_search_7 .city-wrapper #show-cities_chosen .chosen-search input[type="text"] {
    height: 2.25rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: none;
    font-size: 0.9375rem;
}

#wpl_default_search_7 .city-wrapper #show-cities_chosen .chosen-results {
    max-height: 320px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#wpl_default_search_7 .city-wrapper #show-cities_chosen .chosen-results li {
    margin: 0;
    padding: 10px 14px;
    border-top: 1px solid #eef1f4;
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.2;
    color: #111827;
    background: #fff;
    list-style: none;
    background-image: none;
    margin-left: 0;
    cursor: pointer;
}

#wpl_default_search_7 .city-wrapper #show-cities_chosen .chosen-results li:first-child {
    border-top: 0;
}

#wpl_default_search_7 .city-wrapper #show-cities_chosen .chosen-results li.highlighted {
    background: #f3f9fe;
    color: #111827;
}

#wpl_default_search_7 .city-wrapper #show-cities_chosen .chosen-results li.result-selected {
    background: #f3f9fe;
    color: #111827;
}

#wpl_default_search_7 .city-wrapper #show-cities_chosen .chosen-results li::before,
#wpl_default_search_7 .city-wrapper #show-cities_chosen .chosen-results li::after,
#wpl_default_search_7 .city-wrapper #show-cities_chosen .chosen-results li::marker {
    content: none;
    display: none;
}

body.wpl_property_listing #wpl_default_search_7 .city-wrapper .chosen-container .chosen-drop ul,
body.wpl_property_listing #wpl_default_search_7 .city-wrapper .chosen-container .chosen-drop li,
body.wpl_property_listing #wpl_default_search_7 .city-wrapper .chosen-container .chosen-results,
body.wpl_property_listing #wpl_default_search_7 .city-wrapper .chosen-container .chosen-results li {
    list-style: none;
}

body.wpl_property_listing #wpl_default_search_7 .city-wrapper .chosen-container .chosen-results li.active-result,
body.wpl_property_listing #wpl_default_search_7 .city-wrapper .chosen-container .chosen-results li.group-option,
body.wpl_property_listing #wpl_default_search_7 .city-wrapper .chosen-container .chosen-results li.result-selected {
    margin: 0;
    padding: 10px 14px;
    border-top: 1px solid #eef1f4;
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.2;
    color: #111827;
    background: #fff;
}

body.wpl_property_listing #wpl_default_search_7 .city-wrapper .chosen-container .chosen-results li.active-result.highlighted,
body.wpl_property_listing #wpl_default_search_7 .city-wrapper .chosen-container .chosen-results li.group-option.highlighted,
body.wpl_property_listing #wpl_default_search_7 .city-wrapper .chosen-container .chosen-results li.result-selected.highlighted {
    background: #f3f9fe;
    color: #111827;
}

body.wpl_property_listing #wpl_default_search_7 .city-wrapper .chosen-container .chosen-drop li::before,
body.wpl_property_listing #wpl_default_search_7 .city-wrapper .chosen-container .chosen-drop li::after,
body.wpl_property_listing #wpl_default_search_7 .city-wrapper .chosen-container .chosen-drop li::marker,
body.wpl_property_listing #wpl_default_search_7 .city-wrapper .chosen-container .chosen-results li::before,
body.wpl_property_listing #wpl_default_search_7 .city-wrapper .chosen-container .chosen-results li::after,
body.wpl_property_listing #wpl_default_search_7 .city-wrapper .chosen-container .chosen-results li::marker {
    content: none;
    display: none;
}

#wpl_default_search_7 .city-wrapper input[type="text"] {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    background: transparent;
}

#wpl_default_search_7 .city-arrow {
    top: 50%;
    right: 0.15rem;
    transform: translateY(-50%);
}

#wpl_default_search_7 .city-arrow svg {
    width: 14px;
    height: 14px;
}

/* Native city select fallback (when Chosen is not active): force full-size inline field. */
#wpl_default_search_7 .alloy-wpl-search-shell .city-wrapper select#show-cities,
:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell .city-wrapper select#show-cities {
    display: block;
    width: 100%;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 0 1.65rem 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    font-family: var(--body-font);
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 48px;
    color: #111827;
}

/* Remove custom overlay arrow to avoid double arrows across native/chosen states. */
#wpl_default_search_7 .alloy-wpl-search-shell .city-wrapper .city-arrow,
:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell .city-wrapper .city-arrow {
    display: none;
}

#wpl_default_search_7 .wpl_search_field_controls {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0 1rem;
    border-right: 1px solid #d7dce1;
}

#wpl_default_search_7 .wpl_search_field_controls .advanced-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: auto;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1;
    top: 0;
}

#wpl_default_search_7 .wpl_search_field_controls .alloy-adv-trigger-icon-wrap {
    margin-right: 0.125rem;
}

#wpl_default_search_7 .search_submit_box {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding-left: 0.625rem;
    background: transparent;
}

#wpl_default_search_7 .search_submit_box::after {
    content: none;
}

#wpl_default_search_7 .search-icon-btn {
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 9999px;
    background: var(--alloy-button-bg, var(--brand-primary));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: filter 120ms ease;
}

#wpl_default_search_7 .search-icon-btn:hover {
    filter: brightness(0.94);
}

#wpl_default_search_7 #wpl_search_widget_submit7 img {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
}

@media (max-width: 991px) {
    #wpl_default_search_7 .alloy-wpl-search-shell {
        flex-wrap: wrap;
        border-radius: 1rem;
        padding: 0.75rem;
    }

    #wpl_default_search_7 #wpl7_search_field_container_41,
    #wpl_default_search_7 .city-wrapper,
    #wpl_default_search_7 .wpl_search_field_controls {
        flex: 1 1 100%;
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
        padding: 0;
    }

    #wpl_default_search_7 .search_submit_box {
        flex: 1 1 100%;
        justify-content: flex-end;
        padding-left: 0;
        padding-top: 0.5rem;
    }
}

/* Keep Advanced panel as a true overlay modal even when nested in the shell row. */
#wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    z-index: 9999;
}

#wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal .advanced-price-inner {
    width: min(640px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    margin: 0;
    padding: 1.5rem 1.5rem 1.5rem;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.26);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal .more-filters {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 0 1.25rem;
    padding: 0 2rem 0.75rem 0;
    border-bottom: 1px solid #d1d5db;
}

#wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal .adv-title {
    margin: 0;
    font-family: var(--body-font);
    font-size: 1.125rem;
    line-height: 1.1;
    font-weight: 600;
    color: #111827;
}

#wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal .close-advanced-btn {
    position: absolute;
    top: 0.125rem;
    right: 0;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-family: var(--body-font);
    font-size: 2.125rem;
    line-height: 1;
    font-weight: 400;
    color: #111827;
    cursor: pointer;
    appearance: none;
}

#wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal .close-advanced-btn:hover {
    color: #374151;
}

#wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal .close-advanced-btn:focus {
    outline: none;
}

#wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal .adv-fields {
    display: flex;
    flex-direction: column;
    gap: 1.375rem;
}

#wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal .listing-search-filters {
    width: 100%;
}

#wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal .searchbar-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

#wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal .adv-fields h4 {
    margin: 0 0 0.625rem;
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.1;
    font-weight: 600;
    color: #111827;
}

#wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal .wpl_search_field_container {
    margin: 0;
}

#wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal .wpl_search_field_container select,
#wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal .wpl_search_field_container input[type="text"],
#wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal .wpl_search_field_container input[type="number"] {
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 0;
    box-shadow: none;
    font-size: 1rem;
    color: #111827;
    background: #fff;
}

#wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal .wpl_search_field_container input::placeholder {
    color: #4b5563;
}

#wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal .adv-search-submit-box {
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0;
}

#wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal .adv-search-btn {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: var(--alloy-button-bg, var(--brand-primary));
    color: var(--alloy-button-text, #fff);
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
    #wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal .advanced-price-inner {
        width: calc(100vw - 1rem);
        padding: 1rem;
    }

    #wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal .adv-title {
        font-size: 1rem;
    }

    #wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal .adv-fields h4 {
        font-size: 0.9375rem;
    }

    #wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal .searchbar-head {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    #wpl_default_search_7 .alloy-wpl-search-shell .advanced-price-controls-modal .adv-search-btn {
        height: 42px;
        font-size: 0.9375rem;
    }
}

/* Final visual pass: align the Advanced modal to target art direction. */
#advanced-price-controls.advanced-price-controls-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    z-index: 9999;
}

#advanced-price-controls .advanced-price-inner {
    width: min(700px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: 1.5rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
}

#advanced-price-controls .more-filters {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 0 1.25rem;
    padding: 0 2rem 0.8rem 0;
    border-bottom: 1px solid #d1d5db;
}

#advanced-price-controls .adv-title {
    margin: 0;
    font-family: var(--body-font);
    font-size: 1.125rem;
    line-height: 1.1;
    font-weight: 600;
    color: #111827;
}

#advanced-price-controls .close-advanced-btn {
    position: absolute;
    top: -0.125rem;
    right: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    appearance: none;
    font-family: var(--body-font);
    font-size: 2.25rem;
    line-height: 1;
    color: #111827;
    cursor: pointer;
}

#advanced-price-controls .adv-fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

#advanced-price-controls .listing-search-filters {
    width: 100%;
}

#advanced-price-controls .searchbar-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

#advanced-price-controls .adv-fields h4 {
    margin: 0 0 0.625rem;
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.1;
    font-weight: 600;
    color: #111827;
}

#advanced-price-controls .wpl_search_field_container {
    margin: 0;
}

#advanced-price-controls .wpl_search_field_container select,
#advanced-price-controls .wpl_search_field_container input[type="text"],
#advanced-price-controls .wpl_search_field_container input[type="number"] {
    height: 42px;
    border: 1px solid #d1d5db;
    box-shadow: none;
    outline: none;
    font-size: 1rem;
    color: #111827;
    background: #fff;
}

/* Match screenshot: sqft min/max look more pill-like than price row selects. */
#advanced-price-controls #wpl7_search_field_container_10 input[type="number"] {
    border-radius: 10px;
}

/* --------------------------------------------------------------------------
   Agents search widget (ID 10) – screenshot-matched pill row.
   -------------------------------------------------------------------------- */
#wpl_searchwidget_10 {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto 1rem;
}

#wpl_searchwidget_10 .wpl_search_from {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 66px;
    padding: 6px 8px;
    border: 1px solid #bfc6ce;
    border-radius: 9999px;
    background: #fff;
}

#wpl_searchwidget_10 .wpl_search_fields {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0 1.25rem;
    border-right: 1px solid #bfc6ce;
}

#wpl_searchwidget_10 .wpl_search_fields.locations {
    flex: 3.2 1 0;
    min-width: 560px;
    padding-left: 1rem;
}

/* Elite Agents first field: keep this column wide and unconstrained. */
#wpl_searchwidget_10 #wpl10_search_field_container_911 {
    width: 100%;
    max-width: none;
}

#wpl_searchwidget_10 .wpl_search_fields.locations {
    flex: 4.5 1 0;
    min-width: 680px;
}

#wpl_searchwidget_10 .wpl_search_fields.text {
    flex: 1 1 0;
    min-width: 100px;
}

/* In case name fields are still present from cached markup, hide them. */
#wpl_searchwidget_10 .wpl_search_fields.text:nth-of-type(2),
#wpl_searchwidget_10 .wpl_search_fields.text:nth-of-type(3) {
    display: none;
}

/* Company field should stay visible and not sit under the submit icon. */
#wpl_searchwidget_10 .wpl_search_fields.text:last-of-type {
    flex: 1.4 1 0;
    min-width: 180px;
    padding-right: 0.75rem;
}

#wpl_searchwidget_10 .wpl_search_field_container_902 {
    min-width: 170px;
}

#wpl_searchwidget_10 .wpl_search_field_container {
    margin: 0;
}

#wpl_searchwidget_10 .wpl_search_field_container label {
    display: none;
}

#wpl_searchwidget_10 .wpl_search_field_container input[type="text"] {
    width: 100% !important;
    max-width: none !important;
    height: 52px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    color: #0f172a;
    font-size: 1rem;
    line-height: 52px;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    vertical-align: middle;
    display: block;
}

#wpl_searchwidget_10 .wpl_search_field_container input[type="text"]::placeholder {
    color: #0f172a;
    opacity: 1;
}

#wpl_searchwidget_10 #wpl10_search_widget_location_level_container_advanced_location_text {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 52px;
    width: 100%;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#wpl_searchwidget_10 #wpl10_search_widget_location_level_container_advanced_location_text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4.438 8-11a8 8 0 1 0-16 0c0 6.562 8 11 8 11Z'/%3E%3Ccircle cx='12' cy='11' r='3'/%3E%3C/svg%3E");
    pointer-events: none;
}

#wpl_searchwidget_10 #sf10_advancedlocationtextsearch {
    padding-left: 1.9rem;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* WPL location field can carry plugin styles; lock it to pill-row sizing. */
#wpl_searchwidget_10 input.wpl_search_widget_location_textsearch,
#wpl_searchwidget_10 #sf10_advancedlocationtextsearch {
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 0 0 0 2rem !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.96rem !important;
    line-height: 1.2 !important;
    font-weight: 400;
    display: block;
}

#wpl_searchwidget_10 #sf10_advancedlocationtextsearch::placeholder {
    font-size: 0.96rem;
    line-height: 1.2;
    white-space: nowrap;
}

#wpl_searchwidget_10 .search_submit_box {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 2px 0 0.75rem;
    border: 0;
    background: transparent !important;
}

#wpl_searchwidget_10 .search_submit_box::before,
#wpl_searchwidget_10 .search_submit_box::after {
    content: none !important;
    display: none !important;
}

#wpl_searchwidget_10 .wpl_search_widget_submit {
    width: 54px;
    height: 54px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background-color: var(--alloy-button-bg, var(--brand-primary));
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    box-shadow: none !important;
    color: transparent;
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

@media (max-width: 1100px) {
    #wpl_searchwidget_10 .wpl_search_field_container input[type="text"] {
        font-size: 0.95rem;
    }
}

@media (max-width: 900px) {
    #wpl_searchwidget_10 .wpl_search_from {
        flex-wrap: wrap;
        border-radius: 1rem;
        padding: 0.625rem;
        gap: 0.375rem;
    }

    #wpl_searchwidget_10 .wpl_search_fields {
        flex: 1 1 100%;
        padding: 0;
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
    }

    #wpl_searchwidget_10 .wpl_search_fields.locations {
        flex-basis: 100%;
        min-width: 0;
        padding-left: 0;
    }

    #wpl_searchwidget_10 .search_submit_box {
        width: 100%;
        padding: 0.25rem 0 0;
        display: flex;
        justify-content: flex-end;
    }
}

#advanced-price-controls .adv-search-submit-box {
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0;
}

#advanced-price-controls .adv-search-btn {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: var(--alloy-button-bg, var(--brand-primary));
    color: var(--alloy-button-text, #fff);
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
    #advanced-price-controls .advanced-price-inner {
        width: calc(100vw - 1rem);
        padding: 1rem;
    }

    #advanced-price-controls .adv-title {
        font-size: 1rem;
    }

    #advanced-price-controls .adv-fields h4 {
        font-size: 0.9375rem;
    }

    #advanced-price-controls .searchbar-head {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    #advanced-price-controls .adv-search-btn {
        height: 42px;
        font-size: 0.9375rem;
    }
}

/* Final search-bar polish (generic for any WPL search widget id). */
:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell {
    width: 100%;
    max-width: none;
    min-height: 74px;
    padding: 4px 6px;
    border-color: #c8ced6;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell [id$="_search_field_container_41"] {
    display: flex;
    align-items: center;
    flex: 1 1 41%;
    min-width: 260px;
    padding: 0 1rem 0 1.25rem;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell [id*="_search_widget_location_level_container_advanced_location_text"] {
    width: 100%;
    position: relative;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell [id*="_search_widget_location_level_container_advanced_location_text"]::before {
    left: 0;
    width: 18px;
    height: 18px;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell input[id$="_advancedlocationtextsearch"] {
    width: 100%;
    height: 48px;
    padding-left: 2.05rem;
    font-size: 1.0625rem;
    font-weight: 500;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell .city-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1 1 24%;
    min-width: 180px;
    padding: 0 1.1rem;
    border: 0;
    background: transparent;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell .city-suggest-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 60;
    max-height: 260px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: 0 14px 26px rgba(17, 24, 39, 0.14);
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell .city-suggest-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 0;
    border-top: 1px solid #eef1f4;
    background: #ffffff;
    color: #111827;
    text-align: left;
    font-family: var(--body-font);
    font-size: 0.98rem;
    line-height: 1.2;
    cursor: pointer;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell .city-suggest-item:first-child {
    border-top: 0;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell .city-suggest-item:hover,
:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell .city-suggest-item:focus {
    background: #f3f9fe;
    color: #111827;
    outline: none;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell #show-cities {
    width: 100%;
    height: 48px;
    padding: 0 1.35rem 0 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    outline: none;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    font-size: 1.0625rem;
    font-weight: 500;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell #show-cities::-ms-expand {
    display: none;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell #show-cities_chosen .chosen-single {
    height: 48px;
    line-height: 48px;
    font-size: 1.0625rem;
    font-weight: 500;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell [id$="_search_field_container_911"] {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell #show-cities,
:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell #show-cities_chosen,
:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell .city-wrapper .chosen-container {
    width: 100% !important;
    min-width: 0;
}

/* Only keep one arrow when Chosen enhances the city select. */
:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell .city-wrapper:has(#show-cities_chosen) .city-arrow {
    display: none;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell .city-arrow {
    right: 0.05rem;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell .city-arrow svg {
    width: 15px;
    height: 15px;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell .wpl_search_field_controls {
    flex: 1 1 24%;
    min-width: 180px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: stretch;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell .wpl_search_field_controls .advanced-btn {
    width: 100%;
    min-width: 0;
    height: 48px;
    font-size: 1.0625rem;
    font-weight: 500;
    justify-content: center;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell .search_submit_box {
    padding-left: 0.8rem;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell .search-icon-btn {
    width: 56px;
    height: 56px;
    border-radius: 9999px;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .alloy-wpl-search-shell .search-icon-btn img {
    width: 24px;
    height: 24px;
}

/* Dropdown cleanup: WPL autocomplete + city picker */
body > ul.ui-autocomplete.ui-menu,
ul.ui-autocomplete.ui-menu.ui-widget.ui-widget-content {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 0 0 10px 10px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10050;
}

ul.ui-autocomplete.ui-menu > li {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.ui-autocomplete.ui-menu > li::marker,
ul.ui-autocomplete.ui-menu > li::before {
    content: none;
    display: none;
}

ul.ui-autocomplete.ui-menu > li.ui-autocomplete-category {
    padding: 10px 14px;
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    background: var(--brand-primary);
}

ul.ui-autocomplete.ui-menu > li.ui-menu-item {
    padding: 10px 14px;
    border-top: 1px solid #eef1f4;
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.2;
    color: #111827;
    background: #fff;
}

ul.ui-autocomplete.ui-menu > li.ui-menu-item.ui-state-focus,
ul.ui-autocomplete.ui-menu > li.ui-menu-item:hover {
    background: #f3f9fe;
    color: #111827;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .cities-dropdown {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 0 0 10px 10px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
    max-height: 320px;
    overflow-y: auto;
    z-index: 10050;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .cities-dropdown > li {
    list-style: none;
    margin: 0;
    padding: 10px 14px;
    border-top: 1px solid #eef1f4;
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.2;
    color: #111827;
    background: #fff;
    cursor: pointer;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .cities-dropdown > li::before,
:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .cities-dropdown > li::after,
:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .cities-dropdown > li::marker {
    content: none;
    display: none;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .cities-dropdown > li:first-child {
    border-top: 0;
}

:is(#wpl_default_search_7, [id^="wpl_default_search_"]) .cities-dropdown > li:hover {
    background: #f3f9fe;
}
