.amx-half-map-layout,
:root {
    --amx-list-card-pin-hover: var(--amx-sale-hover, #0a5d33);
    --amx-list-card-pin-hover-border: rgba(10, 93, 51, 0.92);
    --amx-list-card-pin-hover-lift: -2px;
    --amx-list-card-pin-hover-scale: 1.1;
    --amx-list-card-pin-hover-shadow: 0 14px 28px rgba(15, 23, 42, 0.24);
}

body.amx-mobile-sort-sheet-open {
    overflow: hidden;
    touch-action: none;
}

.amx-mobile-sort-sheet {
    align-items: flex-end;
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    visibility: hidden;
    z-index: 3450;
}

.amx-mobile-sort-sheet.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.amx-mobile-sort-sheet__backdrop {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(9px);
    inset: 0;
    position: absolute;
}

.amx-mobile-sort-sheet__panel {
    background: #ffffff;
    border: 1px solid rgba(218, 226, 236, 0.96);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -24px 70px rgba(15, 23, 42, 0.25);
    max-height: min(72dvh, 620px);
    overflow: hidden;
    padding: 18px 18px calc(env(safe-area-inset-bottom, 0px) + 18px);
    position: relative;
    transform: translateY(24px);
    transition: transform 0.24s ease;
    width: min(100%, 520px);
    z-index: 1;
}

.amx-mobile-sort-sheet.is-visible .amx-mobile-sort-sheet__panel {
    transform: translateY(0);
}

.amx-mobile-sort-sheet__header {
    align-items: center;
    border-bottom: 1px solid #e9eef6;
    display: flex;
    justify-content: space-between;
    padding-bottom: 14px;
}

.amx-mobile-sort-sheet__eyebrow {
    color: #0f766e;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.amx-mobile-sort-sheet__title {
    color: #0f172a;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0;
}

.amx-mobile-sort-sheet__close {
    align-items: center;
    background: #f6f8fb;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    color: #101828;
    cursor: pointer;
    display: inline-flex;
    font-size: 26px;
    height: 42px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 42px;
}

.amx-mobile-sort-sheet__body {
    display: flex;
    flex-direction: column;
    margin: 0 -18px;
    overflow-y: auto;
    padding-top: 8px;
}

.amx-mobile-sort-option {
    align-items: center;
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid #edf1f6;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    font-size: 17px;
    font-weight: 850;
    justify-content: space-between;
    letter-spacing: 0;
    line-height: 1.2;
    min-height: 58px;
    padding: 0 22px;
    text-align: left;
    width: 100%;
}

.amx-mobile-sort-option i {
    color: #0f766e;
    font-size: 14px;
    opacity: 0;
}

.amx-mobile-sort-option.is-selected {
    background: #eef8f6;
    color: #0f172a;
}

.amx-mobile-sort-option.is-selected i {
    opacity: 1;
}

.amx-mobile-sort-sheet__empty {
    color: #667085;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    padding: 24px 22px;
}

@media (max-width: 767.98px) {
    body.wpresidence_half_map_body_class {
        --amx-map-accent: var(--wp-estate-main-color-option, #dd3333);
        --amx-map-surface: rgba(255, 255, 255, 0.96);
        --amx-map-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
    }

    body.wpresidence_half_map_body_class .mobile_header {
        align-items: center;
        background: rgba(255, 255, 255, 0.96) !important;
        border-bottom: 1px solid #e4eaf2;
        display: flex !important;
        height: 64px !important;
        justify-content: space-between;
        padding: 0 11px !important;
        pointer-events: none;
        position: relative;
        z-index: 180;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user {
        align-items: center;
        display: inline-flex !important;
        height: 44px;
        justify-content: center;
        pointer-events: auto;
        width: 44px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell {
        background: rgba(255, 255, 255, 0.97) !important;
        border-bottom: 1px solid #e4eaf2;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
        margin-top: -64px;
        padding-left: 58px;
        padding-right: 76px;
        position: relative;
        z-index: 170;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1 {
        padding: 10px 0 12px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        column-gap: 8px;
        grid-template-columns: minmax(88px, 1fr) minmax(92px, 1fr) minmax(112px, 1.08fr);
        row-gap: 8px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper {
        grid-column: 1 / -1;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action {
        grid-column: 1;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control {
        display: flex !important;
        grid-column: 2;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save {
        grid-column: 3;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control {
        background: #ffffff !important;
        border: 1px solid #cfd8e6 !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        color: #111827 !important;
        font-size: 15px !important;
        font-weight: 750 !important;
        min-height: 44px;
        padding-left: 12px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        border-radius: 10px !important;
        box-shadow: none !important;
        font-size: 13px !important;
        min-height: 40px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-filter-button {
        background: #ffffff !important;
        border-color: #cfd8e6 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-filter-button.has-active-filters::after {
        background: #0f766e;
        border: 2px solid #ffffff;
        border-radius: 999px;
        content: "";
        height: 9px;
        position: absolute;
        right: 9px;
        top: 8px;
        width: 9px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        background: var(--wp-estate-main-color-option, #dd3333) !important;
        border-color: var(--wp-estate-main-color-option, #dd3333) !important;
    }

    .amx-mobile-filter-sheet,
    .amx-mobile-sort-sheet {
        z-index: 5000;
    }

    .amx-mobile-filter-sheet__backdrop,
    .amx-mobile-sort-sheet__backdrop {
        background: rgba(15, 23, 42, 0.52);
        backdrop-filter: blur(10px);
    }

    .amx-mobile-filter-sheet__panel {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        height: 100dvh;
        max-height: 100dvh;
        padding: calc(env(safe-area-inset-top, 0px) + 12px) 18px calc(env(safe-area-inset-bottom, 0px) + 14px);
        width: 100%;
    }

    .amx-mobile-filter-sheet__handle {
        margin-bottom: 14px;
    }

    .amx-mobile-filter-sheet__header {
        padding-bottom: 16px;
    }

    .amx-mobile-filter-sheet__eyebrow {
        color: #0f766e;
        font-size: 11px;
        font-weight: 900;
    }

    .amx-mobile-filter-sheet__title {
        color: #0f172a;
        font-size: 30px;
        font-weight: 900;
    }

    .amx-mobile-filter-sheet__body {
        gap: 0;
        padding: 0;
    }

    .amx-mobile-filter-field {
        background: transparent !important;
        border: 0 !important;
        border-bottom: 1px solid #e6ebf2 !important;
        border-radius: 0 !important;
        padding: 18px 0 !important;
    }

    .amx-mobile-filter-field::before {
        color: #344054;
        font-size: 13px;
        font-weight: 900;
        margin-bottom: 10px;
    }

    .amx-mobile-filter-field .dropdown.form-control,
    .amx-mobile-filter-field .wpresidence_dropdown,
    .amx-mobile-filter-field .wpestate-beds-baths-popoup-component,
    .amx-mobile-filter-field .wpestate-price-popoup-component,
    .amx-mobile-filter-field .wpestate-price-popoup-component_v3 {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .amx-mobile-filter-field .filter_menu_trigger,
    .amx-mobile-filter-field .dropdown-toggle,
    .amx-mobile-filter-field .form-control:not(.dropdown) {
        background: #f8fafc !important;
        border: 1px solid #d6deea !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        color: #111827 !important;
        font-size: 15px !important;
        font-weight: 750 !important;
        min-height: 48px !important;
        padding: 10px 14px !important;
    }

    .amx-mobile-filter-sheet .filter_menu.show,
    .amx-mobile-filter-sheet .dropdown-menu.show {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px !important;
        max-height: none !important;
        min-width: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        position: static !important;
        transform: none !important;
        width: 100% !important;
    }

    .amx-mobile-filter-sheet .filter_menu.show li,
    .amx-mobile-filter-sheet .dropdown-menu.show li {
        align-items: center;
        background: #ffffff;
        border: 1px solid #d6deea;
        border-radius: 999px;
        color: #1f2937;
        cursor: pointer;
        display: inline-flex;
        font-size: 13px;
        font-weight: 800;
        line-height: 1;
        min-height: 36px;
        padding: 0 13px;
    }

    .amx-mobile-filter-sheet__footer {
        background: #ffffff;
        gap: 10px;
        margin-left: -18px;
        margin-right: -18px;
        padding: 12px 18px 0;
    }

    .amx-mobile-filter-sheet__secondary,
    .amx-mobile-filter-sheet__apply {
        border-radius: 10px;
        height: 48px;
    }

    .amx-mobile-filter-sheet__apply {
        box-shadow: none;
    }

    .amx-mobile-sort-sheet {
        align-items: stretch;
    }

    .amx-mobile-sort-sheet__panel {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        max-height: 100dvh;
        min-height: 100dvh;
        padding: calc(env(safe-area-inset-top, 0px) + 16px) 18px calc(env(safe-area-inset-bottom, 0px) + 14px);
        width: 100%;
    }

    .amx-mobile-sort-sheet__body {
        flex: 1 1 auto;
    }

    .half_map_controllers_wrapper {
        align-items: center;
        background: rgba(255, 255, 255, 0.96) !important;
        border: 1px solid rgba(203, 213, 225, 0.92) !important;
        border-radius: 14px !important;
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18) !important;
        gap: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    .half_map_controllers_wrapper .half_mobile_toggle_map,
    .half_map_controllers_wrapper .half_mobile_toggle_listings,
    .half_map_controllers_wrapper .amx-mobile-dock-sort {
        align-items: center;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        color: #0f172a !important;
        cursor: pointer;
        display: inline-flex;
        font-family: var(--amx-map-font-family) !important;
        font-size: 14px !important;
        font-weight: 900 !important;
        gap: 8px;
        justify-content: center;
        letter-spacing: 0;
        line-height: 1 !important;
        margin: 0 !important;
        min-height: 44px !important;
        min-width: 86px !important;
        padding: 0 14px !important;
        width: auto !important;
    }

    .half_map_controllers_wrapper .half_mobile_toggle_map i,
    .half_map_controllers_wrapper .half_mobile_toggle_listings i,
    .half_map_controllers_wrapper .amx-mobile-dock-sort i {
        color: var(--wp-estate-main-color-option, #dd3333) !important;
        font-size: 15px !important;
    }

    .half_map_controllers_wrapper .half_mobile_toggle_map span,
    .half_map_controllers_wrapper .half_mobile_toggle_listings span,
    .half_map_controllers_wrapper .amx-mobile-dock-sort span {
        color: #0f172a !important;
        font-size: 14px !important;
        font-weight: 900 !important;
    }

    .half_map_controllers_wrapper[data-amx-mobile-mode="list"],
    .half_map_controllers_wrapper:not([data-amx-mobile-mode]) {
        min-width: 178px;
    }

    .half_map_controllers_wrapper[data-amx-mobile-mode="map"] {
        min-width: 92px;
    }

    .half_map_controllers_wrapper[data-amx-mobile-mode="list"] .amx-mobile-dock-sort,
    .half_map_controllers_wrapper:not([data-amx-mobile-mode]) .amx-mobile-dock-sort {
        border-left: 1px solid #e2e8f0 !important;
    }

    .half_map_controllers_wrapper[data-amx-mobile-mode="map"] .amx-mobile-dock-sort,
    .half_map_controllers_wrapper .amx-mobile-dock-sort[hidden] {
        display: none !important;
    }

    #gmapzoomplus,
    #gmapzoomminus {
        background: rgba(255, 255, 255, 0.95) !important;
        border-color: rgba(203, 213, 225, 0.92) !important;
        border-radius: 10px !important;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14) !important;
        height: 38px !important;
        width: 38px !important;
    }

    .loex-clear-button,
    .loex-draw-button {
        background: rgba(255, 255, 255, 0.96) !important;
        border-color: rgba(203, 213, 225, 0.92) !important;
        border-radius: 12px !important;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14) !important;
        color: #0f172a !important;
        font-size: 13px !important;
        font-weight: 900 !important;
        min-height: 38px !important;
        padding: 9px 13px !important;
    }

    .amx-map-count-chip {
        background: rgba(15, 23, 42, 0.88);
        border-color: rgba(255, 255, 255, 0.6);
        border-radius: 12px;
        font-weight: 900;
        height: 38px;
        min-width: 104px;
    }

    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode .mobile_header,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode .mobile_header {
        display: flex !important;
        left: 0;
        position: fixed !important;
        right: 0;
        top: 0;
    }

    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode .amx-half-map-search-shell,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode .amx-half-map-search-shell {
        background: rgba(255, 255, 255, 0.97) !important;
        border: 0;
        border-bottom: 1px solid #e4eaf2;
        border-radius: 0;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
        left: 0;
        margin-top: 0;
        padding-left: 58px;
        padding-right: 76px;
        position: fixed;
        right: 0;
        top: 0;
        width: auto;
        z-index: 170;
    }
}

.wpestate_marker.amx-list-hover-marker,
.amx-list-hover-marker .wpestate_marker {
    z-index: 9999 !important;
}

.wpestate_marker.amx-list-hover-marker.openstreet_price_marker_on_click {
    background-color: transparent !important;
}

.wpestate_marker.amx-list-hover-marker.openstreet_price_marker_on_click::before {
    border-top-color: transparent !important;
}

.wpestate_marker.amx-list-hover-marker .interior_pin_price,
.amx-list-hover-marker .wpestate_marker .interior_pin_price {
    background: var(--amx-list-card-pin-hover) !important;
    color: #ffffff !important;
    transform: translateY(var(--amx-list-card-pin-hover-lift)) scale(calc(var(--amx-pin-scale, 1) * var(--amx-list-card-pin-hover-scale))) !important;
    border-color: var(--amx-list-card-pin-hover-border) !important;
    box-shadow: var(--amx-list-card-pin-hover-shadow) !important;
    filter: none !important;
}

.wpestate_marker.amx-list-hover-marker .interior_pin_price::after,
.amx-list-hover-marker .wpestate_marker .interior_pin_price::after {
    border-top-color: var(--amx-list-card-pin-hover) !important;
}

.loex-hover-bubble {
    display: none !important;
}

:root {
    --amx-map-accent: var(--wp-estate-main-color-option, #dd3333);
    --amx-map-text: #000000;
    --amx-map-surface: #ffffff;
    --amx-map-radius: var(--amx-soft-radius, var(--availmax-hllp-button-radius, 8px));
    --amx-half-map-search-offset: 0px;
    --amx-half-map-control-height: var(--amx-control-height, 38px);
    --amx-map-font-family: var(
        --wp-estate-menu-font-family-option,
        var(--wp-estate-menu-font-family, var(--wp-estate-paragraph-font-family, inherit))
    );
    --amx-map-font-size: var(--amx-btn-font-size, var(--availmax-hllp-button-font-size, 14px));
    --amx-map-font-weight: var(--amx-btn-font-weight, var(--availmax-hllp-button-font-weight, 500));
    --amx-map-shadow: 0 8px 18px color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 12%, transparent);
}

.loex-clear-button,
.loex-draw-button,
#gmapzoomplus,
#gmapzoomminus,
.half_map_controllers_wrapper .half_mobile_toggle_map,
.half_map_controllers_wrapper .half_mobile_toggle_listings {
    align-items: center;
    background: var(--amx-map-surface) !important;
    border: 1px solid var(--amx-map-accent) !important;
    border-radius: var(--amx-map-radius) !important;
    box-shadow: var(--amx-map-shadow);
    color: var(--amx-map-text) !important;
    display: inline-flex;
    font-family: var(--amx-map-font-family) !important;
    font-size: var(--amx-map-font-size) !important;
    font-weight: var(--amx-map-font-weight) !important;
    justify-content: center;
    letter-spacing: 0;
    line-height: 1.15 !important;
    min-height: 38px;
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.loex-clear-button:hover,
.loex-clear-button:focus-visible,
.loex-draw-button:hover,
.loex-draw-button:focus-visible,
#gmapzoomplus:hover,
#gmapzoomplus:focus-visible,
#gmapzoomminus:hover,
#gmapzoomminus:focus-visible,
.half_map_controllers_wrapper .half_mobile_toggle_map:hover,
.half_map_controllers_wrapper .half_mobile_toggle_map:focus-visible,
.half_map_controllers_wrapper .half_mobile_toggle_listings:hover,
.half_map_controllers_wrapper .half_mobile_toggle_listings:focus-visible {
    background: #f1f3f5 !important;
    border-color: var(--amx-map-accent) !important;
    color: var(--amx-map-text) !important;
    outline: none;
}

.loex-clear-button,
.loex-draw-button {
    padding: 10px 18px;
}

.loex-clear-button {
    border-color: var(--amx-map-accent) !important;
    color: var(--amx-map-text) !important;
}

.loex-draw-button {
    border-color: var(--amx-map-accent) !important;
    color: var(--amx-map-text) !important;
}

.amx-map-count-chip {
    align-items: center;
    background: rgba(31, 41, 55, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--amx-map-radius);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    color: #ffffff;
    display: inline-flex;
    font-family: var(--amx-map-font-family) !important;
    font-size: 13px;
    font-weight: 600;
    height: 38px;
    justify-content: center;
    letter-spacing: 0;
    line-height: 1;
    min-width: 124px;
    padding: 0 14px;
    pointer-events: none;
    position: absolute;
    right: 142px;
    text-align: center;
    top: 16px;
    white-space: nowrap;
    z-index: 130;
}

#gmapzoomplus,
#gmapzoomminus {
    height: 42px;
    left: 16px;
    opacity: 1;
    width: 42px;
}

#gmapzoomplus {
    top: 16px;
}

#gmapzoomminus {
    top: 66px;
}

/* Mobile landscape: keep native filters visible and remove the portrait-only Filters button. */
@media (orientation: landscape) and (max-height: 620px) and (max-width: 1024px) {
    body.wpresidence_half_map_body_class .amx-half-map-search-shell,
    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell,
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell {
        border-bottom: 1px solid #e4eaf2 !important;
        box-shadow: none !important;
        margin: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        position: relative !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.sticky_adv_anime,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1 {
        min-height: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search,
    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .wpresidence_note_half_search,
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .wpresidence_note_half_search {
        align-items: stretch !important;
        background: #ffffff !important;
        box-sizing: border-box !important;
        column-gap: 8px !important;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        left: auto !important;
        margin: 0 !important;
        max-width: none !important;
        min-height: 0 !important;
        min-width: 0 !important;
        padding: 8px var(--amx-mobile-gutter, 12px) 10px !important;
        position: relative !important;
        right: auto !important;
        row-gap: 8px !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search::before {
        content: none !important;
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="adv_locations_search_component_wrapper"],
    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .adv_locations_search_component_wrapper,
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .adv_locations_search_component_wrapper {
        display: block !important;
        float: none !important;
        grid-column: 1 / span 2 !important;
        height: 44px !important;
        left: auto !important;
        margin: 0 !important;
        max-height: 44px !important;
        max-width: none !important;
        min-height: 44px !important;
        min-width: 0 !important;
        opacity: 1 !important;
        padding: 0 !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        visibility: visible !important;
        width: 100% !important;
        z-index: 2 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action {
        display: flex !important;
        grid-column: 3 !important;
        grid-row: auto !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save {
        display: flex !important;
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="col-"]:not(.col-md-12):not(.col-12):not(.amx-half-map-mobile-filter-control),
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-mobile-filter-field {
        display: block !important;
        float: none !important;
        grid-column: auto !important;
        margin: 0 !important;
        max-width: none !important;
        min-width: 0 !important;
        opacity: 1 !important;
        padding: 0 !important;
        position: relative !important;
        transform: none !important;
        visibility: visible !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-controls-slot {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper input[type="text"],
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-inline-sort .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        height: 44px !important;
        max-height: 44px !important;
        min-height: 44px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-inline-sort .wpresidence_half_map_filter_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-inline-sort .listing_filter_select,
    body.wpresidence_half_map_body_class .amx-half-map-inline-sort .wpresidence_dropdown.wpresidence_filters_dropdown {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-inline-sort .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle {
        align-items: center !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        justify-content: space-between !important;
        line-height: 1 !important;
        overflow: hidden !important;
        padding: 0 10px !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        justify-content: center !important;
    }
}

/* Final 20260706 pass: phone landscape text weight and tablet-specific search chrome. */
@media (orientation: landscape) and (max-height: 620px) and (max-width: 1024px) {
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .filter_menu_trigger > span,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .filter_menu_trigger .filter_menu_trigger_value {
        font-weight: 400 !important;
    }
}

@media (pointer: coarse) and (min-width: 768px) and (max-width: 1366px) {
    body.wpresidence_half_map_body_class {
        --amx-tablet-brand-color: var(--wp-estate-main-color-option, #dd3333);
        --amx-tablet-control-border: #cfd8e6;
        --amx-tablet-control-height: 44px;
        --amx-tablet-control-radius: 10px;
        --amx-tablet-controls-row-height: 62px;
        --amx-tablet-gutter: 16px;
        --amx-tablet-header-row-height: 64px;
        --amx-tablet-menu-slot: 52px;
        --amx-tablet-search-action-width: 64px;
        --amx-tablet-signin-slot: 108px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell {
        background: #ffffff !important;
        border: 0 !important;
        border-bottom: 1px solid #e7edf5 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        min-height: calc(var(--amx-tablet-header-row-height) + var(--amx-tablet-controls-row-height)) !important;
        overflow: visible !important;
        padding: 0 !important;
        position: relative !important;
        width: 100% !important;
        z-index: 170 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell > .mobile_header[data-amx-half-map-header-anchored="1"],
    body.wpresidence_half_map_body_class .mobile_header {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: block !important;
        height: var(--amx-tablet-header-row-height) !important;
        left: 0 !important;
        margin: 0 !important;
        max-height: var(--amx-tablet-header-row-height) !important;
        min-height: var(--amx-tablet-header-row-height) !important;
        overflow: visible !important;
        padding: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
        transform: none !important;
        width: 100% !important;
        z-index: 2147482000 !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo,
    body.wpresidence_half_map_body_class .mobile_header .mobile-logo img {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user {
        align-items: center !important;
        display: inline-flex !important;
        height: var(--amx-tablet-control-height) !important;
        justify-content: center !important;
        line-height: 1 !important;
        margin: 0 !important;
        pointer-events: auto !important;
        position: absolute !important;
        top: 10px !important;
        transform: none !important;
        z-index: 3 !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger {
        background: transparent !important;
        border: 0 !important;
        color: var(--amx-tablet-brand-color) !important;
        left: var(--amx-tablet-gutter) !important;
        padding: 0 !important;
        width: var(--amx-tablet-menu-slot) !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger i,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger svg {
        color: var(--amx-tablet-brand-color) !important;
        fill: var(--amx-tablet-brand-color) !important;
        font-size: 24px !important;
        height: 24px !important;
        line-height: 1 !important;
        width: 24px !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user {
        background: var(--amx-tablet-brand-color) !important;
        border: 1px solid var(--amx-tablet-brand-color) !important;
        border-radius: var(--amx-tablet-control-radius) !important;
        color: #ffffff !important;
        font-size: 0 !important;
        font-weight: 800 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        right: var(--amx-tablet-gutter) !important;
        text-align: center !important;
        width: var(--amx-tablet-signin-slot) !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user::after {
        color: #ffffff !important;
        content: "Sign in" !important;
        display: block !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        letter-spacing: 0 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fa-user-circle,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fas.fa-user-circle,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.far.fa-user-circle,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fa-user-circle,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fas.fa-user-circle,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.far.fa-user-circle {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.sticky_adv_anime,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        background: #ffffff !important;
        border: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        min-height: calc(var(--amx-tablet-header-row-height) + var(--amx-tablet-controls-row-height)) !important;
        overflow: visible !important;
        padding: 0 !important;
        position: relative !important;
        transform: none !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        align-items: stretch !important;
        box-sizing: border-box !important;
        column-gap: 10px !important;
        display: grid !important;
        max-width: none !important;
        min-width: 0 !important;
        padding: calc(var(--amx-tablet-header-row-height) + 9px) var(--amx-tablet-gutter) 9px !important;
        row-gap: 0 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search::before {
        background: #e7edf5 !important;
        content: "" !important;
        height: 1px !important;
        left: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        right: 0 !important;
        top: var(--amx-tablet-header-row-height) !important;
        z-index: 1 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="adv_locations_search_component_wrapper"] {
        --amx-half-map-location-action-width: var(--amx-tablet-search-action-width);
        display: block !important;
        float: none !important;
        height: var(--amx-tablet-control-height) !important;
        left: calc(var(--amx-tablet-gutter) + var(--amx-tablet-menu-slot) + 8px) !important;
        margin: 0 !important;
        max-height: var(--amx-tablet-control-height) !important;
        min-height: var(--amx-tablet-control-height) !important;
        min-width: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        right: calc(var(--amx-tablet-gutter) + var(--amx-tablet-signin-slot) + 8px) !important;
        top: 10px !important;
        transform: none !important;
        visibility: visible !important;
        width: auto !important;
        z-index: 2 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper input[type="text"] {
        background: #ffffff !important;
        border: 1px solid var(--amx-tablet-control-border) !important;
        border-radius: var(--amx-tablet-control-radius) !important;
        box-shadow: none !important;
        color: #111827 !important;
        display: block !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        height: var(--amx-tablet-control-height) !important;
        line-height: var(--amx-tablet-control-height) !important;
        min-height: var(--amx-tablet-control-height) !important;
        overflow: hidden !important;
        padding-left: 14px !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action {
        align-items: center !important;
        background: var(--amx-tablet-brand-color) !important;
        border: 1px solid var(--amx-tablet-brand-color) !important;
        border-radius: 0 var(--amx-tablet-control-radius) var(--amx-tablet-control-radius) 0 !important;
        bottom: 0 !important;
        display: inline-flex !important;
        height: var(--amx-tablet-control-height) !important;
        justify-content: center !important;
        padding: 0 !important;
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
        width: var(--amx-tablet-search-action-width) !important;
        z-index: 3 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action svg {
        color: #ffffff !important;
        height: 24px !important;
        stroke: #ffffff !important;
        width: 24px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .form-control {
        padding-right: calc(var(--amx-tablet-search-action-width) + 14px) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action.amx-search-has-reset .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .form-control.amx-search-has-reset {
        padding-right: calc(var(--amx-tablet-search-action-width) + 42px) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .wpresidece-reset-btn[data-amx-reset-input-id] {
        right: calc(var(--amx-tablet-search-action-width) + 8px) !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="col-"]:not(.col-md-12):not(.col-12):not(.amx-half-map-mobile-filter-control) {
        align-self: stretch !important;
        display: flex !important;
        float: none !important;
        height: var(--amx-tablet-control-height) !important;
        margin: 0 !important;
        max-width: none !important;
        min-height: var(--amx-tablet-control-height) !important;
        min-width: 0 !important;
        padding: 0 !important;
        position: relative !important;
        transform: none !important;
        visibility: visible !important;
        width: 100% !important;
        z-index: 2 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        align-items: center !important;
        background: #ffffff !important;
        border: 1px solid var(--amx-tablet-control-border) !important;
        border-radius: var(--amx-tablet-control-radius) !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
        color: #111827 !important;
        display: inline-flex !important;
        font-size: 14px !important;
        height: var(--amx-tablet-control-height) !important;
        justify-content: space-between !important;
        letter-spacing: 0 !important;
        line-height: 1 !important;
        max-height: var(--amx-tablet-control-height) !important;
        min-height: var(--amx-tablet-control-height) !important;
        overflow: hidden !important;
        padding: 0 12px !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 .dropdown-toggle {
        font-weight: 400 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        font-weight: 800 !important;
        justify-content: center !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        background: var(--amx-tablet-brand-color) !important;
        border-color: var(--amx-tablet-brand-color) !important;
        color: #ffffff !important;
    }
}

@media (pointer: coarse) and (orientation: portrait) and (min-width: 768px) and (max-width: 1180px) {
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        padding: calc(var(--amx-tablet-header-row-height) + 10px) var(--amx-tablet-gutter) 10px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save {
        grid-row: 1 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action {
        grid-column: 1 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control {
        display: flex !important;
        grid-column: 2 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save {
        grid-column: 3 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-controls-slot,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="col-"]:not(.col-md-12):not(.col-12):not(.amx-half-map-primary-action):not(.amx-half-map-mobile-filter-control):not(.amx-half-map-inline-save) {
        display: none !important;
    }
}

@media (pointer: coarse) and (orientation: landscape) and (min-width: 1024px) and (max-width: 1366px) {
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-controls-slot {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="col-"]:not(.col-md-12):not(.col-12):not(.amx-half-map-mobile-filter-control) {
        grid-column: auto !important;
    }
}

/* End override 20260706: final landscape behavior after all legacy blocks. */
@media (pointer: coarse) and (orientation: landscape) and (min-width: 1024px) and (max-width: 1366px) and (min-height: 621px) {
    body.wpresidence_half_map_body_class {
        --amx-tablet-header-row-height: 70px;
        --amx-tablet-controls-row-height: 62px;
        --amx-tablet-search-action-width: 56px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        min-height: calc(var(--amx-tablet-header-row-height) + var(--amx-tablet-controls-row-height)) !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo {
        display: block !important;
        left: 50% !important;
        margin: 0 !important;
        max-width: 150px !important;
        position: absolute !important;
        top: 8px !important;
        transform: translateX(-50%) !important;
        width: 150px !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo a,
    body.wpresidence_half_map_body_class .mobile_header .mobile-logo img {
        display: block !important;
        height: auto !important;
        margin: 0 auto !important;
        max-height: 54px !important;
        max-width: 150px !important;
        width: auto !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        column-gap: 8px !important;
        grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
        padding: calc(var(--amx-tablet-header-row-height) + 8px) 12px 10px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="adv_locations_search_component_wrapper"] {
        grid-column: span 3 !important;
        left: auto !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="col-"]:not(.col-md-12):not(.col-12):not(.amx-half-map-mobile-filter-control) {
        grid-column: span 1 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        font-size: 12px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

@media (orientation: landscape) and (max-height: 620px) and (max-width: 1024px) {
    body.wpresidence_half_map_body_class {
        --amx-phone-landscape-control-height: 44px;
        --amx-phone-landscape-header-height: 64px;
        --amx-phone-landscape-search-action-width: 58px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        min-height: calc(var(--amx-phone-landscape-header-height) + 106px) !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo {
        display: block !important;
        left: 50% !important;
        margin: 0 !important;
        max-width: 132px !important;
        position: absolute !important;
        top: 7px !important;
        transform: translateX(-50%) !important;
        width: 132px !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo a,
    body.wpresidence_half_map_body_class .mobile_header .mobile-logo img {
        display: block !important;
        height: auto !important;
        margin: 0 auto !important;
        max-height: 50px !important;
        max-width: 132px !important;
        width: auto !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        column-gap: 8px !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        padding: calc(var(--amx-phone-landscape-header-height) + 8px) 12px 10px !important;
        row-gap: 8px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search::before {
        background: #e7edf5 !important;
        content: "" !important;
        display: block !important;
        height: 1px !important;
        left: 0 !important;
        position: absolute !important;
        right: 0 !important;
        top: var(--amx-phone-landscape-header-height) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="adv_locations_search_component_wrapper"] {
        --amx-half-map-location-action-width: var(--amx-phone-landscape-search-action-width);
        grid-column: 1 / span 2 !important;
        left: auto !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action {
        grid-column: 3 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-controls-slot {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper input[type="text"],
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        height: var(--amx-phone-landscape-control-height) !important;
        max-height: var(--amx-phone-landscape-control-height) !important;
        min-height: var(--amx-phone-landscape-control-height) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper input[type="text"],
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 .dropdown-toggle {
        font-size: 13px !important;
        font-weight: 400 !important;
    }
}

/* Final 20260706 landscape polish: restore logo and use balanced rows. */
@media (pointer: coarse) and (orientation: landscape) and (min-width: 1024px) and (max-width: 1366px) and (min-height: 621px) {
    body.wpresidence_half_map_body_class {
        --amx-tablet-controls-row-height: 62px;
        --amx-tablet-header-row-height: 70px;
        --amx-tablet-search-action-width: 56px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.sticky_adv_anime,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        min-height: calc(var(--amx-tablet-header-row-height) + var(--amx-tablet-controls-row-height)) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell > .mobile_header[data-amx-half-map-header-anchored="1"],
    body.wpresidence_half_map_body_class .mobile_header {
        height: var(--amx-tablet-header-row-height) !important;
        min-height: var(--amx-tablet-header-row-height) !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo {
        display: block !important;
        left: 50% !important;
        margin: 0 !important;
        max-width: 150px !important;
        position: absolute !important;
        top: 8px !important;
        transform: translateX(-50%) !important;
        width: 150px !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo a,
    body.wpresidence_half_map_body_class .mobile_header .mobile-logo img {
        display: block !important;
        height: auto !important;
        margin: 0 auto !important;
        max-height: 54px !important;
        max-width: 150px !important;
        width: auto !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        column-gap: 8px !important;
        grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
        padding: calc(var(--amx-tablet-header-row-height) + 8px) 12px 10px !important;
        row-gap: 0 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="adv_locations_search_component_wrapper"] {
        grid-column: span 3 !important;
        left: auto !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="col-"]:not(.col-md-12):not(.col-12):not(.amx-half-map-mobile-filter-control) {
        grid-column: span 1 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-controls-slot {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        font-size: 12px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

@media (orientation: landscape) and (max-height: 620px) and (max-width: 1024px) {
    body.wpresidence_half_map_body_class {
        --amx-phone-landscape-control-height: 44px;
        --amx-phone-landscape-gutter: 12px;
        --amx-phone-landscape-header-height: 64px;
        --amx-phone-landscape-search-action-width: 58px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell,
    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell,
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell {
        background: #ffffff !important;
        border-bottom: 1px solid #e7edf5 !important;
        box-shadow: none !important;
        margin: 0 !important;
        min-height: calc(var(--amx-phone-landscape-header-height) + 106px) !important;
        padding: 0 !important;
        position: relative !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell > .mobile_header[data-amx-half-map-header-anchored="1"],
    body.wpresidence_half_map_body_class .mobile_header {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: block !important;
        height: var(--amx-phone-landscape-header-height) !important;
        left: 0 !important;
        min-height: var(--amx-phone-landscape-header-height) !important;
        overflow: visible !important;
        padding: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
        width: 100% !important;
        z-index: 2147482000 !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo {
        display: block !important;
        left: 50% !important;
        margin: 0 !important;
        max-width: 132px !important;
        position: absolute !important;
        top: 7px !important;
        transform: translateX(-50%) !important;
        width: 132px !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo a,
    body.wpresidence_half_map_body_class .mobile_header .mobile-logo img {
        display: block !important;
        height: auto !important;
        margin: 0 auto !important;
        max-height: 50px !important;
        max-width: 132px !important;
        width: auto !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user {
        pointer-events: auto !important;
        top: 10px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.sticky_adv_anime,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        background: #ffffff !important;
        margin: 0 !important;
        min-height: calc(var(--amx-phone-landscape-header-height) + 106px) !important;
        padding: 0 !important;
        position: relative !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search,
    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .wpresidence_note_half_search,
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .wpresidence_note_half_search {
        align-items: stretch !important;
        box-sizing: border-box !important;
        column-gap: 8px !important;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        min-height: calc(var(--amx-phone-landscape-header-height) + 106px) !important;
        padding: calc(var(--amx-phone-landscape-header-height) + 8px) var(--amx-phone-landscape-gutter) 10px !important;
        row-gap: 8px !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search::before {
        background: #e7edf5 !important;
        content: "" !important;
        display: block !important;
        height: 1px !important;
        left: 0 !important;
        position: absolute !important;
        right: 0 !important;
        top: var(--amx-phone-landscape-header-height) !important;
        width: auto !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="adv_locations_search_component_wrapper"],
    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .adv_locations_search_component_wrapper,
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .adv_locations_search_component_wrapper {
        --amx-half-map-location-action-width: var(--amx-phone-landscape-search-action-width);
        display: block !important;
        float: none !important;
        grid-column: 1 / span 2 !important;
        height: var(--amx-phone-landscape-control-height) !important;
        left: auto !important;
        margin: 0 !important;
        max-height: var(--amx-phone-landscape-control-height) !important;
        min-height: var(--amx-phone-landscape-control-height) !important;
        min-width: 0 !important;
        padding: 0 !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        z-index: 2 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="col-"]:not(.col-md-12):not(.col-12):not(.amx-half-map-mobile-filter-control) {
        display: flex !important;
        float: none !important;
        height: var(--amx-phone-landscape-control-height) !important;
        margin: 0 !important;
        max-width: none !important;
        min-height: var(--amx-phone-landscape-control-height) !important;
        min-width: 0 !important;
        padding: 0 !important;
        position: relative !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action {
        grid-column: 3 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-controls-slot {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper input[type="text"],
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        height: var(--amx-phone-landscape-control-height) !important;
        max-height: var(--amx-phone-landscape-control-height) !important;
        min-height: var(--amx-phone-landscape-control-height) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper input[type="text"] {
        font-size: 14px !important;
        font-weight: 500 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 .dropdown-toggle {
        font-size: 13px !important;
        font-weight: 400 !important;
        padding: 0 10px !important;
    }
}

/* Codex 20260706: keep the status trigger in mobile landscape at the same weight as the other filters. */
@media (orientation: landscape) and (max-height: 620px) and (max-width: 1024px) {
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .filter_menu_trigger > span,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .filter_menu_trigger .filter_menu_trigger_value {
        font-weight: 400 !important;
    }
}

/* Codex 20260706: tablet half-map chrome, separated from phone and desktop layouts. */
@media (pointer: coarse) and (min-width: 768px) and (max-width: 1366px) {
    body.wpresidence_half_map_body_class {
        --amx-tablet-brand-color: var(--wp-estate-main-color-option, #dd3333);
        --amx-tablet-control-border: #cfd8e6;
        --amx-tablet-control-height: 44px;
        --amx-tablet-control-radius: 10px;
        --amx-tablet-gutter: 16px;
        --amx-tablet-header-row-height: 64px;
        --amx-tablet-menu-slot: 52px;
        --amx-tablet-search-action-width: 64px;
        --amx-tablet-signin-slot: 108px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell {
        background: #ffffff !important;
        border: 0 !important;
        border-bottom: 1px solid #e7edf5 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        position: relative !important;
        width: 100% !important;
        z-index: 170 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell > .mobile_header[data-amx-half-map-header-anchored="1"],
    body.wpresidence_half_map_body_class .mobile_header {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: block !important;
        height: var(--amx-tablet-header-row-height) !important;
        left: 0 !important;
        margin: 0 !important;
        max-height: var(--amx-tablet-header-row-height) !important;
        min-height: var(--amx-tablet-header-row-height) !important;
        overflow: visible !important;
        padding: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
        transform: none !important;
        width: 100% !important;
        z-index: 2147482000 !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo,
    body.wpresidence_half_map_body_class .mobile_header .mobile-logo img {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user {
        align-items: center !important;
        box-shadow: none !important;
        display: inline-flex !important;
        height: var(--amx-tablet-control-height) !important;
        justify-content: center !important;
        line-height: 1 !important;
        margin: 0 !important;
        pointer-events: auto !important;
        position: absolute !important;
        top: 10px !important;
        transform: none !important;
        z-index: 3 !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger {
        background: transparent !important;
        border: 0 !important;
        color: var(--amx-tablet-brand-color) !important;
        left: var(--amx-tablet-gutter) !important;
        padding: 0 !important;
        width: var(--amx-tablet-menu-slot) !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger i,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger svg {
        color: var(--amx-tablet-brand-color) !important;
        fill: var(--amx-tablet-brand-color) !important;
        font-size: 24px !important;
        height: 24px !important;
        line-height: 1 !important;
        width: 24px !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user {
        background: var(--amx-tablet-brand-color) !important;
        border: 1px solid var(--amx-tablet-brand-color) !important;
        border-radius: var(--amx-tablet-control-radius) !important;
        color: #ffffff !important;
        font-size: 0 !important;
        font-weight: 800 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        right: var(--amx-tablet-gutter) !important;
        text-align: center !important;
        width: var(--amx-tablet-signin-slot) !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user::after {
        color: #ffffff !important;
        content: "Sign in" !important;
        display: block !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        letter-spacing: 0 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fa-user-circle,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fas.fa-user-circle,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.far.fa-user-circle,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fa-user-circle,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fas.fa-user-circle,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.far.fa-user-circle {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.sticky_adv_anime,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        min-height: calc(var(--amx-tablet-header-row-height) + var(--amx-tablet-controls-row-height, 58px)) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.sticky_adv_anime,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1 {
        background: #ffffff !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: block !important;
        float: none !important;
        margin: 0 !important;
        opacity: 1 !important;
        overflow: visible !important;
        padding: 0 !important;
        position: relative !important;
        transform: none !important;
        visibility: visible !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        align-items: stretch !important;
        background: #ffffff !important;
        box-sizing: border-box !important;
        display: grid !important;
        margin: 0 !important;
        max-width: none !important;
        min-width: 0 !important;
        overflow: visible !important;
        position: relative !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search::before {
        background: #e7edf5 !important;
        content: "" !important;
        height: 1px !important;
        left: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        right: 0 !important;
        top: var(--amx-tablet-header-row-height) !important;
        z-index: 1 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="adv_locations_search_component_wrapper"] {
        --amx-half-map-location-action-width: var(--amx-tablet-search-action-width);
        display: block !important;
        float: none !important;
        height: var(--amx-tablet-control-height) !important;
        left: calc(var(--amx-tablet-gutter) + var(--amx-tablet-menu-slot) + 8px) !important;
        margin: 0 !important;
        max-height: var(--amx-tablet-control-height) !important;
        max-width: none !important;
        min-height: var(--amx-tablet-control-height) !important;
        min-width: 0 !important;
        opacity: 1 !important;
        padding: 0 !important;
        position: absolute !important;
        right: calc(var(--amx-tablet-gutter) + var(--amx-tablet-signin-slot) + 8px) !important;
        top: 10px !important;
        transform: none !important;
        visibility: visible !important;
        width: auto !important;
        z-index: 2 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper input[type="text"] {
        background: #ffffff !important;
        border: 1px solid var(--amx-tablet-control-border) !important;
        border-radius: var(--amx-tablet-control-radius) !important;
        box-shadow: none !important;
        color: #111827 !important;
        display: block !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        height: var(--amx-tablet-control-height) !important;
        line-height: var(--amx-tablet-control-height) !important;
        min-height: var(--amx-tablet-control-height) !important;
        overflow: hidden !important;
        padding-left: 14px !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action {
        align-items: center !important;
        background: var(--amx-tablet-brand-color) !important;
        border: 1px solid var(--amx-tablet-brand-color) !important;
        border-radius: 0 var(--amx-tablet-control-radius) var(--amx-tablet-control-radius) 0 !important;
        bottom: 0 !important;
        box-shadow: none !important;
        display: inline-flex !important;
        height: var(--amx-tablet-control-height) !important;
        justify-content: center !important;
        padding: 0 !important;
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
        width: var(--amx-tablet-search-action-width) !important;
        z-index: 3 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action svg {
        color: #ffffff !important;
        height: 24px !important;
        stroke: #ffffff !important;
        width: 24px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .form-control {
        padding-right: calc(var(--amx-tablet-search-action-width) + 14px) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action.amx-search-has-reset .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .form-control.amx-search-has-reset {
        padding-right: calc(var(--amx-tablet-search-action-width) + 42px) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .wpresidece-reset-btn[data-amx-reset-input-id] {
        right: calc(var(--amx-tablet-search-action-width) + 8px) !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        align-items: center !important;
        background: #ffffff !important;
        border: 1px solid var(--amx-tablet-control-border) !important;
        border-radius: var(--amx-tablet-control-radius) !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
        color: #111827 !important;
        display: inline-flex !important;
        font-size: 14px !important;
        height: var(--amx-tablet-control-height) !important;
        justify-content: space-between !important;
        letter-spacing: 0 !important;
        line-height: 1 !important;
        max-height: var(--amx-tablet-control-height) !important;
        min-height: var(--amx-tablet-control-height) !important;
        overflow: hidden !important;
        padding: 0 12px !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 .dropdown-toggle {
        font-weight: 400 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        font-weight: 800 !important;
        justify-content: center !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        background: var(--amx-tablet-brand-color) !important;
        border-color: var(--amx-tablet-brand-color) !important;
        color: #ffffff !important;
    }
}

@media (pointer: coarse) and (orientation: portrait) and (min-width: 768px) and (max-width: 1180px) {
    body.wpresidence_half_map_body_class {
        --amx-tablet-controls-row-height: 64px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        column-gap: 10px !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        padding: calc(var(--amx-tablet-header-row-height) + 10px) var(--amx-tablet-gutter) 10px !important;
        row-gap: 0 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save {
        align-self: stretch !important;
        display: flex !important;
        float: none !important;
        grid-row: 1 !important;
        height: var(--amx-tablet-control-height) !important;
        margin: 0 !important;
        max-width: none !important;
        min-height: var(--amx-tablet-control-height) !important;
        min-width: 0 !important;
        padding: 0 !important;
        position: relative !important;
        transform: none !important;
        visibility: visible !important;
        width: 100% !important;
        z-index: 2 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action {
        grid-column: 1 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control {
        grid-column: 2 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save {
        grid-column: 3 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-controls-slot,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="col-"]:not(.col-md-12):not(.col-12):not(.amx-half-map-primary-action):not(.amx-half-map-mobile-filter-control):not(.amx-half-map-inline-save) {
        display: none !important;
    }
}

@media (pointer: coarse) and (orientation: landscape) and (min-width: 1024px) and (max-width: 1366px) {
    body.wpresidence_half_map_body_class {
        --amx-tablet-controls-row-height: 62px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        column-gap: 10px !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        padding: calc(var(--amx-tablet-header-row-height) + 9px) var(--amx-tablet-gutter) 9px !important;
        row-gap: 0 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-controls-slot {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="col-"]:not(.col-md-12):not(.col-12):not(.amx-half-map-mobile-filter-control) {
        align-self: stretch !important;
        display: flex !important;
        float: none !important;
        grid-column: auto !important;
        height: var(--amx-tablet-control-height) !important;
        margin: 0 !important;
        max-width: none !important;
        min-height: var(--amx-tablet-control-height) !important;
        min-width: 0 !important;
        padding: 0 !important;
        position: relative !important;
        transform: none !important;
        visibility: visible !important;
        width: 100% !important;
        z-index: 2 !important;
    }
}

@media (min-width: 768px) {
    body.wpresidence_half_map_body_class #gmapzoomplus,
    body.wpresidence_half_map_body_class #gmapzoomminus {
        left: 16px !important;
        right: auto !important;
    }

    body.wpresidence_half_map_body_class #gmapzoomplus {
        top: 16px !important;
    }

    body.wpresidence_half_map_body_class #gmapzoomminus {
        top: 66px !important;
    }
}

#gmapzoomplus i,
#gmapzoomminus i {
    color: var(--amx-map-text) !important;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

#gmapzoomminus i {
    font-size: 20px;
}

#google_map_prop_list_sidebar .listing_wrapper .property_listing {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

#google_map_prop_list_sidebar .listing_wrapper .property_listing:hover {
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .property-unit-information-wrapper > h4,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .property_unit_custom_element.title,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .property_categories_type1_wrapper,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .property_unit_custom_element.property_category,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .property_unit_custom_element.property_action_category {
    display: none !important;
}

#google_map_prop_list_sidebar .property_listing.property_unit_type8 .property_agent_wrapper {
    display: none !important;
}

#google_map_prop_list_sidebar .wpresidence_note_half_search {
    align-items: stretch;
}

body.wpresidence_half_map_body_class #google_map_prop_list #gmap-loading,
body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #gmap-loading,
body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #listing_loader_maps,
body.wpresidence_half_map_body_class #google_map_prop_list_wrapper .map_loader,
#google_map_prop_list_wrapper #gmap-loading,
#google_map_prop_list_wrapper #listing_loader_maps,
#google_map_prop_list_wrapper .map_loader {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.wpresidence_half_map_filter_wrapper {
    z-index: 20;
}

.half_map_controllers_wrapper {
    background: transparent;
    border: 0;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
    box-shadow: none;
    display: flex;
    gap: 12px;
    justify-content: center;
    left: 50%;
    overflow: visible;
    transform: translateX(-50%);
    width: auto;
}

.half_map_controllers_wrapper .half_mobile_toggle_map,
.half_map_controllers_wrapper .half_mobile_toggle_listings {
    display: none;
    float: none;
    gap: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    min-width: 208px;
    padding: 12px 24px;
    width: auto;
}

.half_map_controllers_wrapper .half_mobile_toggle_map i,
.half_map_controllers_wrapper .half_mobile_toggle_listings i {
    color: var(--amx-map-accent) !important;
    font-size: 16px;
}

.half_map_controllers_wrapper .half_mobile_toggle_map span,
.half_map_controllers_wrapper .half_mobile_toggle_listings span {
    color: var(--amx-map-text);
}

.half_map_controllers_wrapper[data-amx-mobile-mode="list"] .half_mobile_toggle_map,
.half_map_controllers_wrapper:not([data-amx-mobile-mode]) .half_mobile_toggle_map {
    display: inline-flex;
}

.half_map_controllers_wrapper[data-amx-mobile-mode="map"] .half_mobile_toggle_listings {
    display: inline-flex;
}

.half_map_controllers_wrapper .half_control_visible {
    background: var(--amx-map-surface) !important;
}

body.wpresidence_half_map_body_class .content_wrapper {
    flex-direction: column;
    overflow-x: hidden;
    min-height: 0;
    padding-top: 0;
}

body.wpresidence_half_map_body_class .header_media {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell {
    background: #ffffff;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #e7e7e7;
    flex: 0 0 auto;
    isolation: isolate;
    overflow: visible;
    position: relative;
    top: auto;
    width: 100%;
    z-index: 40;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.with_search_form_float,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search.with_search_form_float,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.sticky_adv_anime {
    background: transparent;
    border: 0;
    box-shadow: none !important;
    left: auto !important;
    margin: 0 !important;
    max-width: none !important;
    overflow: visible;
    padding: 0;
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1 {
    background: #ffffff;
    border: 0;
    max-width: none;
    overflow: visible;
    width: 100%;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .checker_wrapper_half,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .residence_adv_extended_options_text {
    margin-top: 10px;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .extended_search_check_wrapper .adv_extended_close_button {
    right: 0;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_half_map_filter_wrapper {
    position: static;
    width: 100%;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
    align-items: stretch;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper {
    --amx-half-map-location-action-width: 80px;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action {
    position: relative;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .form-control {
    padding-right: calc(var(--amx-half-map-location-action-width, 80px) + 18px) !important;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action.amx-search-has-reset .form-control,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .form-control.amx-search-has-reset {
    padding-right: calc(var(--amx-half-map-location-action-width, 80px) + 52px) !important;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .wpresidece-reset-btn[data-amx-reset-input-id] {
    right: calc(var(--amx-half-map-location-action-width, 80px) + 12px) !important;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action {
    align-items: center;
    background: var(--amx-primary-button-bg, var(--wp-estate-main-color-option, #dd3333));
    border: 1px solid var(--amx-primary-button-bg, var(--wp-estate-main-color-option, #dd3333));
    border-radius: 0 var(--amx-soft-radius-lg, 8px) var(--amx-soft-radius-lg, 8px) 0;
    bottom: 2px;
    cursor: pointer;
    display: inline-flex;
    height: auto;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: background-color 0.2s ease;
    width: var(--amx-half-map-location-action-width, 80px);
    z-index: 2;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action:hover,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action:focus-visible {
    background: var(--amx-primary-button-bg-hover, var(--wp-estate-menu-hover-font-color-option, var(--wp-estate-second-color-option, var(--wp-estate-main-color-option, #dd3333))));
    outline: none;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action svg {
    display: block;
    height: 24px;
    width: 24px;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action svg circle,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action svg path {
    stroke: #ffffff;
}

body.wpresidence_half_map_body_class .amx-half-map-results-bar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: flex-start;
    margin-bottom: 22px;
    width: 100%;
}

body.wpresidence_half_map_body_class .amx-half-map-results-bar .entry-title {
    flex: 1 1 auto;
    font-size: 18px !important;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25 !important;
    margin: 0;
    min-width: 0;
}

body.wpresidence_half_map_body_class .amx-half-map-results-title-text {
    display: inline;
}

body.wpresidence_half_map_body_class .amx-half-map-results-count {
    align-items: center;
    background: #f3f5f8;
    border: 1px solid #d9e0ea;
    border-radius: var(--amx-map-radius);
    color: #4b5563;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    min-height: 26px;
    padding: 6px 10px;
    white-space: nowrap;
}

body.wpresidence_half_map_body_class .amx-half-map-results-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}

body.wpresidence_half_map_body_class .amx-half-map-save-search-button {
    align-items: center;
    background: var(--amx-primary-button-bg, var(--wp-estate-main-color-option, #dd3333));
    border: 1px solid var(--amx-primary-button-bg, var(--wp-estate-main-color-option, #dd3333));
    border-radius: var(--amx-soft-radius, var(--wp-estate-border-radius-corner-option, var(--wp_estate_border_radius_corner)));
    color: var(--amx-primary-button-color, #ffffff);
    cursor: pointer;
    display: inline-flex;
    font-size: var(--amx-btn-font-size, 14px);
    font-weight: var(--amx-btn-font-weight, 500);
    justify-content: center;
    line-height: 1.15;
    margin: 0;
    min-height: var(--amx-control-height, 38px);
    padding: var(--amx-primary-button-padding, 7px 16px);
    transition: background-color 0.2s ease, border-color 0.2s ease;
    width: 100%;
}

body.wpresidence_half_map_body_class .amx-half-map-save-search-button:hover,
body.wpresidence_half_map_body_class .amx-half-map-save-search-button:focus-visible {
    background: var(--amx-primary-button-bg-hover, var(--wp-estate-menu-hover-font-color-option, var(--wp-estate-second-color-option, var(--wp-estate-main-color-option, #dd3333))));
    border-color: var(--amx-primary-button-bg-hover, var(--wp-estate-menu-hover-font-color-option, var(--wp-estate-second-color-option, var(--wp-estate-main-color-option, #dd3333))));
    outline: none;
}

body.wpresidence_half_map_body_class .amx-half-map-save-search-status {
    color: var(--wp-estate-main-color-option, #dd3333);
    font-size: 14px;
    font-weight: 500;
    min-height: 20px;
    white-space: nowrap;
}

body.wpresidence_half_map_body_class .amx-half-map-inline-sort {
    align-items: stretch;
    display: flex !important;
    flex: 1 1 0 !important;
    max-width: none !important;
    min-width: 0;
    width: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.wpresidence_half_map_body_class .amx-half-map-inline-save {
    align-items: stretch;
    display: flex !important;
    flex: 1 1 0 !important;
    max-width: none !important;
    min-width: 0;
    width: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.wpresidence_half_map_body_class .amx-half-map-mobile-controls-slot {
    display: none;
}

body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
    height: auto;
    min-height: var(--amx-control-height, 38px);
}

body.wpresidence_half_map_body_class .amx-half-map-inline-sort .wpresidence_half_map_filter_wrapper {
    display: flex;
    flex: 1 1 auto;
    margin: 0;
    width: 100%;
}

body.wpresidence_half_map_body_class .amx-half-map-inline-sort .listing_filter_select,
body.wpresidence_half_map_body_class .amx-half-map-inline-sort .wpresidence_dropdown.wpresidence_filters_dropdown {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
}

body.wpresidence_half_map_body_class .amx-half-map-inline-sort .wpresidence_dropdown.wpresidence_filters_dropdown,
body.wpresidence_half_map_body_class .amx-half-map-inline-sort .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle {
    width: 100%;
}

body.wpresidence_half_map_body_class .amx-half-map-inline-sort .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--amx-field-border, #d1d7e2);
    border-radius: var(--amx-soft-radius-lg, var(--wp-estate-border-radius-corner-option, var(--wp_estate_border_radius_corner)));
    box-sizing: border-box;
    display: flex;
    font-size: var(--amx-btn-font-size, 14px);
    font-weight: 400;
    justify-content: flex-start;
    line-height: 1.15;
    margin: 0;
    min-height: var(--amx-control-height, 38px);
    padding: 7px 36px 7px 16px;
}

body.wpresidence_half_map_body_class .amx-half-map-inline-sort .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle::after {
    margin-left: auto;
}

body.wpresidence_half_map_body_class .amx-half-map-save-search-button {
    box-sizing: border-box;
    height: auto;
    min-height: var(--amx-control-height, 38px);
    padding: var(--amx-primary-button-padding, 7px 16px);
    white-space: nowrap;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown-menu,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu {
    background: #ffffff !important;
    background-clip: padding-box;
    border: 1px solid var(--amx-field-border, #d1d7e2);
    border-radius: var(--amx-soft-radius-lg, 8px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
    opacity: 1 !important;
}

body.wpresidence_half_map_body_class .ui-autocomplete.ui-widget-content.amx-half-map-search-autocomplete {
    background: #ffffff !important;
    background-clip: padding-box;
    border: 1px solid var(--amx-field-border, #d1d7e2) !important;
    border-top-left-radius: var(--amx-soft-radius-lg, 8px) !important;
    border-top-right-radius: var(--amx-soft-radius-lg, 8px) !important;
    border-bottom-left-radius: var(--amx-soft-radius-lg, 8px) !important;
    border-bottom-right-radius: var(--amx-soft-radius-lg, 8px) !important;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12) !important;
    overflow: hidden;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown-menu.filter_menu,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown-menu.filter_menu li,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu li {
    background: #ffffff !important;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown-menu.filter_menu li:hover,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu li:hover {
    background: color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 5%, #ffffff) !important;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"],
body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_categ"] {
    padding-top: 8px;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] .amx-half-map-filter-menu__footer,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_categ"] .amx-half-map-filter-menu__footer {
    background: #ffffff !important;
    border-top: 1px solid var(--amx-field-border, #d1d7e2);
    bottom: 0;
    cursor: default;
    margin-top: 8px;
    padding: 12px;
    position: sticky;
    z-index: 2;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] .amx-half-map-filter-menu__footer:hover,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_categ"] .amx-half-map-filter-menu__footer:hover {
    background: #ffffff !important;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-filter-apply {
    background: var(--amx-primary-button-bg, var(--wp-estate-main-color-option, #dd3333));
    border: 1px solid var(--amx-primary-button-bg, var(--wp-estate-main-color-option, #dd3333));
    border-radius: var(--amx-soft-radius-lg, 8px);
    color: #ffffff;
    cursor: pointer;
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    min-height: 40px;
    padding: 10px 16px;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    width: 100%;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-filter-apply:hover,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-filter-apply:focus-visible {
    background: var(--amx-primary-button-bg-hover, var(--wp-estate-menu-hover-font-color-option, var(--wp-estate-second-color-option, var(--wp-estate-main-color-option, #dd3333))));
    border-color: var(--amx-primary-button-bg-hover, var(--wp-estate-menu-hover-font-color-option, var(--wp-estate-second-color-option, var(--wp-estate-main-color-option, #dd3333))));
    outline: none;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell #results {
    display: none !important;
}

body.wpresidence_half_map_body_class .amx-half-map-layout {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    width: 100%;
    z-index: 1;
}

body.wpresidence_half_map_body_class .amx-half-map-layout #google_map_prop_list_sidebar,
body.wpresidence_half_map_body_class .amx-half-map-layout #google_map_prop_list_wrapper {
    min-height: 0;
    position: relative;
    z-index: 1;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown-menu,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-wrapper,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-wrapper,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-wrapper_v3 {
    overflow: visible;
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown-menu,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-wrapper,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-wrapper,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-wrapper_v3 {
    z-index: 45 !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_wrapper .gmap-controls {
    background: transparent !important;
    box-shadow: none !important;
    display: block !important;
    inset: 0;
    pointer-events: none;
    position: absolute;
    visibility: visible !important;
    z-index: 120;
}

body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #gmap-control,
body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #openmap,
body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #google-default-search,
body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #street-view {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #gmapzoomplus,
body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #gmapzoomminus {
    display: inline-flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: absolute !important;
    visibility: visible !important;
    z-index: 999 !important;
}

body.page-template-advanced_search_results.wpresidence_half_map_body_class #google_map_prop_list_sidebar .search_unit_wrapper.advanced_search_notice,
body.page-template-advanced_search_results.wpresidence_half_map_body_class #google_map_prop_list_sidebar .saved_search_wrapper,
body.page-template-advanced_search_results.wpresidence_half_map_body_class #google_map_prop_list_sidebar .wpestate_message.vc_message,
body.page-template-advanced_search_results-php.wpresidence_half_map_body_class #google_map_prop_list_sidebar .search_unit_wrapper.advanced_search_notice,
body.page-template-advanced_search_results-php.wpresidence_half_map_body_class #google_map_prop_list_sidebar .saved_search_wrapper,
body.page-template-advanced_search_results-php.wpresidence_half_map_body_class #google_map_prop_list_sidebar .wpestate_message.vc_message {
    display: none !important;
}

@media (min-width: 1280px) {
    body.wpresidence_half_map_body_class .amx-half-map-search-shell {
        --amx-half-map-merged-filter-gap: 12px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper {
        display: block;
        padding: 6px 18px;
    }

    body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .single-content {
        min-height: 0;
        padding: 6px 18px 0;
    }

    body.wpresidence_half_map_body_class #google_map_prop_list_sidebar {
        margin-bottom: 0;
    }

    body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .entry-title {
        width: auto;
    }

    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper {
        background: transparent;
        box-sizing: border-box;
        height: 100%;
        margin-top: 0;
        overflow: hidden;
        padding-top: 0;
    }

    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #gmap_wrapper,
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #googleMap {
        height: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1 {
        min-width: 0;
        padding: 0;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        column-gap: 12px;
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        margin: 0;
        row-gap: 0;
        width: 100%;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > * {
        float: none !important;
        margin: 0;
        max-width: none !important;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
        width: auto !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper {
        grid-column: span 6;
        max-width: none;
        min-width: 0;
        width: auto;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="col-md-"]:not(.col-md-12) {
        grid-column: span 1;
        max-width: none;
        min-width: 0;
        width: auto;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        min-height: 0 !important;
        padding: 0 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 .dropdown-toggle {
        align-items: center;
        background: #ffffff !important;
        border: 1px solid var(--amx-field-border, #d1d7e2) !important;
        border-radius: var(--amx-soft-radius-lg, var(--wp-estate-border-radius-corner-option, var(--wp_estate_border_radius_corner))) !important;
        box-sizing: border-box;
        display: flex !important;
        font-size: var(--amx-btn-font-size, 14px) !important;
        font-weight: 400 !important;
        justify-content: flex-start;
        line-height: 1.15 !important;
        margin: 0;
        min-height: var(--amx-control-height, 38px);
        padding: 7px 36px 7px 16px !important;
        width: 100%;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger::after,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle::after,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger::after,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component .dropdown-toggle::after,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component .dropdown-toggle::after,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 .dropdown-toggle::after {
        margin-left: auto;
    }

    body.wpresidence_half_map_body_class .amx-half-map-inline-sort .dropdown-menu[data-bs-popper] {
        left: auto;
        right: 0;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"],
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_categ"] {
        left: 0 !important;
        max-width: none !important;
        min-width: calc(200% + var(--amx-half-map-merged-filter-gap, 12px)) !important;
        width: calc(200% + var(--amx-half-map-merged-filter-gap, 12px)) !important;
    }
}

@media (min-width: 768px) and (max-width: 1279.98px) {
    body.wpresidence_half_map_body_class .amx-half-map-search-shell {
        --amx-half-map-merged-filter-gap: 8px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper {
        display: block;
        padding: 0;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1 {
        min-width: 0;
        padding: 0;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        column-gap: 8px;
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        margin: 0;
        row-gap: 8px;
        width: 100%;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > * {
        float: none !important;
        margin: 0 !important;
        max-width: none !important;
        min-width: 0;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: auto !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .col-md-12,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .col-12 {
        grid-column: 1 / -1;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="col-md-"]:not(.col-md-12):not(.col-12) {
        display: flex !important;
        flex: initial !important;
        grid-column: span 4;
        min-width: 0;
        width: auto !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-inline-sort,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save {
        align-items: stretch;
        display: flex !important;
        flex: initial !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        min-height: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="col-md-"] > .form-control:not(.dropdown),
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestatemultiselect .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .bootstrap-select > .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-inline-sort .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        align-items: center;
        border-radius: var(--amx-soft-radius-lg, 8px) !important;
        box-sizing: border-box;
        display: flex !important;
        font-size: 13px !important;
        justify-content: flex-start;
        letter-spacing: 0;
        line-height: 1.15 !important;
        margin: 0;
        min-height: var(--amx-control-height, 38px);
        overflow: hidden;
        padding: 7px 30px 7px 10px !important;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control {
        display: block !important;
        padding-right: 10px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper {
        --amx-half-map-location-action-width: 72px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .form-control {
        padding-right: calc(var(--amx-half-map-location-action-width, 72px) + 16px) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action.amx-search-has-reset .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .form-control.amx-search-has-reset {
        padding-right: calc(var(--amx-half-map-location-action-width, 72px) + 50px) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        justify-content: center;
        padding: 7px 10px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger::after,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle::after,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger::after,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestatemultiselect .dropdown-toggle::after,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .bootstrap-select > .dropdown-toggle::after,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component .dropdown-toggle::after,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component .dropdown-toggle::after,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 .dropdown-toggle::after {
        margin-left: auto;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"],
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_categ"] {
        left: 0 !important;
        max-width: none !important;
        min-width: calc(200% + var(--amx-half-map-merged-filter-gap, 8px)) !important;
        width: calc(200% + var(--amx-half-map-merged-filter-gap, 8px)) !important;
    }
}

@media (min-width: 1024px) and (max-width: 1279.98px) {
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="col-md-"]:not(.col-md-12):not(.col-12) {
        grid-column: span 2;
    }
}

body.amx-mobile-filter-sheet-open {
    overflow: hidden;
    touch-action: none;
}

.amx-half-map-mobile-filter-control {
    display: none;
}

.amx-half-map-filter-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d1d7e2;
    border-radius: var(--amx-soft-radius-lg, 8px);
    box-sizing: border-box;
    color: #101828;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 7px;
    justify-content: center;
    letter-spacing: 0;
    line-height: 1.15;
    min-height: var(--amx-control-height, 38px);
    padding: 7px 10px;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    width: 100%;
}

.amx-half-map-filter-button i {
    color: var(--wp-estate-main-color-option, #dd3333);
    font-size: 13px;
}

.amx-half-map-filter-button:hover,
.amx-half-map-filter-button:focus-visible,
.amx-half-map-filter-button.has-active-filters {
    background: color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 7%, #ffffff);
    border-color: color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 34%, #ffffff);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 8%, transparent);
    color: #0b1220;
    outline: none;
}

.amx-mobile-filter-sheet {
    align-items: flex-end;
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    visibility: hidden;
    z-index: 3400;
}

.amx-mobile-filter-sheet.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.amx-mobile-filter-sheet__backdrop {
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(10px);
    inset: 0;
    position: absolute;
}

.amx-mobile-filter-sheet__panel {
    background: #ffffff;
    border: 1px solid rgba(209, 215, 226, 0.95);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -24px 70px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    max-height: min(84dvh, 720px);
    overflow: hidden;
    padding: 10px 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
    position: relative;
    transform: translateY(24px);
    transition: transform 0.24s ease;
    width: min(100%, 520px);
    z-index: 1;
}

.amx-mobile-filter-sheet.is-visible .amx-mobile-filter-sheet__panel {
    transform: translateY(0);
}

.amx-mobile-filter-sheet__handle {
    align-self: center;
    background: #d8dee9;
    border-radius: 999px;
    height: 4px;
    margin: 0 0 12px;
    width: 42px;
}

.amx-mobile-filter-sheet__header,
.amx-mobile-filter-sheet__footer {
    align-items: center;
    display: flex;
    gap: 12px;
}

.amx-mobile-filter-sheet__header {
    border-bottom: 1px solid #eef1f5;
    justify-content: space-between;
    padding: 0 0 14px;
}

.amx-mobile-filter-sheet__eyebrow {
    color: var(--wp-estate-main-color-option, #dd3333);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.amx-mobile-filter-sheet__title {
    color: #101828;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin: 0;
}

.amx-mobile-filter-sheet__close {
    align-items: center;
    background: #f6f8fb;
    border: 1px solid #dce3ee;
    border-radius: 999px;
    color: #344054;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 24px;
    height: 40px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 40px;
}

.amx-mobile-filter-sheet__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px 0;
}

.amx-mobile-filter-field {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-sizing: border-box;
    display: block !important;
    float: none !important;
    margin: 0 !important;
    max-width: none !important;
    padding: 12px !important;
    width: 100% !important;
}

.amx-mobile-filter-field::before {
    color: #475467;
    content: attr(data-amx-filter-label);
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 8px;
}

.amx-mobile-filter-field .dropdown,
.amx-mobile-filter-field .form-control,
.amx-mobile-filter-field .wpestate-beds-baths-popoup-component,
.amx-mobile-filter-field .wpestate-price-popoup-component,
.amx-mobile-filter-field .wpestate-price-popoup-component_v3 {
    width: 100% !important;
}

.amx-mobile-filter-sheet .dropdown-menu,
.amx-mobile-filter-sheet .filter_menu,
.amx-mobile-filter-sheet .wpestate-beds-baths-popoup-wrapper,
.amx-mobile-filter-sheet .wpestate-price-popoup-wrapper,
.amx-mobile-filter-sheet .wpestate-price-popoup-wrapper_v3 {
    max-height: 280px;
    max-width: 100% !important;
    min-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    width: 100% !important;
}

.amx-mobile-filter-sheet__footer {
    border-top: 1px solid #eef1f5;
    flex: 0 0 auto;
    padding-top: 14px;
}

.amx-mobile-filter-sheet__secondary,
.amx-mobile-filter-sheet__apply {
    align-items: center;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    flex: 1 1 0;
    font-size: 15px;
    font-weight: 800;
    height: 48px;
    justify-content: center;
    letter-spacing: 0;
    line-height: 1;
    padding: 0 14px;
}

.amx-mobile-filter-sheet__secondary {
    background: #ffffff;
    border: 1px solid #d1d7e2;
    color: #344054;
}

.amx-mobile-filter-sheet__apply {
    background: var(--wp-estate-main-color-option, #dd3333);
    border: 1px solid var(--wp-estate-main-color-option, #dd3333);
    box-shadow: 0 14px 26px color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 20%, transparent);
    color: #ffffff;
}

body.amx-save-search-modal-open {
    overflow: hidden;
    touch-action: none;
}

.amx-save-search-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: 24px;
    pointer-events: none;
    position: fixed;
    visibility: hidden;
    z-index: 3200;
}

.amx-save-search-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.amx-save-search-modal__backdrop {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    inset: 0;
    position: absolute;
}

.amx-save-search-modal__dialog {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 34px 84px rgba(15, 23, 42, 0.28);
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 520px;
    padding: 28px;
    position: relative;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.24s ease;
    width: min(100%, 520px);
    z-index: 1;
}

.amx-save-search-modal.is-visible .amx-save-search-modal__dialog {
    transform: translateY(0) scale(1);
}

.amx-save-search-modal__close {
    align-items: center;
    background: #f5f7fb;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    color: #475467;
    cursor: pointer;
    display: inline-flex;
    font-size: 26px;
    height: 38px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 18px;
    top: 18px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    width: 38px;
}

.amx-save-search-modal__close:hover,
.amx-save-search-modal__close:focus-visible {
    background: color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 7%, #ffffff);
    border-color: color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 26%, #ffffff);
    color: var(--wp-estate-main-color-option, #dd3333);
    outline: none;
}

.amx-save-search-modal__badge {
    align-self: flex-start;
    background: linear-gradient(135deg, #ebf9ef, #f6fffa);
    border: 1px solid #b8e3c3;
    border-radius: 999px;
    color: #166534;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    padding: 9px 14px;
}

.amx-save-search-modal__title {
    color: #101828;
    font-size: clamp(28px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0;
    padding-right: 48px;
}

.amx-save-search-modal__input {
    appearance: none;
    background: #ffffff;
    border: 1px solid #d0d9e5;
    border-radius: 16px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
    color: #101828;
    font-size: 17px;
    font-weight: 500;
    height: 56px;
    outline: none;
    padding: 0 18px;
    width: 100%;
}

.amx-save-search-modal__input:focus {
    border-color: var(--wp-estate-main-color-option, #dd3333);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 14%, transparent);
}

.amx-save-search-modal__input::placeholder {
    color: #667085;
}

.amx-save-search-modal__feedback {
    border-radius: 14px;
    display: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    padding: 11px 13px;
}

.amx-save-search-modal__feedback.is-visible {
    display: block;
}

.amx-save-search-modal__feedback.is-error {
    background: #fff1f0;
    border: 1px solid #ffd2cc;
    color: #b42318;
}

.amx-save-search-modal__feedback.is-success {
    background: #eefbf3;
    border: 1px solid #b7e6c5;
    color: #166534;
}

.amx-save-search-modal__submit {
    align-items: center;
    background: var(--wp-estate-main-color-option, #dd3333);
    border: 1px solid var(--wp-estate-main-color-option, #dd3333);
    border-radius: 16px;
    box-shadow: 0 16px 32px color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 20%, transparent);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 18px;
    font-weight: 700;
    height: 56px;
    justify-content: center;
    line-height: 1;
    padding: 0 18px;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.amx-save-search-modal__submit:hover,
.amx-save-search-modal__submit:focus-visible {
    background: var(--wp-estate-menu-hover-font-color-option, var(--wp-estate-second-color-option, var(--wp-estate-main-color-option, #dd3333)));
    border-color: var(--wp-estate-menu-hover-font-color-option, var(--wp-estate-second-color-option, var(--wp-estate-main-color-option, #dd3333)));
    box-shadow: 0 20px 36px color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 24%, transparent);
    outline: none;
    transform: translateY(-1px);
}

.amx-save-search-modal__submit:disabled {
    box-shadow: none;
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.amx-half-map-toast-host {
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    position: fixed;
    right: 24px;
    top: 24px;
    z-index: 2000;
}

.amx-half-map-toast {
    background: rgba(17, 24, 39, 0.96);
    border-radius: 14px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.28);
    color: #ffffff;
    max-width: min(420px, calc(100vw - 32px));
    padding: 14px 44px 14px 16px;
    pointer-events: auto;
    position: relative;
}

.amx-half-map-toast-close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 22px;
    height: 28px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 10px;
    top: 8px;
    width: 28px;
}

.amx-half-map-toast-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    #gmapzoomplus,
    #gmapzoomminus {
        border-radius: 12px !important;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16) !important;
        display: inline-flex !important;
        height: 42px !important;
        left: 12px !important;
        width: 42px !important;
    }

    #gmapzoomplus {
        top: calc(env(safe-area-inset-top, 0px) + 126px) !important;
    }

    #gmapzoomminus {
        top: calc(env(safe-area-inset-top, 0px) + 176px) !important;
    }

    .loex-clear {
        right: 12px;
        top: calc(env(safe-area-inset-top, 0px) + 126px);
    }

    .amx-map-count-chip {
        height: 40px;
        left: 50%;
        min-width: 110px;
        right: auto;
        top: calc(env(safe-area-inset-top, 0px) + 126px);
        transform: translateX(-50%);
    }

    .loex-clear-button,
    .loex-draw-button {
        min-height: 40px;
        padding: 10px 16px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1 {
        border-top: 0;
        padding: 10px 12px 12px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        column-gap: 8px;
        display: grid;
        grid-template-columns: minmax(88px, 1.05fr) minmax(88px, 1fr) minmax(70px, 0.86fr) minmax(62px, 0.72fr);
        margin: 0;
        row-gap: 8px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="col-"] {
        float: none !important;
        margin: 0 !important;
        max-width: none !important;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
        width: auto !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .col-md-12,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .col-12 {
        grid-column: 1 / -1;
        max-width: none;
        width: auto;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper {
        grid-column: 1 / -1;
        margin: 0 !important;
        max-width: none !important;
        min-width: 0;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: auto !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save {
        display: flex !important;
        float: none !important;
        margin: 0 !important;
        max-width: none !important;
        min-width: 0;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: auto !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action {
        grid-column: 1;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control {
        display: flex !important;
        grid-column: 2;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort {
        grid-column: 3;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save {
        grid-column: 4;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="col-"]:not(.col-md-12):not(.col-12):not(.amx-half-map-primary-action):not(.amx-half-map-mobile-filter-control):not(.amx-half-map-inline-sort):not(.amx-half-map-inline-save) {
        display: block !important;
        min-width: 0;
        width: auto !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-mobile-controls-slot {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-mobile-controls-slot > .amx-half-map-inline-sort,
    body.wpresidence_half_map_body_class .amx-half-map-mobile-controls-slot > .amx-half-map-inline-save {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        min-width: 0;
        padding-left: 6px !important;
        padding-right: 6px !important;
        width: 33.333333% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        border-radius: var(--amx-soft-radius-lg, 8px);
        box-sizing: border-box;
        display: inline-flex !important;
        font-size: 13px;
        line-height: 1.15;
        min-height: var(--amx-control-height, 38px);
        padding: 7px 10px;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-inline-save,
    body.wpresidence_half_map_body_class .amx-half-map-inline-sort {
        align-items: stretch;
        display: flex !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-sort .wpresidence_half_map_filter_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-inline-sort .listing_filter_select,
    body.wpresidence_half_map_body_class .amx-half-map-inline-sort .wpresidence_dropdown.wpresidence_filters_dropdown {
        flex: 1 1 auto;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-inline-sort .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle {
        border-radius: var(--amx-soft-radius-lg, 8px);
        box-sizing: border-box;
        font-size: 13px;
        line-height: 1.15;
        min-height: var(--amx-control-height, 38px);
        width: 100% !important;
        padding: 7px 30px 7px 10px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control {
        background: #f8fafc !important;
        border: 1px solid #d5dde8 !important;
        box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.03);
        color: #111827 !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        min-height: 42px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-inline-sort .wpresidence_half_map_filter_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-inline-sort .listing_filter_select,
    body.wpresidence_half_map_body_class .amx-half-map-inline-sort .wpresidence_dropdown.wpresidence_filters_dropdown {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        min-height: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-inline-sort .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button {
        background: #ffffff !important;
        border: 1px solid #d5dde8 !important;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
        color: #101828 !important;
        font-weight: 800 !important;
        min-height: 40px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        background: var(--wp-estate-main-color-option, #dd3333) !important;
        border-color: var(--wp-estate-main-color-option, #dd3333) !important;
        box-shadow: 0 10px 20px color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 18%, transparent);
        color: #ffffff !important;
        font-weight: 800;
        justify-content: center;
        min-height: 40px;
        padding: 7px 8px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-filter-button span,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button span,
    body.wpresidence_half_map_body_class .amx-half-map-inline-sort .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control {
        display: block !important;
        padding-right: 10px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper {
        --amx-half-map-location-action-width: 66px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .form-control {
        padding-right: calc(var(--amx-half-map-location-action-width, 66px) + 16px) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action.amx-search-has-reset .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .form-control.amx-search-has-reset {
        padding-right: calc(var(--amx-half-map-location-action-width, 66px) + 48px) !important;
    }

    .amx-save-search-modal {
        align-items: center;
        padding: 16px;
    }

    .amx-save-search-modal__dialog {
        border-radius: 22px;
        gap: 12px;
        max-width: none;
        padding: 22px 18px 18px;
        width: 100%;
    }

    .amx-save-search-modal__close {
        right: 14px;
        top: 14px;
    }

    .amx-save-search-modal__title {
        font-size: 30px;
        padding-right: 44px;
    }

    .amx-save-search-modal__input,
    .amx-save-search-modal__submit {
        height: 52px;
    }

    .half_map_controllers_wrapper {
        bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        gap: 0;
        overflow: visible;
    }

    .half_map_controllers_wrapper .half_mobile_toggle_map,
    .half_map_controllers_wrapper .half_mobile_toggle_listings {
        background: rgba(255, 255, 255, 0.96) !important;
        border: 1px solid color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 70%, transparent) !important;
        border-radius: 16px !important;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18) !important;
        color: #101828 !important;
        min-height: 54px;
        min-width: min(252px, calc(100vw - 64px));
        padding: 12px 28px;
    }

    .half_map_controllers_wrapper .half_mobile_toggle_map i,
    .half_map_controllers_wrapper .half_mobile_toggle_listings i {
        color: var(--wp-estate-main-color-option, #dd3333) !important;
        font-size: 18px;
    }

    .half_map_controllers_wrapper .half_mobile_toggle_map span,
    .half_map_controllers_wrapper .half_mobile_toggle_listings span {
        color: #101828;
        font-size: 16px;
        font-weight: 800;
    }

    body.wpresidence_half_map_body_class .amx-half-map-results-actions {
        display: none !important;
    }

    .amx-half-map-toast-host {
        left: 16px;
        right: 16px;
        top: calc(env(safe-area-inset-top, 0px) + 12px);
    }

    .amx-half-map-toast {
        max-width: none;
        width: 100%;
    }

    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode .master_header,
    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode .mobile_header,
    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode .top_bar_wrapper,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode .master_header,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode .mobile_header,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode .top_bar_wrapper {
        display: none !important;
    }

    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode .amx-half-map-search-shell,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode .amx-half-map-search-shell {
        background: rgba(255, 255, 255, 0.94) !important;
        border: 1px solid rgba(209, 215, 226, 0.9);
        border-radius: 16px;
        box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
        display: block !important;
        left: 10px;
        overflow: visible;
        position: fixed;
        right: 10px;
        top: calc(env(safe-area-inset-top, 0px) + 10px);
        width: auto;
        z-index: 150;
    }

    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode .amx-half-map-search-shell .adv-search-1,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode .amx-half-map-search-shell .adv-search-1 {
        background: transparent;
        padding: 10px;
    }

    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode {
        padding-top: 0 !important;
    }

    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode .content_wrapper,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode .content_wrapper,
    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode .amx-half-map-layout,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode .amx-half-map-layout {
        min-height: 100dvh !important;
        padding-top: 0 !important;
    }

    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode #google_map_prop_list_sidebar,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode #google_map_prop_list_sidebar {
        display: none !important;
    }

    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode #google_map_prop_list_wrapper,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode #google_map_prop_list_wrapper {
        display: block !important;
        height: 100dvh !important;
        inset: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        position: fixed !important;
        width: 100% !important;
        z-index: 100 !important;
    }

    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode #google_map_prop_list_wrapper #gmap_wrapper,
    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode #google_map_prop_list_wrapper #googleMap,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode #google_map_prop_list_wrapper #gmap_wrapper,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode #google_map_prop_list_wrapper #googleMap {
        height: 100dvh !important;
    }

    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode .half_map_controllers_wrapper,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode .half_map_controllers_wrapper {
        position: fixed;
        z-index: 140;
    }
}

@media (max-width: 767.98px) {
    body.wpresidence_half_map_body_class .mobile_header {
        align-items: center;
        background: rgba(255, 255, 255, 0.96) !important;
        border-bottom: 1px solid #e4eaf2 !important;
        display: flex !important;
        height: 64px !important;
        justify-content: space-between;
        padding: 0 11px !important;
        pointer-events: none;
        position: relative;
        z-index: 180;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user {
        align-items: center;
        display: inline-flex !important;
        height: 44px;
        justify-content: center;
        pointer-events: auto;
        width: 44px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell {
        background: rgba(255, 255, 255, 0.97) !important;
        border-bottom: 1px solid #e4eaf2 !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
        margin-top: -64px !important;
        padding-left: 58px !important;
        padding-right: 76px !important;
        position: relative;
        z-index: 170;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1 {
        padding: 10px 0 12px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        column-gap: 8px !important;
        grid-template-columns: minmax(88px, 1fr) minmax(92px, 1fr) minmax(112px, 1.08fr) !important;
        row-gap: 8px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper {
        grid-column: 1 / -1 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action {
        grid-column: 1 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control {
        display: flex !important;
        grid-column: 2 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save {
        grid-column: 3 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control {
        background: #ffffff !important;
        border: 1px solid #cfd8e6 !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        color: #111827 !important;
        font-size: 15px !important;
        font-weight: 750 !important;
        min-height: 44px !important;
        padding-left: 12px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        border-radius: 10px !important;
        box-shadow: none !important;
        font-size: 13px !important;
        min-height: 40px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-filter-button {
        background: #ffffff !important;
        border-color: #cfd8e6 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-filter-button.has-active-filters::after {
        background: #0f766e;
        border: 2px solid #ffffff;
        border-radius: 999px;
        content: "";
        height: 9px;
        position: absolute;
        right: 9px;
        top: 8px;
        width: 9px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        background: var(--wp-estate-main-color-option, #dd3333) !important;
        border-color: var(--wp-estate-main-color-option, #dd3333) !important;
        color: #ffffff !important;
    }

    .amx-mobile-filter-sheet,
    .amx-mobile-sort-sheet {
        z-index: 5000 !important;
    }

    .amx-mobile-filter-sheet__panel {
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        padding: calc(env(safe-area-inset-top, 0px) + 12px) 18px calc(env(safe-area-inset-bottom, 0px) + 14px) !important;
        width: 100% !important;
    }

    .amx-mobile-filter-sheet__eyebrow,
    .amx-mobile-sort-sheet__eyebrow {
        color: #0f766e !important;
        font-weight: 900 !important;
    }

    .amx-mobile-filter-sheet__title {
        color: #0f172a !important;
        font-size: 30px !important;
        font-weight: 900 !important;
    }

    .amx-mobile-filter-sheet__body {
        gap: 0 !important;
        padding: 0 !important;
    }

    .amx-mobile-filter-field {
        background: transparent !important;
        border: 0 !important;
        border-bottom: 1px solid #e6ebf2 !important;
        border-radius: 0 !important;
        padding: 18px 0 !important;
    }

    .amx-mobile-filter-field::before {
        color: #344054 !important;
        font-size: 13px !important;
        font-weight: 900 !important;
        margin-bottom: 10px !important;
    }

    .amx-mobile-filter-field .dropdown.form-control,
    .amx-mobile-filter-field .wpresidence_dropdown,
    .amx-mobile-filter-field .wpestate-beds-baths-popoup-component,
    .amx-mobile-filter-field .wpestate-price-popoup-component,
    .amx-mobile-filter-field .wpestate-price-popoup-component_v3 {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .amx-mobile-filter-field .filter_menu_trigger,
    .amx-mobile-filter-field .dropdown-toggle,
    .amx-mobile-filter-field .form-control:not(.dropdown) {
        background: #f8fafc !important;
        border: 1px solid #d6deea !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        color: #111827 !important;
        font-size: 15px !important;
        font-weight: 750 !important;
        min-height: 48px !important;
        padding: 10px 14px !important;
    }

    .amx-mobile-filter-sheet .filter_menu.show,
    .amx-mobile-filter-sheet .dropdown-menu.show {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-top: 10px !important;
        max-height: none !important;
        min-width: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        position: static !important;
        transform: none !important;
        width: 100% !important;
    }

    .amx-mobile-filter-sheet .filter_menu.show li,
    .amx-mobile-filter-sheet .dropdown-menu.show li {
        align-items: center;
        background: #ffffff !important;
        border: 1px solid #d6deea !important;
        border-radius: 999px !important;
        color: #1f2937 !important;
        cursor: pointer;
        display: inline-flex !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        line-height: 1;
        min-height: 36px;
        padding: 0 13px !important;
    }

    .amx-mobile-filter-sheet__footer {
        background: #ffffff !important;
        gap: 10px !important;
        margin-left: -18px !important;
        margin-right: -18px !important;
        padding: 12px 18px 0 !important;
    }

    .amx-mobile-filter-sheet__secondary,
    .amx-mobile-filter-sheet__apply {
        border-radius: 10px !important;
        box-shadow: none !important;
        height: 48px !important;
    }

    .amx-mobile-sort-sheet {
        align-items: stretch !important;
    }

    .amx-mobile-sort-sheet__panel {
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: column !important;
        max-height: 100dvh !important;
        min-height: 100dvh !important;
        padding: calc(env(safe-area-inset-top, 0px) + 16px) 18px calc(env(safe-area-inset-bottom, 0px) + 14px) !important;
        width: 100% !important;
    }

    .amx-mobile-sort-sheet__body {
        flex: 1 1 auto;
    }

    .half_map_controllers_wrapper {
        align-items: center !important;
        background: rgba(255, 255, 255, 0.96) !important;
        border: 1px solid rgba(203, 213, 225, 0.92) !important;
        border-radius: 14px !important;
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18) !important;
        gap: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    .half_map_controllers_wrapper .half_mobile_toggle_map,
    .half_map_controllers_wrapper .half_mobile_toggle_listings,
    .half_map_controllers_wrapper .amx-mobile-dock-sort {
        align-items: center;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        color: #0f172a !important;
        cursor: pointer;
        display: inline-flex;
        font-family: var(--amx-map-font-family) !important;
        font-size: 14px !important;
        font-weight: 900 !important;
        gap: 8px;
        justify-content: center;
        letter-spacing: 0;
        line-height: 1 !important;
        margin: 0 !important;
        min-height: 44px !important;
        min-width: 86px !important;
        padding: 0 14px !important;
        width: auto !important;
    }

    .half_map_controllers_wrapper .half_mobile_toggle_map i,
    .half_map_controllers_wrapper .half_mobile_toggle_listings i,
    .half_map_controllers_wrapper .amx-mobile-dock-sort i {
        color: var(--wp-estate-main-color-option, #dd3333) !important;
        font-size: 15px !important;
    }

    .half_map_controllers_wrapper .half_mobile_toggle_map span,
    .half_map_controllers_wrapper .half_mobile_toggle_listings span,
    .half_map_controllers_wrapper .amx-mobile-dock-sort span {
        color: #0f172a !important;
        font-size: 14px !important;
        font-weight: 900 !important;
    }

    .half_map_controllers_wrapper[data-amx-mobile-mode="list"],
    .half_map_controllers_wrapper:not([data-amx-mobile-mode]) {
        min-width: 178px !important;
    }

    .half_map_controllers_wrapper[data-amx-mobile-mode="map"] {
        min-width: 92px !important;
    }

    .half_map_controllers_wrapper[data-amx-mobile-mode="list"] .amx-mobile-dock-sort,
    .half_map_controllers_wrapper:not([data-amx-mobile-mode]) .amx-mobile-dock-sort {
        border-left: 1px solid #e2e8f0 !important;
    }

    .half_map_controllers_wrapper[data-amx-mobile-mode="map"] .amx-mobile-dock-sort,
    .half_map_controllers_wrapper .amx-mobile-dock-sort[hidden] {
        display: none !important;
    }

    #gmapzoomplus,
    #gmapzoomminus {
        background: rgba(255, 255, 255, 0.95) !important;
        border-color: rgba(203, 213, 225, 0.92) !important;
        border-radius: 10px !important;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14) !important;
        height: 38px !important;
        width: 38px !important;
    }

    .loex-clear-button,
    .loex-draw-button {
        background: rgba(255, 255, 255, 0.96) !important;
        border-color: rgba(203, 213, 225, 0.92) !important;
        border-radius: 12px !important;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14) !important;
        color: #0f172a !important;
        font-size: 13px !important;
        font-weight: 900 !important;
        min-height: 38px !important;
        padding: 9px 13px !important;
    }

    .amx-map-count-chip {
        background: rgba(15, 23, 42, 0.88) !important;
        border-color: rgba(255, 255, 255, 0.6) !important;
        border-radius: 12px !important;
        font-weight: 900 !important;
        height: 38px !important;
        min-width: 104px !important;
    }

    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode .mobile_header,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode .mobile_header {
        display: flex !important;
        left: 0;
        position: fixed !important;
        right: 0;
        top: 0;
    }

    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode .amx-half-map-search-shell,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode .amx-half-map-search-shell {
        background: rgba(255, 255, 255, 0.97) !important;
        border: 0 !important;
        border-bottom: 1px solid #e4eaf2 !important;
        border-radius: 0 !important;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1) !important;
        left: 0 !important;
        margin-top: 0 !important;
        padding-left: 58px !important;
        padding-right: 76px !important;
        position: fixed !important;
        right: 0 !important;
        top: 0 !important;
        width: auto !important;
        z-index: 170 !important;
    }

    .amx-mobile-filter-field[data-amx-filter-label="Category"] .filter_menu_trigger {
        display: none !important;
    }

    .amx-mobile-filter-field[data-amx-filter-label="Category"] .filter_menu,
    .amx-mobile-filter-field[data-amx-filter-label="Category"] .dropdown-menu {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin: 0 !important;
        max-height: 220px !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: 0 !important;
        position: static !important;
        transform: none !important;
        width: 100% !important;
    }

    .amx-mobile-filter-field[data-amx-filter-label="Category"] .filter_menu li,
    .amx-mobile-filter-field[data-amx-filter-label="Category"] .dropdown-menu li {
        align-items: center;
        background: #ffffff !important;
        border: 1px solid #d6deea !important;
        border-radius: 999px !important;
        color: #1f2937 !important;
        cursor: pointer;
        display: inline-flex !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        line-height: 1;
        min-height: 36px;
        padding: 0 13px !important;
    }

    body.wpresidence_half_map_body_class .mobile_header,
    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode .mobile_header,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode .mobile_header {
        background: transparent !important;
        border-bottom: 0 !important;
        box-shadow: none !important;
        z-index: 220 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell,
    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode .amx-half-map-search-shell,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode .amx-half-map-search-shell {
        z-index: 190 !important;
    }

    body.amx-mobile-filter-sheet-open .mobile_header,
    body.amx-mobile-filter-sheet-open .master_header,
    body.amx-mobile-sort-sheet-open .mobile_header,
    body.amx-mobile-sort-sheet-open .master_header {
        display: none !important;
    }

    .amx-mobile-filter-native-vault,
    .amx-mobile-filter-native-vault[hidden] {
        display: none !important;
    }

    .amx-mobile-filter-proxy-root {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

    .amx-mobile-filter-proxy-section {
        border-bottom: 1px solid #e6ebf2;
        padding: 18px 0 20px;
    }

    .amx-mobile-filter-proxy-heading {
        color: #0f172a;
        font-size: 17px;
        font-weight: 900;
        letter-spacing: 0;
        line-height: 1.15;
        margin-bottom: 12px;
    }

    .amx-mobile-filter-chip-grid,
    .amx-mobile-filter-segment-grid {
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .amx-mobile-filter-chip,
    .amx-mobile-filter-segment {
        align-items: center;
        background: #f8fafc;
        border: 1px solid #d6deea;
        border-radius: 10px;
        color: #1f2937;
        cursor: pointer;
        display: inline-flex;
        font-size: 14px;
        font-weight: 850;
        justify-content: center;
        letter-spacing: 0;
        line-height: 1.1;
        min-height: 44px;
        padding: 0 10px;
        text-align: center;
        width: 100%;
    }

    .amx-mobile-filter-chip.is-selected,
    .amx-mobile-filter-segment.is-selected {
        background: var(--wp-estate-main-color-option, #dd3333);
        border-color: var(--wp-estate-main-color-option, #dd3333);
        color: #ffffff;
    }

    .amx-mobile-filter-control-pair {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .amx-mobile-filter-subheading,
    .amx-mobile-filter-price-grid label span {
        color: #667085;
        display: block;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.04em;
        line-height: 1;
        margin-bottom: 8px;
        text-transform: uppercase;
    }

    .amx-mobile-filter-price-grid {
        display: grid;
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .amx-mobile-filter-price-grid input {
        background: #f8fafc;
        border: 1px solid #d6deea;
        border-radius: 10px;
        color: #0f172a;
        font-size: 15px;
        font-weight: 800;
        height: 48px;
        letter-spacing: 0;
        outline: none;
        padding: 0 12px;
        width: 100%;
    }

    .amx-mobile-filter-price-grid input:focus {
        background: #ffffff;
        border-color: var(--wp-estate-main-color-option, #dd3333);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 12%, transparent);
    }

    .half_map_controllers_wrapper .half_mobile_toggle_map,
    .half_map_controllers_wrapper .half_mobile_toggle_listings,
    .half_map_controllers_wrapper .amx-mobile-dock-sort {
        display: none !important;
    }

    .half_map_controllers_wrapper[data-amx-mobile-mode="list"] .half_mobile_toggle_map,
    .half_map_controllers_wrapper[data-amx-mobile-mode="list"] .amx-mobile-dock-sort,
    .half_map_controllers_wrapper:not([data-amx-mobile-mode]) .half_mobile_toggle_map,
    .half_map_controllers_wrapper:not([data-amx-mobile-mode]) .amx-mobile-dock-sort {
        display: inline-flex !important;
    }

    .half_map_controllers_wrapper[data-amx-mobile-mode="map"] .half_mobile_toggle_listings {
        display: inline-flex !important;
    }
}

@media (max-width: 767.98px) {
    body.wpresidence_half_map_body_class .mobile_header {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: block !important;
        height: 70px !important;
        left: 0;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: none;
        right: 0;
        top: 0;
        width: 100% !important;
        z-index: 260 !important;
    }

    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode .mobile_header,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode .mobile_header {
        position: fixed !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user {
        align-items: center;
        display: inline-flex !important;
        height: 46px !important;
        justify-content: center;
        pointer-events: auto;
        position: absolute !important;
        top: 10px !important;
        z-index: 2;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger {
        left: 10px !important;
        width: 44px !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user {
        right: 10px !important;
        width: 112px !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user .menu_user_picture {
        height: 46px !important;
        margin-left: auto;
        width: 46px !important;
    }

    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fa-user-circle,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fas.fa-user-circle,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.far.fa-user-circle,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fa-user-circle,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fas.fa-user-circle,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.far.fa-user-circle {
        align-items: center !important;
        border-radius: 10px !important;
        display: inline-flex !important;
        font-size: 0 !important;
        height: 46px !important;
        justify-content: center !important;
        line-height: 1 !important;
        padding: 0 14px !important;
        width: 100% !important;
    }

    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fa-user-circle::after,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fas.fa-user-circle::after,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.far.fa-user-circle::after,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fa-user-circle::after,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fas.fa-user-circle::after,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.far.fa-user-circle::after {
        content: "Sign in" !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell {
        background: #ffffff !important;
        border: 0 !important;
        border-bottom: 1px solid #e7edf5 !important;
        border-radius: 0 !important;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06) !important;
        display: block !important;
        left: auto !important;
        margin-top: -70px !important;
        overflow: visible !important;
        padding: 0 !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        z-index: 230 !important;
    }

    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode .amx-half-map-search-shell,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode .amx-half-map-search-shell {
        left: 0 !important;
        margin-top: 0 !important;
        position: fixed !important;
        right: 0 !important;
        top: 0 !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.sticky_adv_anime,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1 {
        background: #ffffff !important;
        border: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        position: relative !important;
        transform: none !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1 {
        padding: 10px 0 10px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        align-items: center !important;
        column-gap: 8px !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        padding: 0 12px 10px !important;
        position: relative !important;
        row-gap: 12px !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper {
        --amx-half-map-location-action-width: 58px;
        display: block !important;
        flex: 0 1 auto !important;
        grid-column: 1 / -1 !important;
        margin: 0 112px 2px 52px !important;
        max-width: none !important;
        min-width: 0 !important;
        opacity: 1 !important;
        padding: 0 !important;
        position: relative !important;
        visibility: visible !important;
        width: auto !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper::after {
        background: #edf1f6;
        bottom: -7px;
        content: "";
        height: 1px;
        left: calc(-52px - 12px);
        pointer-events: none;
        position: absolute;
        right: calc(-112px - 12px);
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .form-control {
        padding-right: calc(var(--amx-half-map-location-action-width, 58px) + 14px) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action.amx-search-has-reset .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .form-control.amx-search-has-reset {
        padding-right: calc(var(--amx-half-map-location-action-width, 58px) + 44px) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .wpresidece-reset-btn[data-amx-reset-input-id] {
        right: calc(var(--amx-half-map-location-action-width, 58px) + 8px) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control {
        background: #ffffff !important;
        border: 1px solid #cfd8e6 !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        color: #111827 !important;
        display: block !important;
        font-size: 15px !important;
        font-weight: 750 !important;
        height: 46px !important;
        line-height: 46px !important;
        min-height: 46px !important;
        opacity: 1 !important;
        padding-left: 12px !important;
        visibility: visible !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action {
        border-radius: 0 10px 10px 0 !important;
        bottom: 0 !important;
        height: 46px !important;
        top: 0 !important;
        width: var(--amx-half-map-location-action-width, 58px) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save {
        display: flex !important;
        flex: 0 1 auto !important;
        margin: 0 !important;
        max-width: none !important;
        min-width: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action {
        grid-column: 1 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control {
        grid-column: 2 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save {
        grid-column: 3 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        min-width: 0 !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        align-items: center !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        display: inline-flex !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        height: 44px !important;
        justify-content: center !important;
        min-height: 44px !important;
        overflow: hidden !important;
        padding: 0 8px !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-filter-button {
        background: #ffffff !important;
        border-color: #cfd8e6 !important;
        color: #111827 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        background: var(--wp-estate-main-color-option, #dd3333) !important;
        border-color: var(--wp-estate-main-color-option, #dd3333) !important;
        color: #ffffff !important;
    }

    body.amx-mobile-filter-sheet-open .mobile_header,
    body.amx-mobile-filter-sheet-open .master_header,
    body.amx-mobile-filter-sheet-open .top_bar_wrapper,
    body.amx-mobile-sort-sheet-open .mobile_header,
    body.amx-mobile-sort-sheet-open .master_header,
    body.amx-mobile-sort-sheet-open .top_bar_wrapper {
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }

    body.amx-mobile-filter-sheet-open .amx-half-map-search-shell {
        z-index: 2147482500 !important;
    }

    .amx-mobile-filter-sheet {
        align-items: stretch !important;
        justify-content: stretch !important;
        z-index: 2147483000 !important;
    }

    .amx-mobile-filter-sheet__backdrop {
        background: #ffffff !important;
        backdrop-filter: none !important;
    }

    .amx-mobile-filter-sheet__panel {
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        height: 100dvh !important;
        max-height: none !important;
        padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px) !important;
        transform: none !important;
        width: 100% !important;
    }

    .amx-mobile-sort-sheet {
        z-index: 2147483000 !important;
    }
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-filter-menu__header {
    display: none !important;
}

/* Final mobile header and sheet polish for AvailMax half-map search. */
@media (max-width: 767.98px) {
    body.wpresidence_half_map_body_class {
        --amx-mobile-header-height: 68px;
        --amx-mobile-menu-slot: 52px;
        --amx-mobile-signin-slot: 96px;
        --amx-mobile-search-action-width: 56px;
    }

    body.wpresidence_half_map_body_class .mobile_header {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: block !important;
        height: var(--amx-mobile-header-height) !important;
        left: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: none !important;
        right: 0 !important;
        top: 0 !important;
        width: 100% !important;
        z-index: 260 !important;
    }

    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode .mobile_header,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode .mobile_header {
        position: fixed !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user {
        align-items: center !important;
        display: inline-flex !important;
        height: 44px !important;
        justify-content: center !important;
        margin: 0 !important;
        pointer-events: auto !important;
        position: absolute !important;
        top: 12px !important;
        z-index: 2 !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger {
        left: 10px !important;
        width: 38px !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger i {
        color: var(--wp-estate-main-color-option, #dd3333) !important;
        font-size: 24px !important;
        line-height: 1 !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user {
        min-width: 82px !important;
        right: 10px !important;
        width: auto !important;
    }

    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fa-user-circle,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fas.fa-user-circle,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.far.fa-user-circle,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fa-user-circle,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fas.fa-user-circle,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.far.fa-user-circle {
        align-items: center !important;
        background: var(--amx-primary-button-bg, var(--wp-estate-main-color-option, #dd3333)) !important;
        border: 1px solid var(--amx-primary-button-bg, var(--wp-estate-main-color-option, #dd3333)) !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        color: #ffffff !important;
        display: inline-flex !important;
        font-size: 0 !important;
        height: 40px !important;
        justify-content: center !important;
        line-height: 1 !important;
        max-height: 40px !important;
        min-height: 40px !important;
        padding: 0 13px !important;
        width: auto !important;
    }

    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fa-user-circle::before,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fas.fa-user-circle::before,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.far.fa-user-circle::before,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fa-user-circle::before,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fas.fa-user-circle::before,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.far.fa-user-circle::before {
        content: "" !important;
        display: none !important;
    }

    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fa-user-circle::after,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fas.fa-user-circle::after,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.far.fa-user-circle::after,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fa-user-circle::after,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fas.fa-user-circle::after,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.far.fa-user-circle::after {
        color: #ffffff !important;
        content: "Sign in" !important;
        display: block !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        letter-spacing: 0 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell {
        background: #ffffff !important;
        border: 0 !important;
        border-bottom: 1px solid #e7edf5 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: block !important;
        left: auto !important;
        margin-top: calc(var(--amx-mobile-header-height) * -1) !important;
        overflow: visible !important;
        padding: 0 !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        z-index: 230 !important;
    }

    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode .amx-half-map-search-shell,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode .amx-half-map-search-shell {
        left: 0 !important;
        margin-top: 0 !important;
        position: fixed !important;
        right: 0 !important;
        top: 0 !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1 {
        padding: 11px 0 12px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        align-items: center !important;
        column-gap: 8px !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        padding: 0 12px 12px !important;
        row-gap: 12px !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper {
        --amx-half-map-location-action-width: var(--amx-mobile-search-action-width);
        display: block !important;
        grid-column: 1 / -1 !important;
        margin: 0 var(--amx-mobile-signin-slot) 2px var(--amx-mobile-menu-slot) !important;
        max-width: none !important;
        min-width: 0 !important;
        padding: 0 !important;
        position: relative !important;
        width: auto !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper::after {
        background: #e7edf5 !important;
        bottom: -7px !important;
        content: "" !important;
        height: 1px !important;
        left: calc((var(--amx-mobile-menu-slot) + 12px) * -1) !important;
        position: absolute !important;
        right: calc((var(--amx-mobile-signin-slot) + 12px) * -1) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control {
        background: #ffffff !important;
        border: 1px solid #cfd8e6 !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        color: #111827 !important;
        display: block !important;
        font-size: 15px !important;
        font-weight: 750 !important;
        height: 44px !important;
        line-height: 44px !important;
        min-height: 44px !important;
        padding-left: 12px !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action {
        border-radius: 0 10px 10px 0 !important;
        bottom: 0 !important;
        height: 44px !important;
        top: 0 !important;
        width: var(--amx-mobile-search-action-width) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .form-control {
        padding-right: calc(var(--amx-mobile-search-action-width) + 14px) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action.amx-search-has-reset .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .form-control.amx-search-has-reset {
        padding-right: calc(var(--amx-mobile-search-action-width) + 44px) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .wpresidece-reset-btn[data-amx-reset-input-id] {
        right: calc(var(--amx-mobile-search-action-width) + 8px) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save {
        display: flex !important;
        margin: 0 !important;
        max-width: none !important;
        min-width: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action {
        grid-column: 1 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control {
        grid-column: 2 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save {
        grid-column: 3 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        min-width: 0 !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        align-items: center !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        display: inline-flex !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        gap: 6px !important;
        height: 44px !important;
        justify-content: center !important;
        letter-spacing: 0 !important;
        line-height: 1 !important;
        min-height: 44px !important;
        overflow: hidden !important;
        padding: 0 7px !important;
        text-align: center !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button {
        background: #ffffff !important;
        border: 1px solid #cfd8e6 !important;
        color: #111827 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-filter-button i {
        color: var(--wp-estate-main-color-option, #dd3333) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-filter-button.has-active-filters::after {
        background: var(--wp-estate-main-color-option, #dd3333) !important;
        border: 2px solid #ffffff !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        background: var(--wp-estate-main-color-option, #dd3333) !important;
        border: 1px solid var(--wp-estate-main-color-option, #dd3333) !important;
        color: #ffffff !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-save-search-button__label,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button span {
        display: inline !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .caret_filter {
        flex: 0 0 auto !important;
        margin-left: 4px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell:has(.filter_menu[aria-labelledby="adv_actions"].show) {
        z-index: 2147483200 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"].show {
        background: #ffffff !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        inset: 0 !important;
        margin: 0 !important;
        max-height: none !important;
        max-width: none !important;
        min-height: 100dvh !important;
        min-width: 100vw !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 96px) !important;
        position: fixed !important;
        transform: none !important;
        width: 100vw !important;
        z-index: 2147483200 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] .amx-half-map-filter-menu__header {
        align-items: center !important;
        background: #ffffff !important;
        border-bottom: 1px solid #d9dce3 !important;
        display: flex !important;
        flex: 0 0 auto !important;
        justify-content: center !important;
        min-height: 76px !important;
        padding: calc(env(safe-area-inset-top, 0px) + 8px) 56px 8px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 3 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] .amx-half-map-filter-menu__title {
        color: #101828 !important;
        display: block !important;
        font-size: 30px !important;
        font-weight: 900 !important;
        letter-spacing: 0 !important;
        line-height: 1.05 !important;
        text-align: center !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] .amx-half-map-filter-menu__close {
        align-items: center !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        color: #101828 !important;
        cursor: pointer !important;
        display: inline-flex !important;
        font-size: 34px !important;
        font-weight: 500 !important;
        height: 48px !important;
        justify-content: center !important;
        line-height: 1 !important;
        padding: 0 !important;
        position: absolute !important;
        right: 18px !important;
        top: calc(env(safe-area-inset-top, 0px) + 14px) !important;
        width: 44px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] li[data-value] {
        align-items: center !important;
        background: #ffffff !important;
        border: 0 !important;
        color: #111827 !important;
        cursor: pointer !important;
        display: flex !important;
        font-size: 24px !important;
        font-weight: 500 !important;
        gap: 22px !important;
        line-height: 1.1 !important;
        min-height: 76px !important;
        padding: 0 26px 0 30px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] li[data-value]::before {
        border: 3px solid #8a8d9b !important;
        border-radius: 999px !important;
        box-sizing: border-box !important;
        content: "" !important;
        display: inline-block !important;
        flex: 0 0 34px !important;
        height: 34px !important;
        width: 34px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] li[data-value].active::before,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] li[data-value].is-selected::before {
        border: 10px solid var(--wp-estate-main-color-option, #dd3333) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] .amx-half-map-filter-menu__footer {
        background: #ffffff !important;
        border-top: 1px solid #d9dce3 !important;
        bottom: 0 !important;
        left: 0 !important;
        margin: 0 !important;
        padding: 16px 16px calc(env(safe-area-inset-bottom, 0px) + 16px) !important;
        position: fixed !important;
        right: 0 !important;
        z-index: 4 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] .amx-half-map-filter-apply {
        background: var(--wp-estate-main-color-option, #dd3333) !important;
        border: 1px solid var(--wp-estate-main-color-option, #dd3333) !important;
        border-radius: 14px !important;
        box-shadow: none !important;
        color: #ffffff !important;
        font-size: 20px !important;
        font-weight: 800 !important;
        height: 62px !important;
        line-height: 1 !important;
        width: 100% !important;
    }

    .amx-mobile-filter-sheet__eyebrow,
    .amx-mobile-sort-sheet__eyebrow {
        display: none !important;
    }

    .amx-mobile-filter-sheet__header,
    .amx-mobile-sort-sheet__header {
        align-items: center !important;
        border-bottom: 1px solid #d9dce3 !important;
        justify-content: center !important;
        min-height: 72px !important;
        padding: calc(env(safe-area-inset-top, 0px) + 8px) 56px 8px !important;
        position: relative !important;
    }

    .amx-mobile-filter-sheet__title,
    .amx-mobile-sort-sheet__title {
        color: #101828 !important;
        font-size: 28px !important;
        font-weight: 900 !important;
        letter-spacing: 0 !important;
        line-height: 1.08 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .amx-mobile-filter-sheet__close,
    .amx-mobile-sort-sheet__close {
        align-items: center !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        color: #101828 !important;
        display: inline-flex !important;
        font-size: 34px !important;
        font-weight: 500 !important;
        height: 48px !important;
        justify-content: center !important;
        line-height: 1 !important;
        padding: 0 !important;
        position: absolute !important;
        right: 18px !important;
        top: calc(env(safe-area-inset-top, 0px) + 12px) !important;
        width: 44px !important;
    }

    .amx-mobile-sort-option i,
    .amx-mobile-sort-option.is-selected i {
        color: var(--wp-estate-main-color-option, #dd3333) !important;
    }

    .amx-mobile-sort-option.is-selected {
        background: color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 7%, #ffffff) !important;
    }
}

@media (max-width: 374.98px) {
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        font-size: 12px !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}

/* Phase 1: stable mobile search header reset. */
@media (max-width: 767.98px) {
    body.wpresidence_half_map_body_class {
        --amx-half-map-brand-color: var(--wp-estate-main-color-option, #dd3333);
        --amx-mobile-header-height: 68px;
        --amx-mobile-menu-slot: 48px;
        --amx-mobile-signin-slot: 88px;
        --amx-mobile-search-action-width: 54px;
    }

    body.wpresidence_half_map_body_class .mobile_header {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: block !important;
        height: var(--amx-mobile-header-height) !important;
        left: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: none !important;
        right: 0 !important;
        top: 0 !important;
        width: 100% !important;
        z-index: 340 !important;
    }

    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode .mobile_header,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode .mobile_header {
        position: fixed !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user {
        align-items: center !important;
        display: inline-flex !important;
        height: 42px !important;
        justify-content: center !important;
        margin: 0 !important;
        pointer-events: auto !important;
        position: absolute !important;
        top: 13px !important;
        z-index: 4 !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger {
        left: 11px !important;
        width: 34px !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger i {
        color: var(--amx-half-map-brand-color) !important;
        font-size: 24px !important;
        line-height: 1 !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user {
        min-width: 78px !important;
        right: 10px !important;
        width: auto !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i {
        overflow: visible !important;
    }

    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fa-user-circle,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fas.fa-user-circle,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.far.fa-user-circle,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fa-user-circle,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fas.fa-user-circle,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.far.fa-user-circle {
        align-items: center !important;
        background: var(--amx-half-map-brand-color) !important;
        border: 1px solid var(--amx-half-map-brand-color) !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        display: inline-flex !important;
        height: 40px !important;
        justify-content: center !important;
        line-height: 1 !important;
        max-height: 40px !important;
        min-height: 40px !important;
        padding: 0 13px !important;
        position: static !important;
        width: auto !important;
    }

    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fa-user-circle::before,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fas.fa-user-circle::before,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.far.fa-user-circle::before,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fa-user-circle::before,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fas.fa-user-circle::before,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.far.fa-user-circle::before {
        content: "" !important;
        display: none !important;
    }

    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fa-user-circle::after,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fas.fa-user-circle::after,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.far.fa-user-circle::after,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fa-user-circle::after,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fas.fa-user-circle::after,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.far.fa-user-circle::after {
        color: #ffffff !important;
        content: "Sign in" !important;
        display: block !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        letter-spacing: 0 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell {
        background: #ffffff !important;
        border: 0 !important;
        border-bottom: 1px solid #e7edf5 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: block !important;
        left: auto !important;
        margin-top: calc(var(--amx-mobile-header-height) * -1) !important;
        overflow: visible !important;
        padding: 0 !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        z-index: 320 !important;
    }

    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode .amx-half-map-search-shell,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode .amx-half-map-search-shell {
        left: 0 !important;
        margin-top: 0 !important;
        position: fixed !important;
        right: 0 !important;
        top: 0 !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.sticky_adv_anime,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1 {
        background: #ffffff !important;
        border: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        position: relative !important;
        transform: none !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1 {
        min-height: calc(var(--amx-mobile-header-height) + 68px) !important;
        padding: 12px 0 12px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        align-items: center !important;
        column-gap: 8px !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        min-height: calc(var(--amx-mobile-header-height) + 56px) !important;
        padding: 0 12px 0 !important;
        position: relative !important;
        row-gap: 12px !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper {
        --amx-half-map-location-action-width: var(--amx-mobile-search-action-width);
        display: block !important;
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        height: 44px !important;
        margin: 0 var(--amx-mobile-signin-slot) 0 var(--amx-mobile-menu-slot) !important;
        max-width: none !important;
        min-width: 0 !important;
        opacity: 1 !important;
        padding: 0 !important;
        position: relative !important;
        visibility: visible !important;
        width: auto !important;
        z-index: 2 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper::after {
        background: #e7edf5 !important;
        bottom: -12px !important;
        content: "" !important;
        height: 1px !important;
        left: calc((var(--amx-mobile-menu-slot) + 12px) * -1) !important;
        pointer-events: none !important;
        position: absolute !important;
        right: calc((var(--amx-mobile-signin-slot) + 12px) * -1) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control {
        background: #ffffff !important;
        border: 1px solid #cfd8e6 !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        color: #111827 !important;
        display: block !important;
        font-size: 15px !important;
        font-weight: 750 !important;
        height: 44px !important;
        line-height: 44px !important;
        min-height: 44px !important;
        opacity: 1 !important;
        padding-left: 12px !important;
        visibility: visible !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action {
        background: var(--amx-half-map-brand-color) !important;
        border: 1px solid var(--amx-half-map-brand-color) !important;
        border-radius: 0 10px 10px 0 !important;
        bottom: 0 !important;
        height: 44px !important;
        top: 0 !important;
        width: var(--amx-mobile-search-action-width) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .form-control {
        padding-right: calc(var(--amx-mobile-search-action-width) + 14px) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action.amx-search-has-reset .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .form-control.amx-search-has-reset {
        padding-right: calc(var(--amx-mobile-search-action-width) + 44px) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .wpresidece-reset-btn[data-amx-reset-input-id] {
        right: calc(var(--amx-mobile-search-action-width) + 8px) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save {
        display: flex !important;
        grid-row: 2 !important;
        margin: 0 !important;
        max-width: none !important;
        min-width: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action {
        grid-column: 1 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control {
        grid-column: 2 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save {
        grid-column: 3 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        height: 44px !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        align-items: center !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        display: inline-flex !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        gap: 6px !important;
        height: 44px !important;
        justify-content: center !important;
        letter-spacing: 0 !important;
        line-height: 1 !important;
        min-height: 44px !important;
        overflow: hidden !important;
        padding: 0 8px !important;
        text-align: center !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button {
        background: #ffffff !important;
        border: 1px solid #cfd8e6 !important;
        color: #111827 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger {
        justify-content: space-between !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-filter-button i,
    body.wpresidence_half_map_body_class .half_map_controllers_wrapper .half_mobile_toggle_map i,
    body.wpresidence_half_map_body_class .half_map_controllers_wrapper .half_mobile_toggle_listings i,
    body.wpresidence_half_map_body_class .half_map_controllers_wrapper .amx-mobile-dock-sort i {
        color: var(--amx-half-map-brand-color) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-filter-button.has-active-filters::after {
        background: var(--amx-half-map-brand-color) !important;
        border: 2px solid #ffffff !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        background: var(--amx-half-map-brand-color) !important;
        border: 1px solid var(--amx-half-map-brand-color) !important;
        color: #ffffff !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-save-search-button__label,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button span {
        display: inline !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }

    .amx-mobile-filter-sheet__handle {
        display: none !important;
    }

    .amx-mobile-filter-sheet,
    .amx-mobile-sort-sheet {
        align-items: stretch !important;
        background: #ffffff !important;
        justify-content: stretch !important;
    }

    .amx-mobile-filter-sheet__backdrop,
    .amx-mobile-sort-sheet__backdrop {
        background: #ffffff !important;
        backdrop-filter: none !important;
    }

    .amx-mobile-filter-sheet__panel,
    .amx-mobile-sort-sheet__panel {
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        height: 100dvh !important;
        max-height: none !important;
        min-height: 100dvh !important;
        padding: 0 16px calc(env(safe-area-inset-bottom, 0px) + 16px) !important;
        transform: none !important;
        width: 100% !important;
    }

    .amx-mobile-filter-sheet__header,
    .amx-mobile-sort-sheet__header {
        align-items: center !important;
        border-bottom: 1px solid #d9dce3 !important;
        display: flex !important;
        justify-content: center !important;
        margin-left: -16px !important;
        margin-right: -16px !important;
        min-height: 86px !important;
        padding: calc(env(safe-area-inset-top, 0px) + 8px) 58px 8px !important;
        position: relative !important;
    }

    .amx-mobile-filter-sheet__title,
    .amx-mobile-sort-sheet__title {
        color: #101828 !important;
        font-size: 30px !important;
        font-weight: 900 !important;
        letter-spacing: 0 !important;
        line-height: 1.05 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .amx-mobile-filter-sheet__close,
    .amx-mobile-sort-sheet__close {
        align-items: center !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        color: #101828 !important;
        display: inline-flex !important;
        font-size: 34px !important;
        font-weight: 500 !important;
        height: 48px !important;
        justify-content: center !important;
        line-height: 1 !important;
        padding: 0 !important;
        position: absolute !important;
        right: 18px !important;
        top: calc(env(safe-area-inset-top, 0px) + 14px) !important;
        width: 44px !important;
    }

    .amx-mobile-filter-chip.is-selected,
    .amx-mobile-filter-segment.is-selected,
    .amx-mobile-filter-sheet__apply,
    .amx-mobile-sort-option i,
    .amx-mobile-sort-option.is-selected i {
        background-color: var(--amx-half-map-brand-color) !important;
        border-color: var(--amx-half-map-brand-color) !important;
        color: #ffffff !important;
    }

    .amx-mobile-sort-option i,
    .amx-mobile-sort-option.is-selected i {
        background-color: transparent !important;
        color: var(--amx-half-map-brand-color) !important;
    }

    .amx-mobile-sort-option.is-selected {
        background: color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 8%, transparent) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] li[data-value].active::before,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] li[data-value].is-selected::before {
        border-color: var(--amx-half-map-brand-color) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] .amx-half-map-filter-apply {
        background: var(--amx-half-map-brand-color) !important;
        border-color: var(--amx-half-map-brand-color) !important;
    }
}

@media (max-width: 374.98px) {
    body.wpresidence_half_map_body_class {
        --amx-mobile-menu-slot: 44px;
        --amx-mobile-signin-slot: 82px;
        --amx-mobile-search-action-width: 50px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        font-size: 12px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}

/* Phase 2: canonical mobile half-map header layout. */
@media (max-width: 767.98px) {
    body.wpresidence_half_map_body_class {
        --amx-half-map-brand-color: var(--wp-estate-main-color-option, #dd3333);
        --amx-mobile-control-border: #cfd8e6;
        --amx-mobile-control-radius: 10px;
        --amx-mobile-controls-row-height: 64px;
        --amx-mobile-gutter: 12px;
        --amx-mobile-header-row-height: 64px;
        --amx-mobile-menu-slot: 44px;
        --amx-mobile-search-action-width: 56px;
        --amx-mobile-signin-slot: 88px;
    }

    body.wpresidence_half_map_body_class .mobile_header {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: block !important;
        height: var(--amx-mobile-header-row-height) !important;
        left: 0 !important;
        margin: 0 !important;
        max-height: var(--amx-mobile-header-row-height) !important;
        min-height: var(--amx-mobile-header-row-height) !important;
        overflow: visible !important;
        padding: 0 !important;
        pointer-events: none !important;
        position: fixed !important;
        right: 0 !important;
        top: 0 !important;
        transform: none !important;
        width: 100% !important;
        z-index: 2147482000 !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo,
    body.wpresidence_half_map_body_class .mobile_header .mobile-logo img {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user {
        align-items: center !important;
        box-shadow: none !important;
        display: inline-flex !important;
        height: 44px !important;
        justify-content: center !important;
        line-height: 1 !important;
        margin: 0 !important;
        pointer-events: auto !important;
        position: absolute !important;
        top: 10px !important;
        transform: none !important;
        z-index: 3 !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger {
        background: transparent !important;
        border: 0 !important;
        color: var(--amx-half-map-brand-color) !important;
        left: var(--amx-mobile-gutter) !important;
        padding: 0 !important;
        width: var(--amx-mobile-menu-slot) !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger i,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger svg {
        color: var(--amx-half-map-brand-color) !important;
        fill: var(--amx-half-map-brand-color) !important;
        font-size: 28px !important;
        height: 28px !important;
        line-height: 1 !important;
        width: 28px !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user {
        background: var(--amx-half-map-brand-color) !important;
        border: 1px solid var(--amx-half-map-brand-color) !important;
        border-radius: var(--amx-mobile-control-radius) !important;
        color: #ffffff !important;
        font-size: 0 !important;
        font-weight: 800 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        right: var(--amx-mobile-gutter) !important;
        text-align: center !important;
        width: var(--amx-mobile-signin-slot) !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user::after {
        color: #ffffff !important;
        content: "Sign in" !important;
        display: block !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        letter-spacing: 0 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fa-user-circle,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fas.fa-user-circle,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.far.fa-user-circle,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fa-user-circle,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fas.fa-user-circle,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.far.fa-user-circle,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user .menu_user_picture,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i {
        display: none !important;
    }

    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fa-user-circle::before,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fa-user-circle::after,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fas.fa-user-circle::before,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fas.fa-user-circle::after,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.far.fa-user-circle::before,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.far.fa-user-circle::after,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fa-user-circle::before,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fa-user-circle::after,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fas.fa-user-circle::before,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fas.fa-user-circle::after,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.far.fa-user-circle::before,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.far.fa-user-circle::after,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i::before,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i::after {
        content: "" !important;
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell {
        background: #ffffff !important;
        border: 0 !important;
        border-bottom: 1px solid #e7edf5 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: block !important;
        left: auto !important;
        margin: 0 !important;
        max-width: none !important;
        min-height: calc(var(--amx-mobile-header-row-height) + var(--amx-mobile-controls-row-height) + 12px) !important;
        overflow: visible !important;
        padding: 0 !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        z-index: 2147481000 !important;
    }

    body.page-template-advanced_search_results.amx-half-map-mobile-map-mode .amx-half-map-search-shell,
    body.page-template-advanced_search_results-php.amx-half-map-mobile-map-mode .amx-half-map-search-shell,
    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell {
        left: 0 !important;
        position: fixed !important;
        right: 0 !important;
        top: 0 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.sticky_adv_anime,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1 {
        background: #ffffff !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: block !important;
        float: none !important;
        left: auto !important;
        margin: 0 !important;
        max-width: none !important;
        min-height: calc(var(--amx-mobile-header-row-height) + var(--amx-mobile-controls-row-height) + 12px) !important;
        opacity: 1 !important;
        overflow: visible !important;
        padding: 0 !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        visibility: visible !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        align-items: center !important;
        background: #ffffff !important;
        column-gap: 8px !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        min-height: calc(var(--amx-mobile-header-row-height) + var(--amx-mobile-controls-row-height) + 12px) !important;
        overflow: visible !important;
        padding: calc(var(--amx-mobile-header-row-height) + 13px) var(--amx-mobile-gutter) 12px !important;
        position: relative !important;
        row-gap: 0 !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search::before {
        background: #e7edf5 !important;
        content: "" !important;
        height: 1px !important;
        left: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        right: 0 !important;
        top: var(--amx-mobile-header-row-height) !important;
        z-index: 1 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="adv_locations_search_component_wrapper"] {
        --amx-half-map-location-action-width: var(--amx-mobile-search-action-width);
        display: block !important;
        float: none !important;
        grid-column: auto !important;
        grid-row: auto !important;
        height: 44px !important;
        left: calc(var(--amx-mobile-gutter) + var(--amx-mobile-menu-slot) + 8px) !important;
        margin: 0 !important;
        max-height: 44px !important;
        max-width: none !important;
        min-height: 44px !important;
        min-width: 0 !important;
        opacity: 1 !important;
        overflow: visible !important;
        padding: 0 !important;
        position: absolute !important;
        right: calc(var(--amx-mobile-gutter) + var(--amx-mobile-signin-slot) + 8px) !important;
        top: 10px !important;
        transform: none !important;
        visibility: visible !important;
        width: auto !important;
        z-index: 2 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper::after,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="adv_locations_search_component_wrapper"]::after {
        content: none !important;
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper input[type="text"] {
        background: #ffffff !important;
        border: 1px solid var(--amx-mobile-control-border) !important;
        border-radius: var(--amx-mobile-control-radius) !important;
        box-shadow: none !important;
        color: #111827 !important;
        display: block !important;
        font-size: 15px !important;
        font-weight: 750 !important;
        height: 44px !important;
        line-height: 44px !important;
        min-height: 44px !important;
        opacity: 1 !important;
        overflow: hidden !important;
        padding-left: 12px !important;
        text-overflow: ellipsis !important;
        visibility: visible !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action {
        align-items: center !important;
        background: var(--amx-half-map-brand-color) !important;
        border: 1px solid var(--amx-half-map-brand-color) !important;
        border-radius: 0 var(--amx-mobile-control-radius) var(--amx-mobile-control-radius) 0 !important;
        bottom: 0 !important;
        box-shadow: none !important;
        display: inline-flex !important;
        height: 44px !important;
        justify-content: center !important;
        padding: 0 !important;
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
        width: var(--amx-mobile-search-action-width) !important;
        z-index: 3 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action:hover,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action:focus-visible {
        background: var(--amx-half-map-brand-color) !important;
        border-color: var(--amx-half-map-brand-color) !important;
        outline: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action svg {
        color: #ffffff !important;
        height: 24px !important;
        stroke: #ffffff !important;
        width: 24px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .form-control {
        padding-right: calc(var(--amx-mobile-search-action-width) + 14px) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action.amx-search-has-reset .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .form-control.amx-search-has-reset {
        padding-right: calc(var(--amx-mobile-search-action-width) + 40px) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .wpresidece-reset-btn[data-amx-reset-input-id] {
        right: calc(var(--amx-mobile-search-action-width) + 7px) !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save {
        align-self: stretch !important;
        display: flex !important;
        grid-row: 1 !important;
        height: 44px !important;
        margin: 0 !important;
        max-width: none !important;
        min-height: 44px !important;
        min-width: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        position: relative !important;
        transform: none !important;
        width: 100% !important;
        z-index: 2 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action {
        grid-column: 1 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control {
        grid-column: 2 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save {
        grid-column: 3 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-controls-slot {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        border-radius: var(--amx-mobile-control-radius) !important;
        box-shadow: none !important;
        height: 44px !important;
        max-height: 44px !important;
        min-height: 44px !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control {
        background: transparent !important;
        border: 0 !important;
        padding: 0 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        align-items: center !important;
        display: inline-flex !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        gap: 6px !important;
        justify-content: center !important;
        letter-spacing: 0 !important;
        line-height: 1 !important;
        overflow: hidden !important;
        padding: 0 8px !important;
        text-align: center !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button {
        background: #ffffff !important;
        border: 1px solid var(--amx-mobile-control-border) !important;
        color: #111827 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger {
        justify-content: space-between !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger > span,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button span,
    body.wpresidence_half_map_body_class .amx-half-map-save-search-button__label {
        display: inline-block !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .caret,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .caret_filter {
        flex: 0 0 auto !important;
        margin-left: 4px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-filter-button i,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .caret,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .caret_filter,
    body.wpresidence_half_map_body_class .half_map_controllers_wrapper .half_mobile_toggle_map i,
    body.wpresidence_half_map_body_class .half_map_controllers_wrapper .half_mobile_toggle_listings i,
    body.wpresidence_half_map_body_class .half_map_controllers_wrapper .amx-mobile-dock-sort i {
        color: var(--amx-half-map-brand-color) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-filter-button.has-active-filters::after {
        background: var(--amx-half-map-brand-color) !important;
        border: 2px solid #ffffff !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        background: var(--amx-half-map-brand-color) !important;
        border: 1px solid var(--amx-half-map-brand-color) !important;
        color: #ffffff !important;
    }

    .amx-mobile-filter-sheet__handle,
    .amx-mobile-sort-sheet__handle {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    .amx-mobile-filter-sheet__eyebrow,
    .amx-mobile-sort-sheet__eyebrow {
        display: none !important;
    }

    .amx-mobile-filter-sheet,
    .amx-mobile-sort-sheet {
        align-items: stretch !important;
        background: #ffffff !important;
        justify-content: stretch !important;
    }

    .amx-mobile-filter-sheet__backdrop,
    .amx-mobile-sort-sheet__backdrop {
        background: #ffffff !important;
        backdrop-filter: none !important;
    }

    .amx-mobile-filter-sheet__panel,
    .amx-mobile-sort-sheet__panel {
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        height: 100dvh !important;
        max-height: none !important;
        min-height: 100dvh !important;
        padding: 0 16px calc(env(safe-area-inset-bottom, 0px) + 16px) !important;
        transform: none !important;
        width: 100% !important;
    }

    .amx-mobile-filter-sheet__header,
    .amx-mobile-sort-sheet__header {
        align-items: center !important;
        border-bottom: 1px solid #d9dce3 !important;
        display: flex !important;
        justify-content: center !important;
        margin-left: -16px !important;
        margin-right: -16px !important;
        min-height: 86px !important;
        padding: calc(env(safe-area-inset-top, 0px) + 8px) 58px 8px !important;
        position: relative !important;
    }

    .amx-mobile-filter-sheet__title,
    .amx-mobile-sort-sheet__title {
        color: #101828 !important;
        font-size: 30px !important;
        font-weight: 900 !important;
        letter-spacing: 0 !important;
        line-height: 1.05 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .amx-mobile-filter-sheet__close,
    .amx-mobile-sort-sheet__close {
        align-items: center !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        color: #101828 !important;
        display: inline-flex !important;
        font-size: 34px !important;
        font-weight: 500 !important;
        height: 48px !important;
        justify-content: center !important;
        line-height: 1 !important;
        padding: 0 !important;
        position: absolute !important;
        right: 18px !important;
        top: calc(env(safe-area-inset-top, 0px) + 14px) !important;
        width: 44px !important;
    }

    .amx-mobile-filter-chip.is-selected,
    .amx-mobile-filter-segment.is-selected,
    .amx-mobile-filter-sheet__apply {
        background-color: var(--amx-half-map-brand-color) !important;
        border-color: var(--amx-half-map-brand-color) !important;
        color: #ffffff !important;
    }

    .amx-mobile-sort-option i,
    .amx-mobile-sort-option.is-selected i {
        background-color: transparent !important;
        color: var(--amx-half-map-brand-color) !important;
    }

    .amx-mobile-sort-option.is-selected {
        background: color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 8%, transparent) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"].show,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_categ"].show {
        background: #ffffff !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        inset: 0 !important;
        margin: 0 !important;
        max-height: none !important;
        max-width: none !important;
        min-height: 100dvh !important;
        min-width: 100vw !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 96px) !important;
        position: fixed !important;
        transform: none !important;
        width: 100vw !important;
        z-index: 2147483200 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] .amx-half-map-filter-menu__header,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_categ"] .amx-half-map-filter-menu__header {
        align-items: center !important;
        background: #ffffff !important;
        border-bottom: 1px solid #d9dce3 !important;
        display: flex !important;
        flex: 0 0 auto !important;
        justify-content: center !important;
        min-height: 86px !important;
        padding: calc(env(safe-area-inset-top, 0px) + 8px) 58px 8px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 3 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] .amx-half-map-filter-menu__title,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_categ"] .amx-half-map-filter-menu__title {
        color: #101828 !important;
        display: block !important;
        font-size: 30px !important;
        font-weight: 900 !important;
        letter-spacing: 0 !important;
        line-height: 1.05 !important;
        text-align: center !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] .amx-half-map-filter-menu__close,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_categ"] .amx-half-map-filter-menu__close {
        align-items: center !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        color: #101828 !important;
        cursor: pointer !important;
        display: inline-flex !important;
        font-size: 34px !important;
        font-weight: 500 !important;
        height: 48px !important;
        justify-content: center !important;
        line-height: 1 !important;
        padding: 0 !important;
        position: absolute !important;
        right: 18px !important;
        top: calc(env(safe-area-inset-top, 0px) + 14px) !important;
        width: 44px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] li[data-value] {
        align-items: center !important;
        background: #ffffff !important;
        border: 0 !important;
        color: #111827 !important;
        cursor: pointer !important;
        display: flex !important;
        font-size: 25px !important;
        font-weight: 500 !important;
        gap: 24px !important;
        line-height: 1.1 !important;
        min-height: 76px !important;
        padding: 0 26px 0 30px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] li[data-value]::before {
        border: 3px solid #8a8d9b !important;
        border-radius: 999px !important;
        box-sizing: border-box !important;
        content: "" !important;
        display: inline-block !important;
        flex: 0 0 34px !important;
        height: 34px !important;
        width: 34px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] li[data-value].active::before,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] li[data-value].is-selected::before {
        border-color: var(--amx-half-map-brand-color) !important;
        border-width: 10px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] .amx-half-map-filter-menu__footer,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_categ"] .amx-half-map-filter-menu__footer {
        background: #ffffff !important;
        border-top: 1px solid #d9dce3 !important;
        bottom: 0 !important;
        left: 0 !important;
        margin: 0 !important;
        padding: 16px 16px calc(env(safe-area-inset-bottom, 0px) + 16px) !important;
        position: fixed !important;
        right: 0 !important;
        z-index: 4 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] .amx-half-map-filter-apply,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_categ"] .amx-half-map-filter-apply {
        background: var(--amx-half-map-brand-color) !important;
        border: 1px solid var(--amx-half-map-brand-color) !important;
        border-radius: 14px !important;
        box-shadow: none !important;
        color: #ffffff !important;
        font-size: 20px !important;
        font-weight: 800 !important;
        height: 62px !important;
        line-height: 1 !important;
        width: 100% !important;
    }
}

@media (max-width: 374.98px) {
    body.wpresidence_half_map_body_class {
        --amx-mobile-gutter: 10px;
        --amx-mobile-menu-slot: 40px;
        --amx-mobile-search-action-width: 52px;
        --amx-mobile-signin-slot: 82px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        font-size: 12px !important;
        gap: 4px !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user::after {
        font-size: 13px !important;
    }
}

/* Phase 2B: mirror the solved list header in map mode. */
@media (max-width: 767.98px) {
    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell,
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell,
    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell {
        left: 0 !important;
        max-width: none !important;
        min-width: 100vw !important;
        position: fixed !important;
        right: 0 !important;
        top: 0 !important;
        width: 100vw !important;
    }

    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .search_wrapper,
    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .adv-search-1,
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .search_wrapper,
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .adv-search-1,
    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .search_wrapper,
    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .adv-search-1 {
        left: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        min-width: 100vw !important;
        padding: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100vw !important;
    }

    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .wpresidence_note_half_search,
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .wpresidence_note_half_search,
    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .wpresidence_note_half_search {
        column-gap: 8px !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        left: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        min-width: 100vw !important;
        padding: calc(var(--amx-mobile-header-row-height) + 13px) var(--amx-mobile-gutter) 12px !important;
        right: 0 !important;
        transform: none !important;
        width: 100vw !important;
    }

    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .adv_locations_search_component_wrapper,
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .adv_locations_search_component_wrapper,
    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .adv_locations_search_component_wrapper {
        display: block !important;
        float: none !important;
        height: 44px !important;
        left: calc(var(--amx-mobile-gutter) + var(--amx-mobile-menu-slot) + 8px) !important;
        margin: 0 !important;
        max-height: 44px !important;
        max-width: none !important;
        min-height: 44px !important;
        min-width: 0 !important;
        opacity: 1 !important;
        padding: 0 !important;
        position: absolute !important;
        right: calc(var(--amx-mobile-gutter) + var(--amx-mobile-signin-slot) + 8px) !important;
        top: 10px !important;
        transform: none !important;
        visibility: visible !important;
        width: auto !important;
        z-index: 2 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown .filter_menu_trigger {
        align-items: center !important;
        background: #ffffff !important;
        border-color: var(--amx-mobile-control-border) !important;
        border-radius: var(--amx-mobile-control-radius) !important;
        box-shadow: none !important;
        color: #111827 !important;
        display: inline-flex !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        height: 44px !important;
        justify-content: center !important;
        letter-spacing: 0 !important;
        line-height: 1 !important;
        max-height: 44px !important;
        min-height: 44px !important;
        min-width: 0 !important;
        padding: 0 8px !important;
        text-align: center !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown .filter_menu_trigger {
        border: 1px solid var(--amx-mobile-control-border) !important;
        gap: 6px !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .filter_menu_trigger > span,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .filter_menu_trigger .filter_menu_trigger_value {
        flex: 0 1 auto !important;
        font-weight: 800 !important;
        max-width: calc(100% - 18px) !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .caret,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .caret_filter {
        color: #111827 !important;
        flex: 0 0 auto !important;
        margin-left: 4px !important;
    }
}

@media (max-width: 374.98px) {
    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .wpresidence_note_half_search,
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .wpresidence_note_half_search,
    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .wpresidence_note_half_search {
        column-gap: 7px !important;
    }
}

/* Phase 2C: fixed full header stack and balanced mobile separators. */
@media (max-width: 767.98px) {
    body.wpresidence_half_map_body_class {
        --amx-mobile-header-total-height: calc(var(--amx-mobile-header-row-height) + 69px);
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.sticky_adv_anime,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        min-height: var(--amx-mobile-header-total-height) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell {
        position: sticky !important;
        top: 0 !important;
        z-index: 2147481000 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        box-sizing: border-box !important;
        column-gap: 8px !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        padding-bottom: 8px !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save {
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown .filter_menu_trigger {
        align-items: center !important;
        display: inline-flex !important;
        gap: 7px !important;
        justify-content: center !important;
        line-height: 1 !important;
        overflow: hidden !important;
        padding: 0 10px !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .filter_menu_trigger > span,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .filter_menu_trigger .filter_menu_trigger_value {
        display: inline-block !important;
        flex: 0 1 auto !important;
        line-height: 1 !important;
        margin: 0 !important;
        max-width: calc(100% - 22px) !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-align: center !important;
        text-overflow: clip !important;
        vertical-align: middle !important;
        white-space: nowrap !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .caret,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .caret_filter {
        display: inline-block !important;
        flex: 0 0 auto !important;
        line-height: 1 !important;
        margin-left: 2px !important;
        position: static !important;
        vertical-align: middle !important;
    }

    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell,
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell,
    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell {
        position: fixed !important;
    }

    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .wpresidence_note_half_search,
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .wpresidence_note_half_search,
    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .wpresidence_note_half_search {
        background: #ffffff !important;
        box-sizing: border-box !important;
        left: 0 !important;
        max-width: none !important;
        min-height: var(--amx-mobile-header-total-height) !important;
        min-width: 100vw !important;
        padding: calc(var(--amx-mobile-header-row-height) + 13px) var(--amx-mobile-gutter) 8px !important;
        position: fixed !important;
        right: 0 !important;
        top: 0 !important;
        width: 100vw !important;
        z-index: 2147481100 !important;
    }

    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .wpresidence_note_half_search::before,
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .wpresidence_note_half_search::before,
    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .wpresidence_note_half_search::before {
        top: var(--amx-mobile-header-row-height) !important;
    }

    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .adv_locations_search_component_wrapper,
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .adv_locations_search_component_wrapper,
    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .adv_locations_search_component_wrapper {
        left: calc(var(--amx-mobile-gutter) + var(--amx-mobile-menu-slot) + 2px) !important;
        position: fixed !important;
        right: calc(var(--amx-mobile-gutter) + var(--amx-mobile-signin-slot) + 8px) !important;
        top: 10px !important;
        z-index: 2147482100 !important;
    }
}

@media (max-width: 374.98px) {
    body.wpresidence_half_map_body_class {
        --amx-mobile-header-total-height: calc(var(--amx-mobile-header-row-height) + 67px);
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        column-gap: 7px !important;
    }
}

/* Phase 2D: final mobile visual polish for sheets, header controls, and map tools. */
@media (max-width: 767.98px) {
    body.wpresidence_half_map_body_class {
        --amx-mobile-control-height: 42px;
        --amx-mobile-header-total-height: calc(var(--amx-mobile-header-row-height) + 60px);
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user::after,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="adv_locations_search_component_wrapper"],
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper input[type="text"],
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        height: var(--amx-mobile-control-height) !important;
        max-height: var(--amx-mobile-control-height) !important;
        min-height: var(--amx-mobile-control-height) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.sticky_adv_anime,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        min-height: var(--amx-mobile-header-total-height) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        padding: calc(var(--amx-mobile-header-row-height) + 10px) var(--amx-mobile-gutter) 8px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="adv_locations_search_component_wrapper"] {
        top: 10px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper input[type="text"] {
        font-size: 14px !important;
        line-height: var(--amx-mobile-control-height) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action svg {
        height: 22px !important;
        width: 22px !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger i,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger svg {
        color: var(--amx-half-map-brand-color) !important;
        fill: var(--amx-half-map-brand-color) !important;
        font-size: 24px !important;
        height: auto !important;
        line-height: 1 !important;
        transform: none !important;
        width: auto !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user::after {
        align-items: center !important;
        display: inline-flex !important;
        font-size: 13px !important;
        justify-content: center !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        border-radius: var(--amx-mobile-control-radius) !important;
        font-size: 12.5px !important;
        gap: 5px !important;
        justify-content: center !important;
        padding: 0 8px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-filter-button i {
        font-size: 16px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-filter-button.has-active-filters::after {
        right: 18px !important;
        top: 8px !important;
    }

    .amx-mobile-sort-sheet,
    .amx-mobile-filter-sheet {
        z-index: 2147483400 !important;
    }

    .amx-mobile-sort-sheet__panel,
    .amx-mobile-filter-sheet__panel {
        border-radius: 0 !important;
        max-height: 100dvh !important;
        width: 100vw !important;
    }

    .amx-mobile-sort-sheet__header,
    .amx-mobile-filter-sheet__header {
        min-height: 74px !important;
        padding: calc(env(safe-area-inset-top, 0px) + 8px) 54px 8px !important;
    }

    .amx-mobile-sort-sheet__title {
        font-size: 26px !important;
        line-height: 1.05 !important;
    }

    .amx-mobile-filter-sheet__title {
        font-size: 26px !important;
        line-height: 1.05 !important;
    }

    .amx-mobile-sort-sheet__close,
    .amx-mobile-filter-sheet__close {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        color: #101828 !important;
        font-size: 32px !important;
        height: 44px !important;
        right: 17px !important;
        width: 44px !important;
    }

    .amx-mobile-sort-option {
        font-size: 17px !important;
        font-weight: 800 !important;
        min-height: 56px !important;
        padding: 0 20px !important;
    }

    .amx-mobile-sort-option i {
        color: var(--amx-half-map-brand-color) !important;
    }

    .amx-mobile-sort-option.is-selected {
        background: color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 7%, #ffffff) !important;
    }

    .amx-mobile-filter-sheet__body {
        gap: 10px !important;
        padding: 14px 0 !important;
    }

    .amx-mobile-filter-proxy-section {
        padding: 15px 0 17px !important;
    }

    .amx-mobile-filter-proxy-heading {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }

    .amx-mobile-filter-chip-grid,
    .amx-mobile-filter-segment-grid {
        gap: 8px !important;
    }

    .amx-mobile-filter-chip,
    .amx-mobile-filter-segment {
        border-radius: 9px !important;
        font-size: 13.5px !important;
        font-weight: 800 !important;
        min-height: 42px !important;
        padding: 0 8px !important;
    }

    .amx-mobile-filter-subheading,
    .amx-mobile-filter-price-grid label span {
        font-size: 11px !important;
        margin-bottom: 7px !important;
    }

    .amx-mobile-filter-sheet__footer {
        padding: 11px 0 0 !important;
    }

    .amx-mobile-filter-sheet__secondary,
    .amx-mobile-filter-sheet__apply {
        border-radius: 10px !important;
        font-size: 14.5px !important;
        height: 46px !important;
        min-height: 46px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"].show {
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 82px) !important;
        z-index: 2147483500 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] .amx-half-map-filter-menu__header {
        min-height: 74px !important;
        padding: calc(env(safe-area-inset-top, 0px) + 8px) 54px 8px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] .amx-half-map-filter-menu__title {
        font-size: 27px !important;
        line-height: 1.05 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] .amx-half-map-filter-menu__close {
        font-size: 32px !important;
        height: 44px !important;
        right: 17px !important;
        top: calc(env(safe-area-inset-top, 0px) + 13px) !important;
        width: 44px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] li[data-value] {
        font-size: 22px !important;
        gap: 18px !important;
        min-height: 66px !important;
        padding: 0 24px 0 26px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] li[data-value]::before {
        flex-basis: 30px !important;
        height: 30px !important;
        width: 30px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] li[data-value].active::before,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] li[data-value].is-selected::before {
        border-color: var(--amx-half-map-brand-color) !important;
        border-width: 8px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] .amx-half-map-filter-menu__footer {
        padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] .amx-half-map-filter-apply {
        border-radius: 12px !important;
        font-size: 18px !important;
        height: 54px !important;
        min-height: 54px !important;
    }

    body.wpresidence_half_map_body_class:has(.filter_menu[aria-labelledby="adv_actions"].show) .mobile_header,
    body.wpresidence_half_map_body_class:has(.filter_menu[aria-labelledby="adv_actions"].show) .amx-half-map-search-shell .adv_locations_search_component_wrapper,
    body.wpresidence_half_map_body_class:has(.filter_menu[aria-labelledby="adv_actions"].show) .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control,
    body.wpresidence_half_map_body_class:has(.filter_menu[aria-labelledby="adv_actions"].show) .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save {
        pointer-events: none !important;
        visibility: hidden !important;
    }

    body.wpresidence_half_map_body_class:has(.filter_menu[aria-labelledby="adv_actions"].show) .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"].show,
    body.wpresidence_half_map_body_class:has(.filter_menu[aria-labelledby="adv_actions"].show) .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"].show * {
        pointer-events: auto !important;
        visibility: visible !important;
    }

    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode {
        --amx-map-tools-top: calc(var(--amx-mobile-header-total-height) + 8px);
    }

    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode #google_map_prop_list_wrapper #gmapzoomplus,
    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode #google_map_prop_list_wrapper #gmapzoomminus {
        height: 38px !important;
        left: 12px !important;
        width: 38px !important;
        z-index: 2147480000 !important;
    }

    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode #google_map_prop_list_wrapper #gmapzoomplus {
        top: var(--amx-map-tools-top) !important;
    }

    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode #google_map_prop_list_wrapper #gmapzoomminus {
        top: calc(var(--amx-map-tools-top) + 48px) !important;
    }

    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .loex-clear {
        right: 12px !important;
        top: var(--amx-map-tools-top) !important;
        z-index: 2147480000 !important;
    }

    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .loex-clear-button,
    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .loex-draw-button {
        font-size: 12.5px !important;
        min-height: 38px !important;
        padding: 8px 13px !important;
    }

    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-map-count-chip {
        height: 38px !important;
        left: calc(50% + 28px) !important;
        min-width: 178px !important;
        padding: 0 12px !important;
        right: auto !important;
        top: var(--amx-map-tools-top) !important;
        transform: translateX(-50%) !important;
        z-index: 2147480000 !important;
    }
}

@media (max-width: 374.98px) {
    body.wpresidence_half_map_body_class {
        --amx-mobile-control-height: 40px;
        --amx-mobile-header-total-height: calc(var(--amx-mobile-header-row-height) + 57px);
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        font-size: 11.5px !important;
        padding: 0 6px !important;
    }

    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-map-count-chip {
        left: calc(50% + 20px) !important;
        min-width: 164px !important;
    }
}

/* Phase 2E: equal mobile action widths and final footer/map-chip tuning. */
@media (max-width: 767.98px) {
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        column-gap: 8px !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        justify-items: stretch !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save {
        box-sizing: border-box !important;
        flex: 1 1 0 !important;
        max-width: none !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        box-sizing: border-box !important;
        flex: 1 1 auto !important;
        max-width: none !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown {
        background: transparent !important;
        border: 0 !important;
        padding: 0 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown .filter_menu_trigger {
        background: #ffffff !important;
        border: 1px solid var(--amx-mobile-control-border) !important;
        border-radius: var(--amx-mobile-control-radius) !important;
        box-sizing: border-box !important;
        color: #111827 !important;
        height: var(--amx-mobile-control-height) !important;
        justify-content: center !important;
        line-height: 1 !important;
        max-height: var(--amx-mobile-control-height) !important;
        min-height: var(--amx-mobile-control-height) !important;
        padding: 0 8px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .filter_menu_trigger > span,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .filter_menu_trigger .filter_menu_trigger_value {
        max-width: 100% !important;
        text-align: center !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .caret,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .caret_filter,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .filter_menu_trigger::after,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown .dropdown-toggle::after,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .filter_menu_trigger i {
        content: none !important;
        display: none !important;
        opacity: 0 !important;
        width: 0 !important;
    }

    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-map-count-chip {
        border-radius: 10px !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        height: 34px !important;
        left: auto !important;
        max-width: calc(100vw - 178px) !important;
        min-width: 0 !important;
        overflow: hidden !important;
        padding: 0 8px !important;
        right: 124px !important;
        text-overflow: ellipsis !important;
        top: calc(var(--amx-map-tools-top) + 2px) !important;
        transform: none !important;
        width: max-content !important;
    }

    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .loex-clear {
        top: calc(var(--amx-map-tools-top) + 2px) !important;
    }

    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .loex-clear-button,
    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .loex-draw-button {
        border-radius: 10px !important;
        font-size: 12px !important;
        min-height: 34px !important;
        padding: 7px 12px !important;
    }

    .amx-mobile-filter-sheet__panel {
        box-sizing: border-box !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .amx-mobile-filter-sheet__footer {
        background: #ffffff !important;
        border-top: 1px solid #eef1f5 !important;
        bottom: 0 !important;
        box-sizing: border-box !important;
        gap: 10px !important;
        left: auto !important;
        margin: 0 -16px !important;
        padding: 10px 16px calc(env(safe-area-inset-bottom, 0px) + 10px) !important;
        position: sticky !important;
        right: auto !important;
        width: auto !important;
    }

    .amx-mobile-filter-sheet__secondary,
    .amx-mobile-filter-sheet__apply {
        border-radius: 9px !important;
        font-size: 14px !important;
        height: 44px !important;
        min-height: 44px !important;
    }
}

@media (max-width: 374.98px) {
    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-map-count-chip {
        left: auto !important;
        max-width: calc(100vw - 166px) !important;
        min-width: 0 !important;
        overflow: hidden !important;
        right: 116px !important;
        text-overflow: ellipsis !important;
        transform: none !important;
        width: max-content !important;
    }
}

/* Keep the mobile menu and sign-in controls attached to the half-map header, not the viewport. */
@media (max-width: 767.98px) {
    body.wpresidence_half_map_body_class .amx-half-map-search-shell > .mobile_header[data-amx-half-map-header-anchored="1"],
    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell > .mobile_header[data-amx-half-map-header-anchored="1"],
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell > .mobile_header[data-amx-half-map-header-anchored="1"] {
        bottom: auto !important;
        left: 0 !important;
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
        transform: none !important;
        width: 100% !important;
    }
}

/* Final mobile header rhythm: match map/list spacing and keep action row centered between dividers. */
@media (max-width: 767.98px) {
    body.wpresidence_half_map_body_class {
        --amx-mobile-controls-row-height: 62px;
        --amx-mobile-header-total-height: calc(var(--amx-mobile-header-row-height) + var(--amx-mobile-controls-row-height));
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.sticky_adv_anime,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search,
    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .wpresidence_note_half_search,
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .wpresidence_note_half_search {
        min-height: var(--amx-mobile-header-total-height) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search,
    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .wpresidence_note_half_search,
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .wpresidence_note_half_search {
        padding: calc(var(--amx-mobile-header-row-height) + 10px) var(--amx-mobile-gutter) 10px !important;
    }

    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-map-count-chip {
        max-width: calc(100vw - 170px) !important;
        right: 116px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="adv_locations_search_component_wrapper"],
    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .adv_locations_search_component_wrapper,
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .adv_locations_search_component_wrapper {
        left: calc(var(--amx-mobile-gutter) + var(--amx-mobile-menu-slot) + 2px) !important;
    }
}

@media (max-width: 374.98px) {
    body.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-map-count-chip {
        max-width: calc(100vw - 158px) !important;
        right: 108px !important;
    }
}

/* Final mobile sheet typography and signed-in header avatar alignment. */
@media (max-width: 767.98px) {
    .amx-mobile-filter-sheet__title,
    .amx-mobile-sort-sheet__title,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] .amx-half-map-filter-menu__title {
        font-size: 24px !important;
        font-weight: 800 !important;
        letter-spacing: 0 !important;
        line-height: 1.08 !important;
    }

    .amx-mobile-filter-sheet__close,
    .amx-mobile-sort-sheet__close,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] .amx-half-map-filter-menu__close {
        font-size: 30px !important;
        height: 42px !important;
        width: 42px !important;
    }

    .amx-mobile-filter-proxy-heading {
        font-size: 15px !important;
        font-weight: 800 !important;
        letter-spacing: 0 !important;
        line-height: 1.15 !important;
        margin-bottom: 9px !important;
    }

    .amx-mobile-filter-chip,
    .amx-mobile-filter-segment {
        font-size: 13px !important;
        font-weight: 700 !important;
        letter-spacing: 0 !important;
        line-height: 1.1 !important;
        min-height: 40px !important;
    }

    .amx-mobile-filter-subheading,
    .amx-mobile-filter-price-grid label span {
        font-size: 10.5px !important;
        font-weight: 800 !important;
        letter-spacing: 0 !important;
        line-height: 1.1 !important;
    }

    .amx-mobile-filter-sheet__secondary,
    .amx-mobile-filter-sheet__apply {
        font-size: 14px !important;
        font-weight: 800 !important;
        letter-spacing: 0 !important;
    }

    .amx-mobile-sort-option {
        font-size: 16px !important;
        font-weight: 700 !important;
        letter-spacing: 0 !important;
        line-height: 1.15 !important;
        min-height: 52px !important;
        padding: 0 20px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] li[data-value] {
        font-size: 19px !important;
        font-weight: 600 !important;
        gap: 14px !important;
        letter-spacing: 0 !important;
        line-height: 1.15 !important;
        min-height: 60px !important;
        padding: 0 22px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] li[data-value]::before {
        flex-basis: 27px !important;
        height: 27px !important;
        width: 27px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] li[data-value].active::before,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] li[data-value].is-selected::before {
        border-width: 7px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] .amx-half-map-filter-apply {
        font-size: 16px !important;
        font-weight: 800 !important;
        letter-spacing: 0 !important;
    }

    body.logged-in.wpresidence_half_map_body_class {
        --amx-mobile-signin-slot: 48px;
    }

    body.logged-in.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        box-shadow: none !important;
        color: inherit !important;
        font-size: 0 !important;
        height: 44px !important;
        max-width: 44px !important;
        min-width: 44px !important;
        overflow: visible !important;
        padding: 0 !important;
        top: 10px !important;
        width: 44px !important;
    }

    body.logged-in.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user::before,
    body.logged-in.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user::after {
        content: none !important;
        display: none !important;
    }

    body.logged-in.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user .menu_user_picture {
        background-color: #c9c9c9 !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-size: cover !important;
        border: 1px solid #8f949e !important;
        border-radius: 50% !important;
        box-sizing: border-box !important;
        display: block !important;
        float: none !important;
        height: 42px !important;
        inset: auto !important;
        margin: 0 !important;
        min-height: 42px !important;
        min-width: 42px !important;
        position: relative !important;
        width: 42px !important;
    }

    body.logged-in.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i,
    body.logged-in.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i::before,
    body.logged-in.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i::after {
        content: none !important;
        display: none !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger {
        overflow: visible !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger::before,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger::after {
        content: none !important;
        display: none !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger i {
        color: var(--amx-half-map-brand-color) !important;
        display: block !important;
        fill: var(--amx-half-map-brand-color) !important;
        font-size: 17px !important;
        height: 17px !important;
        line-height: 17px !important;
        margin: 0 !important;
        width: 17px !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger i::before {
        content: "\f0c9" !important;
        display: block !important;
        font-family: "Font Awesome 5 Free" !important;
        font-weight: 900 !important;
        line-height: 17px !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger i::after,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger svg {
        content: none !important;
        display: none !important;
    }

    @supports selector(body:has(.mobile_header)) {
        body.wpresidence_half_map_body_class:has(.mobile_header .mobile-trigger-user .menu_user_picture) {
            --amx-mobile-signin-slot: 48px;
        }

        body.wpresidence_half_map_body_class:has(.mobile_header .mobile-trigger-user .menu_user_picture) .mobile_header .mobile-trigger-user {
            background: transparent !important;
            border: 0 !important;
            border-radius: 0 !important;
            box-sizing: border-box !important;
            box-shadow: none !important;
            color: inherit !important;
            font-size: 0 !important;
            height: 44px !important;
            max-width: 44px !important;
            min-width: 44px !important;
            overflow: visible !important;
            padding: 0 !important;
            top: 10px !important;
            width: 44px !important;
        }

        body.wpresidence_half_map_body_class:has(.mobile_header .mobile-trigger-user .menu_user_picture) .mobile_header .mobile-trigger-user::before,
        body.wpresidence_half_map_body_class:has(.mobile_header .mobile-trigger-user .menu_user_picture) .mobile_header .mobile-trigger-user::after {
            content: none !important;
            display: none !important;
        }

        body.wpresidence_half_map_body_class:has(.mobile_header .mobile-trigger-user .menu_user_picture) .mobile_header .mobile-trigger-user .menu_user_picture {
            background-color: #c9c9c9 !important;
            background-position: center center !important;
            background-repeat: no-repeat !important;
            background-size: cover !important;
            border: 1px solid #8f949e !important;
            border-radius: 50% !important;
            box-sizing: border-box !important;
            display: block !important;
            float: none !important;
            height: 42px !important;
            inset: auto !important;
            margin: 0 !important;
            min-height: 42px !important;
            min-width: 42px !important;
            position: relative !important;
            width: 42px !important;
        }

        body.wpresidence_half_map_body_class:has(.mobile_header .mobile-trigger-user .menu_user_picture) .mobile_header .mobile-trigger-user i,
        body.wpresidence_half_map_body_class:has(.mobile_header .mobile-trigger-user .menu_user_picture) .mobile_header .mobile-trigger-user i::before,
        body.wpresidence_half_map_body_class:has(.mobile_header .mobile-trigger-user .menu_user_picture) .mobile_header .mobile-trigger-user i::after {
            content: none !important;
            display: none !important;
        }
    }
}

@media (min-width: 768px) {
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] li[data-value] {
        align-items: center !important;
        color: #111827 !important;
        display: flex !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        gap: 12px !important;
        line-height: 1.2 !important;
        min-height: 48px !important;
        padding: 10px 16px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] li[data-value]::before {
        border: 3px solid #8a8d9b !important;
        border-radius: 999px !important;
        box-sizing: border-box !important;
        content: "" !important;
        display: inline-block !important;
        flex: 0 0 22px !important;
        height: 22px !important;
        width: 22px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] li[data-value].active::before,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"] li[data-value].is-selected::before {
        border-color: var(--wp-estate-main-color-option, #dd3333) !important;
        border-width: 7px !important;
    }

    /* Map tool controls: match the compact mobile treatment. */
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper .loex-clear-button,
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper .loex-draw-button,
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #gmapzoomplus,
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #gmapzoomminus {
        align-items: center !important;
        background: rgba(255, 255, 255, 0.96) !important;
        border: 1px solid rgba(203, 213, 225, 0.92) !important;
        border-radius: 10px !important;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14) !important;
        box-sizing: border-box !important;
        color: #0f172a !important;
        display: inline-flex !important;
        font-family: var(--amx-map-font-family) !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        height: 34px !important;
        justify-content: center !important;
        letter-spacing: 0 !important;
        line-height: 1 !important;
        min-height: 34px !important;
    }

    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper .loex-clear-button,
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper .loex-draw-button {
        min-width: 104px !important;
        padding: 0 12px !important;
    }

    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #gmapzoomplus,
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #gmapzoomminus {
        padding: 0 !important;
        width: 34px !important;
    }

    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #gmapzoomplus {
        top: 16px !important;
    }

    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #gmapzoomminus {
        top: 58px !important;
    }

    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #gmapzoomplus i,
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #gmapzoomminus i {
        color: #0f172a !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
    }

    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper .loex-clear-button:hover,
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper .loex-clear-button:focus,
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper .loex-clear-button:focus-visible,
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper .loex-clear-button:active,
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper .loex-draw-button:hover,
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper .loex-draw-button:focus,
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper .loex-draw-button:focus-visible,
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper .loex-draw-button:active,
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #gmapzoomplus:hover,
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #gmapzoomplus:focus,
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #gmapzoomplus:focus-visible,
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #gmapzoomplus:active,
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #gmapzoomminus:hover,
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #gmapzoomminus:focus,
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #gmapzoomminus:focus-visible,
    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper #gmapzoomminus:active {
        background: #ffffff !important;
        border-color: var(--wp-estate-main-color-option, #dd3333) !important;
        box-shadow: 0 0 0 2px color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 14%, transparent), 0 12px 28px rgba(15, 23, 42, 0.14) !important;
        outline: none !important;
    }

    body.wpresidence_half_map_body_class #google_map_prop_list_wrapper .amx-map-count-chip {
        border-radius: 10px !important;
        box-sizing: border-box !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        height: 34px !important;
        line-height: 1 !important;
        min-height: 34px !important;
        padding: 0 12px !important;
        right: 128px !important;
    }
}

/* Codex request pass 20260621: hide listing-card titles and keep prices tight. */
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .property-unit-information-wrapper > h4,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .property-unit-information-wrapper > h4 a,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .property_unit_custom_element.title,
body.wpresidence_half_map_body_class #google_map_prop_list .listing_wrapper .property-unit-information-wrapper > h4,
body.wpresidence_half_map_body_class #google_map_prop_list .listing_wrapper .property-unit-information-wrapper > h4 a,
body.wpresidence_half_map_body_class #google_map_prop_list .listing_wrapper .property_unit_custom_element.title {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    max-height: 0 !important;
    min-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    visibility: hidden !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .listing_unit_price_wrapper,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .property_unit_custom_element.price,
body.wpresidence_half_map_body_class #google_map_prop_list .listing_wrapper .listing_unit_price_wrapper,
body.wpresidence_half_map_body_class #google_map_prop_list .listing_wrapper .property_unit_custom_element.price {
    margin-top: 0 !important;
}

/* Codex request pass 20260621: map pin popup uses the compact listing-card shape. */
body.wpresidence_half_map_body_class .mybox {
    overflow: visible !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-anchor {
    box-sizing: border-box;
    color: #111827;
    font-family: var(--amx-map-font-family, Roboto, Arial, sans-serif);
    max-width: calc(100vw - 32px);
    pointer-events: auto;
    transform: translate(-50%, -50%);
    width: 320px;
}

body.wpresidence_half_map_body_class .leaflet-popup-content .amx-map-popup-anchor {
    margin: 0;
}

body.wpresidence_half_map_body_class .amx-map-popup-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.98);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    width: 100%;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned {
    padding: 0;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .amx-map-popup-card__listing-copy {
    box-sizing: border-box !important;
    display: block !important;
    float: none !important;
    margin: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    width: 100% !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_listing.property_unit_type8 {
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 100% !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .listing-unit-img-wrapper {
    aspect-ratio: 16 / 10 !important;
    background: #eef2f7 !important;
    border-radius: 8px 8px 0 0 !important;
    height: auto !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .listing-unit-img-wrapper .carousel,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .listing-unit-img-wrapper .carousel-inner,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .listing-unit-img-wrapper .item,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .listing-unit-img-wrapper .carousel-item,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .listing-unit-img-wrapper .item.active,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .listing-unit-img-wrapper .carousel-item.active {
    height: 100% !important;
    width: 100% !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .listing-unit-img-wrapper img {
    border-radius: 0 !important;
    display: block !important;
    height: 100% !important;
    object-fit: cover !important;
    width: 100% !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property-unit-information-wrapper {
    box-sizing: border-box !important;
    padding: 10px 12px 12px !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property-unit-information-wrapper > h4,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property-unit-information-wrapper > h4 a,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_unit_custom_element.title {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    visibility: hidden !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_card_categories_wrapper {
    color: #111827 !important;
    display: block !important;
    float: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    margin: 0 0 5px !important;
    overflow-wrap: anywhere !important;
    padding: 0 !important;
    width: auto !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_card_categories_wrapper a {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    text-decoration: none !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_details_type1_wrapper,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_listing_details,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_listing_details_v2 {
    color: #1f2937 !important;
    display: block !important;
    float: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    gap: 0 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    margin: 0 0 8px !important;
    overflow-wrap: normal !important;
    padding: 0 !important;
    white-space: nowrap !important;
    width: auto !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_details_type1_wrapper span,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_listing_details span,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_listing_details_v2 span {
    color: inherit !important;
    display: inline !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_details_type1_value {
    font-weight: 600 !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .listing_unit_price_wrapper,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_unit_custom_element.price {
    bottom: auto !important;
    color: var(--wp-estate-main-color-option, #dd3333) !important;
    display: block !important;
    float: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    left: auto !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    width: auto !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .listing_unit_price_wrapper a,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .listing_unit_price_wrapper span,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_unit_custom_element.price a,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_unit_custom_element.price span {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .tag-wrapper {
    align-items: flex-start !important;
    display: flex !important;
    gap: 6px !important;
    justify-content: space-between !important;
    left: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    right: 42px !important;
    top: 10px !important;
    width: auto !important;
    z-index: 3 !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .tag-wrapper .featured_div {
    align-items: center !important;
    background: #ef4444 !important;
    border: 0 !important;
    border-radius: 5px !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    float: none !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    margin: 0 auto 0 0 !important;
    min-height: 24px !important;
    padding: 6px 8px !important;
    position: static !important;
    text-align: center !important;
    white-space: nowrap !important;
    width: auto !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .tag-wrapper .featured_div {
    margin-right: auto !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .tag-wrapper .status-wrapper {
    align-items: center !important;
    display: inline-flex !important;
    float: none !important;
    gap: 6px !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    position: static !important;
    width: auto !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .tag-wrapper .action_tag_wrapper,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .tag-wrapper .ribbon-inside,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .tag-wrapper .slider-property-status {
    align-items: center !important;
    background: var(--wp-estate-main-color-option, #dd3333) !important;
    border: 0 !important;
    border-radius: 5px !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    float: none !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    margin: 0 !important;
    min-height: 24px !important;
    padding: 6px 8px !important;
    position: static !important;
    text-align: center !important;
    white-space: nowrap !important;
    width: auto !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .icon-fav,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .share_unit {
    bottom: 12px !important;
    position: absolute !important;
    right: 12px !important;
    z-index: 4 !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_agent_wrapper,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .wpestate_property_card_contact_wrapper {
    display: none !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card__media {
    aspect-ratio: 16 / 10;
    background: #eef2f7;
    overflow: hidden;
    position: relative;
    width: 100%;
}

body.wpresidence_half_map_body_class .amx-map-popup-card__media-link {
    display: block;
    height: 100%;
    width: 100%;
}

body.wpresidence_half_map_body_class .amx-map-popup-card__image {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

body.wpresidence_half_map_body_class .amx-map-popup-card__image--placeholder {
    background: linear-gradient(135deg, #e5edf8 0%, #f8fafc 100%);
}

body.wpresidence_half_map_body_class .amx-map-popup-card__tags {
    align-items: flex-start;
    display: flex;
    gap: 6px;
    justify-content: space-between;
    left: 10px;
    pointer-events: none;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 3;
}

body.wpresidence_half_map_body_class .amx-map-popup-card__tags .featured_div {
    align-items: center !important;
    background: #ef4444 !important;
    border: 0 !important;
    border-radius: 5px !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    color: #ffffff !important;
    display: inline-flex !important;
    float: none !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    margin: 0 auto 0 0 !important;
    min-height: 24px;
    padding: 6px 8px !important;
    position: static !important;
    text-align: center;
    white-space: nowrap;
}

body.wpresidence_half_map_body_class .amx-map-popup-card__tags .tag-wrapper,
body.wpresidence_half_map_body_class .amx-map-popup-card__tags .status-wrapper {
    align-items: center;
    display: flex;
    float: none !important;
    gap: 6px;
    justify-content: flex-end;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    width: auto !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card__tags .action_tag_wrapper,
body.wpresidence_half_map_body_class .amx-map-popup-card__tags .ribbon-inside,
body.wpresidence_half_map_body_class .amx-map-popup-card__tags .slider-property-status {
    background: var(--wp-estate-main-color-option, #dd3333) !important;
    border: 0 !important;
    border-radius: 5px !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    color: #ffffff !important;
    display: inline-flex !important;
    float: none !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    min-height: 24px;
    padding: 6px 8px !important;
    position: static !important;
    text-align: center;
    white-space: nowrap;
}

body.wpresidence_half_map_body_class .amx-map-popup-card__body {
    box-sizing: border-box;
    padding: 10px 12px 12px;
}

body.wpresidence_half_map_body_class .amx-map-popup-card__category {
    color: #111827;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.35;
    margin: 0 0 5px;
    overflow-wrap: anywhere;
}

body.wpresidence_half_map_body_class .amx-map-popup-card__meta,
body.wpresidence_half_map_body_class .amx-map-popup-card__meta .property_details_type1_wrapper,
body.wpresidence_half_map_body_class .amx-map-popup-card__meta .property_listing_details,
body.wpresidence_half_map_body_class .amx-map-popup-card__meta .property_listing_details_v2 {
    color: #1f2937;
    display: block;
    float: none !important;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.35;
    margin: 0 0 8px !important;
    overflow-wrap: normal !important;
    padding: 0 !important;
    white-space: nowrap !important;
    width: auto !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card__meta span {
    color: inherit;
    display: inline !important;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
}

body.wpresidence_half_map_body_class .amx-map-popup-card__meta .property_details_type1_value {
    font-weight: 600;
}

body.wpresidence_half_map_body_class .amx-map-popup-card__dot {
    color: #6b7280;
    font-weight: 500;
}

body.wpresidence_half_map_body_class .amx-map-popup-card__price,
body.wpresidence_half_map_body_class .amx-map-popup-card__price .listing_unit_price_wrapper,
body.wpresidence_half_map_body_class .amx-map-popup-card__price .property_unit_custom_element.price {
    bottom: auto !important;
    color: var(--wp-estate-main-color-option, #dd3333) !important;
    display: block;
    float: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    left: auto !important;
    letter-spacing: 0;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    width: auto !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card__price a,
body.wpresidence_half_map_body_class .amx-map-popup-card__price span {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card #infocloser.amx-map-popup-card__close {
    align-items: center;
    appearance: none;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    height: 26px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 8px;
    top: 8px;
    width: 26px;
    z-index: 5;
}

body.wpresidence_half_map_body_class .amx-map-popup-card #infocloser.amx-map-popup-card__close::before {
    align-items: center !important;
    color: #111827 !important;
    content: "\00d7" !important;
    display: flex !important;
    font-family: Arial, sans-serif !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    height: 100% !important;
    justify-content: center !important;
    line-height: 1 !important;
    position: static !important;
    text-align: center !important;
    width: 100% !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card #infocloser.amx-map-popup-card__close:hover,
body.wpresidence_half_map_body_class .amx-map-popup-card #infocloser.amx-map-popup-card__close:focus-visible {
    border-color: var(--wp-estate-main-color-option, #dd3333);
    outline: none;
}

@media (max-width: 480px) {
    body.wpresidence_half_map_body_class .amx-map-popup-anchor {
        width: min(292px, calc(100vw - 32px));
    }

    body.wpresidence_half_map_body_class .amx-map-popup-card__body {
        padding: 9px 10px 11px;
    }
}

/* Codex request pass 20260622: wider half-map listing cards with Zillow-like fact rhythm. */
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar {
    box-sizing: border-box !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar #listing_ajax_container.ajax-map {
    margin-left: -6px !important;
    margin-right: -6px !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar > .amx-ad-search-top-slot,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar > .amx-ad-city-band-slot {
    margin: 14px 0 20px !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar > .amx-ad-search-top-slot .amx-ad-slot--search_top,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar > .amx-ad-city-band-slot .amx-ad-slot--city_band {
    --amx-ad-media-fit: cover !important;
    --amx-ad-media-ratio: 6 / 1 !important;
    background: #07111f !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
    display: block !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: relative !important;
    width: 100% !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar > .amx-ad-search-top-slot .amx-ad-slot--search_top .amx-ad-copy,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar > .amx-ad-city-band-slot .amx-ad-slot--city_band .amx-ad-copy {
    display: none !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar > .amx-ad-search-top-slot .amx-ad-slot--search_top .amx-ad-disclosure,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar > .amx-ad-city-band-slot .amx-ad-slot--city_band .amx-ad-disclosure {
    align-items: center !important;
    background: rgba(17, 24, 39, 0.94) !important;
    border: 0 !important;
    border-radius: 5px !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    left: 10px !important;
    line-height: 1 !important;
    margin: 0 !important;
    min-height: 22px !important;
    padding: 4px 8px !important;
    position: absolute !important;
    text-transform: none !important;
    top: 10px !important;
    white-space: nowrap !important;
    z-index: 2 !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar > .amx-ad-search-top-slot .amx-ad-slot--search_top .amx-ad-media,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar > .amx-ad-city-band-slot .amx-ad-slot--city_band .amx-ad-media,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar > .amx-ad-search-top-slot .amx-ad-slot--search_top.amx-ad-fallback::before,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar > .amx-ad-city-band-slot .amx-ad-slot--city_band.amx-ad-fallback::before {
    aspect-ratio: 6 / 1 !important;
    border-radius: inherit !important;
    display: block !important;
    flex: none !important;
    margin: 0 !important;
    max-height: 156px !important;
    max-width: none !important;
    min-height: 88px !important;
    overflow: hidden !important;
    width: 100% !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar > .amx-ad-search-top-slot .amx-ad-slot--search_top.amx-ad-fallback::before,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar > .amx-ad-city-band-slot .amx-ad-slot--city_band.amx-ad-fallback::before {
    background:
        linear-gradient(135deg, rgba(4, 13, 28, 0.20), rgba(4, 13, 28, 0.06)),
        url("../../assets/images/advertise/availablemax-advertise-hero-page-custom.png") !important;
    background-position: center !important;
    background-size: cover !important;
    content: "" !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar > .amx-ad-search-top-slot .amx-ad-slot--search_top .amx-ad-image,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar > .amx-ad-search-top-slot .amx-ad-slot--search_top .amx-ad-media video,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar > .amx-ad-city-band-slot .amx-ad-slot--city_band .amx-ad-image,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar > .amx-ad-city-band-slot .amx-ad-slot--city_band .amx-ad-media video {
    display: block !important;
    height: 100% !important;
    object-fit: cover !important;
    width: 100% !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar > .amx-ad-search-top-slot .amx-ad-slot--search_top .amx-ad-media--svg .amx-ad-image--svg,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar > .amx-ad-city-band-slot .amx-ad-slot--city_band .amx-ad-media--svg .amx-ad-image--svg {
    object-fit: cover !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar > .amx-ad-search-top-slot .amx-ad-slot--search_top .amx-ad-media,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar > .amx-ad-city-band-slot .amx-ad-slot--city_band .amx-ad-media {
    max-height: none !important;
    min-height: 0 !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper {
    box-sizing: border-box !important;
    margin-bottom: 18px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .property_listing.property_unit_type8,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .property_listing {
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
    overflow: hidden !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .property_listing.property_unit_type8:hover,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .property_listing:hover {
    border: 0 !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12) !important;
    outline: 0 !important;
    transform: translateY(-1px);
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .listing-unit-img-wrapper {
    aspect-ratio: 16 / 8.25 !important;
    background: #edf2f7 !important;
    border-radius: 10px 10px 0 0 !important;
    height: auto !important;
    margin: 0 !important;
    max-height: 218px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .listing-unit-img-wrapper .carousel,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .listing-unit-img-wrapper .carousel-inner,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .listing-unit-img-wrapper .item,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .listing-unit-img-wrapper .carousel-item,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .listing-unit-img-wrapper .item.active,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .listing-unit-img-wrapper .carousel-item.active {
    height: 100% !important;
    width: 100% !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .listing-unit-img-wrapper img {
    border-radius: 0 !important;
    display: block !important;
    height: 100% !important;
    object-fit: cover !important;
    width: 100% !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .property-unit-information-wrapper {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 96px !important;
    padding: 12px 14px 13px !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-half-map-card-enhanced .property_card_categories_wrapper,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-half-map-card-enhanced .property_categories_type1_wrapper,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-half-map-card-enhanced .property_details_type1_wrapper,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-half-map-card-enhanced .property_listing_details,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-half-map-card-enhanced .property_listing_details_v2 {
    display: none !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .listing_unit_price_wrapper,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .property_unit_custom_element.price {
    bottom: auto !important;
    color: var(--wp-estate-main-color-option, #dd3333) !important;
    display: block !important;
    float: none !important;
    font-size: 21px !important;
    font-weight: 850 !important;
    left: auto !important;
    letter-spacing: 0 !important;
    line-height: 1.08 !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    position: static !important;
    width: auto !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .listing_unit_price_wrapper a,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .listing_unit_price_wrapper span,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .property_unit_custom_element.price a,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .property_unit_custom_element.price span {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: 0 !important;
    line-height: inherit !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .amx-half-map-card-summary {
    box-sizing: border-box;
    color: #111827;
    display: block;
    font-size: 12.4px;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.25;
    margin: 0 0 7px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .amx-half-map-card-address {
    color: #596074;
    display: -webkit-box;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .tag-wrapper {
    align-items: flex-start !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 13px !important;
    position: absolute !important;
    right: 0 !important;
    top: 8px !important;
    transform: translateY(-18px) !important;
    width: auto !important;
    z-index: 5 !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .icon-fav {
    bottom: 15px !important;
    right: 15px !important;
}

@media (min-width: 1200px) {
    body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.col-md-6 {
        width: 50% !important;
    }
}

@media (max-width: 1199.98px) and (min-width: 768px) {
    body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.col-md-6 {
        width: 50% !important;
    }

    body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .listing_unit_price_wrapper,
    body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .property_unit_custom_element.price {
        font-size: 19px !important;
    }

    body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .amx-half-map-card-summary {
        font-size: 12px;
    }
}

@media (max-width: 767.98px) {
    body.wpresidence_half_map_body_class #google_map_prop_list_sidebar {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.wpresidence_half_map_body_class #google_map_prop_list_sidebar #listing_ajax_container.ajax-map {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper .listing-unit-img-wrapper {
        max-height: none !important;
    }
}

/* Match in-feed sponsor cards to the exact half-map property card rhythm. */
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-ad-search-infeed .amx-ad-slot--search_infeed {
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
    color: #111827 !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: relative !important;
    text-decoration: none !important;
    transition: 0.3s ease-out !important;
    width: 100% !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-ad-search-infeed .amx-ad-slot--search_infeed:hover {
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12) !important;
    outline: 0 !important;
    transform: translateY(-1px);
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-ad-search-infeed .amx-ad-slot--search_infeed:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 22%, transparent), 0 16px 34px rgba(15, 23, 42, 0.12) !important;
    outline: 0 !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-ad-search-infeed .amx-ad-slot--search_infeed .amx-ad-media {
    aspect-ratio: 16 / 8.25 !important;
    background: #edf2f7 !important;
    border-radius: 10px 10px 0 0 !important;
    height: auto !important;
    margin: 0 !important;
    max-height: 218px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-ad-search-infeed .amx-ad-slot--search_infeed.amx-ad-fallback::before {
    aspect-ratio: 16 / 8.25 !important;
    display: block !important;
    height: auto !important;
    margin: 0 !important;
    max-height: 218px !important;
    min-height: 0 !important;
    width: 100% !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-ad-search-infeed .amx-ad-slot--search_infeed.amx-ad-fallback--motion::before {
    display: none !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-ad-search-infeed .amx-ad-slot--search_infeed .amx-ad-media--svg {
    aspect-ratio: 16 / 8.25 !important;
    background: #07111f !important;
    max-height: 218px !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-ad-search-infeed .amx-ad-slot--search_infeed .amx-ad-image,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-ad-search-infeed .amx-ad-slot--search_infeed .amx-ad-media video {
    border-radius: 0 !important;
    display: block !important;
    height: 100% !important;
    object-fit: cover !important;
    width: 100% !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-ad-search-infeed .amx-ad-slot--search_infeed .amx-ad-media--svg .amx-ad-image--svg {
    object-fit: cover !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-ad-search-infeed .amx-ad-slot--search_infeed .amx-ad-disclosure {
    align-items: center !important;
    background: rgba(17, 24, 39, 0.92) !important;
    border: 0 !important;
    border-radius: 5px !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    left: 13px !important;
    line-height: 1 !important;
    margin: 0 !important;
    min-height: 22px !important;
    padding: 4px 8px !important;
    position: absolute !important;
    text-transform: none !important;
    top: 8px !important;
    white-space: nowrap !important;
    z-index: 5 !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-ad-search-infeed .amx-ad-slot--search_infeed .amx-ad-copy {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    height: 110px !important;
    min-height: 110px !important;
    overflow: hidden !important;
    padding: 12px 14px 13px !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-ad-search-infeed .amx-ad-slot--search_infeed .amx-ad-cta {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--wp-estate-main-color-option, #dd3333) !important;
    display: block !important;
    font-size: 21px !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    line-height: 1.08 !important;
    margin: 0 0 6px !important;
    min-height: 0 !important;
    order: 1 !important;
    overflow: hidden !important;
    padding: 0 !important;
    text-align: left !important;
    text-decoration: none !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    width: auto !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-ad-search-infeed .amx-ad-slot--search_infeed .amx-ad-copy h3 {
    color: #111827 !important;
    display: block !important;
    font-size: 12.4px !important;
    font-weight: 750 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
    margin: 0 0 7px !important;
    order: 2 !important;
    overflow: hidden !important;
    padding: 0 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-ad-search-infeed .amx-ad-slot--search_infeed .amx-ad-copy p {
    color: #596074 !important;
    display: -webkit-box !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    order: 3 !important;
    overflow: hidden !important;
    padding: 0 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

@media (max-width: 1199.98px) and (min-width: 768px) {
    body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-ad-search-infeed .amx-ad-slot--search_infeed .amx-ad-cta {
        font-size: 19px !important;
    }
}

@media (max-width: 767.98px) {
    body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-ad-search-infeed {
        flex-basis: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-ad-search-infeed .amx-ad-slot--search_infeed .amx-ad-media {
        max-height: none !important;
    }

    body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .listing_wrapper.amx-ad-search-infeed .amx-ad-slot--search_infeed.amx-ad-fallback::before {
        max-height: none !important;
    }
}

/* Codex request pass 20260622: pin popups reuse the upgraded listing-card shape. */
body.wpresidence_half_map_body_class .amx-map-popup-anchor {
    width: min(360px, calc(100vw - 32px)) !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned {
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22) !important;
    overflow: hidden !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .amx-map-popup-card__listing-copy,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_listing.property_unit_type8 {
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    display: block !important;
    margin: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 100% !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .listing-unit-img-wrapper {
    aspect-ratio: 16 / 8.25 !important;
    background: #edf2f7 !important;
    border-radius: 10px 10px 0 0 !important;
    height: auto !important;
    max-height: 205px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property-unit-information-wrapper {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 96px !important;
    padding: 12px 14px 13px !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .listing_wrapper.amx-half-map-card-enhanced .property_card_categories_wrapper,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .listing_wrapper.amx-half-map-card-enhanced .property_categories_type1_wrapper,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .listing_wrapper.amx-half-map-card-enhanced .property_details_type1_wrapper,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .listing_wrapper.amx-half-map-card-enhanced .property_listing_details,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .listing_wrapper.amx-half-map-card-enhanced .property_listing_details_v2 {
    display: none !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .listing_unit_price_wrapper,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_unit_custom_element.price {
    bottom: auto !important;
    color: var(--wp-estate-main-color-option, #dd3333) !important;
    display: block !important;
    float: none !important;
    font-size: 21px !important;
    font-weight: 850 !important;
    left: auto !important;
    letter-spacing: 0 !important;
    line-height: 1.08 !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    position: static !important;
    width: auto !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .listing_unit_price_wrapper a,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .listing_unit_price_wrapper span,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_unit_custom_element.price a,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_unit_custom_element.price span {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: 0 !important;
    line-height: inherit !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .amx-half-map-card-summary {
    box-sizing: border-box;
    color: #111827;
    display: block !important;
    font-size: 12.4px;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.25;
    margin: 0 0 7px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .amx-half-map-card-address {
    color: #596074;
    display: -webkit-box !important;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .tag-wrapper {
    align-items: flex-start !important;
    display: flex !important;
    gap: 6px !important;
    justify-content: space-between !important;
    left: 0 !important;
    padding: 0 44px 0 13px !important;
    pointer-events: none !important;
    position: absolute !important;
    right: 0 !important;
    top: 8px !important;
    width: auto !important;
    z-index: 5 !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .icon-fav,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .share_unit {
    bottom: 15px !important;
    position: absolute !important;
    right: 15px !important;
    z-index: 6 !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned #infocloser.amx-map-popup-card__close,
body.wpresidence_half_map_body_class .amx-map-popup-card #infocloser.amx-map-popup-card__close {
    right: 8px !important;
    top: 8px !important;
    z-index: 9 !important;
}

@media (max-width: 480px) {
    body.wpresidence_half_map_body_class .amx-map-popup-anchor {
        width: min(334px, calc(100vw - 24px)) !important;
    }
}

/* Final mobile landscape override: full controls, no portrait filter shortcut. */
@media (orientation: landscape) and (max-height: 620px) and (max-width: 1024px) {
    body.wpresidence_half_map_body_class .amx-half-map-search-shell,
    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell,
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell {
        border-bottom: 1px solid #e4eaf2 !important;
        box-shadow: none !important;
        margin: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        position: relative !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.sticky_adv_anime,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1 {
        min-height: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search,
    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .wpresidence_note_half_search,
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .wpresidence_note_half_search {
        align-items: stretch !important;
        background: #ffffff !important;
        box-sizing: border-box !important;
        column-gap: 8px !important;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        left: auto !important;
        margin: 0 !important;
        max-width: none !important;
        min-height: 0 !important;
        min-width: 0 !important;
        padding: 8px var(--amx-mobile-gutter, 12px) 10px !important;
        position: relative !important;
        right: auto !important;
        row-gap: 8px !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search::before {
        content: none !important;
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="adv_locations_search_component_wrapper"],
    body.page-template-advanced_search_results.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .adv_locations_search_component_wrapper,
    body.page-template-advanced_search_results-php.wpresidence_half_map_body_class.amx-half-map-mobile-map-mode .amx-half-map-search-shell .adv_locations_search_component_wrapper {
        display: block !important;
        float: none !important;
        grid-column: 1 / span 2 !important;
        height: 44px !important;
        left: auto !important;
        margin: 0 !important;
        max-height: 44px !important;
        max-width: none !important;
        min-height: 44px !important;
        min-width: 0 !important;
        opacity: 1 !important;
        padding: 0 !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        visibility: visible !important;
        width: 100% !important;
        z-index: 2 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="col-"]:not(.col-md-12):not(.col-12):not(.amx-half-map-mobile-filter-control),
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-mobile-filter-field {
        display: flex !important;
        float: none !important;
        grid-column: auto !important;
        grid-row: auto !important;
        margin: 0 !important;
        max-width: none !important;
        min-width: 0 !important;
        opacity: 1 !important;
        padding: 0 !important;
        position: relative !important;
        transform: none !important;
        visibility: visible !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action {
        grid-column: 3 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-controls-slot {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper input[type="text"],
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-inline-sort .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        height: 44px !important;
        max-height: 44px !important;
        min-height: 44px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-inline-sort .wpresidence_half_map_filter_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-inline-sort .listing_filter_select,
    body.wpresidence_half_map_body_class .amx-half-map-inline-sort .wpresidence_dropdown.wpresidence_filters_dropdown {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-inline-sort .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle {
        align-items: center !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        justify-content: space-between !important;
        line-height: 1 !important;
        overflow: hidden !important;
        padding: 0 10px !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        justify-content: center !important;
    }
}

/* Final 20260706 pass: phone landscape text weight and tablet-specific search chrome. */
@media (orientation: landscape) and (max-height: 620px) and (max-width: 1024px) {
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .filter_menu_trigger > span,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .filter_menu_trigger .filter_menu_trigger_value {
        font-weight: 400 !important;
    }
}

/* Final 20260706 tablet half-map chrome: portrait follows phone, landscape follows compact desktop. */
@media (pointer: coarse) and (min-width: 768px) and (max-width: 1366px) {
    body.wpresidence_half_map_body_class {
        --amx-tablet-brand-color: var(--wp-estate-main-color-option, #dd3333);
        --amx-tablet-control-border: #cfd8e6;
        --amx-tablet-control-height: 44px;
        --amx-tablet-control-radius: 10px;
        --amx-tablet-controls-row-height: 62px;
        --amx-tablet-gutter: 16px;
        --amx-tablet-header-row-height: 64px;
        --amx-tablet-menu-slot: 52px;
        --amx-tablet-search-action-width: 64px;
        --amx-tablet-signin-slot: 108px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell {
        background: #ffffff !important;
        border: 0 !important;
        border-bottom: 1px solid #e7edf5 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        min-height: calc(var(--amx-tablet-header-row-height) + var(--amx-tablet-controls-row-height)) !important;
        overflow: visible !important;
        padding: 0 !important;
        position: relative !important;
        width: 100% !important;
        z-index: 170 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell > .mobile_header[data-amx-half-map-header-anchored="1"],
    body.wpresidence_half_map_body_class .mobile_header {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: block !important;
        height: var(--amx-tablet-header-row-height) !important;
        left: 0 !important;
        margin: 0 !important;
        max-height: var(--amx-tablet-header-row-height) !important;
        min-height: var(--amx-tablet-header-row-height) !important;
        overflow: visible !important;
        padding: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
        transform: none !important;
        width: 100% !important;
        z-index: 2147482000 !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo,
    body.wpresidence_half_map_body_class .mobile_header .mobile-logo img {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user {
        align-items: center !important;
        display: inline-flex !important;
        height: var(--amx-tablet-control-height) !important;
        justify-content: center !important;
        line-height: 1 !important;
        margin: 0 !important;
        pointer-events: auto !important;
        position: absolute !important;
        top: 10px !important;
        transform: none !important;
        z-index: 3 !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger {
        background: transparent !important;
        border: 0 !important;
        color: var(--amx-tablet-brand-color) !important;
        left: var(--amx-tablet-gutter) !important;
        padding: 0 !important;
        width: var(--amx-tablet-menu-slot) !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger i,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger svg {
        color: var(--amx-tablet-brand-color) !important;
        fill: var(--amx-tablet-brand-color) !important;
        font-size: 24px !important;
        height: 24px !important;
        line-height: 1 !important;
        width: 24px !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user {
        background: var(--amx-tablet-brand-color) !important;
        border: 1px solid var(--amx-tablet-brand-color) !important;
        border-radius: var(--amx-tablet-control-radius) !important;
        color: #ffffff !important;
        font-size: 0 !important;
        font-weight: 800 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        right: var(--amx-tablet-gutter) !important;
        text-align: center !important;
        width: var(--amx-tablet-signin-slot) !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user::after {
        color: #ffffff !important;
        content: "Sign in" !important;
        display: block !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        letter-spacing: 0 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fa-user-circle,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.fas.fa-user-circle,
    body.availmax-hllp-guest.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user i.far.fa-user-circle,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fa-user-circle,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.fas.fa-user-circle,
    body.wpresidence_half_map_body_class .mobile_header .mobile-trigger-user.availmax-hllp-mobile-login i.far.fa-user-circle {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.search_wrapper_sticky_search.with_search_form_float,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper.sticky_adv_anime,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        background: #ffffff !important;
        border: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        min-height: calc(var(--amx-tablet-header-row-height) + var(--amx-tablet-controls-row-height)) !important;
        overflow: visible !important;
        padding: 0 !important;
        position: relative !important;
        transform: none !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        align-items: stretch !important;
        box-sizing: border-box !important;
        column-gap: 10px !important;
        display: grid !important;
        max-width: none !important;
        min-width: 0 !important;
        padding: calc(var(--amx-tablet-header-row-height) + 9px) var(--amx-tablet-gutter) 9px !important;
        row-gap: 0 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search::before {
        background: #e7edf5 !important;
        content: "" !important;
        height: 1px !important;
        left: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        right: 0 !important;
        top: var(--amx-tablet-header-row-height) !important;
        z-index: 1 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="adv_locations_search_component_wrapper"] {
        --amx-half-map-location-action-width: var(--amx-tablet-search-action-width);
        display: block !important;
        float: none !important;
        height: var(--amx-tablet-control-height) !important;
        left: calc(var(--amx-tablet-gutter) + var(--amx-tablet-menu-slot) + 8px) !important;
        margin: 0 !important;
        max-height: var(--amx-tablet-control-height) !important;
        min-height: var(--amx-tablet-control-height) !important;
        min-width: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        right: calc(var(--amx-tablet-gutter) + var(--amx-tablet-signin-slot) + 8px) !important;
        top: 10px !important;
        transform: none !important;
        visibility: visible !important;
        width: auto !important;
        z-index: 2 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper input[type="text"] {
        background: #ffffff !important;
        border: 1px solid var(--amx-tablet-control-border) !important;
        border-radius: var(--amx-tablet-control-radius) !important;
        box-shadow: none !important;
        color: #111827 !important;
        display: block !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        height: var(--amx-tablet-control-height) !important;
        line-height: var(--amx-tablet-control-height) !important;
        min-height: var(--amx-tablet-control-height) !important;
        overflow: hidden !important;
        padding-left: 14px !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action {
        align-items: center !important;
        background: var(--amx-tablet-brand-color) !important;
        border: 1px solid var(--amx-tablet-brand-color) !important;
        border-radius: 0 var(--amx-tablet-control-radius) var(--amx-tablet-control-radius) 0 !important;
        bottom: 0 !important;
        display: inline-flex !important;
        height: var(--amx-tablet-control-height) !important;
        justify-content: center !important;
        padding: 0 !important;
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
        width: var(--amx-tablet-search-action-width) !important;
        z-index: 3 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action svg {
        color: #ffffff !important;
        height: 24px !important;
        stroke: #ffffff !important;
        width: 24px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .form-control {
        padding-right: calc(var(--amx-tablet-search-action-width) + 14px) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action.amx-search-has-reset .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .form-control.amx-search-has-reset {
        padding-right: calc(var(--amx-tablet-search-action-width) + 42px) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper.has-amx-half-map-search-action .wpresidece-reset-btn[data-amx-reset-input-id] {
        right: calc(var(--amx-tablet-search-action-width) + 8px) !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="col-"]:not(.col-md-12):not(.col-12):not(.amx-half-map-mobile-filter-control) {
        align-self: stretch !important;
        display: flex !important;
        float: none !important;
        height: var(--amx-tablet-control-height) !important;
        margin: 0 !important;
        max-width: none !important;
        min-height: var(--amx-tablet-control-height) !important;
        min-width: 0 !important;
        padding: 0 !important;
        position: relative !important;
        transform: none !important;
        visibility: visible !important;
        width: 100% !important;
        z-index: 2 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        align-items: center !important;
        background: #ffffff !important;
        border: 1px solid var(--amx-tablet-control-border) !important;
        border-radius: var(--amx-tablet-control-radius) !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
        color: #111827 !important;
        display: inline-flex !important;
        font-size: 14px !important;
        height: var(--amx-tablet-control-height) !important;
        justify-content: space-between !important;
        letter-spacing: 0 !important;
        line-height: 1 !important;
        max-height: var(--amx-tablet-control-height) !important;
        min-height: var(--amx-tablet-control-height) !important;
        overflow: hidden !important;
        padding: 0 12px !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 .dropdown-toggle {
        font-weight: 400 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-filter-button,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        font-weight: 800 !important;
        justify-content: center !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        background: var(--amx-tablet-brand-color) !important;
        border-color: var(--amx-tablet-brand-color) !important;
        color: #ffffff !important;
    }
}

@media (pointer: coarse) and (orientation: portrait) and (min-width: 768px) and (max-width: 1180px) {
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        padding: calc(var(--amx-tablet-header-row-height) + 10px) var(--amx-tablet-gutter) 10px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save {
        grid-row: 1 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action {
        grid-column: 1 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control {
        display: flex !important;
        grid-column: 2 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save {
        grid-column: 3 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-controls-slot,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="col-"]:not(.col-md-12):not(.col-12):not(.amx-half-map-primary-action):not(.amx-half-map-mobile-filter-control):not(.amx-half-map-inline-save) {
        display: none !important;
    }
}

@media (pointer: coarse) and (orientation: landscape) and (min-width: 1024px) and (max-width: 1366px) {
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-controls-slot {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="col-"]:not(.col-md-12):not(.col-12):not(.amx-half-map-mobile-filter-control) {
        grid-column: auto !important;
    }
}
/* EOF 20260706: final landscape behavior after all legacy blocks. */
@media (pointer: coarse) and (orientation: landscape) and (min-width: 1024px) and (max-width: 1366px) and (min-height: 621px) {
    body.wpresidence_half_map_body_class {
        --amx-tablet-header-row-height: 70px;
        --amx-tablet-controls-row-height: 62px;
        --amx-tablet-search-action-width: 56px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        min-height: calc(var(--amx-tablet-header-row-height) + var(--amx-tablet-controls-row-height)) !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo {
        display: block !important;
        left: 50% !important;
        margin: 0 !important;
        max-width: 150px !important;
        position: absolute !important;
        top: 8px !important;
        transform: translateX(-50%) !important;
        width: 150px !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo a,
    body.wpresidence_half_map_body_class .mobile_header .mobile-logo img {
        display: block !important;
        height: auto !important;
        margin: 0 auto !important;
        max-height: 54px !important;
        max-width: 150px !important;
        width: auto !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        column-gap: 8px !important;
        grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
        padding: calc(var(--amx-tablet-header-row-height) + 8px) 12px 10px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="adv_locations_search_component_wrapper"] {
        grid-column: span 3 !important;
        left: auto !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-save,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="col-"]:not(.col-md-12):not(.col-12):not(.amx-half-map-mobile-filter-control) {
        grid-column: span 1 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        font-size: 12px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

@media (orientation: landscape) and (max-height: 620px) and (max-width: 1024px) {
    body.wpresidence_half_map_body_class {
        --amx-phone-landscape-control-height: 44px;
        --amx-phone-landscape-header-height: 64px;
        --amx-phone-landscape-search-action-width: 58px;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .search_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv-search-1,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        min-height: calc(var(--amx-phone-landscape-header-height) + 106px) !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo {
        display: block !important;
        left: 50% !important;
        margin: 0 !important;
        max-width: 132px !important;
        position: absolute !important;
        top: 7px !important;
        transform: translateX(-50%) !important;
        width: 132px !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo a,
    body.wpresidence_half_map_body_class .mobile_header .mobile-logo img {
        display: block !important;
        height: auto !important;
        margin: 0 auto !important;
        max-height: 50px !important;
        max-width: 132px !important;
        width: auto !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search {
        column-gap: 8px !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        padding: calc(var(--amx-phone-landscape-header-height) + 8px) 12px 10px !important;
        row-gap: 8px !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search::before {
        background: #e7edf5 !important;
        content: "" !important;
        display: block !important;
        height: 1px !important;
        left: 0 !important;
        position: absolute !important;
        right: 0 !important;
        top: var(--amx-phone-landscape-header-height) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .adv_locations_search_component_wrapper,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="adv_locations_search_component_wrapper"] {
        --amx-half-map-location-action-width: var(--amx-phone-landscape-search-action-width);
        grid-column: 1 / span 2 !important;
        left: auto !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action {
        grid-column: 3 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-filter-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-mobile-controls-slot {
        display: none !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper input[type="text"],
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-inline-save .amx-half-map-save-search-button {
        height: var(--amx-phone-landscape-control-height) !important;
        max-height: var(--amx-phone-landscape-control-height) !important;
        min-height: var(--amx-phone-landscape-control-height) !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper .form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .adv_locations_search_component_wrapper input[type="text"],
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown.form-control .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown .dropdown-toggle.filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-beds-baths-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component .dropdown-toggle,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpestate-price-popoup-component_v3 .dropdown-toggle {
        font-size: 13px !important;
        font-weight: 400 !important;
    }
}
@media (orientation: landscape) and (max-height: 620px) and (max-width: 1024px) {
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown .filter_menu_trigger,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .filter_menu_trigger > span,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .filter_menu_trigger .filter_menu_trigger_value {
        font-weight: 400 !important;
    }
}
/* EOF 20260706 scoped fixes: tablet landscape logo and phone landscape action/category menus only. */
@media (pointer: coarse) and (orientation: landscape) and (min-width: 1024px) and (max-width: 1366px) and (min-height: 621px) {
    body.wpresidence_half_map_body_class .mobile_header .mobile-logo {
        display: block !important;
        left: 50% !important;
        margin: 0 !important;
        max-width: 200px !important;
        position: absolute !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: auto !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo a,
    body.wpresidence_half_map_body_class .mobile_header .mobile-logo img,
    body.wpresidence_half_map_body_class .mobile_header .mobile-logo img.retina_ready {
        display: block !important;
        height: auto !important;
        margin: 0 auto !important;
        max-height: 70px !important;
        max-width: 200px !important;
        object-fit: contain !important;
        width: auto !important;
    }
}

@media (orientation: landscape) and (max-height: 620px) and (max-width: 1024px) {
    body.wpresidence_half_map_body_class .amx-half-map-search-shell,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .dropdown,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_dropdown {
        overflow: visible !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action:has(.filter_menu[aria-labelledby="adv_actions"].show),
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > [class*="col-"]:has(.filter_menu[aria-labelledby="adv_categ"].show) {
        overflow: visible !important;
        z-index: 2147483100 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"].show,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_categ"].show {
        background: #ffffff !important;
        border: 1px solid #cfd8e6 !important;
        border-radius: 10px !important;
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18) !important;
        display: block !important;
        inset: auto !important;
        margin: 6px 0 0 !important;
        max-height: min(58dvh, 360px) !important;
        min-height: 0 !important;
        min-width: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: 0 !important;
        position: absolute !important;
        top: 100% !important;
        transform: none !important;
        width: min(100%, calc(100vw - 24px)) !important;
        z-index: 2147483200 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_actions"].show {
        left: 0 !important;
        right: auto !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .filter_menu[aria-labelledby="adv_categ"].show {
        left: auto !important;
        right: 0 !important;
    }
}

/* EOF 20260706 requested scope: phone landscape logo size and tablet portrait filter sheet only. */
@media (orientation: landscape) and (max-height: 620px) and (max-width: 1024px) {
    body.wpresidence_half_map_body_class .mobile_header .mobile-logo {
        display: block !important;
        left: 50% !important;
        margin: 0 !important;
        max-width: 200px !important;
        position: absolute !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: auto !important;
    }

    body.wpresidence_half_map_body_class .mobile_header .mobile-logo a,
    body.wpresidence_half_map_body_class .mobile_header .mobile-logo img,
    body.wpresidence_half_map_body_class .mobile_header .mobile-logo img.retina_ready {
        display: block !important;
        height: auto !important;
        margin: 0 auto !important;
        max-height: 70px !important;
        max-width: 200px !important;
        object-fit: contain !important;
        width: auto !important;
    }
}

@media (pointer: coarse) and (orientation: portrait) and (min-width: 768px) and (max-width: 1180px) {
    .amx-mobile-filter-sheet {
        align-items: flex-end !important;
        background: transparent !important;
        display: flex !important;
        inset: 0 !important;
        justify-content: center !important;
        opacity: 0;
        pointer-events: none;
        position: fixed !important;
        visibility: hidden;
        z-index: 2147483400 !important;
    }

    .amx-mobile-filter-sheet.is-visible {
        opacity: 1 !important;
        pointer-events: auto !important;
        visibility: visible !important;
    }

    .amx-mobile-filter-sheet__backdrop {
        background: rgba(15, 23, 42, 0.38) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        backdrop-filter: blur(10px) !important;
        inset: 0 !important;
        position: absolute !important;
    }

    .amx-mobile-filter-sheet__panel {
        background: #ffffff !important;
        border: 1px solid rgba(209, 215, 226, 0.95) !important;
        border-radius: 22px 22px 0 0 !important;
        box-shadow: 0 -24px 70px rgba(15, 23, 42, 0.25) !important;
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        max-height: min(76dvh, 720px) !important;
        min-height: 0 !important;
        overflow: hidden !important;
        padding: 10px 18px calc(env(safe-area-inset-bottom, 0px) + 16px) !important;
        position: relative !important;
        transform: translateY(24px) !important;
        transition: transform 0.24s ease !important;
        width: min(640px, calc(100vw - 40px)) !important;
        z-index: 1 !important;
    }

    .amx-mobile-filter-sheet.is-visible .amx-mobile-filter-sheet__panel {
        transform: translateY(0) !important;
    }

    .amx-mobile-filter-sheet__handle {
        align-self: center !important;
        background: #d8dee9 !important;
        border-radius: 999px !important;
        display: block !important;
        height: 4px !important;
        margin: 0 0 12px !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 42px !important;
    }

    .amx-mobile-filter-sheet__header {
        align-items: center !important;
        border-bottom: 1px solid #eef1f5 !important;
        display: flex !important;
        gap: 12px !important;
        justify-content: space-between !important;
        margin: 0 !important;
        min-height: 0 !important;
        padding: 0 0 14px !important;
        position: relative !important;
    }

    .amx-mobile-filter-sheet__eyebrow {
        color: var(--wp-estate-main-color-option, #dd3333) !important;
        display: block !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        letter-spacing: 0.08em !important;
        line-height: 1 !important;
        margin: 0 0 6px !important;
        text-transform: uppercase !important;
    }

    .amx-mobile-filter-sheet__title {
        color: #101828 !important;
        font-size: 24px !important;
        font-weight: 800 !important;
        letter-spacing: 0 !important;
        line-height: 1 !important;
        margin: 0 !important;
        text-align: left !important;
    }

    .amx-mobile-filter-sheet__close {
        align-items: center !important;
        background: #f6f8fb !important;
        border: 1px solid #dce3ee !important;
        border-radius: 999px !important;
        box-shadow: none !important;
        color: #344054 !important;
        cursor: pointer !important;
        display: inline-flex !important;
        flex: 0 0 auto !important;
        font-size: 24px !important;
        font-weight: 400 !important;
        height: 44px !important;
        justify-content: center !important;
        line-height: 1 !important;
        padding: 0 !important;
        position: static !important;
        width: 44px !important;
    }

    .amx-mobile-filter-sheet__body {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        gap: 10px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: 16px 0 !important;
    }

    .amx-mobile-filter-proxy-root {
        display: block !important;
    }

    .amx-mobile-filter-proxy-section {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 0 10px !important;
    }

    .amx-mobile-filter-proxy-heading {
        color: #101828 !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
        margin: 0 0 8px !important;
    }

    .amx-mobile-filter-control-pair {
        display: block !important;
    }

    .amx-mobile-filter-control-pair > div + div {
        margin-top: 8px !important;
    }

    .amx-mobile-filter-chip-grid,
    .amx-mobile-filter-segment-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        justify-content: flex-start !important;
    }

    .amx-mobile-filter-chip,
    .amx-mobile-filter-segment {
        align-items: center !important;
        background: #eef0f3 !important;
        border: 0 !important;
        border-radius: 999px !important;
        color: var(--wp-estate-main-color-option, #dd3333) !important;
        display: inline-flex !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        justify-content: center !important;
        line-height: 1 !important;
        min-height: 28px !important;
        padding: 0 14px !important;
        width: auto !important;
    }

    .amx-mobile-filter-chip.is-selected,
    .amx-mobile-filter-segment.is-selected {
        background: color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 14%, #ffffff) !important;
        color: var(--wp-estate-main-color-option, #dd3333) !important;
    }

    .amx-mobile-filter-subheading,
    .amx-mobile-filter-price-grid label span {
        color: #101828 !important;
        display: block !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
        margin: 0 0 7px !important;
    }

    .amx-mobile-filter-price-grid {
        display: grid !important;
        gap: 14px !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .amx-mobile-filter-price-grid label {
        display: block !important;
        margin: 0 !important;
    }

    .amx-mobile-filter-price-grid input {
        background: #ffffff !important;
        border: 1px solid #d1d7e2 !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
        color: #101828 !important;
        font-size: 15px !important;
        height: 48px !important;
        line-height: 48px !important;
        padding: 0 14px !important;
        width: 100% !important;
    }

    .amx-mobile-filter-sheet__footer {
        align-items: center !important;
        border-top: 1px solid #eef1f5 !important;
        display: grid !important;
        flex: 0 0 auto !important;
        gap: 14px !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        margin: 0 !important;
        padding: 16px 0 0 !important;
    }

    .amx-mobile-filter-sheet__secondary,
    .amx-mobile-filter-sheet__apply {
        align-items: center !important;
        border-radius: 12px !important;
        cursor: pointer !important;
        display: inline-flex !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        height: 52px !important;
        justify-content: center !important;
        letter-spacing: 0 !important;
        line-height: 1 !important;
        min-height: 52px !important;
        padding: 0 14px !important;
        width: 100% !important;
    }

    .amx-mobile-filter-sheet__secondary {
        background: #ffffff !important;
        border: 1px solid #d1d7e2 !important;
        color: #344054 !important;
    }

    .amx-mobile-filter-sheet__apply {
        background: var(--wp-estate-main-color-option, #dd3333) !important;
        border: 1px solid var(--wp-estate-main-color-option, #dd3333) !important;
        box-shadow: 0 14px 26px color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 20%, transparent) !important;
        color: #ffffff !important;
    }
}

/* EOF 20260706 requested scope: phone landscape listing-type dropdown only. */
@media (orientation: landscape) and (max-height: 620px) and (max-width: 1024px) {
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-primary-action,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .dropdown,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .dropdown.form-control,
    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .wpresidence_dropdown {
        overflow: visible !important;
        position: relative !important;
        z-index: 2147483700 !important;
    }

    body.wpresidence_half_map_body_class:has(.filter_menu[aria-labelledby="adv_actions"].show) .amx-half-map-search-shell .wpresidence_note_half_search > .amx-half-map-inline-sort {
        position: relative !important;
        z-index: 1 !important;
    }

    body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-primary-action .filter_menu[aria-labelledby="adv_actions"].show {
        left: 0 !important;
        right: auto !important;
        top: calc(var(--amx-phone-landscape-control-height, 44px) + 6px) !important;
        z-index: 2147483800 !important;
    }
}

body.wpresidence_half_map_body_class .amx-half-map-search-shell .amx-half-map-search-action svg,
body.wpresidence_half_map_body_class .amx-half-map-search-shell .wpresidece-reset-btn svg,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .icon-fav svg,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .icon-fav svg,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .property_listing.property_unit_type8 .icon-fav svg,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_listing.property_unit_type8 .icon-fav svg {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .icon-fav svg,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .icon-fav svg,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .property_listing.property_unit_type8 .icon-fav svg,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_listing.property_unit_type8 .icon-fav svg {
    fill: rgba(0, 0, 0, 0.5) !important;
    stroke: #ffffff !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .icon-fav svg path,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .icon-fav svg path,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .property_listing.property_unit_type8 .icon-fav svg path,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_listing.property_unit_type8 .icon-fav svg path {
    fill: rgba(0, 0, 0, 0.5) !important;
    stroke: #ffffff !important;
}

body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .icon-fav.icon-fav-on svg,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .icon-fav.icon-fav-on svg path,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .icon-fav.icon-fav-on svg,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .icon-fav.icon-fav-on svg path,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .property_listing.property_unit_type8 .icon-fav.icon-fav-on svg,
body.wpresidence_half_map_body_class #google_map_prop_list_sidebar .property_listing.property_unit_type8 .icon-fav.icon-fav-on svg path,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_listing.property_unit_type8 .icon-fav.icon-fav-on svg,
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .property_listing.property_unit_type8 .icon-fav.icon-fav-on svg path {
    fill: rgba(239, 68, 68, 0.72) !important;
    stroke: #ffffff !important;
}

/* Map popup parity: match the left result card and keep controls independent. */
body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .tag-wrapper {
    padding-left: 13px !important;
    padding-right: 13px !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .icon-fav {
    align-items: center !important;
    border: 0 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    height: 30px !important;
    justify-content: center !important;
    padding: 3px !important;
    touch-action: manipulation;
    width: 30px !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned .icon-fav:focus-visible {
    border-radius: 999px !important;
    outline: 2px solid #ffffff !important;
    outline-offset: 2px !important;
}

body.wpresidence_half_map_body_class .amx-map-popup-card--cloned #infocloser.amx-map-popup-card__close {
    display: none !important;
}
