/*
 Theme Name:   AvailMax Child Theme
 Theme URI:    https://availablemax.com/
 Description:  AvailMax Child Theme
 Author:       AvailMax Inc
 Author URI:   https://availablemax.com/
 Template:     availablemax-parent
 Version:      5.1.99
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

.property_listing .ribbon-inside.Active,
.property_listing .ribbon-inside.active,
.property_listing .ribbon-inside.Sold,
.property_listing .ribbon-inside.sold,
.property_unit .ribbon-inside.Active,
.property_unit .ribbon-inside.active,
.property_unit .ribbon-inside.Sold,
.property_unit .ribbon-inside.sold {
    display: none !important;
}

.page-template-advanced_search_results .entry-title.title_prop {
    font-size: clamp(20px, 1.6vw, 24px);
    line-height: 1.25;
    letter-spacing: 0;
    margin-bottom: 16px;
}

.wpresidence-geolocatiomarker-zip {
    background-image: url("../availablemax-parent/public/css/css-images/icons/location_city.svg");
    background-size: 12px 12px;
    background-repeat: no-repeat;
    background-position: 15px center;
}

.wpresidence-geolocatiomarker-zip.ui-state-active {
    background-image: url("../availablemax-parent/public/css/css-images/icons/location_city.svg") !important;
    background-size: 12px 12px !important;
    background-repeat: no-repeat !important;
    background-position: 15px center !important;
}

@media (max-width: 767.98px) {
    .page-template-advanced_search_results .entry-title.title_prop {
        font-size: 20px;
        line-height: 1.3;
    }
}

:root {
    --amx-soft-radius: 8px;
    --amx-soft-radius-lg: 8px;
    --amx-control-height: 38px;
    --amx-control-height-sm: 32px;
    --amx-btn-font-size: 14px;
    --amx-btn-font-weight: 500;
    --amx-primary-button-bg: var(--wp-estate-main-color-option, #dd3333);
    --amx-primary-button-bg-hover: var(--wp-estate-menu-hover-font-color-option, var(--wp-estate-main-color-option, #dd3333));
    --amx-primary-button-color: #ffffff;
    --amx-primary-button-radius: var(--amx-soft-radius);
    --amx-primary-button-font-size: var(--amx-btn-font-size);
    --amx-primary-button-font-weight: var(--amx-btn-font-weight);
    --amx-primary-button-line-height: 1.15;
    --amx-primary-button-padding: 7px 16px;
    --amx-favorite-active: rgba(239, 68, 68, 0.72);
    --amx-field-bg: #ffffff;
    --amx-field-border: #d1d7e2;
    --amx-field-border-focus: var(--wp-estate-main-color-option, #dd3333);
    --amx-field-text: #3f4651;
    --amx-field-placeholder: #818a9a;
    --amx-field-focus-ring: 0 0 0 2px color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 12%, transparent);
    --availablemx-hllp-button-bg: var(--amx-primary-button-bg);
    --availablemx-hllp-button-bg-hover: var(--amx-primary-button-bg-hover);
    --availablemx-hllp-button-text: var(--amx-primary-button-color);
    --availablemx-hllp-button-radius: var(--amx-primary-button-radius);
    --availablemx-hllp-button-height: var(--amx-control-height);
    --availablemx-hllp-button-padding: var(--amx-primary-button-padding);
    --availablemx-hllp-button-font-size: var(--amx-primary-button-font-size);
    --availablemx-hllp-button-font-weight: var(--amx-primary-button-font-weight);
}

.wpresidence-navigation-menu .menu > li.amx-main-menu__item > a {
    font-weight: 700;
}

.mobilex-menu li.amx-main-menu__item > a,
#mobilewrapper_links li.amx-main-menu__item > a {
    font-weight: 700;
}

.mobilex-menu li.amx-main-menu__item.menu-item-has-children,
#mobilewrapper_links li.amx-main-menu__item.menu-item-has-children {
    position: relative;
}

.mobilex-menu li.amx-main-menu__item.menu-item-has-children > a:after,
#mobilewrapper_links li.amx-main-menu__item.menu-item-has-children > a:after {
    pointer-events: none;
    transition: transform 160ms ease;
}

.mobilex-menu li.amx-main-menu__item.amx-mobile-menu__item--open > a:after,
#mobilewrapper_links li.amx-main-menu__item.amx-mobile-menu__item--open > a:after {
    transform: rotate(180deg);
}

.mobilex-menu li.amx-main-menu__item > .amx-mobile-submenu-toggle,
#mobilewrapper_links li.amx-main-menu__item > .amx-mobile-submenu-toggle {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    display: block;
    height: 48px;
    margin: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    opacity: 1;
    padding: 0 !important;
    position: absolute;
    right: 0;
    top: 0;
    width: 64px;
    z-index: 3;
}

.mobilex-menu li.amx-main-menu__item > .amx-mobile-submenu-toggle:focus-visible,
#mobilewrapper_links li.amx-main-menu__item > .amx-mobile-submenu-toggle:focus-visible {
    outline: 2px solid var(--amx-primary-button-bg, var(--wp-estate-main-color-option, #dd3333));
    outline-offset: -4px;
}

.mobilex-menu li.amx-mobile-menu__heading,
#mobilewrapper_links li.amx-mobile-menu__heading {
    color: #111827;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    padding: 12px 20px 4px;
    text-transform: uppercase;
}

.mobilex-menu li.amx-mobile-menu__heading > span,
#mobilewrapper_links li.amx-mobile-menu__heading > span {
    display: block;
}

.mobilex-menu li.amx-mobile-feature-link > a,
#mobilewrapper_links li.amx-mobile-feature-link > a,
.mobilex-menu li.amx-menu-professionals__join > a,
#mobilewrapper_links li.amx-menu-professionals__join > a,
.mobilex-menu li.amx-menu-advertise__primary > a,
#mobilewrapper_links li.amx-menu-advertise__primary > a {
    color: var(--amx-primary-button-bg, var(--wp-estate-main-color-option, #dd3333));
    font-weight: 800;
}

/* Keep generated navigation collapsed at mobile/tablet sizes before JS initializes. */
#mobilewrapper_links .amx-main-menu--mobile > li.menu-item-has-children:not(.amx-mobile-menu__item--open) > .sub-menu,
.mobilex-menu.amx-main-menu--mobile > li.menu-item-has-children:not(.amx-mobile-menu__item--open) > .sub-menu {
    display: none !important;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
}

#mobilewrapper_links .amx-main-menu--mobile > li.menu-item-has-children.amx-mobile-menu__item--open > .sub-menu,
.mobilex-menu.amx-main-menu--mobile > li.menu-item-has-children.amx-mobile-menu__item--open > .sub-menu {
    display: block;
    max-height: none;
    overflow: visible;
    visibility: visible;
}

@media (max-width: 1199.98px) {
    .wpresidence-navigation-menu .amx-main-menu-container,
    .wpresidence-navigation-menu .amx-main-menu--desktop,
    .wpresidence-navigation-menu .amx-main-menu--desktop > li.amx-main-menu__item > ul.sub-menu.amx-mega-panel {
        display: none !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }
}

@media (min-width: 1025px) {
    .master_header,
    .master_header_sticky,
    .header_wrapper,
    .header_wrapper_inside {
        border-bottom: 0 !important;
    }

    .master_header,
    .master_header_sticky {
        position: relative;
    }

    .master_header::after,
    .master_header_sticky::after {
        background: rgba(15, 23, 42, 0.10);
        bottom: 0;
        content: "";
        height: 1px;
        left: 0;
        pointer-events: none;
        position: absolute;
        right: 0;
        z-index: 10060;
    }

    .wpresidence-navigation-menu .amx-main-menu-container,
    .wpresidence-navigation-menu .amx-main-menu--desktop,
    .wpresidence-navigation-menu .amx-main-menu--desktop > li.amx-main-menu__item {
        position: static !important;
    }

    .wpresidence-navigation-menu .amx-main-menu--desktop > li.amx-main-menu__item > ul.sub-menu.amx-mega-panel {
        background: #ffffff !important;
        border: 0 !important;
        border-top: 0 !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.10) !important;
        border-radius: 0 !important;
        box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08) !important;
        box-sizing: border-box !important;
        display: block !important;
        left: 0 !important;
        line-height: 1.25 !important;
        margin: 0 !important;
        max-width: none !important;
        min-width: 0 !important;
        opacity: 0 !important;
        padding: 0 !important;
        pointer-events: none !important;
        position: fixed !important;
        right: 0 !important;
        top: var(--wp-estate-header-height-option, var(--wp-estate-header-height, 90px)) !important;
        transform: translateY(6px);
        transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
        visibility: hidden !important;
        width: auto !important;
        z-index: 10050 !important;
    }

    body.admin-bar .wpresidence-navigation-menu .amx-main-menu--desktop > li.amx-main-menu__item > ul.sub-menu.amx-mega-panel {
        top: calc(var(--wp-estate-header-height-option, var(--wp-estate-header-height, 90px)) + 32px) !important;
    }

    .master_header_sticky .wpresidence-navigation-menu .amx-main-menu--desktop > li.amx-main-menu__item > ul.sub-menu.amx-mega-panel {
        top: var(--wp-estate-sticky-header-height-option, var(--wp-estate-sticky-header-height, 72px)) !important;
    }

    body.admin-bar .master_header_sticky .wpresidence-navigation-menu .amx-main-menu--desktop > li.amx-main-menu__item > ul.sub-menu.amx-mega-panel {
        top: calc(var(--wp-estate-sticky-header-height-option, var(--wp-estate-sticky-header-height, 72px)) + 32px) !important;
    }

    .wpresidence-navigation-menu .amx-main-menu--desktop > li.amx-main-menu__item:hover > ul.sub-menu.amx-mega-panel {
        opacity: 0 !important;
        pointer-events: none !important;
        transform: translateY(6px);
        visibility: hidden !important;
    }

    .wpresidence-navigation-menu .amx-main-menu--desktop > li.amx-main-menu__item.amx-main-menu__item--open > ul.sub-menu.amx-mega-panel {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateY(0);
        visibility: visible !important;
    }

    .wpresidence-navigation-menu .amx-main-menu--desktop > li.amx-main-menu__item > a[aria-expanded="true"] {
        color: var(--amx-primary-button-bg, var(--wp-estate-main-color-option, #dd3333)) !important;
    }

    .wpresidence-navigation-menu .amx-main-menu--desktop > li.amx-main-menu__item > ul.sub-menu.amx-mega-panel > li.amx-mega-panel__inner {
        background: transparent !important;
        border: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
        line-height: 1.25 !important;
        margin: 0 auto !important;
        max-width: 1280px !important;
        padding: 34px 34px 38px !important;
        width: 100% !important;
    }

    .wpresidence-navigation-menu .amx-mega-panel__content {
        align-items: stretch;
        display: grid;
        gap: 38px;
        grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
        width: 100%;
    }

    .wpresidence-navigation-menu .amx-mega-feature {
        background: var(--wp-estate-main-color-option, #dd3333);
        background-image:
            linear-gradient(
                135deg,
                color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 90%, transparent),
                color-mix(in srgb, var(--wp-estate-second-color-option, var(--wp-estate-main-color-option, #dd3333)) 66%, transparent)
            ),
            var(--amx-mega-feature-image);
        background-position: center;
        background-size: cover;
        border-radius: 8px;
        color: #ffffff;
        min-height: 284px;
        overflow: hidden;
        position: relative;
    }

    .wpresidence-navigation-menu .amx-mega-feature--advertise {
        background: var(--wp-estate-main-color-option, #dd3333);
        background-image:
            linear-gradient(
                135deg,
                color-mix(in srgb, var(--wp-estate-main-color-option, #dd3333) 93%, transparent),
                color-mix(in srgb, var(--wp-estate-second-color-option, var(--wp-estate-main-color-option, #dd3333)) 62%, transparent)
            ),
            var(--amx-mega-feature-image);
    }

    .wpresidence-navigation-menu .amx-mega-feature__overlay {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: center;
        min-height: 284px;
        padding: 34px 30px;
        position: relative;
        z-index: 1;
    }

    .wpresidence-navigation-menu .amx-mega-feature__title {
        color: #ffffff;
        font-size: 23px;
        font-weight: 800;
        line-height: 1.2;
        margin: 0 0 16px;
    }

    .wpresidence-navigation-menu .amx-mega-feature__description {
        color: rgba(255, 255, 255, 0.92);
        font-size: 14px;
        font-weight: 500;
        line-height: 1.55;
        margin: 0 0 28px;
        max-width: 280px;
    }

    .wpresidence-navigation-menu .amx-mega-feature__button {
        align-items: center !important;
        align-self: flex-start;
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(255, 255, 255, 0.86) !important;
        border-radius: 8px;
        box-sizing: border-box !important;
        color: #ffffff !important;
        display: inline-flex !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        height: 52px !important;
        justify-content: center !important;
        line-height: 50px !important;
        min-height: 52px !important;
        min-width: 144px;
        padding: 0 22px !important;
        text-align: center !important;
        text-decoration: none !important;
        transform: none !important;
        transition: background-color 160ms ease, border-color 160ms ease;
        vertical-align: middle !important;
    }

    .wpresidence-navigation-menu .amx-mega-feature__button:hover,
    .wpresidence-navigation-menu .amx-mega-feature__button:focus {
        background: rgba(255, 255, 255, 0.18) !important;
        border-color: #ffffff !important;
        color: #ffffff !important;
    }

    .wpresidence-navigation-menu .amx-mega-groups {
        display: grid;
        gap: 30px 38px;
        grid-template-columns: repeat(3, minmax(160px, 1fr));
    }

    .wpresidence-navigation-menu .amx-mega-group {
        border-left: 1px solid rgba(15, 23, 42, 0.12);
        min-width: 0;
        padding-left: 28px;
    }

    .wpresidence-navigation-menu .amx-mega-group__title {
        color: #111827;
        font-size: 15px;
        font-weight: 800;
        line-height: 1.25;
        margin: 0 0 16px;
    }

    .wpresidence-navigation-menu .amx-mega-group__links {
        display: flex;
        flex-direction: column;
        gap: 14px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .wpresidence-navigation-menu .amx-main-menu--desktop > li.amx-main-menu__item > ul.sub-menu.amx-mega-panel .amx-mega-group__links {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        float: none !important;
        left: auto !important;
        line-height: 1.35 !important;
        margin: 0 !important;
        opacity: 1 !important;
        padding: 0 !important;
        pointer-events: auto !important;
        position: static !important;
        top: auto !important;
        transform: none !important;
        transition: none !important;
        visibility: visible !important;
        width: auto !important;
    }

    .wpresidence-navigation-menu .amx-mega-group__item {
        background: transparent !important;
        border: 0 !important;
        clear: none !important;
        display: block !important;
        float: none !important;
        height: auto !important;
        line-height: 1.25 !important;
        opacity: 1 !important;
        padding: 0 !important;
        position: static !important;
        text-align: left !important;
        transform: none !important;
        visibility: visible !important;
        width: auto !important;
    }

    .wpresidence-navigation-menu .amx-mega-group__item:hover {
        background: transparent !important;
    }

    .wpresidence-navigation-menu .amx-mega-group__item > a {
        color: var(--wp-estate-main-color-option, #dd3333) !important;
        display: inline-block !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 1.35 !important;
        padding: 0 !important;
        position: static !important;
        text-decoration: none !important;
        transform: none !important;
        white-space: normal !important;
    }

    .wpresidence-navigation-menu .amx-main-menu--desktop > li.amx-main-menu__item:not(.amx-main-menu__item--open) > ul.sub-menu.amx-mega-panel,
    .wpresidence-navigation-menu .amx-main-menu--desktop > li.amx-main-menu__item:not(.amx-main-menu__item--open) > ul.sub-menu.amx-mega-panel * {
        pointer-events: none !important;
        visibility: hidden !important;
    }

    .wpresidence-navigation-menu .amx-main-menu--desktop > li.amx-main-menu__item > ul.sub-menu.amx-mega-panel .amx-mega-group__item:hover > a,
    .wpresidence-navigation-menu .amx-main-menu--desktop > li.amx-main-menu__item > ul.sub-menu.amx-mega-panel .amx-mega-group__item > a:hover,
    .wpresidence-navigation-menu .amx-main-menu--desktop > li.amx-main-menu__item > ul.sub-menu.amx-mega-panel .amx-mega-group__item > a:focus {
        color: var(--wp-estate-menu-hover-font-color-option, var(--wp-estate-main-color-option, #dd3333)) !important;
        text-decoration: underline !important;
        text-underline-offset: 3px;
        transform: none !important;
    }

    .wpresidence-navigation-menu .amx-mega-group__item.amx-menu-professionals__join > a {
        font-weight: 800 !important;
    }

    @media (max-width: 1199px) {
        .wpresidence-navigation-menu .amx-mega-panel__content {
            gap: 28px;
            grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
        }

        .wpresidence-navigation-menu .amx-mega-groups {
            gap: 26px 28px;
        }
    }
}

body .btn:not(.dropdown-toggle):not(.accordion-button),
body .btn-primary:not(.dropdown-toggle):not(.property_dashboard_actions_button),
body .comment-form #submit,
body .elementor-button,
body .wp-block-button__link,
body .wpresidence_button:not(.wpresidence_button_inverse),
body .amx-half-map-save-search-button,
body .amx-save-search-modal__submit,
body #save_search_button,
body .residence_advanced_submit_button_search_1,
body .wpestate_login_form_wrapper .wpestate_register_submit_button,
body .wpestate_login_form_wrapper .wpestate_login_submit_button,
body .wpestate_login_form_wrapper .wpestate_forgot_password_submit_button,
body .wpestate_register_form_wrapper .wpestate_register_submit_button,
body .wpestate_register_form_wrapper .wpestate_login_submit_button,
body .wpestate_register_form_wrapper .wpestate_forgot_password_submit_button,
body .wpestate_forgot_form_wrapper .wpestate_register_submit_button,
body .wpestate_forgot_form_wrapper .wpestate_login_submit_button,
body .wpestate_forgot_form_wrapper .wpestate_forgot_password_submit_button,
body .header_agency_wrapper .header_agency_container .developer_contact_button,
body .header_agency_wrapper .header_agency_container .agency_contact_but,
body .return_woo_button,
body .woocommerce a.button,
body .woocommerce button.button,
body .woocommerce input.button,
body .wp-block-search .wp-block-search__button,
body .aaiu_button,
body .wpresidence_action_button,
body .button_user_role,
body .featured_agent_listings.wpresidence_button,
body .availablemx-hllp-menu-item > .availablemx-hllp-link--login,
body .availablemx-hllp-link--login,
body #user_menu_u.user_not_loged .submit_action {
    background: var(--amx-primary-button-bg) !important;
    background-image: none !important;
    border: 1px solid var(--amx-primary-button-bg) !important;
    border-radius: var(--amx-primary-button-radius) !important;
    box-shadow: none !important;
    color: var(--amx-primary-button-color) !important;
    font-family: var(
        --wp-estate-menu-font-family-option,
        var(--wp-estate-menu-font-family, var(--wp-estate-paragraph-font-family, inherit))
    ) !important;
    display: inline-flex !important;
    align-items: center;
    font-size: var(--amx-primary-button-font-size) !important;
    font-weight: var(--amx-primary-button-font-weight) !important;
    justify-content: center;
    line-height: var(--amx-primary-button-line-height) !important;
    min-height: var(--amx-control-height) !important;
    padding: var(--amx-primary-button-padding) !important;
    text-decoration: none !important;
    text-shadow: none !important;
    text-transform: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
    white-space: nowrap;
}

body .btn:not(.dropdown-toggle):not(.accordion-button):hover,
body .btn:not(.dropdown-toggle):not(.accordion-button):focus-visible,
body .btn-primary:not(.dropdown-toggle):not(.property_dashboard_actions_button):hover,
body .btn-primary:not(.dropdown-toggle):not(.property_dashboard_actions_button):focus-visible,
body .comment-form #submit:hover,
body .comment-form #submit:focus-visible,
body .elementor-button:hover,
body .elementor-button:focus-visible,
body .wp-block-button__link:hover,
body .wp-block-button__link:focus-visible,
body .wpresidence_button:not(.wpresidence_button_inverse):hover,
body .wpresidence_button:not(.wpresidence_button_inverse):focus-visible,
body .amx-half-map-save-search-button:hover,
body .amx-half-map-save-search-button:focus-visible,
body .amx-save-search-modal__submit:hover,
body .amx-save-search-modal__submit:focus-visible,
body #save_search_button:hover,
body #save_search_button:focus-visible,
body .residence_advanced_submit_button_search_1:hover,
body .residence_advanced_submit_button_search_1:focus-visible,
body .wpestate_login_form_wrapper .wpestate_register_submit_button:hover,
body .wpestate_login_form_wrapper .wpestate_register_submit_button:focus-visible,
body .wpestate_login_form_wrapper .wpestate_login_submit_button:hover,
body .wpestate_login_form_wrapper .wpestate_login_submit_button:focus-visible,
body .wpestate_login_form_wrapper .wpestate_forgot_password_submit_button:hover,
body .wpestate_login_form_wrapper .wpestate_forgot_password_submit_button:focus-visible,
body .wpestate_register_form_wrapper .wpestate_register_submit_button:hover,
body .wpestate_register_form_wrapper .wpestate_register_submit_button:focus-visible,
body .wpestate_register_form_wrapper .wpestate_login_submit_button:hover,
body .wpestate_register_form_wrapper .wpestate_login_submit_button:focus-visible,
body .wpestate_register_form_wrapper .wpestate_forgot_password_submit_button:hover,
body .wpestate_register_form_wrapper .wpestate_forgot_password_submit_button:focus-visible,
body .wpestate_forgot_form_wrapper .wpestate_register_submit_button:hover,
body .wpestate_forgot_form_wrapper .wpestate_register_submit_button:focus-visible,
body .wpestate_forgot_form_wrapper .wpestate_login_submit_button:hover,
body .wpestate_forgot_form_wrapper .wpestate_login_submit_button:focus-visible,
body .wpestate_forgot_form_wrapper .wpestate_forgot_password_submit_button:hover,
body .wpestate_forgot_form_wrapper .wpestate_forgot_password_submit_button:focus-visible,
body .header_agency_wrapper .header_agency_container .developer_contact_button:hover,
body .header_agency_wrapper .header_agency_container .developer_contact_button:focus-visible,
body .header_agency_wrapper .header_agency_container .agency_contact_but:hover,
body .header_agency_wrapper .header_agency_container .agency_contact_but:focus-visible,
body .return_woo_button:hover,
body .return_woo_button:focus-visible,
body .woocommerce a.button:hover,
body .woocommerce a.button:focus-visible,
body .woocommerce button.button:hover,
body .woocommerce button.button:focus-visible,
body .woocommerce input.button:hover,
body .woocommerce input.button:focus-visible,
body .wp-block-search .wp-block-search__button:hover,
body .wp-block-search .wp-block-search__button:focus-visible,
body .aaiu_button:hover,
body .aaiu_button:focus-visible,
body .wpresidence_action_button:hover,
body .wpresidence_action_button:focus-visible,
body .button_user_role:hover,
body .button_user_role:focus-visible,
body .featured_agent_listings.wpresidence_button:hover,
body .featured_agent_listings.wpresidence_button:focus-visible,
body .availablemx-hllp-menu-item > .availablemx-hllp-link--login:hover,
body .availablemx-hllp-menu-item > .availablemx-hllp-link--login:focus-visible,
body .availablemx-hllp-link--login:hover,
body .availablemx-hllp-link--login:focus-visible,
body #user_menu_u.user_not_loged .submit_action:hover,
body #user_menu_u.user_not_loged .submit_action:focus-visible {
    background: var(--amx-primary-button-bg-hover) !important;
    background-image: none !important;
    border-color: var(--amx-primary-button-bg-hover) !important;
    color: var(--amx-primary-button-color) !important;
    outline: none;
}

body input[type="text"],
body input[type="email"],
body input[type="password"],
body input[type="search"],
body input[type="tel"],
body input[type="url"],
body input[type="number"],
body input[type="date"],
body input[type="datetime-local"],
body input[type="month"],
body input[type="time"],
body input[type="week"],
body input.form-control,
body select.form-control,
body select.form-select,
body textarea.form-control,
body textarea,
body .elementor-field,
body .elementor-field-textual,
body .elementor-search-form__input,
body .bootstrap-select > .dropdown-toggle,
body .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
body .wpestatemultiselect .dropdown-toggle,
body .dropdown.form-control .filter_menu_trigger,
body .filter_menu_trigger.property_dashboard_actions_button {
    background: var(--amx-field-bg) !important;
    border: 1px solid var(--amx-field-border) !important;
    border-radius: var(--amx-soft-radius-lg) !important;
    box-shadow: none !important;
    color: var(--amx-field-text) !important;
    font-family: var(
        --wp-estate-menu-font-family-option,
        var(--wp-estate-menu-font-family, var(--wp-estate-paragraph-font-family, inherit))
    ) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
    min-height: var(--amx-control-height) !important;
    padding: 7px 14px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

body select,
body select.form-control,
body select.form-select,
body .bootstrap-select > .dropdown-toggle,
body .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
body .wpestatemultiselect .dropdown-toggle,
body .dropdown.form-control .filter_menu_trigger,
body .filter_menu_trigger.property_dashboard_actions_button {
    min-height: var(--amx-control-height) !important;
}

body textarea,
body textarea.form-control,
body .elementor-field-type-textarea .elementor-field {
    border-radius: var(--amx-soft-radius-lg) !important;
    min-height: 116px !important;
    padding: 10px 14px !important;
}

body input[type="text"]:focus,
body input[type="email"]:focus,
body input[type="password"]:focus,
body input[type="search"]:focus,
body input[type="tel"]:focus,
body input[type="url"]:focus,
body input[type="number"]:focus,
body input[type="date"]:focus,
body input[type="datetime-local"]:focus,
body input[type="month"]:focus,
body input[type="time"]:focus,
body input[type="week"]:focus,
body input.form-control:focus,
body select.form-control:focus,
body select.form-select:focus,
body textarea.form-control:focus,
body textarea:focus,
body .elementor-field:focus,
body .elementor-field-textual:focus,
body .elementor-search-form__input:focus,
body .bootstrap-select > .dropdown-toggle:focus,
body .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle:focus,
body .wpestatemultiselect .dropdown-toggle:focus,
body .dropdown.form-control .filter_menu_trigger:focus,
body .filter_menu_trigger.property_dashboard_actions_button:focus {
    border-color: var(--amx-field-border-focus) !important;
    box-shadow: var(--amx-field-focus-ring) !important;
    outline: none !important;
}

body input[type="text"]::placeholder,
body input[type="email"]::placeholder,
body input[type="password"]::placeholder,
body input[type="search"]::placeholder,
body input[type="tel"]::placeholder,
body input[type="url"]::placeholder,
body input[type="number"]::placeholder,
body input[type="date"]::placeholder,
body input[type="datetime-local"]::placeholder,
body input[type="month"]::placeholder,
body input[type="time"]::placeholder,
body input[type="week"]::placeholder,
body textarea::placeholder,
body .elementor-field::placeholder,
body .elementor-search-form__input::placeholder {
    color: var(--amx-field-placeholder) !important;
    opacity: 1;
}

body .dropdown.form-control {
    background: var(--amx-field-bg) !important;
    border: 1px solid var(--amx-field-border) !important;
    border-radius: var(--amx-soft-radius-lg) !important;
    box-shadow: none !important;
    min-height: var(--amx-control-height) !important;
    padding: 0 !important;
}

body .dropdown.form-control .filter_menu_trigger,
body .wpresidence_dropdown.wpresidence_filters_dropdown .dropdown-toggle,
body .wpestatemultiselect .dropdown-toggle,
body .bootstrap-select > .dropdown-toggle,
body .filter_menu_trigger.property_dashboard_actions_button {
    align-items: center;
    display: flex !important;
    justify-content: flex-start;
    width: 100%;
}

body input[readonly],
body input:disabled,
body select:disabled,
body textarea:disabled,
body .form-control[readonly],
body .form-control:disabled {
    background: #eef2f7 !important;
    color: #6a7484 !important;
    cursor: not-allowed;
}

body.availablemx-hllp-guest .mobile_header .mobile-trigger-user i.fa-user-circle,
body.availablemx-hllp-guest .mobile_header .mobile-trigger-user i.fas.fa-user-circle,
body.availablemx-hllp-guest .mobile_header .mobile-trigger-user i.far.fa-user-circle,
body .mobile_header .mobile-trigger-user.availablemx-hllp-mobile-login i.fa-user-circle,
body .mobile_header .mobile-trigger-user.availablemx-hllp-mobile-login i.fas.fa-user-circle,
body .mobile_header .mobile-trigger-user.availablemx-hllp-mobile-login i.far.fa-user-circle {
    background: var(--amx-primary-button-bg) !important;
    border: 1px solid var(--amx-primary-button-bg) !important;
    border-radius: var(--amx-primary-button-radius) !important;
    min-height: 0 !important;
    padding: var(--amx-primary-button-padding) !important;
}

body.availablemx-hllp-guest .mobile_header .mobile-trigger-user:hover i.fa-user-circle,
body.availablemx-hllp-guest .mobile_header .mobile-trigger-user:hover i.fas.fa-user-circle,
body.availablemx-hllp-guest .mobile_header .mobile-trigger-user:hover i.far.fa-user-circle,
body.availablemx-hllp-guest .mobile_header .mobile-trigger-user:focus-visible i.fa-user-circle,
body.availablemx-hllp-guest .mobile_header .mobile-trigger-user:focus-visible i.fas.fa-user-circle,
body.availablemx-hllp-guest .mobile_header .mobile-trigger-user:focus-visible i.far.fa-user-circle,
body .mobile_header .mobile-trigger-user.availablemx-hllp-mobile-login:hover i.fa-user-circle,
body .mobile_header .mobile-trigger-user.availablemx-hllp-mobile-login:hover i.fas.fa-user-circle,
body .mobile_header .mobile-trigger-user.availablemx-hllp-mobile-login:hover i.far.fa-user-circle,
body .mobile_header .mobile-trigger-user.availablemx-hllp-mobile-login:focus-visible i.fa-user-circle,
body .mobile_header .mobile-trigger-user.availablemx-hllp-mobile-login:focus-visible i.fas.fa-user-circle,
body .mobile_header .mobile-trigger-user.availablemx-hllp-mobile-login:focus-visible i.far.fa-user-circle {
    background: var(--amx-primary-button-bg-hover) !important;
    border-color: var(--amx-primary-button-bg-hover) !important;
}

body.availablemx-hllp-guest .mobile_header .mobile-trigger-user i.fa-user-circle::after,
body.availablemx-hllp-guest .mobile_header .mobile-trigger-user i.fas.fa-user-circle::after,
body.availablemx-hllp-guest .mobile_header .mobile-trigger-user i.far.fa-user-circle::after,
body .mobile_header .mobile-trigger-user.availablemx-hllp-mobile-login i.fa-user-circle::after,
body .mobile_header .mobile-trigger-user.availablemx-hllp-mobile-login i.fas.fa-user-circle::after,
body .mobile_header .mobile-trigger-user.availablemx-hllp-mobile-login i.far.fa-user-circle::after {
    font-size: var(--amx-primary-button-font-size) !important;
    font-weight: var(--amx-primary-button-font-weight) !important;
    line-height: var(--amx-primary-button-line-height) !important;
}

@media (max-width: 575.98px) {
    body.availablemx-hllp-guest .mobile_header .mobile-trigger-user i.fa-user-circle,
    body.availablemx-hllp-guest .mobile_header .mobile-trigger-user i.fas.fa-user-circle,
    body.availablemx-hllp-guest .mobile_header .mobile-trigger-user i.far.fa-user-circle,
    body .mobile_header .mobile-trigger-user.availablemx-hllp-mobile-login i.fa-user-circle,
    body .mobile_header .mobile-trigger-user.availablemx-hllp-mobile-login i.fas.fa-user-circle,
    body .mobile_header .mobile-trigger-user.availablemx-hllp-mobile-login i.far.fa-user-circle {
        padding: 10px 15px !important;
    }
}

/* Tone down oversized property headings on single-property and map detail views. */
.single-estate_property .wpresidence_property_page_title_area .entry-title.entry-prop,
.single-estate_property .wpresidence_property_page_title_area .entry-prop {
    font-size: clamp(30px, 2.25vw, 40px);
    line-height: 1.14;
}

@media (min-width: 992px) {
    .single-estate_property .wpresidence_property_page_title_area .entry-title.entry-prop,
    .single-estate_property .wpresidence_property_page_title_area .entry-prop {
        max-width: calc(100% - 220px);
    }
}

.lightbox_property_wrapper .lightbox_property_content.row .lightbox_property_sidebar .lightbox_property_header .entry-title.entry-prop,
.lightbox_property_wrapper .lightbox_property_content.row .lightbox_property_sidebar .lightbox_property_header .entry-prop,
#property_details_modal_wrapper #property_modal_header .modal_property_title {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: clamp(18px, 1.05vw, 20px);
    line-height: 1.25;
}

.single-estate_property .wpestate_property_description .amx-market-context__title,
.single-estate_property .listing-content .amx-market-context .amx-market-context__title {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 8px;
}

/* Keep Elementor full-width rows and platform sliders inside the viewport. */
body .elementor-container,
body .elementor-column,
body .elementor-widget-wrap,
body .elementor-widget-container,
body .e-con,
body .e-con-inner,
body .wpresidence-content-container-wrapper,
body .wpresidence-content-container {
    min-width: 0;
}

body .slider_container,
body .shortcode_slider_wrapper,
body .shortcode_slider_list,
body .slick-slider,
body .slick-list,
body .slick-track {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

body .slider_container {
    width: 100%;
}

body .slider_container .shortcode_slider_wrapper {
    margin-left: 0;
    margin-right: 0;
    padding-left: 15px;
    padding-right: 15px;
}

body .slider_container .shortcode_slider_wrapper .slick-list {
    margin-left: -10px;
    margin-right: -10px;
}

body .slider_container .shortcode_slider_wrapper .slick-track {
    min-width: 0;
}

/* Homepage Elementor layout guard. */
body.home.page-id-27269,
body.home.page-id-27269 #all_wrapper,
body.home.page-id-27269 .wpresidence_main_wrapper_class,
body.home.page-id-27269 .elementor-27269 {
    overflow-x: clip;
}

@supports not (overflow: clip) {
    body.home.page-id-27269,
    body.home.page-id-27269 #all_wrapper,
    body.home.page-id-27269 .wpresidence_main_wrapper_class,
    body.home.page-id-27269 .elementor-27269 {
        overflow-x: hidden;
    }
}

body.home.page-id-27269 .prop-compare {
    display: none !important;
}

body.home.page-id-27269 .elementor-element-21037c82,
body.home.page-id-27269 .elementor-element-7b7c3658 {
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: clip;
}

body.home.page-id-27269 .elementor-element-5e495a0b > .elementor-container {
    box-sizing: border-box;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: min(1170px, calc(100% - 48px)) !important;
    width: 100% !important;
}

@media (min-width: 1025px) {
    body.home.page-id-27269 .wpresidence-navigation-menu .menu:not(.amx-main-menu--desktop) > li:nth-last-child(-n + 2) > ul.sub-menu {
        left: auto !important;
        right: 0 !important;
    }
}

@media (max-width: 767.98px) {
    body.home.page-id-27269 .mobile_header {
        background: transparent !important;
        border-bottom: 0 !important;
        box-shadow: none !important;
        left: 0;
        pointer-events: none !important;
        position: absolute !important;
        right: 0;
        top: 0;
        z-index: 2147482000 !important;
    }

    body.home.page-id-27269 .mobile_header .mobile-trigger,
    body.home.page-id-27269 .mobile_header .mobile-trigger-user {
        pointer-events: auto !important;
        z-index: 2147482100 !important;
    }

    body.home.page-id-27269 .mobile_header .mobile-trigger i,
    body.home.page-id-27269 .mobile_header .mobile-trigger-user i,
    body.home.page-id-27269 .mobile_header .mobile-trigger-user .menu_user_picture {
        pointer-events: none !important;
    }

    body.home.page-id-27269 .mobile_header .mobile-trigger i {
        color: #ffffff !important;
        text-shadow: 0 2px 12px rgba(3, 7, 18, 0.35);
    }

    body.home.page-id-27269.availablemx-hllp-guest .mobile_header .mobile-trigger-user i.fa-user-circle,
    body.home.page-id-27269.availablemx-hllp-guest .mobile_header .mobile-trigger-user i.fas.fa-user-circle,
    body.home.page-id-27269.availablemx-hllp-guest .mobile_header .mobile-trigger-user i.far.fa-user-circle {
        background: #ffffff !important;
        border-color: #ffffff !important;
        box-shadow: 0 8px 24px rgba(3, 7, 18, 0.16) !important;
        color: var(--wp-estate-mobile-header-icon-color-option, var(--wp-estate-main-color-option, #dd3333)) !important;
    }

    body.home.page-id-27269.availablemx-hllp-guest .mobile_header .mobile-trigger-user i.fa-user-circle::before,
    body.home.page-id-27269.availablemx-hllp-guest .mobile_header .mobile-trigger-user i.fas.fa-user-circle::before,
    body.home.page-id-27269.availablemx-hllp-guest .mobile_header .mobile-trigger-user i.far.fa-user-circle::before {
        content: none !important;
        display: none !important;
    }

    body.home.page-id-27269.availablemx-hllp-guest .mobile_header .mobile-trigger-user i.fa-user-circle::after,
    body.home.page-id-27269.availablemx-hllp-guest .mobile_header .mobile-trigger-user i.fas.fa-user-circle::after,
    body.home.page-id-27269.availablemx-hllp-guest .mobile_header .mobile-trigger-user i.far.fa-user-circle::after {
        color: var(--wp-estate-mobile-header-icon-color-option, var(--wp-estate-main-color-option, #dd3333)) !important;
        content: "Sign in" !important;
        display: block !important;
    }

    body.home.page-id-27269 .elementor-element-21037c82:not(.elementor-motion-effects-element-type-background),
    body.home.page-id-27269 .elementor-element-21037c82 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
        background-position: center center !important;
    }

    body.home.page-id-27269 .elementor-element-21037c82 > .elementor-container {
        min-height: 332px !important;
    }

    body.home.page-id-27269 .elementor-element-21037c82 {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.home.page-id-27269 .elementor-element-5e495a0b {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: clamp(54px, 15vw, 76px) !important;
    }

    body.home.page-id-27269 .elementor-element-5e495a0b > .elementor-container {
        max-width: calc(100% - 28px) !important;
    }

    body.home.page-id-27269 .elementor-element-3c566a9d > .elementor-widget-wrap {
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    body.home.page-id-27269 .elementor-element-79ee36ef {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
        text-align: center !important;
        width: 100% !important;
    }

    body.home.page-id-27269 .elementor-element-79ee36ef .elementor-heading-title {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    body.home.page-id-27269 .elementor-element-1cd23dde {
        align-self: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: min(640px, calc(100vw - 42px)) !important;
        width: min(640px, calc(100vw - 42px)) !important;
    }

    body.home.page-id-27269 .elementor-element-1cd23dde > .elementor-widget-container,
    body.home.page-id-27269 .amx-hero-search .search_wrapper,
    body.home.page-id-27269 .amx-hero-search .wpestate-adv-holder,
    body.home.page-id-27269 .amx-hero-search form {
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }

    body.home.page-id-27269 .amx-hero-search .adv_locations_search_component_wrapper {
        width: 100% !important;
    }

    body.home.page-id-27269 .amx-hero-search input[type="text"],
    body.home.page-id-27269 .amx-hero-search .adv_locations_search,
    body.home.page-id-27269 .amx-hero-search .form-control {
        font-size: 16px !important;
        overflow: hidden !important;
        padding-left: 20px !important;
        padding-right: 10px !important;
        text-align: left !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body.home.page-id-27269 .amx-hero-search #adv_location_0 {
        padding-left: 20px !important;
        text-align: left !important;
    }

    body.home.page-id-27269 .amx-hero-search input[type="text"]::placeholder,
    body.home.page-id-27269 .amx-hero-search .adv_locations_search::placeholder,
    body.home.page-id-27269 .amx-hero-search .form-control::placeholder {
        text-align: left !important;
    }
}

/* Prevent the parent divider from stacking over the child theme header rule. */
body:not(.half_map_body):not(.wpresidence_half_map_body_class):not(.wpresidence_half_map_body_class_with_footer)
    .wpresidence_main_wrapper_class:not(.header_transparent)
    > .master_header,
body:not(.half_map_body):not(.wpresidence_half_map_body_class):not(.wpresidence_half_map_body_class_with_footer)
    .wpresidence_main_wrapper_class:not(.header_transparent)
    > .mobile_header {
    border-bottom: 0 !important;
}

body .wpresidence-geolocatiomarker-current-location {
    position: relative;
    padding-left: 34px;
}

body .wpresidence-geolocatiomarker-current-location::before {
    content: "\f601";
    color: #667085;
    font-family: "Font Awesome 5 Free";
    font-size: 14px;
    font-weight: 900;
    left: 14px;
    line-height: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

body .adv_locations_search.amx-current-location-loading,
body #adv_location.amx-current-location-loading,
body #adv_location_0.amx-current-location-loading {
    cursor: progress;
}

body .search_wrapper input[type="text"].amx-search-has-reset,
body #adv_location.amx-search-has-reset,
body #adv_location_mobile.amx-search-has-reset,
body .adv_locations_search.amx-search-has-reset {
    padding-right: 42px !important;
}

body .adv_locations_search_component_wrapper .wpresidece-reset-btn[data-amx-reset-input-id] {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    left: auto !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%);
    z-index: 3;
}

body #listing_ajax_container.amx-half-map-refreshing {
    cursor: progress;
    position: relative;
}

body #google_map_prop_list_sidebar.amx-half-map-refreshing .amx-half-map-results-bar {
    opacity: 0.48;
    transition: opacity 140ms ease;
}

body #listing_ajax_container.amx-half-map-refreshing .listing_wrapper {
    opacity: 0.48;
    transition: opacity 140ms ease;
}

body #listing_ajax_container.amx-half-map-refreshing::after {
    animation: amxHalfMapCardsRefresh 720ms ease-in-out infinite alternate;
    background: rgba(255, 255, 255, 0.34);
    bottom: 0;
    content: "";
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
}

@keyframes amxHalfMapCardsRefresh {
    from {
        opacity: 0.72;
    }

    to {
        opacity: 0.38;
    }
}

/* Give the homepage hero search dropdown the same softer curvature as the search bar. */
body .ui-autocomplete.ui-widget-content.amx-hero-search-autocomplete,
body .ui-autocomplete.ui-widget-content.amx-half-map-search-autocomplete {
    background: var(--amx-field-bg);
    border: 1px solid var(--amx-field-border);
    border-radius: var(--amx-soft-radius-lg);
    box-shadow: none;
    overflow: hidden;
}

/* Keep synced profile avatars visually centered inside the small header circles. */
body .menu_user_picture,
body .availablemx-hllp-auth-avatar.amx-has-image {
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

body .amx-public-organization {
    align-items: center;
    background: #f7f9fc;
    border: 1px solid #e6edf5;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    margin: 12px 0 14px;
    padding: 10px 12px;
}

body .amx-public-organization__mark {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    color: #2155d9;
    display: inline-flex;
    flex: 0 0 40px;
    font-size: 15px;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    overflow: hidden;
    width: 40px;
}

body .amx-public-organization__mark img {
    display: block;
    height: 100%;
    object-fit: contain;
    padding: 5px;
    width: 100%;
}

body .amx-public-organization__body {
    display: block;
    min-width: 0;
}

body .amx-public-organization__eyebrow,
body .amx-public-organization__meta {
    color: #6f7d8d;
    font-size: 12px;
    line-height: 1.35;
}

body .amx-public-organization__eyebrow,
body .amx-public-organization__meta {
    display: block;
}

body .amx-public-organization__name {
    color: #1f2d3d;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

body a.amx-public-organization__name:hover {
    color: #2155d9;
}

body .amx-public-organization--card {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #edf1f6;
    border-radius: 0;
    margin: 0 0 10px;
    padding: 0 0 10px;
    width: 100%;
}

body .amx-public-organization--card .amx-public-organization__mark {
    flex-basis: 32px;
    height: 32px;
    width: 32px;
}

body .amx-public-organization--agent-card {
    background: #fbfcfe;
    margin: 8px 16px 12px;
    padding: 8px 10px;
}

body .amx-public-organization--agent-card .amx-public-organization__mark {
    border-radius: 7px;
    flex-basis: 30px;
    height: 30px;
    width: 30px;
}

body .amx-public-organization--agent-card .amx-public-organization__name {
    font-size: 13px;
}

body .amx-professional-directory-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

body .amx-professional-directory-tab {
    align-items: center;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    color: #334155;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    min-height: 38px;
    padding: 8px 14px;
    text-decoration: none;
}

body .amx-professional-directory-tab:hover,
body .amx-professional-directory-tab.is-active {
    background: #2155d9;
    border-color: #2155d9;
    color: #ffffff;
}

body .amx-professional-directory-search {
    align-items: stretch;
    display: flex;
    gap: 10px;
    margin: 0 0 22px;
    max-width: 760px;
    width: 100%;
}

body .amx-professional-directory-search__field {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    display: flex;
    flex: 1 1 360px;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
}

body .amx-professional-directory-search__field i {
    color: #64748b;
    font-size: 14px;
}

body .amx-professional-directory-search__field input {
    border: 0;
    box-shadow: none;
    color: #1f2937;
    flex: 1;
    font-size: 14px;
    height: 44px;
    min-width: 0;
    outline: 0;
    padding: 0;
}

body .amx-professional-directory-search__button,
body .amx-professional-directory-search__clear {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    text-decoration: none;
}

body .amx-professional-directory-search__button {
    background: #2155d9;
    border: 1px solid #2155d9;
    color: #ffffff;
}

body .amx-professional-directory-search__clear {
    background: #ffffff;
    border: 1px solid #dce5f0;
    color: #334155;
}

body .amx-professional-directory-status {
    align-items: center;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    gap: 6px;
    margin: 0 0 18px;
}

body .amx-professional-directory-status strong {
    color: #1f2937;
}

body .amx-professional-directory-status em {
    color: #334155;
    font-style: normal;
}

body .amx-professional-directory-results .agency_unit_wrap,
body .amx-professional-directory-results .dev_unit_wrapper,
body .amx-professional-directory-results .amx-professional-directory-company {
    margin-bottom: 24px;
    width: auto;
}

body .amx-company-card .agency_unit_img {
    position: relative;
}

body .amx-company-card .agency_unit_img img {
    object-fit: cover;
}

body .amx-professional-type-badge {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    color: #1f2937;
    font-size: 12px;
    font-weight: 800;
    inset: 12px auto auto 12px;
    letter-spacing: 0;
    line-height: 1;
    padding: 7px 9px;
    position: absolute;
    z-index: 2;
}

body .amx-company-card__excerpt {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0 12px;
}

body .amx-company-card__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

body .amx-company-card__contacts .agent_detail {
    margin: 0;
}

body .amx-company-card__team {
    margin-top: 12px;
}

body .amx-public-organization--company-card {
    margin: 10px 0 12px;
}

body .amx-public-profile-header .header_agency_container > .row {
    align-items: stretch;
}

body .amx-public-profile-header .header_agency_container img {
    border-radius: 8px;
    object-fit: cover;
}

body .amx-public-profile-type {
    border: 1px solid #dce5f0;
    border-radius: 8px;
    color: #2155d9;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 8px;
    padding: 7px 10px;
}

body .amx-public-profile-verified {
    align-items: center;
    background: #eef8f5;
    border: 1px solid #cfe9e2;
    border-radius: 8px;
    color: #0f766e;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 7px;
    line-height: 1;
    margin: 0 0 8px 8px;
    padding: 7px 10px;
}

body .amx-public-organization-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 16px;
}

body .amx-public-organization-link {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    color: #334155;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    min-height: 36px;
    padding: 7px 11px;
    text-decoration: none;
}

body .amx-public-organization-link:hover {
    border-color: #2155d9;
    color: #2155d9;
}

@media (max-width: 767px) {
    body .amx-professional-directory-tabs {
        gap: 6px;
    }

    body .amx-professional-directory-tab {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
        padding-left: 10px;
        padding-right: 10px;
    }

    body .amx-professional-directory-search {
        flex-direction: column;
    }

    body .amx-professional-directory-search__field {
        flex-basis: auto;
    }

    body .amx-professional-directory-search__button,
    body .amx-professional-directory-search__clear {
        width: 100%;
    }

    body .amx-public-organization-links {
        flex-direction: column;
    }

    body .amx-public-organization-link {
        justify-content: center;
        width: 100%;
    }
}

/* Phase 1 professional directory refresh. */
body .amx-professional-directory-hero {
    align-items: stretch;
    background: #f5f8fc;
    border: 1px solid #e1e8f2;
    border-radius: 8px;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
    margin: 0 0 24px;
    overflow: hidden;
    padding: 28px;
}

body .amx-professional-directory-hero__copy {
    min-width: 0;
}

body .amx-professional-directory-hero__eyebrow,
body .amx-agent-profile-hero__eyebrow,
body .amx-agent-card__eyebrow {
    align-items: center;
    color: #0f766e;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 8px;
    letter-spacing: 0;
    line-height: 1.2;
    margin-bottom: 10px;
    text-transform: uppercase;
}

body .amx-professional-directory-hero h1 {
    color: #101828;
    font-size: 36px;
    line-height: 1.12;
    letter-spacing: 0;
    margin: 0 0 10px;
}

body .amx-professional-directory-hero p {
    color: #526173;
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
    max-width: 660px;
}

body .amx-professional-directory-hero__stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body .amx-professional-directory-hero__stat,
body .amx-agent-profile-hero__stat,
body .amx-public-profile-stat {
    background: #ffffff;
    border: 1px solid #e3eaf3;
    border-radius: 8px;
    min-width: 0;
    padding: 14px;
}

body .amx-professional-directory-hero__stat strong,
body .amx-agent-profile-hero__stat strong,
body .amx-public-profile-stat strong {
    color: #101828;
    display: block;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

body .amx-professional-directory-hero__stat span,
body .amx-agent-profile-hero__stat span,
body .amx-public-profile-stat span {
    color: #667085;
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 6px;
}

body .amx-professional-directory-tabs {
    background: #ffffff;
    border: 1px solid #e4eaf2;
    border-radius: 8px;
    gap: 0;
    margin-bottom: 14px;
    padding: 5px;
    width: fit-content;
}

body .amx-professional-directory-tab {
    border: 0;
    border-radius: 7px;
    gap: 8px;
    min-height: 42px;
    padding: 9px 13px;
}

body .amx-professional-directory-tab i {
    font-size: 13px;
    min-width: 14px;
    text-align: center;
}

body .amx-professional-directory-tab small {
    align-items: center;
    background: #edf3ff;
    border-radius: 999px;
    color: #2155d9;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    min-width: 24px;
    padding: 5px 7px;
}

body .amx-professional-directory-tab:hover small,
body .amx-professional-directory-tab.is-active small {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

body .amx-professional-directory-search {
    max-width: 100%;
}

body .amx-professional-directory-page.amx-elementor-full-width {
    box-sizing: border-box;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: 100vw !important;
    overflow-x: clip;
    padding-left: clamp(18px, 4vw, 64px);
    padding-right: clamp(18px, 4vw, 64px);
    width: 100vw;
}

body .amx-professional-directory-page.amx-elementor-full-width > .wpestate_column_content {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}

body .amx-professional-directory-search--advanced {
    background: #ffffff;
    border: 1px solid #e4eaf2;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.05);
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px;
}

body .amx-professional-directory-search__top {
    align-items: stretch;
    display: flex;
    gap: 10px;
    min-width: 0;
}

body .amx-professional-directory-search__field {
    min-height: 48px;
}

body .amx-professional-directory-search__field input {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    height: 46px !important;
    min-height: 0 !important;
    padding: 0 !important;
}

body .amx-professional-directory-search__filters {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(150px, 0.72fr);
}

body .amx-professional-directory-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    min-width: 0;
}

body .amx-professional-directory-filter > span:first-child {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

body .amx-professional-directory-filter input[type="text"],
body .amx-professional-directory-filter select {
    background: #f8fafc !important;
    border: 1px solid #dce5f0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: #1f2937;
    font-size: 13px;
    height: 42px;
    min-width: 0;
    padding: 0 11px !important;
    width: 100%;
}

body .amx-professional-directory-search__field:focus-within,
body .amx-professional-directory-filter input[type="text"]:focus,
body .amx-professional-directory-filter select:focus,
body .amx-professional-directory-filter--toggle:focus-within {
    border-color: #2155d9 !important;
    box-shadow: 0 0 0 3px rgba(33, 85, 217, 0.12) !important;
    outline: 0;
}

body .amx-professional-directory-filter--toggle {
    align-items: center;
    align-self: end;
    background: #f8fafc;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    color: #334155;
    cursor: pointer;
    flex-direction: row;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    height: 42px;
    justify-content: center;
    padding: 0 11px;
}

body .amx-professional-directory-filter--toggle input[type="checkbox"] {
    appearance: none;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    box-shadow: inset 0 1px 1px rgba(16, 24, 40, 0.04);
    flex: 0 0 18px;
    height: 18px;
    margin: 0 !important;
    position: relative;
    transform: none !important;
    width: 18px;
}

body .amx-professional-directory-filter--toggle input[type="checkbox"]:checked {
    background: #2155d9;
    border-color: #2155d9;
}

body .amx-professional-directory-filter--toggle input[type="checkbox"]:checked::after {
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    content: "";
    height: 9px;
    left: 6px;
    position: absolute;
    top: 2px;
    transform: rotate(45deg);
    width: 5px;
}

body .amx-professional-directory-filter--toggle span {
    align-items: center;
    display: inline-flex;
    gap: 7px;
    line-height: 1.2;
}

body .amx-professional-directory-active-filters {
    align-items: center;
    border-top: 1px solid #edf1f6;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
}

body .amx-professional-directory-active-filters span {
    background: #eef4ff;
    border: 1px solid #d8e6ff;
    border-radius: 999px;
    color: #2155d9;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    padding: 7px 10px;
}

body .amx-professional-directory-status {
    background: #ffffff;
    border-bottom: 1px solid #e8edf4;
    margin-bottom: 20px;
    padding-bottom: 12px;
}

body .amx-agent-card,
body .amx-company-card {
    background: #ffffff;
    border: 1px solid #e3eaf3;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.07);
    color: #344054;
    height: 100%;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body .amx-agent-card:hover,
body .amx-company-card:hover {
    border-color: #b9c8df;
    box-shadow: 0 18px 44px rgba(16, 24, 40, 0.1);
    transform: translateY(-2px);
}

body .amx-agent-card__media,
body .amx-company-card .agency_unit_img {
    aspect-ratio: 4 / 3;
    background: #eef3f8;
    border-radius: 0;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

body .amx-agent-card__media a,
body .amx-agent-card__media img,
body .amx-agent-card__media .amx-agent-card__image,
body .amx-company-card .agency_unit_img img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

body .amx-agent-card__badge,
body .amx-company-card__network-badge,
body .amx-agent-profile-hero__badge {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(16, 24, 40, 0.12);
    border-radius: 8px;
    color: #0f766e;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 7px;
    line-height: 1;
    padding: 8px 10px;
    position: absolute;
    z-index: 2;
}

body .amx-agent-card__badge,
body .amx-professional-type-badge {
    left: 12px;
    top: 12px;
}

body .amx-company-card__network-badge {
    bottom: 12px;
    left: 12px;
}

body .amx-agent-card__listing-count {
    display: inline-flex;
    background: rgba(16, 24, 40, 0.76);
    border-radius: 8px;
    bottom: 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    left: auto;
    line-height: 1;
    padding: 8px 10px;
    position: absolute;
    right: 12px;
    top: auto;
    z-index: 2;
}

body .amx-professional-directory-results .wpresidence_agent_unit_wrapper {
    margin-bottom: 24px;
}

body .amx-agent-card {
    display: flex;
    flex-direction: row;
    min-height: 218px;
    width: 100%;
}

body .amx-agent-card__media {
    aspect-ratio: auto;
    border-right: 1px solid #e3eaf3;
    flex: 0 0 164px;
    max-width: 164px;
    min-height: 100%;
    width: 164px;
}

body .amx-agent-card__media a {
    min-height: 100%;
}

body .amx-agent-card__media img,
body .amx-agent-card__media .amx-agent-card__image {
    object-position: center top;
}

body .amx-agent-card .amx-agent-card__badge {
    bottom: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    top: auto;
}

body .amx-agent-card__body,
body .amx-company-card .agency_unit_wrapper {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
}

body .amx-agent-card__body {
    padding: 14px;
}

body .amx-agent-card__topline {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 8px;
}

body .amx-agent-card__eyebrow {
    align-items: center;
    background: #eef8f5;
    border-radius: 999px;
    color: #0f766e;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0;
    padding: 6px 9px;
    text-transform: uppercase;
}

body .amx-agent-card__eyebrow--subscriber {
    background: #eef4ff;
    color: #2155d9;
}

body .amx-agent-card__eyebrow--agency,
body .amx-company-card__eyebrow--agency {
    background: #f0f7ff;
    color: #175cd3;
}

body .amx-agent-card__eyebrow--developer,
body .amx-company-card__eyebrow--developer {
    background: #f5f3ff;
    color: #6840c6;
}

body .amx-agent-card__rating {
    align-items: flex-end;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}

body .amx-agent-card__rating strong {
    align-items: center;
    color: #101828;
    display: inline-flex;
    font-size: 16px;
    font-weight: 900;
    gap: 4px;
}

body .amx-agent-card__rating i {
    color: #2155d9;
    font-size: 12px;
}

body .amx-agent-card__rating span {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

body .amx-agent-card__identity h4 {
    margin-bottom: 4px;
}

body .amx-agent-card h4,
body .amx-company-card h4 {
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: 0;
    margin: 0 0 6px;
}

body .amx-agent-card h4 a,
body .amx-company-card h4 a {
    color: #101828;
    text-decoration: none;
}

body .amx-agent-card h4 a:hover,
body .amx-company-card h4 a:hover {
    color: #2155d9;
}

body .amx-agent-card .agent_position,
body .amx-company-card .agent_address {
    color: #667085;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 10px;
}

body .amx-agent-card__identity .agent_position {
    margin-bottom: 0;
}

body .amx-public-organization--agent-card,
body .amx-public-organization--company-card {
    background: #f8fafc;
    border: 1px solid #e7edf5;
    border-radius: 8px;
    margin: 10px 0 12px;
    padding: 9px 10px;
}

body .amx-agent-card .amx-public-organization--agent-card {
    background: transparent;
    border: 0;
    margin: 10px 0 12px;
    padding: 0;
}

body .amx-agent-card .amx-public-organization--agent-card .amx-public-organization__mark {
    background: #f4f7ff;
    border-color: #d8e2ff;
}

body .amx-agent-card__stats {
    border-bottom: 1px solid #edf1f6;
    border-top: 1px solid #edf1f6;
    display: grid;
    gap: 8px 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 10px 0;
    padding: 10px 0;
}

body .amx-agent-card__stats > span {
    align-items: flex-start;
    display: flex;
    gap: 8px;
    min-width: 0;
}

body .amx-agent-card__stats > span > i {
    align-items: center;
    background: #f4f7ff;
    border-radius: 8px;
    color: #2155d9;
    display: inline-flex;
    flex: 0 0 26px;
    font-size: 11px;
    height: 26px;
    justify-content: center;
    width: 26px;
}

body .amx-agent-card__stats > span > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

body .amx-agent-card__stats strong {
    color: #101828;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

body .amx-agent-card__stats em {
    color: #667085;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.25;
}

body .amx-agent-card__trustline,
body .amx-company-card__trustline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
}

body .amx-agent-card__trustline strong,
body .amx-company-card__trustline strong {
    background: #f4f7ff;
    border: 1px solid #d8e2ff;
    border-radius: 999px;
    color: #2155d9;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    padding: 5px 8px;
}

body .amx-agent-card__trustline span,
body .amx-company-card__trustline span {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    padding: 5px 8px;
}

body .amx-agent-card__trustline.amx-professional-trust--elite strong,
body .amx-company-card__trustline.amx-professional-trust--elite strong {
    background: #eef8f5;
    border-color: #cfe9e2;
    color: #0f766e;
}

body .amx-agent-card .amx-professional-trust {
    gap: 8px;
    margin: 0 0 10px;
    padding: 8px;
}

body .amx-agent-card .amx-professional-trust__score {
    min-width: 52px;
    padding: 6px 8px;
}

body .amx-agent-card .amx-professional-trust__score strong {
    font-size: 18px;
}

body .amx-agent-card .amx-professional-trust__signals {
    gap: 5px;
}

body .amx-agent-card .amx-professional-trust__signals span {
    font-size: 10px;
    padding: 4px 7px;
}

body .amx-professional-trust {
    align-items: stretch;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: auto 1fr;
    margin: 10px 0 12px;
    padding: 10px;
}

body .amx-professional-trust__score {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 68px;
    padding: 8px 10px;
    text-align: center;
}

body .amx-professional-trust__score span {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

body .amx-professional-trust__score strong {
    color: #101828;
    font-size: 24px;
    line-height: 1;
    margin-top: 4px;
}

body .amx-professional-trust__content {
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: center;
    min-width: 0;
}

body .amx-professional-trust__content > strong {
    color: #101828;
    font-size: 13px;
    line-height: 1.2;
}

body .amx-professional-trust__signals {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body .amx-professional-trust__signals span {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    padding: 5px 8px;
}

body .amx-professional-trust--elite {
    background: #f2fbf8;
    border-color: #bde7d8;
}

body .amx-professional-trust--elite .amx-professional-trust__score strong,
body .amx-professional-trust--elite .amx-professional-trust__content > strong {
    color: #0f766e;
}

body .amx-professional-trust--pro {
    background: #f4f7ff;
    border-color: #c8d6ff;
}

body .amx-professional-trust--pro .amx-professional-trust__score strong,
body .amx-professional-trust--pro .amx-professional-trust__content > strong {
    color: #2155d9;
}

body .amx-agent-card__meta,
body .amx-company-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 12px;
}

body .amx-agent-card__meta span,
body .amx-company-card__meta span {
    align-items: center;
    background: #f7f9fc;
    border: 1px solid #e7edf5;
    border-radius: 999px;
    color: #475467;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    line-height: 1.2;
    max-width: 100%;
    min-height: 30px;
    padding: 6px 9px;
}

body .amx-agent-card__meta i,
body .amx-company-card__meta i {
    color: #2155d9;
    font-size: 12px;
}

body .amx-agent-card__chips,
body .amx-company-card__chips,
body .amx-agent-profile-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 12px;
}

body .amx-agent-card__chips a,
body .amx-agent-card__chips span,
body .amx-company-card__chips a,
body .amx-company-card__chips span,
body .amx-agent-profile-hero__chips a,
body .amx-agent-profile-hero__chips span {
    background: #eef8f5;
    border: 1px solid #cfe9e2;
    border-radius: 999px;
    color: #0f766e;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    padding: 6px 9px;
    text-decoration: none;
}

body .amx-agent-card .agent_card_content,
body .amx-company-card__excerpt {
    color: #526173;
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 14px;
}

body .amx-agent-card__actions,
body .amx-company-card__actions,
body .amx-public-profile-actions,
body .amx-agent-profile-contact-panel__quick {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

body .amx-agent-card__primary,
body .amx-company-card__primary,
body .amx-public-profile-action-link,
body .amx-agent-profile-contact-panel__quick a {
    align-items: center;
    background: #2155d9;
    border: 1px solid #2155d9;
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    line-height: 1.15;
    min-height: 38px;
    padding: 9px 12px;
    text-decoration: none;
}

body .amx-agent-card__primary:hover,
body .amx-company-card__primary:hover,
body .amx-agent-profile-contact-panel__quick a:hover {
    background: #1748be;
    border-color: #1748be;
    color: #ffffff;
}

body .amx-professional-compare-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #cfd9e8;
    border-radius: 8px;
    color: #0f766e;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    line-height: 1.15;
    min-height: 38px;
    padding: 9px 12px;
    text-decoration: none;
}

body .amx-professional-compare-button:hover,
body .amx-professional-compare-button.is-active {
    background: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
}

body .amx-agent-card__icon,
body .amx-company-card__icon {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d8e1ee;
    border-radius: 8px;
    color: #2155d9;
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    text-decoration: none;
    width: 38px;
}

body .amx-agent-card__icon:hover,
body .amx-company-card__icon:hover,
body .amx-public-profile-action-link:hover {
    background: #f4f7ff;
    border-color: #b8c7f3;
    color: #1748be;
}

body .amx-agent-card__social,
body .amx-company-card__social {
    margin-top: 12px;
}

body .amx-company-card {
    flex-direction: row !important;
    min-height: 218px;
    width: 100%;
}

body .amx-company-card .agency_unit_img {
    border-right: 1px solid #e3eaf3;
    flex: 0 0 164px;
    max-width: 164px;
    width: 164px;
}

body .amx-company-card__contacts {
    border-top: 1px solid #edf1f6;
    margin-top: 14px;
    padding-top: 12px;
}

body .amx-company-card__contacts .agent_detail {
    color: #526173;
    font-size: 13px;
}

body .amx-company-card__team {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 12px;
}

body .amx-company-card__team .sub_agent img {
    border: 2px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 0 0 1px #d9e2ee;
    height: 32px;
    object-fit: cover;
    width: 32px;
}

body .amx-company-card__topline {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 8px;
}

body .amx-company-card__eyebrow {
    align-items: center;
    background: #eef8f5;
    border-radius: 999px;
    color: #0f766e;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    padding: 6px 9px;
    text-transform: uppercase;
}

body .amx-company-card__rating {
    align-items: flex-end;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}

body .amx-company-card__rating strong {
    align-items: center;
    color: #101828;
    display: inline-flex;
    font-size: 16px;
    font-weight: 900;
    gap: 4px;
}

body .amx-company-card__rating i {
    color: #2155d9;
    font-size: 12px;
}

body .amx-company-card__rating span {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

body .amx-company-card__identity h4 {
    margin-bottom: 4px;
}

body .amx-company-card__identity .agent_address {
    margin-bottom: 0;
}

body .amx-company-card__stats {
    border-bottom: 1px solid #edf1f6;
    border-top: 1px solid #edf1f6;
    display: grid;
    gap: 8px 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 10px 0;
    padding: 10px 0;
}

body .amx-company-card__stats > span {
    align-items: flex-start;
    display: flex;
    gap: 8px;
    min-width: 0;
}

body .amx-company-card__stats > span > i {
    align-items: center;
    background: #f4f7ff;
    border-radius: 8px;
    color: #2155d9;
    display: inline-flex;
    flex: 0 0 26px;
    font-size: 11px;
    height: 26px;
    justify-content: center;
    width: 26px;
}

body .amx-company-card__stats > span > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

body .amx-company-card__stats strong {
    color: #101828;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

body .amx-company-card__stats em {
    color: #667085;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.25;
}

body .amx-company-card .amx-professional-trust {
    gap: 8px;
    margin: 0 0 10px;
    padding: 8px;
}

body .amx-company-card .amx-professional-trust__score {
    min-width: 52px;
    padding: 6px 8px;
}

body .amx-company-card .amx-professional-trust__score strong {
    font-size: 18px;
}

body .amx-company-card .amx-professional-trust__signals {
    gap: 5px;
}

body .amx-company-card .amx-professional-trust__signals span {
    font-size: 10px;
    padding: 4px 7px;
}

body .amx-professional-directory-results .amx-company-card__contacts,
body .amx-professional-directory-results .amx-company-card__social-wrap,
body .amx-professional-directory-results .amx-company-card__team {
    display: none;
}

body .amx-agent-card__summary,
body .amx-company-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body .amx-professional-compare-tray {
    background: #ffffff;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    bottom: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
    left: 50%;
    max-height: calc(100vh - 120px);
    overflow: auto;
    padding: 12px;
    position: fixed;
    transform: translateX(-50%);
    width: min(1040px, calc(100vw - 32px));
    z-index: 9999;
}

body .amx-professional-compare-tray[hidden] {
    display: none;
}

body .amx-professional-compare-tray__header {
    align-items: center;
    border-bottom: 1px solid #edf1f6;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
}

body .amx-professional-compare-tray__header span {
    color: #64748b;
    display: block;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

body .amx-professional-compare-tray__header strong {
    color: #101828;
    display: block;
    font-size: 16px;
    line-height: 1.25;
}

body .amx-professional-compare-tray__header button,
body .amx-professional-compare-tray__remove {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d8e1ee;
    border-radius: 8px;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    min-height: 32px;
    padding: 7px 10px;
}

body .amx-professional-compare-tray__items {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 12px;
}

body .amx-professional-compare-tray__item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    min-width: 0;
    padding: 12px;
    position: relative;
}

body .amx-professional-compare-tray__item > span {
    color: #0f766e;
    display: block;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 5px;
    text-transform: uppercase;
}

body .amx-professional-compare-tray__item a {
    color: #101828;
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    margin-right: 32px;
    text-decoration: none;
}

body .amx-professional-compare-tray__item div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

body .amx-professional-compare-tray__item small {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    padding: 5px 8px;
}

body .amx-professional-compare-tray__item p {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
    margin: 8px 0 0;
}

body .amx-professional-compare-tray__remove {
    height: 28px;
    min-height: 28px;
    padding: 0;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 28px;
}

body .amx-lead-routing-panel {
    background: #f4f7ff;
    border: 1px solid #c8d6ff;
    border-radius: 8px;
    display: grid;
    gap: 5px;
    margin: 0 0 14px;
    padding: 12px;
}

body .amx-lead-routing-panel span {
    color: #2155d9;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

body .amx-lead-routing-panel strong {
    color: #101828;
    font-size: 15px;
    line-height: 1.25;
}

body .amx-lead-routing-panel small {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

body.single-estate_agent .amx-agent-profile {
    width: 100%;
}

body.single-estate_agent .amx-agent-profile-hero {
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(16, 24, 40, 0.08);
    gap: 28px;
    margin-bottom: 28px;
    padding: 24px;
}

body.single-estate_agent .amx-agent-profile-hero__media {
    align-items: center;
    align-self: center;
    display: flex;
    flex: 0 0 360px;
    flex-direction: column;
    justify-content: center;
    max-width: 360px;
    min-width: 0;
    position: relative;
}

body.single-estate_agent .amx-agent-profile-hero__media .agent-listing-img-wrapper {
    aspect-ratio: 1;
    background: #f8fbff;
    border: 6px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    height: clamp(238px, 22vw, 302px);
    overflow: hidden;
    width: clamp(238px, 22vw, 302px);
}

body.single-estate_agent .amx-agent-profile-hero__media .agentpict {
    background-position: center top;
    background-size: cover;
    border-radius: 999px;
    height: 100%;
    min-height: 0;
    width: 100%;
}

body.single-estate_agent .amx-agent-profile-hero__badge {
    align-items: center;
    bottom: auto;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
    font-size: 14px;
    font-weight: 900;
    gap: 9px;
    justify-content: center;
    left: auto;
    margin-top: 16px;
    min-height: 44px;
    min-width: 244px;
    padding: 12px 18px;
    position: relative;
    text-align: center;
    top: auto;
    white-space: nowrap;
}

body.single-estate_agent .amx-agent-profile-hero__badge i {
    flex: 0 0 auto;
    font-size: 15px;
}

body.single-estate_agent .amx-agent-profile-hero .amx-public-organization--profile {
    background: #f8fbff;
    border: 1px solid #dfe8f5;
    border-radius: 8px;
    box-shadow: none;
    margin: 16px 0 14px;
    min-height: 70px;
    padding: 12px 14px;
}

body.single-estate_agent .amx-agent-profile-hero__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 8px 4px;
}

body.single-estate_agent .amx-agent-profile-hero__reviews {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

body.single-estate_agent .amx-agent-profile-hero h3 {
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: 0;
    margin: 0 0 8px;
}

body.single-estate_agent .amx-agent-profile-hero h3 a {
    color: #101828;
    text-decoration: none;
}

body.single-estate_agent .amx-agent-profile-hero .agent_position {
    color: #526173;
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 10px;
}

body.single-estate_agent .amx-agent-profile-hero__stats,
body .amx-public-profile-stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 14px 0;
}

body.single-estate_agent .amx-agent-profile-hero__chips {
    margin-bottom: 16px;
}

body.single-estate_agent .amx-agent-profile-hero .realtor-contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

body.single-estate_agent .amx-agent-profile-hero .realtor-contact-buttons .wpresidence_button {
    margin: 0;
    width: auto;
}

body.single-estate_agent .amx-agent-profile-main {
    align-items: start;
    display: grid !important;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

body.single-estate_agent .amx-agent-profile-about,
body.single-estate_agent .amx-agent-profile-contact-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
    min-width: 0;
    padding: 24px;
    width: 100%;
}

body.single-estate_agent .amx-agent-profile-about h4,
body.single-estate_agent .amx-agent-profile-contact-panel h4 {
    color: #101828;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: 0;
    margin: 0 0 16px;
}

body.single-estate_agent .amx-agent-profile-empty {
    color: #667085;
    margin: 0 0 14px;
}

body.single-estate_agent .amx-agent-profile-contact-panel {
    position: sticky;
    top: 110px;
}

body.single-estate_agent .amx-agent-profile-contact-panel .wpestate_agent_contact_details_type2 {
    border-bottom: 1px solid #edf1f6;
    margin-bottom: 14px;
    padding-bottom: 12px;
}

body.single-estate_agent .amx-agent-profile-contact-panel__quick {
    margin: 0 0 16px;
}

body.single-estate_agent .amx-agent-profile-contact-panel__quick a {
    flex: 1 1 130px;
}

body.single-estate_agent .amx-agent-profile-contact-panel input,
body.single-estate_agent .amx-agent-profile-contact-panel textarea {
    width: 100%;
}

body .amx-public-profile-header {
    background: #f6f9fd;
    border-bottom: 1px solid #e2e8f0;
}

body .amx-public-profile-header .header_agency_container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(16, 24, 40, 0.07);
    padding: 24px;
}

body .amx-public-profile-header .agency_title {
    color: #101828;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: 0;
    margin: 0 0 10px;
}

body .amx-public-profile-actions {
    margin-top: 16px;
    width: 100%;
}

body .amx-public-profile-action-link {
    background: #ffffff;
    border-color: #d8e1ee;
    color: #2155d9;
}

@media (max-width: 991px) {
    body .amx-professional-directory-hero,
    body.single-estate_agent .amx-agent-profile-main {
        grid-template-columns: 1fr;
    }

    body .amx-professional-directory-search__filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .amx-professional-compare-tray__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .amx-company-card {
        flex-direction: column !important;
    }

    body .amx-company-card .agency_unit_img {
        border-bottom: 1px solid #e3eaf3;
        border-right: 0;
        flex-basis: auto;
        max-width: 100%;
        width: 100%;
    }

    body .amx-agent-card__media {
        flex-basis: 220px;
        max-width: 220px;
        width: 220px;
    }

    body.single-estate_agent .amx-agent-profile-hero {
        flex-direction: column !important;
    }

    body.single-estate_agent .amx-agent-profile-hero__media {
        flex-basis: auto;
        max-width: 100%;
        width: 100%;
    }

    body.single-estate_agent .amx-agent-profile-hero__content {
        text-align: center;
    }

    body.single-estate_agent .amx-agent-profile-contact-panel {
        position: static;
    }
}

/*
 * AvailMax property-page similar listings brand parity (v5.1.75).
 *
 * The Similar Listings Optimizer injects its cards after the initial page
 * render and ships legacy blue declarations. Keep this override scoped to the
 * property-page similar-listings container so other card contexts are
 * unaffected.
 */
body.single-estate_property #property_similar_listings .listing_wrapper .listing_unit_price_wrapper,
body.single-estate_property #property_similar_listings .listing_wrapper .listing_unit_price_wrapper a,
body.single-estate_property #property_similar_listings .listing_wrapper .listing_unit_price_wrapper span,
body.single-estate_property #property_similar_listings .listing_wrapper .property_unit_custom_element.price,
body.single-estate_property #property_similar_listings .listing_wrapper .property_unit_custom_element.price a,
body.single-estate_property #property_similar_listings .listing_wrapper .property_unit_custom_element.price span {
    color: #dd3333 !important;
}

body.single-estate_property #property_similar_listings .listing_wrapper .tag-wrapper .action_tag_wrapper,
body.single-estate_property #property_similar_listings .listing_wrapper .tag-wrapper .ribbon-inside,
body.single-estate_property #property_similar_listings .listing_wrapper .tag-wrapper .slider-property-status {
    background: #dd3333 !important;
    border-color: #dd3333 !important;
    color: #ffffff !important;
}

/*
 * Keep every property-card favorite legible over photography.
 * The parent theme's original treatment is a white outline over a translucent
 * black fill; apply it to every card layout and to cloned map-result cards.
 */
body .property_listing .icon-fav svg,
body .property_listing .icon-fav svg path,
body .property_unit .icon-fav svg,
body .property_unit .icon-fav svg path,
body .amx-map-popup-card--cloned .icon-fav svg,
body .amx-map-popup-card--cloned .icon-fav svg path {
    fill: rgba(0, 0, 0, 0.5) !important;
    stroke: #ffffff !important;
}

body .property_listing .icon-fav.icon-fav-on svg,
body .property_listing .icon-fav.icon-fav-on svg path,
body .property_listing[class*="property_unit_type"] .icon-fav.icon-fav-on svg,
body .property_listing[class*="property_unit_type"] .icon-fav.icon-fav-on svg path,
body .property_unit .icon-fav.icon-fav-on svg,
body .property_unit .icon-fav.icon-fav-on svg path,
body .amx-map-popup-card--cloned .icon-fav.icon-fav-on svg,
body .amx-map-popup-card--cloned .icon-fav.icon-fav-on svg path {
    fill: rgba(239, 68, 68, 0.72) !important;
    stroke: #ffffff !important;
}

/* AvailMax Ad Engine bridge spacing. */
.amx-ad-search-top-slot {
    clear: both;
    margin: 16px auto;
    max-width: calc(100% - 30px);
    width: calc(100% - 30px);
}

.amx-ad-search-infeed {
    margin-bottom: 30px;
}

body .amx-ad-search-top-slot .amx-ad-slot--search_top.amx-ad-fallback {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(10, 93, 254, 0.08) 0%, rgba(255, 255, 255, 0.98) 48%, rgba(25, 167, 116, 0.09) 100%);
    border: 1px solid rgba(10, 93, 254, 0.20);
    border-left: 4px solid var(--amx-primary-button-bg, var(--wp-estate-main-color-option, #dd3333));
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    display: flex;
    gap: 16px;
    min-height: 94px;
    padding: 14px 16px;
}

body .amx-ad-search-top-slot .amx-ad-slot--search_top.amx-ad-fallback .amx-ad-disclosure {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(10, 93, 254, 0.20);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    color: #344054;
    flex: 0 0 auto;
    margin: 0;
    min-height: 22px;
    padding: 4px 8px;
    text-transform: none !important;
    white-space: nowrap;
}

body .amx-ad-search-top-slot .amx-ad-slot--search_top.amx-ad-fallback .amx-ad-copy {
    align-items: center;
    column-gap: 16px;
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    padding: 0;
    row-gap: 4px;
}

body .amx-ad-search-top-slot .amx-ad-slot--search_top.amx-ad-fallback .amx-ad-copy h3 {
    color: #101828;
    font-size: 18px;
    grid-column: 1;
    line-height: 1.22;
    margin: 0;
}

body .amx-ad-search-top-slot .amx-ad-slot--search_top.amx-ad-fallback .amx-ad-copy p {
    color: #475467;
    font-size: 13px;
    grid-column: 1;
    line-height: 1.45;
    margin: 0;
}

body .amx-ad-search-top-slot .amx-ad-slot--search_top.amx-ad-fallback .amx-ad-cta {
    box-shadow: 0 9px 18px rgba(10, 93, 254, 0.16);
    grid-column: 2;
    grid-row: 1 / 3;
    min-height: 36px;
    padding: 8px 14px;
    white-space: nowrap;
}

body .amx-ad-search-top-slot .amx-ad-slot--search_top,
body .amx-ad-city-band-slot .amx-ad-slot--city_band {
    --amx-ad-media-fit: cover;
    --amx-ad-media-ratio: 6 / 1;
    background: #07111f;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    color: #111827;
    display: block;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-decoration: none !important;
    width: 100%;
}

body .amx-ad-search-top-slot .amx-ad-slot--search_top .amx-ad-copy,
body .amx-ad-city-band-slot .amx-ad-slot--city_band .amx-ad-copy {
    display: none !important;
}

body .amx-ad-search-top-slot .amx-ad-slot--search_top .amx-ad-disclosure,
body .amx-ad-city-band-slot .amx-ad-slot--city_band .amx-ad-disclosure {
    align-items: center;
    background: rgba(17, 24, 39, 0.94);
    border: 0;
    border-radius: 5px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
    color: #ffffff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 850;
    left: 10px;
    line-height: 1;
    margin: 0;
    min-height: 22px;
    padding: 4px 8px;
    position: absolute;
    text-transform: none !important;
    top: 10px;
    white-space: nowrap;
    z-index: 2;
}

body .amx-ad-search-top-slot .amx-ad-slot--search_top .amx-ad-media,
body .amx-ad-city-band-slot .amx-ad-slot--city_band .amx-ad-media,
body .amx-ad-search-top-slot .amx-ad-slot--search_top.amx-ad-fallback::before,
body .amx-ad-city-band-slot .amx-ad-slot--city_band.amx-ad-fallback::before {
    aspect-ratio: 6 / 1;
    border-radius: inherit;
    display: block;
    flex: none;
    margin: 0;
    max-height: 156px;
    max-width: none;
    min-height: 88px;
    overflow: hidden;
    width: 100%;
}

body .amx-ad-search-top-slot .amx-ad-slot--search_top.amx-ad-fallback::before,
body .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");
    background-position: center;
    background-size: cover;
    content: "";
}

body .amx-ad-search-top-slot .amx-ad-slot--search_top .amx-ad-image,
body .amx-ad-search-top-slot .amx-ad-slot--search_top .amx-ad-media video,
body .amx-ad-city-band-slot .amx-ad-slot--city_band .amx-ad-image,
body .amx-ad-city-band-slot .amx-ad-slot--city_band .amx-ad-media video {
    display: block;
    height: 100% !important;
    object-fit: cover !important;
    width: 100% !important;
}

body .amx-ad-search-top-slot .amx-ad-slot--search_top .amx-ad-media,
body .amx-ad-city-band-slot .amx-ad-slot--city_band .amx-ad-media {
    max-height: none;
    min-height: 0;
}

body .amx-ad-search-top-slot .amx-ad-slot--search_top .amx-ad-media--svg .amx-ad-image--svg,
body .amx-ad-city-band-slot .amx-ad-slot--city_band .amx-ad-media--svg .amx-ad-image--svg {
    object-fit: cover !important;
    object-position: center center !important;
}

body .amx-ad-search-infeed .amx-ad-slot--search_infeed {
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    color: #111827;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    position: relative;
    text-decoration: none !important;
}

body .amx-ad-search-infeed .amx-ad-slot--search_infeed.amx-ad-fallback {
    background: #ffffff;
    display: block;
}

body .amx-ad-search-infeed .amx-ad-slot--search_infeed.amx-ad-fallback::before {
    background:
        linear-gradient(135deg, rgba(10, 93, 254, 0.72), rgba(15, 118, 110, 0.78)),
        url("assets/images/advertise/availablemax-advertise-hero-page-custom.png");
    background-position: center;
    background-size: cover;
    content: "";
    display: block;
    min-height: 214px;
}

body .amx-ad-search-infeed .amx-ad-slot--search_infeed.amx-ad-fallback--motion::before {
    display: none;
}

body .amx-ad-search-infeed .amx-ad-slot--search_infeed .amx-ad-disclosure {
    background: rgba(17, 24, 39, 0.92);
    border: 0;
    border-radius: 5px;
    color: #ffffff;
    font-size: 11px;
    left: 12px;
    margin: 0;
    min-height: 22px;
    padding: 4px 8px;
    position: absolute;
    text-transform: none !important;
    top: 12px;
    z-index: 2;
}

body .amx-ad-search-infeed .amx-ad-slot--search_infeed .amx-ad-media {
    aspect-ratio: 2 / 1;
    border-radius: 10px 10px 0 0;
    height: auto;
    margin: 0;
    max-height: none;
    min-height: 0;
    overflow: hidden;
    width: 100%;
}

body .amx-ad-search-infeed .amx-ad-slot--search_infeed .amx-ad-media--svg {
    aspect-ratio: 2 / 1;
    background: #07111f;
    max-height: none;
}

body .amx-ad-search-infeed .amx-ad-slot--search_infeed .amx-ad-image,
body .amx-ad-search-infeed .amx-ad-slot--search_infeed .amx-ad-media video {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

body .amx-ad-search-infeed .amx-ad-slot--search_infeed .amx-ad-media--svg .amx-ad-image--svg {
    object-fit: cover !important;
    object-position: center center !important;
}

body .amx-ad-search-infeed .amx-ad-slot--search_infeed .amx-ad-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 13px 14px 14px;
}

body .amx-ad-search-infeed .amx-ad-slot--search_infeed .amx-ad-copy h3 {
    color: #101828;
    font-size: 18px;
    line-height: 1.22;
    margin: 0 0 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body .amx-ad-search-infeed .amx-ad-slot--search_infeed .amx-ad-copy p {
    color: #475467;
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 12px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body .amx-ad-search-infeed .amx-ad-slot--search_infeed .amx-ad-cta {
    box-shadow: 0 9px 18px rgba(10, 93, 254, 0.14);
    color: #ffffff !important;
    margin-top: auto;
    min-height: 38px;
    width: 100%;
}

@media (max-width: 900px) {
    body .amx-ad-search-top-slot .amx-ad-slot--search_top.amx-ad-fallback {
        align-items: stretch;
        display: block;
        flex-direction: column;
        gap: 0;
        min-height: 0;
        padding: 0;
    }

    body .amx-ad-search-top-slot .amx-ad-slot--search_top.amx-ad-fallback .amx-ad-copy {
        display: none !important;
    }

    body .amx-ad-search-top-slot .amx-ad-slot--search_top.amx-ad-fallback .amx-ad-copy h3 {
        font-size: 17px;
        margin-bottom: 6px;
    }

    body .amx-ad-search-top-slot .amx-ad-slot--search_top.amx-ad-fallback .amx-ad-copy p {
        margin-bottom: 12px;
    }

    body .amx-ad-search-top-slot .amx-ad-slot--search_top.amx-ad-fallback .amx-ad-cta {
        display: none !important;
        text-align: center;
        white-space: normal;
        width: 100%;
    }

    body .amx-ad-search-infeed {
        margin-bottom: 24px;
    }
}

.widget-area-sidebar .amx-ad-property-sidebar-slot,
.amx-pro-profile-sidebar .amx-ad-profile-sidebar-slot {
    clear: both;
    margin: 18px 0 0;
}

.widget-area-sidebar .amx-ad-property-sidebar-slot .amx-ad-slot,
.amx-pro-profile-sidebar .amx-ad-profile-sidebar-slot .amx-ad-slot {
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    position: relative;
}

.widget-area-sidebar .amx-ad-property-sidebar-slot .amx-ad-disclosure,
.amx-pro-profile-sidebar .amx-ad-profile-sidebar-slot .amx-ad-disclosure {
    background: rgba(17, 24, 39, 0.92) !important;
    border: 0 !important;
    border-radius: 5px;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 900;
    left: 12px;
    letter-spacing: 0;
    line-height: 1;
    margin: 0;
    min-height: 22px;
    padding: 5px 8px;
    position: absolute;
    text-transform: none !important;
    top: 12px;
    z-index: 2;
}

.widget-area-sidebar .amx-ad-property-sidebar-slot .amx-ad-media,
.amx-pro-profile-sidebar .amx-ad-profile-sidebar-slot .amx-ad-media {
    aspect-ratio: 2 / 1;
    border-radius: 8px 8px 0 0;
    margin: 0;
    overflow: hidden;
}

.widget-area-sidebar .amx-ad-property-sidebar-slot .amx-ad-image,
.widget-area-sidebar .amx-ad-property-sidebar-slot .amx-ad-media video,
.amx-pro-profile-sidebar .amx-ad-profile-sidebar-slot .amx-ad-image,
.amx-pro-profile-sidebar .amx-ad-profile-sidebar-slot .amx-ad-media video {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.widget-area-sidebar .amx-ad-property-sidebar-slot .amx-ad-media--svg .amx-ad-image--svg,
.amx-pro-profile-sidebar .amx-ad-profile-sidebar-slot .amx-ad-media--svg .amx-ad-image--svg {
    object-fit: cover !important;
    object-position: center center !important;
}

.widget-area-sidebar .amx-ad-property-sidebar-slot .amx-ad-copy,
.amx-pro-profile-sidebar .amx-ad-profile-sidebar-slot .amx-ad-copy {
    padding: 14px 16px 16px;
}

.widget-area-sidebar .amx-ad-property-sidebar-slot .amx-ad-copy h3,
.amx-pro-profile-sidebar .amx-ad-profile-sidebar-slot .amx-ad-copy h3 {
    display: -webkit-box;
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 8px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.widget-area-sidebar .amx-ad-property-sidebar-slot .amx-ad-copy p,
.amx-pro-profile-sidebar .amx-ad-profile-sidebar-slot .amx-ad-copy p {
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 12px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.widget-area-sidebar .amx-ad-property-sidebar-slot .amx-ad-cta,
.amx-pro-profile-sidebar .amx-ad-profile-sidebar-slot .amx-ad-cta {
    color: #ffffff !important;
    min-height: 38px;
}

.amx-seo-local-page .amx-ad-city-hero-slot,
.amx-seo-local-page .amx-ad-city-band-slot,
.amx-half-map-layout .amx-ad-city-hero-slot,
.amx-half-map-layout .amx-ad-city-band-slot {
    margin: 16px auto 0;
    max-width: calc(100% - 30px);
    padding: 0 24px;
    width: calc(100% - 30px);
}

.amx-seo-local-page .amx-ad-city-band-slot,
.amx-half-map-layout .amx-ad-city-band-slot {
    padding: 0;
}

.amx-half-map-layout .amx-ad-city-hero-slot .amx-ad-slot,
.amx-half-map-layout .amx-ad-city-band-slot .amx-ad-slot {
    border-radius: 8px;
    overflow: hidden;
}

.amx-half-map-layout .amx-ad-city-band-slot .amx-ad-slot--city_band {
    border-radius: 10px;
}

body .row_user_dashboard .amx-ad-dashboard-slot {
    clear: both;
    flex: 0 0 100%;
    margin: 0 0 18px;
    max-width: 100%;
    padding: 0 12px;
    width: 100%;
}

body .row_user_dashboard .dashboard-wrapper-form > .amx-ad-dashboard-slot {
    padding-left: 0;
    padding-right: 0;
}

body .row_user_dashboard .amx-ad-dashboard-slot .amx-ad-slot {
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

body .row_user_dashboard .amx-ad-dashboard-slot .amx-ad-slot--dashboard_partner,
body .row_user_dashboard .amx-ad-dashboard-slot .amx-ad-slot--add_property_partner,
body .row_user_dashboard .amx-ad-dashboard-slot .amx-ad-slot--crm_partner {
    min-height: 0;
}

body .row_user_dashboard .amx-ad-dashboard-slot .amx-ad-slot--dashboard_partner .amx-ad-media--svg,
body .row_user_dashboard .amx-ad-dashboard-slot .amx-ad-slot--add_property_partner .amx-ad-media--svg,
body .row_user_dashboard .amx-ad-dashboard-slot .amx-ad-slot--crm_partner .amx-ad-media--svg {
    aspect-ratio: 6 / 1;
    width: 100%;
}

body .row_user_dashboard .amx-ad-dashboard-slot .amx-ad-slot--dashboard_partner .amx-ad-media--svg .amx-ad-image--svg,
body .row_user_dashboard .amx-ad-dashboard-slot .amx-ad-slot--add_property_partner .amx-ad-media--svg .amx-ad-image--svg,
body .row_user_dashboard .amx-ad-dashboard-slot .amx-ad-slot--crm_partner .amx-ad-media--svg .amx-ad-image--svg {
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    width: 100% !important;
}

@media (max-width: 620px) {
    .amx-ad-search-top-slot,
    .amx-ad-search-infeed {
        max-width: calc(100% - 24px);
        width: calc(100% - 24px);
    }

    .amx-ad-search-infeed {
        flex-basis: calc(100% - 24px);
        margin: 16px auto;
    }

    .amx-seo-local-page .amx-ad-city-hero-slot,
    .amx-seo-local-page .amx-ad-city-band-slot,
    .amx-half-map-layout .amx-ad-city-hero-slot,
    .amx-half-map-layout .amx-ad-city-band-slot {
        max-width: calc(100% - 24px);
        padding: 0;
        width: calc(100% - 24px);
    }

    body .row_user_dashboard .amx-ad-dashboard-slot {
        margin-bottom: 14px;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 767px) {
    body .amx-professional-directory-hero {
        padding: 20px;
    }

    body .amx-professional-directory-hero h1,
    body.single-estate_agent .amx-agent-profile-hero h3,
    body .amx-public-profile-header .agency_title {
        font-size: 28px;
        line-height: 1.18;
    }

    body .amx-professional-directory-hero__stats,
    body.single-estate_agent .amx-agent-profile-hero__stats,
    body .amx-public-profile-stats {
        grid-template-columns: 1fr;
    }

    body .amx-professional-directory-tabs {
        width: 100%;
    }

    body .amx-professional-directory-tab {
        flex: 1 1 50%;
    }

    body .amx-professional-directory-search--advanced,
    body .amx-professional-directory-search__top {
        display: flex;
        flex-direction: column;
    }

    body .amx-professional-directory-search__filters {
        grid-template-columns: 1fr;
    }

    body .amx-professional-directory-filter--toggle {
        align-self: stretch;
    }

    body .amx-professional-trust {
        grid-template-columns: 1fr;
    }

    body .amx-professional-trust__score {
        align-items: baseline;
        flex-direction: row;
        justify-content: space-between;
    }

    body .amx-agent-card {
        flex-direction: column;
        min-height: 0;
    }

    body .amx-agent-card__media {
        aspect-ratio: 4 / 3;
        border-bottom: 1px solid #e3eaf3;
        border-right: 0;
        flex-basis: auto;
        max-width: 100%;
        min-height: 0;
        width: 100%;
    }

    body .amx-agent-card__stats,
    body .amx-company-card__stats {
        grid-template-columns: 1fr;
    }

    body .amx-professional-compare-tray {
        bottom: 10px;
        max-height: calc(100vh - 80px);
        width: calc(100vw - 20px);
    }

    body .amx-professional-compare-tray__items {
        grid-template-columns: 1fr;
    }

    body .amx-agent-card__body,
    body .amx-company-card .agency_unit_wrapper,
    body.single-estate_agent .amx-agent-profile-about,
    body.single-estate_agent .amx-agent-profile-contact-panel,
    body .amx-public-profile-header .header_agency_container {
        padding: 18px;
    }

    body.single-estate_agent .amx-agent-profile-hero {
        padding: 18px;
    }

    body.single-estate_agent .amx-agent-profile-hero__media .agent-listing-img-wrapper {
        height: min(250px, 74vw);
        width: min(250px, 74vw);
    }
}

/* Strongly scope the professional directory cards away from the parent theme's vertical agent card rules. */
body .amx-professional-directory-results .wpresidence_agent_unit_wrapper,
body .amx-professional-directory-results .amx-professional-directory-company {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: 50% !important;
}

body .amx-professional-directory-results .wpresidence_agent_unit_wrapper .agent_unit.amx-agent-card,
body .amx-professional-directory-results .agency_unit.amx-company-card {
    align-items: stretch !important;
    display: flex !important;
    flex-direction: row !important;
    float: none !important;
    height: auto !important;
    max-width: none !important;
    min-height: 214px !important;
    padding: 0 !important;
    width: 100% !important;
}

body .amx-professional-directory-results .wpresidence_agent_unit_wrapper .agent_unit.amx-agent-card .amx-agent-card__media,
body .amx-professional-directory-results .agency_unit.amx-company-card .agency_unit_img {
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    flex: 0 0 164px !important;
    margin: 0 !important;
    max-width: 164px !important;
    min-height: 214px !important;
    width: 164px !important;
}

body .amx-professional-directory-results .wpresidence_agent_unit_wrapper .agent_unit.amx-agent-card .amx-agent-card__media a,
body .amx-professional-directory-results .wpresidence_agent_unit_wrapper .agent_unit.amx-agent-card .amx-agent-card__media img,
body .amx-professional-directory-results .agency_unit.amx-company-card .agency_unit_img img {
    border-radius: 0 !important;
    height: 100% !important;
    min-height: 214px !important;
    object-fit: cover !important;
    object-position: center top !important;
    width: 100% !important;
}

body .amx-professional-directory-results .wpresidence_agent_unit_wrapper .agent_unit.amx-agent-card .amx-agent-card__body,
body .amx-professional-directory-results .agency_unit.amx-company-card .agency_unit_wrapper {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-width: 0 !important;
    padding: 14px !important;
}

body .amx-professional-directory-results .wpresidence_agent_unit_wrapper .agent_unit.amx-agent-card h4,
body .amx-professional-directory-results .wpresidence_agent_unit_wrapper .agent_unit.amx-agent-card .agent_position,
body .amx-professional-directory-results .wpresidence_agent_unit_wrapper .agent_unit.amx-agent-card .agent_card_content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body .amx-professional-directory-results .wpresidence_agent_unit_wrapper .agent_unit.amx-agent-card .agent_unit_social {
    bottom: auto !important;
    font-size: 13px !important;
    margin-top: 8px !important;
    padding: 0 !important;
    position: static !important;
    width: auto !important;
}

@media (max-width: 991px) {
    body .amx-professional-directory-results .wpresidence_agent_unit_wrapper,
    body .amx-professional-directory-results .amx-professional-directory-company {
        flex-basis: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/*
 * AvailMax account-menu interaction (v5.1.76).
 * Follow the saved WPresidence menu colors instead of a fixed brand hex.
 */
body #user_menu_open > li > a:hover,
body #user_menu_open > li > a:focus,
body #user_menu_open > li > a:focus-visible {
    background: transparent !important;
    color: var(--wp-estate-menu-hover-font-color-option, var(--wp-estate-main-color-option, #dd3333)) !important;
    padding-left: 20px;
}

body #user_menu_open > li > a:hover i,
body #user_menu_open > li > a:focus i,
body #user_menu_open > li > a:focus-visible i {
    color: var(--wp-estate-menu-hover-font-color-option, var(--wp-estate-main-color-option, #dd3333)) !important;
}

body #user_menu_open > li > a:hover svg [stroke],
body #user_menu_open > li > a:focus svg [stroke],
body #user_menu_open > li > a:focus-visible svg [stroke] {
    stroke: var(--wp-estate-menu-hover-font-color-option, var(--wp-estate-main-color-option, #dd3333)) !important;
}

body #user_menu_open > li > a:hover svg [fill]:not([fill="none"]),
body #user_menu_open > li > a:focus svg [fill]:not([fill="none"]),
body #user_menu_open > li > a:focus-visible svg [fill]:not([fill="none"]) {
    fill: var(--wp-estate-menu-hover-font-color-option, var(--wp-estate-main-color-option, #dd3333)) !important;
    stroke: none !important;
}

body #user_menu_open > li > a:hover .unread_mess,
body #user_menu_open > li > a:focus .unread_mess,
body #user_menu_open > li > a:focus-visible .unread_mess {
    background: var(--wp-estate-menu-hover-font-color-option, var(--wp-estate-main-color-option, #dd3333)) !important;
    color: #ffffff !important;
}

@media (max-width: 767px) {
    body .amx-professional-directory-results .wpresidence_agent_unit_wrapper .agent_unit.amx-agent-card,
    body .amx-professional-directory-results .agency_unit.amx-company-card {
        flex-direction: column !important;
        min-height: 0 !important;
    }

    body .amx-professional-directory-results .wpresidence_agent_unit_wrapper .agent_unit.amx-agent-card .amx-agent-card__media,
    body .amx-professional-directory-results .agency_unit.amx-company-card .agency_unit_img {
        aspect-ratio: 4 / 3 !important;
        flex-basis: auto !important;
        max-width: 100% !important;
        min-height: 0 !important;
        width: 100% !important;
    }
}

/* Compact roster presentation: two professional cards per row with a circular portrait. */
body .amx-professional-directory-results {
    align-items: stretch;
    row-gap: 24px;
}

body .amx-professional-directory-results .wpresidence_agent_unit_wrapper,
body .amx-professional-directory-results .amx-professional-directory-company {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: 50% !important;
}

body .amx-professional-directory-results .wpresidence_agent_unit_wrapper .agent_unit.amx-agent-card,
body .amx-professional-directory-results .agency_unit.amx-company-card {
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #d8e2ef !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08) !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 22px !important;
    min-height: 214px !important;
    overflow: visible !important;
    padding: 20px !important;
}

body .amx-professional-directory-results .wpresidence_agent_unit_wrapper .agent_unit.amx-agent-card .amx-agent-card__media,
body .amx-professional-directory-results .agency_unit.amx-company-card .agency_unit_img {
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    display: flex !important;
    flex: 0 0 152px !important;
    flex-direction: column !important;
    justify-content: center !important;
    margin: 0 !important;
    max-width: 152px !important;
    min-height: 0 !important;
    overflow: visible !important;
    width: 152px !important;
}

body .amx-professional-directory-results .wpresidence_agent_unit_wrapper .agent_unit.amx-agent-card .amx-agent-card__media a {
    display: block !important;
    height: 142px !important;
    min-height: 0 !important;
    width: 142px !important;
}

body .amx-professional-directory-results .wpresidence_agent_unit_wrapper .agent_unit.amx-agent-card .amx-agent-card__media img,
body .amx-professional-directory-results .agency_unit.amx-company-card .agency_unit_img img {
    border: 4px solid #ffffff !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16) !important;
    display: block !important;
    height: 142px !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center top !important;
    width: 142px !important;
}

body .amx-professional-directory-results .wpresidence_agent_unit_wrapper .agent_unit.amx-agent-card:hover img,
body .amx-professional-directory-results .agency_unit.amx-company-card:hover img {
    opacity: 1 !important;
    transform: none !important;
}

body .amx-professional-directory-results .amx-agent-card .amx-agent-card__badge,
body .amx-professional-directory-results .amx-company-card .amx-company-card__network-badge {
    align-items: center !important;
    bottom: auto !important;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.1) !important;
    display: inline-flex !important;
    font-size: 12px !important;
    gap: 7px !important;
    justify-content: center !important;
    left: auto !important;
    line-height: 1 !important;
    margin-top: 12px !important;
    max-width: none !important;
    min-width: 154px !important;
    padding: 9px 12px !important;
    position: relative !important;
    top: auto !important;
    white-space: nowrap !important;
    z-index: 2 !important;
}

body .amx-professional-directory-results .wpresidence_agent_unit_wrapper .agent_unit.amx-agent-card .amx-agent-card__body,
body .amx-professional-directory-results .agency_unit.amx-company-card .agency_unit_wrapper {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 0 !important;
}

body .amx-professional-directory-results .amx-agent-card__topline,
body .amx-professional-directory-results .amx-company-card__topline {
    margin-bottom: 12px !important;
}

body .amx-professional-directory-results .amx-agent-card h4,
body .amx-professional-directory-results .amx-company-card h4 {
    font-size: 20px !important;
    line-height: 1.2 !important;
    margin-bottom: 4px !important;
    padding: 0 !important;
}

body .amx-professional-directory-results .amx-agent-card h4 a,
body .amx-professional-directory-results .amx-company-card h4 a {
    color: #101828 !important;
}

body .amx-professional-directory-results .amx-agent-card .agent_position,
body .amx-professional-directory-results .amx-company-card .agent_address {
    color: #475569 !important;
    font-size: 15px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

body .amx-professional-directory-results .amx-agent-card .amx-public-organization--agent-card,
body .amx-professional-directory-results .amx-company-card .amx-public-organization--company-card {
    align-items: center !important;
    background: #f8fbff !important;
    border: 1px solid #dfe8f5 !important;
    border-left: 4px solid #2155d9 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.06) !important;
    gap: 11px !important;
    margin: 13px 0 14px !important;
    min-height: 62px !important;
    padding: 10px 12px !important;
    width: 100% !important;
}

body .amx-professional-directory-results .amx-agent-card .amx-public-organization--agent-card .amx-public-organization__mark,
body .amx-professional-directory-results .amx-company-card .amx-public-organization--company-card .amx-public-organization__mark {
    background: #ffffff !important;
    border-color: #cfdbec !important;
    box-shadow: 0 6px 14px rgba(33, 85, 217, 0.08) !important;
    flex-basis: 38px !important;
    height: 38px !important;
    width: 38px !important;
}

body .amx-professional-directory-results .amx-agent-card .amx-public-organization__body,
body .amx-professional-directory-results .amx-company-card .amx-public-organization__body {
    display: block !important;
}

body .amx-professional-directory-results .amx-agent-card .amx-public-organization__eyebrow,
body .amx-professional-directory-results .amx-company-card .amx-public-organization__eyebrow {
    color: #64748b !important;
    display: block !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    margin-bottom: 2px !important;
}

body .amx-professional-directory-results .amx-agent-card .amx-public-organization__name,
body .amx-professional-directory-results .amx-company-card .amx-public-organization__name {
    align-items: center !important;
    color: #101828 !important;
    display: inline-flex !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    gap: 5px !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
    vertical-align: middle !important;
}

body .amx-professional-directory-results .amx-agent-card .amx-public-organization__name + *,
body .amx-professional-directory-results .amx-company-card .amx-public-organization__name + * {
    vertical-align: middle !important;
}

body .amx-professional-directory-results .amx-agent-card .amx-public-organization__meta,
body .amx-professional-directory-results .amx-company-card .amx-public-organization__meta {
    color: #64748b !important;
    display: block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin-top: 3px !important;
}

body .amx-professional-directory-results .amx-agent-card__stats,
body .amx-professional-directory-results .amx-company-card__stats {
    border: 0 !important;
    gap: 7px 18px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
}

body .amx-professional-directory-results .amx-agent-card__stats > span:nth-child(n+3),
body .amx-professional-directory-results .amx-company-card__stats > span:nth-child(n+3) {
    display: none !important;
}

body .amx-professional-directory-results .amx-agent-card__trustline,
body .amx-professional-directory-results .amx-company-card__trustline,
body .amx-professional-directory-results .amx-agent-card__meta,
body .amx-professional-directory-results .amx-agent-card__chips,
body .amx-professional-directory-results .amx-company-card__chips,
body .amx-professional-directory-results .amx-agent-card__summary,
body .amx-professional-directory-results .amx-company-card__excerpt,
body .amx-professional-directory-results .amx-agent-card__actions,
body .amx-professional-directory-results .amx-company-card__actions,
body .amx-professional-directory-results .amx-agent-card__social,
body .amx-professional-directory-results .amx-company-card__social-wrap,
body .amx-professional-directory-results .amx-company-card__contacts,
body .amx-professional-directory-results .amx-company-card__team {
    display: none !important;
}

@media (max-width: 991px) {
    body .amx-professional-directory-results .wpresidence_agent_unit_wrapper,
    body .amx-professional-directory-results .amx-professional-directory-company {
        flex-basis: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    body .amx-professional-directory-results .wpresidence_agent_unit_wrapper .agent_unit.amx-agent-card,
    body .amx-professional-directory-results .agency_unit.amx-company-card {
        flex-direction: column !important;
        text-align: center !important;
    }

    body .amx-professional-directory-results .amx-agent-card__topline,
    body .amx-professional-directory-results .amx-company-card__topline {
        justify-content: center !important;
    }
}

/* Final polish for professional directory cards and verified organization summaries. */
body .amx-public-organization__body.amxvbs-has-badge {
    align-items: center !important;
    column-gap: 5px !important;
    display: grid !important;
    grid-template-columns: minmax(0, max-content) auto !important;
    justify-content: start !important;
    min-width: 0 !important;
    row-gap: 0 !important;
}

body .amx-public-organization__body.amxvbs-has-badge .amx-public-organization__eyebrow,
body .amx-public-organization__body.amxvbs-has-badge .amx-public-organization__meta {
    grid-column: 1 / -1 !important;
}

body .amx-public-organization__body.amxvbs-has-badge .amx-public-organization__name {
    grid-column: 1 !important;
}

body .amx-public-organization__body.amxvbs-has-badge > .amxvbs-badge {
    align-self: center !important;
    grid-column: 2 !important;
    height: 0.82em !important;
    margin: 0 !important;
    transform: translateY(-0.02em) !important;
    width: 0.82em !important;
}

body .amx-public-organization__body.amxvbs-has-badge > .amxvbs-badge svg {
    display: block !important;
    height: 100% !important;
    width: 100% !important;
}

body .amx-professional-directory-results .amx-agent-card h4.amxvbs-has-badge,
body .amx-professional-directory-results .amx-company-card h4.amxvbs-has-badge,
body.single-estate_agent .amx-agent-profile-hero h3.amxvbs-has-badge {
    align-items: center !important;
    display: inline-flex !important;
    gap: 6px !important;
}

body .amx-professional-directory-results .amx-agent-card h4 > .amxvbs-badge,
body .amx-professional-directory-results .amx-company-card h4 > .amxvbs-badge,
body.single-estate_agent .amx-agent-profile-hero h3 > .amxvbs-badge {
    flex: 0 0 auto !important;
    margin: 0 !important;
}

body .amx-professional-directory-results .amx-agent-card .amx-agent-card__badge,
body .amx-professional-directory-results .amx-company-card .amx-company-card__network-badge {
    flex-wrap: nowrap !important;
    letter-spacing: 0 !important;
    min-width: 168px !important;
    overflow: visible !important;
    text-align: center !important;
    white-space: nowrap !important;
}

body .amx-professional-directory-results .amx-agent-card .amx-agent-card__badge i,
body .amx-professional-directory-results .amx-company-card .amx-company-card__network-badge i,
body .amx-professional-directory-results .amx-agent-card .amx-agent-card__badge .amx-verified-partner-shield-svg,
body .amx-professional-directory-results .amx-company-card .amx-company-card__network-badge .amx-verified-partner-shield-svg {
    flex: 0 0 auto !important;
}

body .amx-professional-directory-results .amx-agent-card .amx-public-organization--agent-card,
body .amx-professional-directory-results .amx-company-card .amx-public-organization--company-card {
    background: #f8fbff !important;
    border: 1px solid #dfe8f5 !important;
    border-left: 1px solid #dfe8f5 !important;
    box-shadow: none !important;
    margin-bottom: 15px !important;
}

body .amx-professional-directory-results .amx-agent-card .amx-public-organization__mark,
body .amx-professional-directory-results .amx-company-card .amx-public-organization__mark {
    flex-shrink: 0 !important;
}

body .amx-professional-directory-results .amx-agent-card .amx-agent-card__media,
body .amx-professional-directory-results .amx-company-card .agency_unit_img {
    align-self: center !important;
}

/* Phase 2: unified professional directory cards. */
body .amx-professional-directory-results {
    align-items: stretch !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
    row-gap: 22px !important;
}

body .amx-professional-directory-results .wpresidence_agent_unit_wrapper,
body .amx-professional-directory-results .amx-professional-directory-company {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: 50% !important;
}

body .amx-professional-directory-results .amx-directory-card {
    align-items: center !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%) !important;
    border: 1px solid #dbe5f1 !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07) !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 18px !important;
    height: 100% !important;
    min-height: 214px !important;
    overflow: hidden !important;
    padding: 18px !important;
    position: relative !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
    width: 100% !important;
}

body .amx-professional-directory-results .amx-directory-card::before {
    background: linear-gradient(180deg, #2155d9 0%, #13a384 52%, #7c3aed 100%) !important;
    bottom: 0 !important;
    content: "" !important;
    left: 0 !important;
    opacity: 0.9 !important;
    position: absolute !important;
    top: 0 !important;
    width: 3px !important;
}

body .amx-professional-directory-results .amx-directory-card--agency::before {
    background: linear-gradient(180deg, #0f766e 0%, #2155d9 100%) !important;
}

body .amx-professional-directory-results .amx-directory-card--developer::before {
    background: linear-gradient(180deg, #6840c6 0%, #2155d9 100%) !important;
}

body .amx-professional-directory-results .amx-directory-card:hover {
    border-color: #b7c7db !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.11) !important;
    transform: translateY(-2px) !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img {
    align-items: center !important;
    align-self: stretch !important;
    aspect-ratio: auto !important;
    background: transparent !important;
    border: 0 !important;
    display: flex !important;
    flex: 0 0 150px !important;
    flex-direction: column !important;
    gap: 10px !important;
    justify-content: center !important;
    margin: 0 !important;
    max-width: 150px !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    position: relative !important;
    width: 150px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a {
    border-radius: 999px !important;
    display: block !important;
    height: 126px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    width: 126px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media img,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__image,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img img {
    border: 4px solid #ffffff !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14) !important;
    display: block !important;
    height: 126px !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center top !important;
    width: 126px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__badge,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__network-badge {
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #d9e5ef !important;
    border-radius: 8px !important;
    bottom: auto !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06) !important;
    color: #0f766e !important;
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    gap: 7px !important;
    justify-content: center !important;
    left: auto !important;
    line-height: 1 !important;
    margin: 0 !important;
    max-width: 150px !important;
    min-height: 38px !important;
    min-width: 150px !important;
    overflow: hidden !important;
    padding: 9px 10px !important;
    position: static !important;
    text-align: center !important;
    top: auto !important;
    white-space: nowrap !important;
    width: 150px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__badge i,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__network-badge i,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__badge .amx-verified-partner-shield-svg,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__network-badge .amx-verified-partner-shield-svg {
    flex: 0 0 auto !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__body,
body .amx-professional-directory-results .amx-directory-card .agency_unit_wrapper {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    padding: 0 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__topline,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__topline {
    align-items: flex-start !important;
    display: flex !important;
    gap: 12px !important;
    justify-content: space-between !important;
    margin-bottom: 10px !important;
    min-height: 34px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__eyebrow,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__eyebrow {
    border: 1px solid rgba(15, 118, 110, 0.16) !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    letter-spacing: 0 !important;
    padding: 7px 10px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-company-card__eyebrow--agency {
    background: #eef8f5 !important;
    color: #0f766e !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-company-card__eyebrow--developer {
    background: #f5f3ff !important;
    color: #6840c6 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__rating,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__rating {
    align-items: flex-end !important;
    background: #ffffff !important;
    border: 1px solid #edf1f7 !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04) !important;
    display: inline-flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    margin-left: auto !important;
    min-width: 82px !important;
    padding: 6px 8px !important;
    text-align: right !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__rating strong,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__rating strong {
    color: #101828 !important;
    font-size: 16px !important;
    line-height: 1.05 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__rating i,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__rating i {
    color: #2155d9 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__rating span,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__rating span {
    color: #667085 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

body .amx-professional-directory-results .amx-directory-card h4 {
    font-size: 20px !important;
    letter-spacing: 0 !important;
    line-height: 1.18 !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
}

body .amx-professional-directory-results .amx-directory-card h4 a {
    color: #101828 !important;
    text-decoration: none !important;
}

body .amx-professional-directory-results .amx-directory-card h4 a:hover {
    color: #2155d9 !important;
}

body .amx-professional-directory-results .amx-directory-card .agent_position,
body .amx-professional-directory-results .amx-directory-card .agent_address {
    color: #5f6f84 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization--agent-card,
body .amx-professional-directory-results .amx-directory-card .amx-public-organization--company-card {
    align-items: center !important;
    background: #f8fbff !important;
    border: 1px solid #dfe8f5 !important;
    border-left: 3px solid #2155d9 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    display: flex !important;
    gap: 10px !important;
    margin: 11px 0 12px !important;
    min-height: 58px !important;
    padding: 9px 10px !important;
    width: 100% !important;
}

body .amx-professional-directory-results .amx-directory-card--agency .amx-public-organization--company-card {
    border-left-color: #0f766e !important;
}

body .amx-professional-directory-results .amx-directory-card--developer .amx-public-organization--company-card {
    border-left-color: #6840c6 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization__mark {
    background: #ffffff !important;
    border-color: #d6e1ef !important;
    box-shadow: none !important;
    flex: 0 0 36px !important;
    height: 36px !important;
    width: 36px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization__name {
    font-size: 15px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats {
    border: 0 !important;
    border-top: 1px solid #edf1f6 !important;
    display: grid !important;
    gap: 8px 14px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: 11px 0 0 !important;
    padding: 11px 0 0 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span:nth-child(n+3),
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span:nth-child(n+3) {
    display: none !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span {
    align-items: center !important;
    display: flex !important;
    gap: 8px !important;
    min-width: 0 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span > i,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span > i {
    background: #f4f7ff !important;
    border-radius: 8px !important;
    color: #2155d9 !important;
    flex: 0 0 28px !important;
    font-size: 12px !important;
    height: 28px !important;
    width: 28px !important;
}

body .amx-professional-directory-results .amx-directory-card--agency .amx-company-card__stats > span > i {
    background: #eef8f5 !important;
    color: #0f766e !important;
}

body .amx-professional-directory-results .amx-directory-card--developer .amx-company-card__stats > span > i {
    background: #f5f3ff !important;
    color: #6840c6 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats strong,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats strong {
    color: #101828 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats em,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats em {
    color: #667085 !important;
    font-size: 11px !important;
    font-style: normal !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__trustline,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__trustline,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__meta,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__chips,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__chips,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__summary,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__excerpt,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__actions,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__actions,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__social,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__social-wrap,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__contacts,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__team {
    display: none !important;
}

@media (max-width: 991px) {
    body .amx-professional-directory-results .wpresidence_agent_unit_wrapper,
    body .amx-professional-directory-results .amx-professional-directory-company {
        flex-basis: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 575px) {
    body .amx-professional-directory-results .amx-directory-card {
        align-items: center !important;
        flex-direction: column !important;
        gap: 14px !important;
        min-height: 0 !important;
        padding: 16px !important;
        text-align: center !important;
    }

    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media,
    body .amx-professional-directory-results .amx-directory-card .agency_unit_img {
        flex-basis: auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__topline,
    body .amx-professional-directory-results .amx-directory-card .amx-company-card__topline {
        align-items: center !important;
        justify-content: center !important;
    }

    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats,
    body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats {
        grid-template-columns: 1fr !important;
    }
}

/* Phase 3: professional profile pages for agents, agencies, and developers. */
body .amx-profile-hero__badges {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

body .amx-profile-rating {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e3eaf3;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    color: #101828;
    display: inline-flex;
    gap: 8px;
    min-height: 34px;
    padding: 7px 10px;
}

body .amx-profile-rating strong {
    align-items: center;
    display: inline-flex;
    font-size: 15px;
    font-weight: 900;
    gap: 4px;
    line-height: 1;
}

body .amx-profile-rating i {
    color: #2155d9;
    font-size: 12px;
}

body .amx-profile-rating small {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

body .amx-profile-rating--is-new strong {
    color: #475467;
}

body.single-estate_agent .amx-agent-profile-hero {
    overflow: hidden;
    position: relative;
}

body.single-estate_agent .amx-agent-profile-hero::before,
body .amx-public-profile-header .amx-public-profile-card::before {
    background: linear-gradient(180deg, #2155d9 0%, #13a384 52%, #7c3aed 100%);
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    top: 0;
    width: 4px;
}

body .amx-public-profile-header--agency .amx-public-profile-card::before {
    background: linear-gradient(180deg, #0f766e 0%, #2155d9 100%);
}

body .amx-public-profile-header--developer .amx-public-profile-card::before {
    background: linear-gradient(180deg, #6840c6 0%, #2155d9 100%);
}

body .amx-public-profile-header {
    background: #f6f9fd;
    padding: 22px 0 0;
}

body .amx-public-profile-header .amx-public-profile-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid #dbe5f1;
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(16, 24, 40, 0.08);
    overflow: hidden;
    padding: 28px;
    position: relative;
}

body .amx-public-profile-header .amx-public-profile-grid {
    align-items: center;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
    margin-left: 0;
    margin-right: 0;
}

body .amx-public-profile-header .amx-public-profile-media,
body .amx-public-profile-header .amx-public-profile-content {
    flex: none;
    max-width: none;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    width: auto;
}

body .amx-public-profile-header .amx-public-profile-media {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body .amx-public-profile-header .amx-public-profile-media a {
    aspect-ratio: 1;
    background: #f8fbff;
    border: 6px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
    display: block;
    overflow: hidden;
    width: clamp(230px, 22vw, 302px);
}

body .amx-public-profile-header .amx-public-profile-media img {
    border-radius: 999px;
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    width: 100%;
}

body .amx-public-profile-header .amx-public-profile-media .amx-public-profile-verified {
    justify-content: center;
    margin: 16px 0 0;
    min-height: 44px;
    min-width: min(244px, 100%);
    padding: 12px 18px;
    white-space: nowrap;
}

body .amx-public-profile-header .amx-public-profile-content {
    align-content: center;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
}

body .amx-public-profile-header .amx-public-profile-content > .col-md-12,
body .amx-public-profile-header .amx-public-profile-content > .agency_details,
body .amx-public-profile-header .amx-public-profile-content > .amx-public-profile-details,
body .amx-public-profile-header .amx-public-profile-content > .amx-public-profile-actions {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

body .amx-public-profile-header .amx-public-profile-type,
body.single-estate_agent .amx-agent-profile-hero .amx-public-profile-type {
    background: #eef8f5;
    border: 1px solid #cfe9e2;
    color: #0f766e;
    margin: 0;
}

body .amx-public-profile-header--developer .amx-public-profile-type {
    background: #f5f3ff;
    border-color: #ded6ff;
    color: #6840c6;
}

body .amx-public-profile-header .agency_title {
    font-size: clamp(32px, 3vw, 46px);
    line-height: 1.08;
    margin: 0 0 12px;
}

body .amx-public-profile-tagline {
    color: #4f5f75;
    font-size: 16px;
    line-height: 1.65;
    margin: -2px 0 16px;
    max-width: 820px;
}

body .amx-public-profile-header .amx-public-organization-links {
    margin: 12px 0 18px;
}

body .amx-public-profile-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 16px 0 14px;
}

body .amx-public-profile-stat {
    background: #ffffff;
    border-color: #dfe8f5;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.035);
    min-height: 84px;
}

body .amx-public-profile-details {
    display: grid;
    gap: 8px;
    margin-top: 4px;
}

body .amx-public-profile-details .agency_detail {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #e4ebf5;
    border-radius: 8px;
    color: #475569;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    min-height: 38px;
    padding: 9px 11px;
}

body .amx-public-profile-details .agency_detail strong {
    color: #101828;
}

body .amx-public-profile-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

body .amx-public-profile-actions .wpresidence_button,
body .amx-public-profile-actions .agency_contact_but,
body .amx-public-profile-actions .developer_contact_button,
body .amx-public-profile-action-link {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    text-decoration: none;
}

body .amx-public-profile-secondary {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.05);
    grid-column: 1 / -1;
    margin: 24px 0 0;
    padding: 20px;
    width: 100%;
}

@media (max-width: 991px) {
    body .amx-public-profile-header .amx-public-profile-grid {
        grid-template-columns: 1fr;
    }

    body .amx-public-profile-header .amx-public-profile-content,
    body .amx-public-profile-header .amx-profile-hero__badges,
    body .amx-public-profile-header .amx-public-profile-actions {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 767px) {
    body .amx-profile-hero__badges {
        justify-content: center;
    }

    body .amx-public-profile-header .amx-public-profile-card {
        padding: 20px;
    }

    body .amx-public-profile-stats {
        grid-template-columns: 1fr;
    }

    body .amx-public-profile-details .agency_detail,
    body .amx-public-profile-actions .wpresidence_button,
    body .amx-public-profile-actions .agency_contact_but,
    body .amx-public-profile-actions .developer_contact_button,
    body .amx-public-profile-action-link {
        width: 100%;
    }
}

/* Phase 4: organization team and developer project sections. */
body .amx-profile-section {
    margin: 34px auto;
    max-width: var(--wp-estate-main-grid-content-width, 1200px);
    padding: 0 15px;
    width: 100%;
}

body .amx-profile-section__header {
    align-items: flex-end;
    border-bottom: 1px solid #e5edf7;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 16px;
}

body .amx-profile-section__header span {
    color: #0f766e;
    display: block;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 7px;
    text-transform: uppercase;
}

body .amx-profile-projects-section .amx-profile-section__header span {
    color: #6840c6;
}

body .amx-profile-listings-section .amx-profile-section__header span {
    color: #0f766e;
}

body .amx-profile-section__header h2 {
    color: #101828;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
    margin: 0;
}

body .amx-profile-section__header p {
    color: #667085;
    font-size: 15px;
    line-height: 1.55;
    margin: 7px 0 0;
}

body .amx-profile-section__header > strong {
    align-items: center;
    background: #f6f9ff;
    border: 1px solid #dce8fb;
    border-radius: 8px;
    color: #2155d9;
    display: inline-flex;
    font-size: 22px;
    font-weight: 900;
    justify-content: center;
    min-height: 46px;
    min-width: 58px;
    padding: 8px 12px;
}

body .amx-profile-team-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body .amx-profile-team-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe8f5;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.055);
    display: grid;
    gap: 20px;
    grid-template-columns: 126px minmax(0, 1fr);
    min-height: 232px;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

body .amx-profile-team-card::before {
    background: #13a384;
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    top: 0;
    width: 3px;
}

body .amx-profile-team-section--developer .amx-profile-team-card::before {
    background: #6840c6;
}

body .amx-profile-team-card__image {
    aspect-ratio: 1;
    background: #f8fbff;
    border: 5px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    display: block;
    overflow: hidden;
    position: relative;
    width: 126px;
    z-index: 1;
}

body .amx-profile-team-card__image img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    width: 100%;
}

body .amx-profile-team-card__body {
    min-width: 0;
    position: relative;
    z-index: 1;
}

body .amx-profile-team-card__topline {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 12px;
}

body .amx-profile-team-card__role,
body .amx-profile-project-card__badges span {
    align-items: center;
    background: #eef8f5;
    border: 1px solid #d5eee7;
    border-radius: 999px;
    color: #0f766e;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    min-height: 30px;
    padding: 8px 12px;
    text-transform: uppercase;
    white-space: nowrap;
}

body .amx-profile-team-section--developer .amx-profile-team-card__role,
body .amx-profile-project-card__badges span {
    background: #f5f3ff;
    border-color: #ded6ff;
    color: #6840c6;
}

body .amx-profile-team-card__rating {
    align-items: flex-end;
    color: #475467;
    display: inline-flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
}

body .amx-profile-team-card__rating strong {
    align-items: center;
    color: #101828;
    display: inline-flex;
    font-size: 18px;
    font-weight: 900;
    gap: 4px;
}

body .amx-profile-team-card__rating i {
    color: #2155d9;
    font-size: 12px;
}

body .amx-profile-team-card h3,
body .amx-profile-project-card h3 {
    color: #101828;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.18;
    margin: 0 0 4px;
}

body .amx-profile-team-card h3 a,
body .amx-profile-project-card h3 a {
    color: inherit;
    text-decoration: none;
}

body .amx-profile-team-card h3 a:hover,
body .amx-profile-project-card h3 a:hover {
    color: #2155d9;
}

body .amx-profile-team-card p {
    color: #667085;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 14px;
}

body .amx-profile-team-card__stats {
    border-top: 1px solid #e7eef8;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 13px;
    padding-top: 13px;
}

body .amx-profile-team-card__stats span {
    align-items: center;
    display: grid;
    gap: 0 8px;
    grid-template-columns: 30px minmax(0, 1fr);
}

body .amx-profile-team-card__stats i {
    align-items: center;
    background: #f2f6ff;
    border-radius: 8px;
    color: #2155d9;
    display: inline-flex;
    grid-row: span 2;
    height: 30px;
    justify-content: center;
    width: 30px;
}

body .amx-profile-team-card__stats strong {
    color: #101828;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body .amx-profile-team-card__stats em {
    color: #667085;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.2;
}

body .amx-profile-team-card__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

body .amx-profile-team-card__actions a,
body .amx-profile-project-card__footer a {
    align-items: center;
    border: 1px solid #dbe5f1;
    border-radius: 8px;
    color: #2155d9;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    text-decoration: none;
}

body .amx-profile-team-card__actions a:first-child,
body .amx-profile-project-card__footer a {
    background: #2155d9;
    border-color: #2155d9;
    color: #ffffff;
}

body .amx-profile-project-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body .amx-profile-project-card {
    background: #ffffff;
    border: 1px solid #dfe8f5;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.055);
    overflow: hidden;
}

body .amx-profile-project-card__image {
    aspect-ratio: 16 / 10;
    background: #f2f6ff;
    display: block;
    overflow: hidden;
    position: relative;
}

body .amx-profile-project-card__image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

body .amx-profile-project-card__image > span {
    background: #ffffff;
    border: 1px solid #dfe8f5;
    border-radius: 999px;
    color: #101828;
    font-size: 12px;
    font-weight: 900;
    left: 12px;
    line-height: 1;
    padding: 8px 11px;
    position: absolute;
    top: 12px;
}

body .amx-profile-project-card__body {
    padding: 17px;
}

body .amx-profile-project-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

body .amx-profile-project-card p {
    align-items: center;
    color: #667085;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    gap: 7px;
    line-height: 1.45;
    margin: 0 0 16px;
}

body .amx-profile-project-card p i {
    color: #2155d9;
}

body .amx-profile-project-card__footer {
    align-items: center;
    border-top: 1px solid #e7eef8;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding-top: 14px;
}

body .amx-profile-project-card__footer strong {
    color: #101828;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.2;
}

body .amx-profile-native-listings {
    margin-left: -12px;
    margin-right: -12px;
}

body .amx-profile-native-listings > [class*="col-"],
body .amx-profile-native-listings > .listing_wrapper {
    margin-bottom: 18px;
    padding-left: 12px;
    padding-right: 12px;
}

body .amx-pro-profile-native-listings-block .amx-profile-native-listings {
    margin-left: -12px !important;
    margin-right: -12px !important;
}

body .amx-pro-profile-native-listings-block .amx-profile-native-listings > [class*="col-"],
body .amx-pro-profile-native-listings-block .amx-profile-native-listings > .listing_wrapper {
    margin-bottom: 24px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

body .amx-pro-profile-native-listings-block .property_listing {
    margin-bottom: 0 !important;
}

body .amx-pro-profile-listings-pagination {
    display: flex !important;
    justify-content: center !important;
    margin-top: 6px !important;
}

body .amx-pro-profile-listings-pagination .page-numbers {
    align-items: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .amx-pro-profile-listings-pagination .page-numbers li {
    margin: 0 !important;
}

body .amx-pro-profile-listings-pagination .page-numbers a,
body .amx-pro-profile-listings-pagination .page-numbers span {
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #d9e2ef !important;
    border-radius: 8px !important;
    color: #344054 !important;
    display: inline-flex !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    justify-content: center !important;
    min-height: 36px !important;
    min-width: 36px !important;
    padding: 8px 10px !important;
}

body .amx-pro-profile-listings-pagination .page-numbers .current {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
}

@media (max-width: 1199px) {
    body .amx-profile-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    body .amx-profile-team-grid,
    body .amx-profile-project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body .amx-profile-section__header {
        align-items: flex-start;
        flex-direction: column;
    }

    body .amx-profile-team-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    body .amx-profile-team-card__topline,
    body .amx-profile-team-card__actions,
    body .amx-profile-project-card__footer {
        justify-content: center;
    }

    body .amx-profile-team-card__rating {
        align-items: center;
    }

    body .amx-profile-team-card__stats {
        width: 100%;
    }
}

/* Phase 5: QA polish for Elementor width, focus states, and small screens. */
body .amx-professional-directory-page.amx-elementor-full-width {
    --bs-gutter-x: 0;
    display: block;
    max-width: 100vw !important;
    overflow-x: hidden;
    overflow-x: clip;
}

body .amx-professional-directory-page *,
body .amx-public-profile-header *,
body .amx-profile-section * {
    box-sizing: border-box;
}

body .amx-professional-directory-page .single-content:empty {
    display: none;
}

body .amx-directory-card:focus-visible,
body .amx-profile-team-card a:focus-visible,
body .amx-profile-project-card a:focus-visible,
body .amx-professional-directory-tab:focus-visible,
body .amx-professional-directory-search__button:focus-visible,
body .amx-professional-directory-search__clear:focus-visible {
    outline: 3px solid rgba(33, 85, 217, 0.28);
    outline-offset: 3px;
}

body .amx-directory-card .amx-agent-card__body,
body .amx-directory-card .agency_unit_wrapper,
body .amx-profile-team-card__body,
body .amx-profile-project-card__body {
    min-width: 0;
}

body .amx-directory-card h4,
body .amx-profile-team-card h3,
body .amx-profile-project-card h3,
body .amx-public-profile-header .agency_title,
body .amx-professional-directory-hero h1 {
    overflow-wrap: anywhere;
}

body .amx-directory-card .amx-agent-card__stats strong,
body .amx-directory-card .amx-company-card__stats strong,
body .amx-profile-team-card__stats strong,
body .amx-public-profile-stat strong {
    max-width: 100%;
}

body .amx-professional-directory-search__top > *,
body .amx-professional-directory-search__filters > * {
    min-width: 0;
}

body .amx-professional-directory-filter--toggle {
    min-width: 0;
}

body .amx-professional-directory-filter--toggle span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body .amx-profile-project-card__footer a,
body .amx-profile-team-card__actions a {
    white-space: nowrap;
}

@media (min-width: 992px) and (max-width: 1260px) {
    body .amx-professional-directory-results .amx-directory-card {
        gap: 14px !important;
        padding: 16px !important;
    }

    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media,
    body .amx-professional-directory-results .amx-directory-card .agency_unit_img {
        flex-basis: 132px !important;
        max-width: 132px !important;
        width: 132px !important;
    }

    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a,
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media img,
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__image,
    body .amx-professional-directory-results .amx-directory-card .agency_unit_img img {
        height: 112px !important;
        width: 112px !important;
    }

    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__badge,
    body .amx-professional-directory-results .amx-directory-card .amx-company-card__network-badge {
        min-width: 132px !important;
        width: 132px !important;
    }
}

@media (max-width: 767px) {
    body .amx-professional-directory-page.amx-elementor-full-width {
        padding-left: 15px;
        padding-right: 15px;
    }

    body .amx-professional-directory-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .amx-professional-directory-tab {
        justify-content: center;
        min-width: 0;
    }

    body .amx-professional-directory-tab span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body .amx-profile-section {
        margin-bottom: 26px;
        margin-top: 26px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 575px) {
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__rating,
    body .amx-professional-directory-results .amx-directory-card .amx-company-card__rating {
        align-items: center !important;
        margin-left: 0 !important;
        text-align: center !important;
    }

    body .amx-profile-team-card__stats,
    body .amx-profile-project-card__footer {
        grid-template-columns: 1fr;
    }

    body .amx-profile-project-card__footer {
        align-items: stretch;
        flex-direction: column;
    }

    body .amx-profile-project-card__footer a,
    body .amx-profile-team-card__actions a {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .amx-directory-card,
    body .amx-agent-card,
    body .amx-company-card,
    body .amx-profile-team-card,
    body .amx-profile-project-card {
        transition: none !important;
    }

    body .amx-professional-directory-results .amx-directory-card:hover {
        transform: none !important;
    }
}

/* Professional single page flow: keep agency/developer heroes in the full-width content area. */
body.single-estate_agency .header_media.header_mediatype_1,
body.single-estate_developer .header_media.header_mediatype_1 {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
}

body.single-estate_agency .amx-single-professional-page,
body.single-estate_developer .amx-single-professional-page {
    align-items: stretch;
    margin-left: auto;
    margin-right: auto;
    max-width: var(--wp-estate-main-grid-content-width, 1200px);
    padding-top: 22px;
    row-gap: 18px;
}

body.single-estate_agency .amx-single-professional-page > .breadcrumb_container,
body.single-estate_developer .amx-single-professional-page > .breadcrumb_container {
    margin: 0;
    padding-left: 15px;
    padding-right: 15px;
}

body.single-estate_agency .amx-single-professional-page > .col-lg-12,
body.single-estate_developer .amx-single-professional-page > .col-lg-12 {
    min-width: 0;
    width: 100%;
}

body.single-estate_agency .amx-single-professional-page .amx-public-profile-header,
body.single-estate_developer .amx-single-professional-page .amx-public-profile-header {
    background: transparent;
    border-bottom: 0;
    margin: 0 0 30px;
    padding: 0 15px;
}

body.single-estate_agency .amx-single-professional-page .amx-public-profile-card,
body.single-estate_developer .amx-single-professional-page .amx-public-profile-card {
    box-shadow: 0 18px 46px rgba(16, 24, 40, 0.07);
}

body.single-estate_agency .amx-profile-native-panel,
body.single-estate_developer .amx-profile-native-panel {
    background: #ffffff;
    border: 1px solid #dfe8f5;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.045);
    margin: 0 15px 30px;
    padding: 26px;
}

body.single-estate_agency .amx-profile-native-panel .agency_content,
body.single-estate_agency .amx-profile-native-panel .agency_tax,
body.single-estate_developer .amx-profile-native-panel > [class*="col-"] {
    min-width: 0;
}

body.single-estate_agency .amx-profile-native-panel h4,
body.single-estate_developer .amx-profile-native-panel h4 {
    color: #101828;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 14px;
}

body.single-estate_agency .agency_taxonomy {
    align-content: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.single-estate_agency .agency_taxonomy a {
    align-items: center;
    background: #eff6ff;
    border: 1px solid #d8e7ff;
    border-radius: 999px;
    color: #2155d9;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    min-height: 34px;
    padding: 7px 12px;
    text-decoration: none;
}

body.single-estate_agency .agency_contact_container,
body.single-estate_developer .developer_contact_wrapper {
    margin-left: 15px;
    margin-right: 15px;
}

/* Phase 6: WPResidence-aligned public professional surfaces. */
body .amx-professional-directory-page {
    background: #f6f7f9;
}

body .amx-professional-directory-hero,
body .amx-professional-directory-tabs,
body .amx-professional-directory-search--advanced,
body .amx-professional-directory-results {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 1180px;
    width: 100%;
}

body .amx-professional-directory-hero {
    align-items: end !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    margin-bottom: 20px !important;
    margin-top: 8px !important;
    padding: 0 !important;
}

body .amx-professional-directory-hero h1 {
    color: #171d26 !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    line-height: 1.14 !important;
    margin-bottom: 8px !important;
}

body .amx-professional-directory-hero p {
    color: #5d6776 !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
    max-width: 760px !important;
}

body .amx-professional-directory-hero__eyebrow {
    color: #0877d9 !important;
    margin-bottom: 8px !important;
}

body .amx-professional-directory-hero__stats {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: flex-end !important;
    max-width: 460px !important;
}

body .amx-professional-directory-hero__stat {
    background: #ffffff !important;
    border: 1px solid #e6ebf2 !important;
    border-radius: 6px !important;
    box-shadow: 0 6px 18px rgba(18, 31, 52, 0.035) !important;
    min-width: 104px !important;
    padding: 11px 13px !important;
}

body .amx-professional-directory-tabs {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
    width: 100% !important;
}

body .amx-professional-directory-tab {
    background: #ffffff !important;
    border: 1px solid #e4e9f0 !important;
    border-radius: 6px !important;
    color: #344054 !important;
    min-height: 42px !important;
    padding: 9px 12px !important;
}

body .amx-professional-directory-tab:hover,
body .amx-professional-directory-tab.is-active {
    background: #0877d9 !important;
    border-color: #0877d9 !important;
    color: #ffffff !important;
}

body .amx-professional-directory-tab small {
    background: #f1f5fb !important;
    color: #0877d9 !important;
}

body .amx-professional-directory-tab:hover small,
body .amx-professional-directory-tab.is-active small {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

body .amx-professional-directory-search--advanced {
    background: #ffffff !important;
    border: 1px solid #e4e9f0 !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 24px rgba(18, 31, 52, 0.045) !important;
    margin-bottom: 24px !important;
    padding: 14px !important;
}

body .amx-professional-directory-search__field,
body .amx-professional-directory-filter input[type="text"],
body .amx-professional-directory-filter select,
body .amx-professional-directory-filter--toggle {
    border-radius: 5px !important;
}

body .amx-professional-directory-search__button {
    background: #0877d9 !important;
    border-color: #0877d9 !important;
    border-radius: 5px !important;
}

body .amx-professional-directory-search__button:hover {
    background: #0568c1 !important;
    border-color: #0568c1 !important;
}

body .amx-professional-directory-results {
    align-items: stretch !important;
    margin-left: auto !important;
    margin-right: auto !important;
    row-gap: 24px !important;
}

body .amx-professional-directory-results .amx-professional-directory-status {
    background: transparent !important;
    border-bottom: 1px solid #e4e9f0 !important;
    margin-bottom: 0 !important;
    padding: 0 12px 12px !important;
}

body .amx-professional-directory-results .wpresidence_agent_unit_wrapper,
body .amx-professional-directory-results .amx-professional-directory-company {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: 50% !important;
}

body .amx-professional-directory-results .amx-directory-card {
    align-items: stretch !important;
    background: #ffffff !important;
    border: 1px solid #e4e9f0 !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 22px rgba(18, 31, 52, 0.045) !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    height: 100% !important;
    min-height: 244px !important;
    overflow: hidden !important;
    padding: 0 !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
    width: 100% !important;
}

body .amx-professional-directory-results .amx-directory-card::before {
    display: none !important;
}

body .amx-professional-directory-results .amx-directory-card:hover {
    border-color: #cfd8e5 !important;
    box-shadow: 0 14px 34px rgba(18, 31, 52, 0.075) !important;
    transform: translateY(-1px) !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img {
    align-items: stretch !important;
    align-self: stretch !important;
    aspect-ratio: auto !important;
    background: #eef2f6 !important;
    border: 0 !important;
    border-right: 1px solid #e4e9f0 !important;
    display: block !important;
    flex: 0 0 172px !important;
    margin: 0 !important;
    max-width: 172px !important;
    min-height: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: relative !important;
    width: 172px !important;
}

body .amx-professional-directory-results .amx-directory-card .prop_new_details_back {
    display: none !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a {
    border-radius: 0 !important;
    display: block !important;
    height: 100% !important;
    min-height: 244px !important;
    overflow: hidden !important;
    width: 100% !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media img,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__image,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img img {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block !important;
    height: 100% !important;
    min-height: 244px !important;
    object-fit: cover !important;
    object-position: center top !important;
    width: 100% !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__badge,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__network-badge {
    align-items: center !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(17, 24, 39, 0.12) !important;
    border-radius: 5px !important;
    bottom: 12px !important;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.12) !important;
    color: #0f766e !important;
    display: inline-flex !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    gap: 6px !important;
    left: 12px !important;
    line-height: 1 !important;
    margin: 0 !important;
    max-width: calc(100% - 24px) !important;
    min-height: 30px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 8px 9px !important;
    position: absolute !important;
    right: auto !important;
    text-overflow: ellipsis !important;
    top: auto !important;
    white-space: nowrap !important;
    width: auto !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__body,
body .amx-professional-directory-results .amx-directory-card .agency_unit_wrapper {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    padding: 22px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__topline,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__topline {
    align-items: center !important;
    display: flex !important;
    gap: 10px !important;
    justify-content: space-between !important;
    margin-bottom: 10px !important;
    min-height: 0 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__eyebrow,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__eyebrow {
    background: #f1f7ff !important;
    border: 1px solid #d9eaff !important;
    border-radius: 999px !important;
    color: #0877d9 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    padding: 6px 9px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-company-card__eyebrow--agency {
    background: #eef8f5 !important;
    border-color: #d3ece4 !important;
    color: #0f766e !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-company-card__eyebrow--developer {
    background: #f7f3ff !important;
    border-color: #e5dcff !important;
    color: #6840c6 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__rating,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__rating {
    align-items: flex-end !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    flex-direction: column !important;
    margin-left: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    text-align: right !important;
}

body .amx-professional-directory-results .amx-directory-card h4 {
    color: #171d26 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.22 !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
}

body .amx-professional-directory-results .amx-directory-card .agent_position,
body .amx-professional-directory-results .amx-directory-card .agent_address {
    color: #5d6776 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization--agent-card,
body .amx-professional-directory-results .amx-directory-card .amx-public-organization--company-card {
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    gap: 0 !important;
    margin: 6px 0 10px !important;
    min-height: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization__mark {
    display: none !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization__eyebrow {
    color: #5d6776 !important;
    display: inline !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 5px 0 0 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization__name {
    color: #344054 !important;
    display: inline !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization__meta {
    color: #7a8494 !important;
    display: block !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin-top: 2px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__summary,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__excerpt {
    color: #4f5b6b !important;
    display: block !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin: 10px 0 14px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats {
    border: 0 !important;
    border-top: 1px solid #eef2f6 !important;
    display: grid !important;
    gap: 8px 14px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: auto 0 0 !important;
    padding: 12px 0 0 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span:nth-child(n+3),
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span:nth-child(n+3) {
    display: none !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span {
    align-items: center !important;
    display: flex !important;
    gap: 7px !important;
    min-width: 0 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span > i,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span > i {
    background: transparent !important;
    border-radius: 0 !important;
    color: #0877d9 !important;
    flex: 0 0 auto !important;
    font-size: 13px !important;
    height: auto !important;
    width: auto !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats strong,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats strong {
    color: #171d26 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats em,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats em {
    color: #7a8494 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__actions,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__actions {
    align-items: center !important;
    border-top: 1px solid #eef2f6 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 13px !important;
    padding-top: 13px !important;
}

body .amx-agent-card__contact,
body .amx-agent-card__primary,
body .amx-company-card__primary,
body .amx-professional-compare-button,
body .amx-company-card__icon,
body .amx-agent-card__icon {
    align-items: center !important;
    border-radius: 5px !important;
    display: inline-flex !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    gap: 7px !important;
    justify-content: center !important;
    line-height: 1.15 !important;
    min-height: 36px !important;
    padding: 8px 11px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

body .amx-agent-card__primary,
body .amx-company-card__primary {
    background: #0877d9 !important;
    border: 1px solid #0877d9 !important;
    color: #ffffff !important;
}

body .amx-agent-card__primary:hover,
body .amx-company-card__primary:hover {
    background: #0568c1 !important;
    border-color: #0568c1 !important;
}

body .amx-agent-card__contact,
body .amx-professional-compare-button,
body .amx-company-card__icon,
body .amx-agent-card__icon {
    background: #ffffff !important;
    border: 1px solid #cfd8e5 !important;
    color: #0877d9 !important;
}

body .amx-agent-card__contact--whatsapp {
    color: #0f766e !important;
}

body .amx-company-card__icon,
body .amx-agent-card__icon {
    flex: 0 0 36px !important;
    padding: 0 !important;
    width: 36px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__trustline,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__trustline,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__meta,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__chips,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__chips,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__social,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__social-wrap,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__contacts,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__team {
    display: none !important;
}

body.single-estate_agent .amx-agent-profile,
body.single-estate_agency .amx-single-professional-page,
body.single-estate_developer .amx-single-professional-page {
    background: #f6f7f9;
}

body.single-estate_agent .amx-agent-profile {
    margin: 0 auto;
    max-width: 1180px;
    padding: 0 15px 30px;
}

body.single-estate_agent .amx-agent-profile-hero,
body .amx-public-profile-header .amx-public-profile-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    box-shadow: 0 10px 28px rgba(18, 31, 52, 0.055) !important;
    overflow: hidden !important;
    padding: 0 !important;
}

body.single-estate_agent .amx-agent-profile-hero::before,
body .amx-public-profile-header .amx-public-profile-card::before {
    display: none !important;
}

body.single-estate_agent .amx-agent-profile-hero {
    align-items: stretch !important;
    display: grid !important;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) !important;
    margin: 0 0 24px !important;
}

body.single-estate_agent .amx-agent-profile-hero__media {
    max-width: none !important;
    min-height: 330px !important;
    padding: 0 !important;
    position: relative !important;
    width: 100% !important;
}

body.single-estate_agent .amx-agent-profile-hero__media .agent-listing-img-wrapper,
body.single-estate_agent .amx-agent-profile-hero__media .agentpict {
    border-radius: 0 !important;
    box-shadow: none !important;
    height: 100% !important;
    min-height: 330px !important;
    width: 100% !important;
}

body.single-estate_agent .amx-agent-profile-hero__media .agentpict {
    background-position: center top !important;
    background-size: cover !important;
}

body.single-estate_agent .amx-agent-profile-hero__badge,
body .amx-public-profile-header .amx-public-profile-verified {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(17, 24, 39, 0.12) !important;
    border-radius: 5px !important;
    bottom: 16px !important;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.12) !important;
    color: #0f766e !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    left: 16px !important;
    margin: 0 !important;
    min-height: 34px !important;
    min-width: 0 !important;
    padding: 9px 11px !important;
    position: absolute !important;
    right: auto !important;
    top: auto !important;
    white-space: nowrap !important;
}

body.single-estate_agent .amx-agent-profile-hero__content {
    padding: 32px !important;
}

body.single-estate_agent .amx-agent-profile-hero h3,
body .amx-public-profile-header .agency_title {
    color: #171d26 !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.12 !important;
    margin: 0 0 10px !important;
}

body.single-estate_agent .amx-agent-profile-hero .agent_position,
body .amx-public-profile-tagline {
    color: #5d6776 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

body.single-estate_agent .amx-agent-profile-hero__stats,
body .amx-public-profile-stats {
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin: 18px 0 !important;
}

body.single-estate_agent .amx-agent-profile-hero__stat,
body .amx-public-profile-stat {
    background: #f8fafc !important;
    border: 1px solid #e4e9f0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    min-height: 76px !important;
    padding: 12px !important;
}

body.single-estate_agent .amx-agent-profile-main {
    align-items: start !important;
    display: grid !important;
    gap: 24px !important;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr) !important;
}

body.single-estate_agent .amx-agent-profile-about,
body.single-estate_agent .amx-agent-profile-contact-panel,
body.single-estate_agency .amx-profile-native-panel,
body.single-estate_developer .amx-profile-native-panel,
body .amx-profile-team-card,
body .amx-profile-project-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 22px rgba(18, 31, 52, 0.045) !important;
}

body .amx-public-profile-header {
    background: transparent !important;
    padding: 0 !important;
}

body .amx-public-profile-header .amx-public-profile-grid {
    align-items: stretch !important;
    display: grid !important;
    gap: 0 !important;
    grid-template-columns: minmax(280px, 390px) minmax(0, 1fr) !important;
}

body .amx-public-profile-header .amx-public-profile-media {
    align-items: stretch !important;
    display: block !important;
    min-height: 330px !important;
    padding: 0 !important;
    position: relative !important;
}

body .amx-public-profile-header .amx-public-profile-media a {
    aspect-ratio: auto !important;
    background: #eef2f6 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: 100% !important;
    min-height: 330px !important;
    width: 100% !important;
}

body .amx-public-profile-header .amx-public-profile-media img {
    border-radius: 0 !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    width: 100% !important;
}

body .amx-public-profile-header .amx-public-profile-content {
    align-content: center !important;
    display: grid !important;
    gap: 18px 28px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 32px !important;
}

body .amx-public-profile-header .amx-public-profile-content > .col-md-12,
body .amx-public-profile-header .amx-public-profile-content > .amx-public-profile-actions {
    grid-column: 1 / -1 !important;
}

body .amx-public-profile-header .amx-public-profile-content > .agency_details,
body .amx-public-profile-header .amx-public-profile-content > .amx-public-profile-details {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: auto !important;
}

body .amx-public-profile-details {
    grid-template-columns: 1fr !important;
}

body .amx-public-profile-details .agency_detail {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    min-height: 0 !important;
    padding: 4px 0 !important;
}

body .amx-public-profile-actions .wpresidence_button,
body .amx-public-profile-actions .agency_contact_but,
body .amx-public-profile-actions .developer_contact_button,
body .amx-public-profile-action-link,
body .amx-agent-profile-contact-panel__quick a {
    border-radius: 5px !important;
}

@media (max-width: 1180px) {
    body .amx-professional-directory-results .amx-directory-card {
        min-height: 270px !important;
    }

    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media,
    body .amx-professional-directory-results .amx-directory-card .agency_unit_img {
        flex-basis: 150px !important;
        max-width: 150px !important;
        width: 150px !important;
    }
}

@media (max-width: 991px) {
    body .amx-professional-directory-hero {
        grid-template-columns: 1fr !important;
    }

    body .amx-professional-directory-hero__stats {
        justify-content: flex-start !important;
        max-width: none !important;
    }

    body .amx-professional-directory-results .wpresidence_agent_unit_wrapper,
    body .amx-professional-directory-results .amx-professional-directory-company {
        flex-basis: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    body.single-estate_agent .amx-agent-profile-hero,
    body .amx-public-profile-header .amx-public-profile-grid,
    body .amx-public-profile-header .amx-public-profile-content,
    body.single-estate_agent .amx-agent-profile-main {
        grid-template-columns: 1fr !important;
    }

    body.single-estate_agent .amx-agent-profile-hero__media,
    body.single-estate_agent .amx-agent-profile-hero__media .agent-listing-img-wrapper,
    body.single-estate_agent .amx-agent-profile-hero__media .agentpict,
    body .amx-public-profile-header .amx-public-profile-media,
    body .amx-public-profile-header .amx-public-profile-media a {
        min-height: 300px !important;
    }
}

@media (max-width: 767px) {
    body .amx-professional-directory-tabs {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body .amx-professional-directory-search__top,
    body .amx-professional-directory-search__filters {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    body .amx-professional-directory-results .amx-directory-card {
        flex-direction: column !important;
        min-height: 0 !important;
    }

    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media,
    body .amx-professional-directory-results .amx-directory-card .agency_unit_img {
        aspect-ratio: 4 / 3 !important;
        border-right: 0 !important;
        flex-basis: auto !important;
        max-width: 100% !important;
        min-height: 0 !important;
        width: 100% !important;
    }

    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a,
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media img,
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__image,
    body .amx-professional-directory-results .amx-directory-card .agency_unit_img img {
        min-height: 0 !important;
    }

    body.single-estate_agent .amx-agent-profile-hero__content,
    body .amx-public-profile-header .amx-public-profile-content {
        padding: 24px !important;
    }

    body.single-estate_agent .amx-agent-profile-hero__stats,
    body .amx-public-profile-stats {
        grid-template-columns: 1fr !important;
    }
}

/* Elementor full-width widget normalization for public professional pages. */
body .amx-elementor-full-widget {
    box-sizing: border-box !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    overflow-x: clip !important;
    padding-left: clamp(16px, 4vw, 64px) !important;
    padding-right: clamp(16px, 4vw, 64px) !important;
    width: 100vw !important;
}

body.single-estate_agent .header_media,
body.single-estate_agency .header_media,
body.single-estate_developer .header_media,
body.single-estate_agent .breadcrumb_container,
body.single-estate_agency .breadcrumb_container,
body.single-estate_developer .breadcrumb_container,
body .amx-elementor-full-widget > .breadcrumb_container,
body .amx-professional-directory-page .breadcrumb_container,
body .amx-single-professional-page .breadcrumb_container {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
}

body .amx-elementor-full-widget > .breadcrumb_container,
body .amx-elementor-full-widget > .wpestate_column_content,
body .amx-elementor-full-widget > .col-lg-12,
body .amx-elementor-full-widget > .col-md-12 {
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}

body .amx-professional-directory-page.amx-elementor-full-widget > .wpestate_column_content {
    max-width: none !important;
}

body.single-estate_agent .amx-single-professional-page.amx-elementor-full-widget,
body.single-estate_agency .amx-single-professional-page.amx-elementor-full-widget,
body.single-estate_developer .amx-single-professional-page.amx-elementor-full-widget {
    align-items: stretch !important;
    padding-top: 22px !important;
}

body.single-estate_agent .amx-single-professional-page.amx-elementor-full-widget .amx-agent-profile,
body.single-estate_agency .amx-single-professional-page.amx-elementor-full-widget .amx-public-profile-header,
body.single-estate_developer .amx-single-professional-page.amx-elementor-full-widget .amx-public-profile-header,
body.single-estate_agency .amx-single-professional-page.amx-elementor-full-widget .amx-profile-section,
body.single-estate_developer .amx-single-professional-page.amx-elementor-full-widget .amx-profile-section {
    max-width: none !important;
    width: 100% !important;
}

body .amx-professional-directory-hero,
body .amx-professional-directory-tabs,
body .amx-professional-directory-search--advanced,
body .amx-professional-directory-results,
body.single-estate_agent .amx-agent-profile,
body.single-estate_agent .amx-agent-profile-main,
body.single-estate_agency .amx-profile-native-panel,
body.single-estate_developer .amx-profile-native-panel {
    max-width: none !important;
    width: 100% !important;
}

body.single-estate_agent .amx-agent-profile {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (max-width: 767px) {
    body .amx-elementor-full-widget {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Parent WPResidence profile layout restored for public professional pages. */
body.single-estate_agent .amx-parent-profile-card--agent {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 24px rgba(18, 31, 52, 0.045) !important;
    margin: 0 0 24px !important;
    padding: 24px !important;
}

body.single-estate_agent .amx-parent-profile-card--agent .agentpic-wrapper {
    flex: 0 0 360px !important;
    max-width: 360px !important;
    padding: 0 !important;
}

body.single-estate_agent .amx-parent-profile-card--agent .agent-listing-img-wrapper {
    aspect-ratio: 4 / 3 !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    height: auto !important;
    max-width: none !important;
    min-height: 300px !important;
    overflow: hidden !important;
    width: 100% !important;
}

body.single-estate_agent .amx-parent-profile-card--agent .agentpict {
    background-position: center top !important;
    background-size: cover !important;
    border-radius: 0 !important;
    height: 100% !important;
    min-height: 300px !important;
    width: 100% !important;
}

body.single-estate_agent .amx-parent-profile-card--agent .agent_details {
    padding: 4px 10px 4px 28px !important;
}

body.single-estate_agent .amx-parent-profile-detail-list {
    border-top: 1px solid #eef2f6 !important;
    display: grid !important;
    gap: 7px 18px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: 18px 0 14px !important;
    padding-top: 15px !important;
}

body.single-estate_agent .amx-parent-profile-detail-list .agent_detail {
    color: #555b64 !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    min-width: 0 !important;
}

body.single-estate_agent .amx-parent-profile-detail-list .agent_detail strong {
    color: #202124 !important;
}

body.single-estate_agent .amx-parent-profile-sections {
    gap: 24px !important;
    margin-bottom: 30px !important;
}

body.single-estate_agent .amx-parent-profile-sections .wpestate_agent_details_container,
body.single-estate_agency .agency_content_wrapper,
body.single-estate_developer .developer_contact_wrapper {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 22px rgba(18, 31, 52, 0.04) !important;
}

body.single-estate_agency .amx-parent-profile-card,
body.single-estate_developer .amx-parent-profile-card {
    margin-bottom: 28px !important;
}

body.single-estate_agency .amx-parent-profile-card .header_agency_container,
body.single-estate_developer .amx-parent-profile-card .header_agency_container {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.single-estate_agency .amx-parent-profile-card .header_agency_container > .row,
body.single-estate_developer .amx-parent-profile-card .header_agency_container > .row {
    align-items: center !important;
}

body.single-estate_agency .amx-parent-profile-card .header_agency_container .col-md-4 img,
body.single-estate_developer .amx-parent-profile-card .header_agency_container .col-md-4 img {
    aspect-ratio: 4 / 3 !important;
    background: #eef2f6 !important;
    border-radius: 6px !important;
    display: block !important;
    height: auto !important;
    max-height: 390px !important;
    object-fit: contain !important;
    padding: 0 !important;
    width: 100% !important;
}

body.single-estate_agency .amx-parent-profile-card .agency_title,
body.single-estate_developer .amx-parent-profile-card .agency_title {
    color: #202124 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
    margin: 0 0 28px !important;
}

body.single-estate_agency .amx-parent-profile-card .agency_details,
body.single-estate_developer .amx-parent-profile-card .agency_details {
    color: #555b64 !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
}

body.single-estate_agency .amx-parent-profile-card .agency_detail,
body.single-estate_developer .amx-parent-profile-card .agency_detail {
    margin-bottom: 7px !important;
}

body.single-estate_agency .amx-parent-profile-card .agency_contact_but,
body.single-estate_developer .amx-parent-profile-card .developer_contact_button {
    margin-top: 26px !important;
}

body.single-estate_agent .amx-parent-profile-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 16px !important;
}

body.single-estate_agent .amx-parent-profile-tags span {
    background: #eff6ff !important;
    border: 1px solid #d8e7ff !important;
    border-radius: 999px !important;
    color: #2155d9 !important;
    display: inline-flex !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    padding: 8px 12px !important;
}

body.single-estate_agent .amx-agent-specialties-service {
    margin-top: 28px !important;
}

body.single-estate_agent .amx-agent-specialties-service__terms {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 0 0 22px !important;
}

body.single-estate_agent .amx-agent-specialties-service__terms a,
body.single-estate_agent .amx-agent-specialties-service__terms span {
    background: #eff6ff !important;
    border: 1px solid #d8e7ff !important;
    border-radius: 999px !important;
    color: #2155d9 !important;
    display: inline-flex !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    padding: 11px 18px !important;
}

body.single-estate_agent .amx-agent-specialties-service__details {
    display: grid !important;
    gap: 28px 46px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin-top: 18px !important;
}

body.single-estate_agent .amx-agent-specialties-service__detail strong {
    color: #202124 !important;
    display: block !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin-bottom: 7px !important;
}

body.single-estate_agent .amx-agent-specialties-service__detail span {
    color: #555b64 !important;
    display: block !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
}

.amx-dashboard-profile-details {
    margin-top: 18px !important;
}

.amx-dashboard-hours {
    margin-top: 8px !important;
}

.amx-dashboard-hours > label,
.amx-dashboard-hours__note label {
    display: block !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

.amx-dashboard-hours__value {
    display: none !important;
}

.amx-dashboard-hours__tools {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 0 0 12px !important;
}

.amx-dashboard-hours__open24 {
    align-items: flex-start !important;
    background: #f6f9ff !important;
    border: 1px solid #dbe7ff !important;
    border-radius: 8px !important;
    display: flex !important;
    gap: 10px !important;
    margin: 0 0 12px !important;
    padding: 12px 14px !important;
}

.amx-dashboard-hours__open24 input {
    margin-top: 3px !important;
}

.amx-dashboard-hours__open24 span {
    display: grid !important;
    gap: 3px !important;
}

.amx-dashboard-hours__open24 strong {
    color: #111827 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
}

.amx-dashboard-hours__open24 small {
    color: #647084 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.amx-dashboard-hours__tools .wpresidence_button {
    margin: 0 !important;
    min-height: 38px !important;
    padding: 8px 14px !important;
}

.amx-dashboard-hours__head,
.amx-dashboard-hours__row {
    align-items: center !important;
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: minmax(145px, 1fr) minmax(120px, 160px) minmax(120px, 160px) !important;
}

.amx-dashboard-hours__head {
    color: #5f6f86 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    margin-bottom: 7px !important;
    text-transform: uppercase !important;
}

.amx-dashboard-hours__row {
    border-top: 1px solid #eef2f6 !important;
    padding: 9px 0 !important;
}

.amx-dashboard-hours__day {
    align-items: center !important;
    display: inline-flex !important;
    gap: 8px !important;
    margin: 0 !important;
}

.amx-dashboard-hours__day input {
    margin: 0 !important;
}

.amx-dashboard-hours__row .form-control {
    height: 42px !important;
    margin-bottom: 0 !important;
}

.amx-dashboard-hours__note {
    margin-top: 12px !important;
}

.amx-dashboard-hours.is-open-24 .amx-dashboard-hours__head,
.amx-dashboard-hours.is-open-24 .amx-dashboard-hours__rows {
    opacity: 0.45 !important;
}

@media (max-width: 991px) {
    body.single-estate_agent .amx-parent-profile-card--agent .agentpic-wrapper {
        flex-basis: auto !important;
        max-width: none !important;
        width: 100% !important;
    }

    body.single-estate_agent .amx-parent-profile-card--agent .agent_details {
        padding: 24px 0 0 !important;
    }

    body.single-estate_agent .amx-agent-specialties-service__details {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 575px) {
    body.single-estate_agent .amx-parent-profile-detail-list {
        grid-template-columns: 1fr !important;
    }

    body.single-estate_agent .amx-agent-specialties-service__details {
        grid-template-columns: 1fr !important;
    }

    .amx-dashboard-hours__head {
        display: none !important;
    }

    .amx-dashboard-hours__row {
        grid-template-columns: 1fr !important;
    }
}

/* Phase 1: Professional Network Marketplace card refresh. */
:root {
    --amx-market-ink: #111827;
    --amx-market-muted: #667085;
    --amx-market-soft: #f6f8fb;
    --amx-market-line: #dbe4ef;
    --amx-market-blue: #0a5dfe;
    --amx-market-blue-soft: #eaf2ff;
    --amx-market-green: #0f766e;
    --amx-market-green-soft: #e9f7f3;
    --amx-market-violet: #6941c6;
    --amx-market-violet-soft: #f2edff;
    --amx-market-gold: #b7791f;
    --amx-market-gold-soft: #fff7e6;
}

body .amx-professional-directory-page {
    background: #f4f6f9 !important;
}

body .amx-professional-directory-hero,
body .amx-professional-directory-tabs,
body .amx-professional-directory-search--advanced,
body .amx-professional-directory-results {
    max-width: 1320px !important;
}

body .amx-professional-directory-results {
    row-gap: 26px !important;
}

body .amx-professional-directory-results .amx-professional-directory-status {
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid var(--amx-market-line) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 26px rgba(16, 24, 40, 0.04) !important;
    display: flex !important;
    gap: 8px !important;
    margin: 0 12px 2px !important;
    min-height: 46px !important;
    padding: 11px 14px !important;
}

body .amx-professional-directory-results .wpresidence_agent_unit_wrapper,
body .amx-professional-directory-results .amx-professional-directory-company {
    padding-left: 13px !important;
    padding-right: 13px !important;
}

body .amx-professional-directory-results .amx-directory-card {
    background: #ffffff !important;
    border: 1px solid #d8e1ed !important;
    border-radius: 8px !important;
    box-shadow: 0 16px 38px rgba(16, 24, 40, 0.07) !important;
    color: var(--amx-market-ink) !important;
    display: flex !important;
    flex-direction: row !important;
    height: 100% !important;
    isolation: isolate !important;
    min-height: 370px !important;
    overflow: hidden !important;
    position: relative !important;
    transform: translateY(0) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

body .amx-professional-directory-results .amx-directory-card::before {
    background: var(--amx-market-blue) !important;
    content: "" !important;
    display: block !important;
    height: 100% !important;
    left: 0 !important;
    position: absolute !important;
    top: 0 !important;
    width: 4px !important;
    z-index: 2 !important;
}

body .amx-professional-directory-results .amx-directory-card--agency::before {
    background: var(--amx-market-green) !important;
}

body .amx-professional-directory-results .amx-directory-card--developer::before {
    background: var(--amx-market-violet) !important;
}

body .amx-professional-directory-results .amx-directory-card:hover,
body .amx-professional-directory-results .amx-directory-card:focus-visible {
    border-color: #b9c8d9 !important;
    box-shadow: 0 24px 54px rgba(16, 24, 40, 0.11) !important;
    transform: translateY(-3px) !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img {
    background: #eef3f8 !important;
    border-right: 1px solid #e3eaf3 !important;
    flex: 0 0 188px !important;
    max-width: 188px !important;
    min-height: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    width: 188px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media::after,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img::after {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.32)) !important;
    bottom: 0 !important;
    content: "" !important;
    height: 42% !important;
    left: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    right: 0 !important;
    z-index: 1 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media img,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__image,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img img {
    height: 100% !important;
    min-height: 370px !important;
    width: 100% !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media img,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__image {
    object-fit: cover !important;
    object-position: center top !important;
    transform: scale(1) !important;
    transition: transform 0.28s ease !important;
}

body .amx-professional-directory-results .amx-directory-card:hover .amx-agent-card__media img,
body .amx-professional-directory-results .amx-directory-card:hover .amx-agent-card__image {
    transform: scale(1.035) !important;
}

body .amx-professional-directory-results .amx-company-card .agency_unit_img {
    background: #ffffff !important;
}

body .amx-professional-directory-results .amx-company-card .agency_unit_img img {
    background: #ffffff !important;
    box-sizing: border-box !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 22px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__badge,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__network-badge {
    align-items: center !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    border-radius: 8px !important;
    bottom: 14px !important;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18) !important;
    color: var(--amx-market-green) !important;
    display: inline-flex !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    gap: 7px !important;
    left: 14px !important;
    letter-spacing: 0 !important;
    max-width: calc(100% - 28px) !important;
    min-height: 32px !important;
    padding: 8px 10px !important;
    position: absolute !important;
    text-transform: none !important;
    white-space: nowrap !important;
    z-index: 3 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__body,
body .amx-professional-directory-results .amx-directory-card .agency_unit_wrapper {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-width: 0 !important;
    padding: 21px 22px 18px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__topline,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__topline {
    align-items: flex-start !important;
    display: flex !important;
    gap: 12px !important;
    justify-content: space-between !important;
    margin: 0 0 11px !important;
    order: 1 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__eyebrow,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__eyebrow {
    align-items: center !important;
    background: var(--amx-market-blue-soft) !important;
    border: 1px solid #cfe0ff !important;
    border-radius: 999px !important;
    color: #0849c8 !important;
    display: inline-flex !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    min-height: 27px !important;
    padding: 7px 10px !important;
    text-transform: none !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-company-card__eyebrow--agency {
    background: var(--amx-market-green-soft) !important;
    border-color: #bee7dc !important;
    color: var(--amx-market-green) !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-company-card__eyebrow--developer {
    background: var(--amx-market-violet-soft) !important;
    border-color: #ded4ff !important;
    color: var(--amx-market-violet) !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__rating,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__rating {
    align-items: flex-end !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--amx-market-muted) !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    gap: 1px !important;
    line-height: 1.1 !important;
    padding: 0 !important;
    text-align: right !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__rating strong,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__rating strong {
    color: var(--amx-market-ink) !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__rating i,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__rating i {
    color: var(--amx-market-gold) !important;
    font-size: 12px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__rating span,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__rating span {
    color: #8792a2 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__identity,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__identity {
    margin: 0 0 8px !important;
    order: 2 !important;
}

body .amx-professional-directory-results .amx-directory-card h4 {
    color: var(--amx-market-ink) !important;
    font-size: 21px !important;
    font-weight: 900 !important;
    line-height: 1.18 !important;
    margin: 0 0 5px !important;
}

body .amx-professional-directory-results .amx-directory-card h4 a {
    color: inherit !important;
    text-decoration: none !important;
}

body .amx-professional-directory-results .amx-directory-card .agent_position,
body .amx-professional-directory-results .amx-directory-card .agent_address {
    color: var(--amx-market-muted) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization--agent-card,
body .amx-professional-directory-results .amx-directory-card .amx-public-organization--company-card {
    align-items: center !important;
    background: #f8fafc !important;
    border: 1px solid #edf1f6 !important;
    border-radius: 8px !important;
    display: flex !important;
    gap: 10px !important;
    margin: 2px 0 12px !important;
    order: 3 !important;
    padding: 9px 10px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization__mark {
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 7px !important;
    display: inline-flex !important;
    flex: 0 0 34px !important;
    height: 34px !important;
    justify-content: center !important;
    overflow: hidden !important;
    width: 34px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization__name {
    color: #263242 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization__eyebrow,
body .amx-professional-directory-results .amx-directory-card .amx-public-organization__meta {
    color: #778397 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__summary,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__excerpt {
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    color: #4b5565 !important;
    display: -webkit-box !important;
    font-size: 13px !important;
    line-height: 1.58 !important;
    margin: 2px 0 12px !important;
    order: 4 !important;
    overflow: hidden !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__meta {
    align-items: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin: 0 0 10px !important;
    order: 5 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__meta span {
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #edf1f6 !important;
    border-radius: 999px !important;
    color: #4b5565 !important;
    display: inline-flex !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    gap: 6px !important;
    min-height: 26px !important;
    padding: 6px 9px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__chips,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__chips {
    align-items: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin: 0 0 12px !important;
    order: 6 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__chips span,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__chips a,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__chips span,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__chips a {
    background: #f7f9fc !important;
    border: 1px solid #e5ebf3 !important;
    border-radius: 999px !important;
    color: #344054 !important;
    display: inline-flex !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    min-height: 26px !important;
    padding: 7px 10px !important;
    text-decoration: none !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats {
    border: 0 !important;
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: 0 0 12px !important;
    order: 7 !important;
    padding: 0 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span:nth-child(n+3),
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span:nth-child(n+3) {
    display: flex !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span {
    align-items: center !important;
    background: #fbfcfe !important;
    border: 1px solid #edf1f6 !important;
    border-radius: 8px !important;
    display: flex !important;
    gap: 9px !important;
    min-height: 54px !important;
    min-width: 0 !important;
    padding: 9px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span > i,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span > i {
    align-items: center !important;
    background: var(--amx-market-blue-soft) !important;
    border-radius: 7px !important;
    color: var(--amx-market-blue) !important;
    display: inline-flex !important;
    flex: 0 0 30px !important;
    font-size: 13px !important;
    height: 30px !important;
    justify-content: center !important;
    width: 30px !important;
}

body .amx-professional-directory-results .amx-directory-card--agency .amx-company-card__stats > span > i {
    background: var(--amx-market-green-soft) !important;
    color: var(--amx-market-green) !important;
}

body .amx-professional-directory-results .amx-directory-card--developer .amx-company-card__stats > span > i {
    background: var(--amx-market-violet-soft) !important;
    color: var(--amx-market-violet) !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats strong,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats strong {
    color: var(--amx-market-ink) !important;
    display: block !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats em,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats em {
    color: #8792a2 !important;
    display: block !important;
    font-size: 10px !important;
    font-style: normal !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__trustline,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__trustline {
    align-items: center !important;
    background: #f8fafc !important;
    border: 1px solid #edf1f6 !important;
    border-radius: 8px !important;
    color: #475467 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin: 0 0 12px !important;
    order: 8 !important;
    padding: 9px 10px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__trustline strong,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__trustline strong {
    color: var(--amx-market-green) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    margin-right: 2px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__trustline span,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__trustline span {
    color: #667085 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-company-card__team {
    align-items: center !important;
    border: 0 !important;
    display: flex !important;
    gap: 0 !important;
    margin: 0 0 12px !important;
    order: 9 !important;
    padding: 0 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-company-card__team .sub_agent {
    border: 2px solid #ffffff !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.12) !important;
    flex: 0 0 34px !important;
    height: 34px !important;
    margin-right: -8px !important;
    overflow: hidden !important;
    width: 34px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-company-card__team img {
    height: 100% !important;
    object-fit: cover !important;
    padding: 0 !important;
    width: 100% !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__actions,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__actions {
    align-items: center !important;
    border-top: 1px solid #edf1f6 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: auto !important;
    order: 10 !important;
    padding-top: 13px !important;
}

body .amx-professional-directory-results .amx-agent-card__primary,
body .amx-professional-directory-results .amx-company-card__primary,
body .amx-professional-directory-results .amx-professional-compare-button,
body .amx-professional-directory-results .amx-agent-card__contact,
body .amx-professional-directory-results .amx-agent-card__icon,
body .amx-professional-directory-results .amx-company-card__icon {
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    min-height: 38px !important;
}

body .amx-professional-directory-results .amx-agent-card__primary,
body .amx-professional-directory-results .amx-company-card__primary {
    background: var(--amx-market-ink) !important;
    border-color: var(--amx-market-ink) !important;
    color: #ffffff !important;
    flex: 1 1 auto !important;
}

body .amx-professional-directory-results .amx-agent-card__primary:hover,
body .amx-professional-directory-results .amx-company-card__primary:hover {
    background: var(--amx-market-blue) !important;
    border-color: var(--amx-market-blue) !important;
}

body .amx-professional-directory-results .amx-directory-card--agency .amx-company-card__primary:hover {
    background: var(--amx-market-green) !important;
    border-color: var(--amx-market-green) !important;
}

body .amx-professional-directory-results .amx-directory-card--developer .amx-company-card__primary:hover {
    background: var(--amx-market-violet) !important;
    border-color: var(--amx-market-violet) !important;
}

body .amx-professional-directory-results .amx-professional-compare-button,
body .amx-professional-directory-results .amx-agent-card__contact,
body .amx-professional-directory-results .amx-agent-card__icon,
body .amx-professional-directory-results .amx-company-card__icon {
    background: #ffffff !important;
    border: 1px solid #d8e1ed !important;
    color: #344054 !important;
}

body .amx-professional-directory-results .amx-professional-compare-button:hover,
body .amx-professional-directory-results .amx-agent-card__contact:hover,
body .amx-professional-directory-results .amx-agent-card__icon:hover,
body .amx-professional-directory-results .amx-company-card__icon:hover {
    background: #f8fafc !important;
    border-color: #b9c8d9 !important;
    color: var(--amx-market-blue) !important;
}

body .amx-professional-directory-results .amx-agent-card__contact--whatsapp {
    color: var(--amx-market-green) !important;
}

body .amx-professional-directory-results .amx-agent-card__icon,
body .amx-professional-directory-results .amx-company-card__icon {
    flex: 0 0 38px !important;
    padding: 0 !important;
    width: 38px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__social,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__social-wrap,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__contacts {
    display: none !important;
}

@media (max-width: 1280px) {
    body .amx-professional-directory-results .amx-directory-card {
        min-height: 392px !important;
    }

    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media,
    body .amx-professional-directory-results .amx-directory-card .agency_unit_img {
        flex-basis: 172px !important;
        max-width: 172px !important;
        width: 172px !important;
    }
}

@media (max-width: 991px) {
    body .amx-professional-directory-results .amx-directory-card {
        min-height: 350px !important;
    }

    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media,
    body .amx-professional-directory-results .amx-directory-card .agency_unit_img {
        flex-basis: 190px !important;
        max-width: 190px !important;
        width: 190px !important;
    }
}

@media (max-width: 767px) {
    body .amx-professional-directory-results {
        row-gap: 18px !important;
    }

    body .amx-professional-directory-results .amx-professional-directory-status {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 2px !important;
        margin-left: 12px !important;
        margin-right: 12px !important;
    }

    body .amx-professional-directory-results .amx-directory-card {
        flex-direction: column !important;
        min-height: 0 !important;
    }

    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media,
    body .amx-professional-directory-results .amx-directory-card .agency_unit_img {
        aspect-ratio: 16 / 10 !important;
        border-right: 0 !important;
        flex: 0 0 auto !important;
        max-width: 100% !important;
        min-height: 0 !important;
        width: 100% !important;
    }

    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a,
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media img,
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__image,
    body .amx-professional-directory-results .amx-directory-card .agency_unit_img img {
        min-height: 0 !important;
    }

    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__body,
    body .amx-professional-directory-results .amx-directory-card .agency_unit_wrapper {
        padding: 18px !important;
    }

    body .amx-professional-directory-results .amx-directory-card h4 {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats,
    body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats {
        grid-template-columns: 1fr !important;
    }

    body .amx-professional-directory-results .amx-agent-card__primary,
    body .amx-professional-directory-results .amx-company-card__primary,
    body .amx-professional-directory-results .amx-professional-compare-button,
    body .amx-professional-directory-results .amx-agent-card__contact {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
}

/* Phase 7: Professional marketplace preview cards. */
body .amx-professional-directory-results .amx-directory-card {
    border-color: #dce5f0 !important;
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.065) !important;
    min-height: 326px !important;
}

body .amx-professional-directory-results .amx-directory-card::before {
    display: none !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img {
    border-right: 0 !important;
    flex: 0 0 178px !important;
    max-width: 178px !important;
    width: 178px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media::before,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img::before {
    background: linear-gradient(135deg, rgba(10, 93, 254, 0.28), rgba(10, 93, 254, 0)) !important;
    bottom: 0 !important;
    clip-path: polygon(0 0, 76% 0, 100% 100%, 0% 100%) !important;
    content: "" !important;
    left: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    top: 0 !important;
    width: 72% !important;
    z-index: 2 !important;
}

body .amx-professional-directory-results .amx-directory-card--agency .agency_unit_img::before {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.28), rgba(15, 118, 110, 0)) !important;
}

body .amx-professional-directory-results .amx-directory-card--developer .agency_unit_img::before {
    background: linear-gradient(135deg, rgba(105, 65, 198, 0.28), rgba(105, 65, 198, 0)) !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media img,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__image,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img img {
    min-height: 326px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__body,
body .amx-professional-directory-results .amx-directory-card .agency_unit_wrapper {
    padding: 20px 20px 16px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization--agent-card,
body .amx-professional-directory-results .amx-directory-card .amx-public-organization--company-card {
    margin: 0 0 10px !important;
    min-height: 42px !important;
    padding: 8px 9px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization__mark {
    flex-basis: 30px !important;
    height: 30px !important;
    width: 30px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization__meta {
    display: none !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__summary,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__excerpt {
    -webkit-line-clamp: 1 !important;
    margin-bottom: 10px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__chips,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__chips {
    margin-bottom: 10px !important;
    max-height: 28px !important;
    overflow: hidden !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats {
    gap: 8px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin-bottom: 10px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span {
    min-height: 58px !important;
    padding: 9px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__trustline,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__trustline {
    margin-bottom: 10px !important;
    max-height: 38px !important;
    overflow: hidden !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__actions,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__actions {
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding-top: 12px !important;
}

body .amx-professional-directory-results .amx-agent-card__contact,
body .amx-professional-directory-results .amx-agent-card__icon,
body .amx-professional-directory-results .amx-company-card__icon {
    align-items: center !important;
    display: inline-flex !important;
    flex: 0 0 38px !important;
    justify-content: center !important;
    padding: 0 !important;
    width: 38px !important;
}

body .amx-professional-directory-results .amx-agent-card__contact span {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
}

@media (max-width: 1280px) {
    body .amx-professional-directory-results .amx-directory-card {
        min-height: 340px !important;
    }

    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media,
    body .amx-professional-directory-results .amx-directory-card .agency_unit_img {
        flex-basis: 166px !important;
        max-width: 166px !important;
        width: 166px !important;
    }

    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a,
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media img,
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__image,
    body .amx-professional-directory-results .amx-directory-card .agency_unit_img img {
        min-height: 340px !important;
    }
}

@media (max-width: 991px) {
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats,
    body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media::before,
    body .amx-professional-directory-results .amx-directory-card .agency_unit_img::before {
        width: 58% !important;
    }

    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a,
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media img,
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__image,
    body .amx-professional-directory-results .amx-directory-card .agency_unit_img img {
        min-height: 0 !important;
    }
}

@media (max-width: 480px) {
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__actions,
    body .amx-professional-directory-results .amx-directory-card .amx-company-card__actions {
        flex-wrap: wrap !important;
    }
}

/* Phase 8: Tucked media accent and cleaner agent preview. */
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img {
    align-items: center !important;
    background: transparent !important;
    display: flex !important;
    justify-content: center !important;
    isolation: isolate !important;
    overflow: hidden !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media::before,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img::before {
    display: none !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media::after,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img::after {
    display: none !important;
}

body .amx-professional-directory-results .amx-directory-card--agency .agency_unit_img::before {
    display: none !important;
}

body .amx-professional-directory-results .amx-directory-card--developer .agency_unit_img::before {
    display: none !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a {
    background: transparent !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    height: 136px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    width: 136px !important;
    z-index: 2 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media img,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__image,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img img {
    border: 4px solid #ffffff !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    height: 136px !important;
    min-height: 0 !important;
    position: relative !important;
    width: 136px !important;
    z-index: 2 !important;
}

body .amx-professional-directory-results .amx-company-card .agency_unit_img img {
    object-fit: contain !important;
    padding: 12px !important;
}

body .amx-professional-directory-results .amx-agent-card__chips {
    display: none !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization--agent-card,
body .amx-professional-directory-results .amx-directory-card .amx-public-organization--company-card {
    min-height: 74px !important;
    padding: 9px 12px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization__mark {
    border-radius: 12px !important;
    flex: 0 0 56px !important;
    height: 56px !important;
    width: 56px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization__mark img,
body .amx-professional-directory-results .amx-directory-card .amx-public-organization__mark span {
    font-size: 20px !important;
    font-weight: 900 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization__mark img {
    padding: 3px !important;
}

/* Phase 11: balanced affiliation bars across agent, agency, and developer cards. */
body .amx-professional-directory-results .amx-directory-card .amx-public-organization--agent-card,
body .amx-professional-directory-results .amx-directory-card .amx-public-organization--company-card {
    align-items: center !important;
    background: #f9fbfd !important;
    border: 1px solid #e7edf5 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    display: flex !important;
    gap: 9px !important;
    margin: 0 0 10px !important;
    min-height: 50px !important;
    order: 3 !important;
    padding: 7px 10px !important;
    width: 100% !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization__mark {
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #dfe7f1 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    display: inline-flex !important;
    flex: 0 0 34px !important;
    height: 34px !important;
    justify-content: center !important;
    overflow: hidden !important;
    width: 34px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization__mark img {
    display: block !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 4px !important;
    width: 100% !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization__mark span {
    color: #2155d9 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization__body {
    display: block !important;
    min-width: 0 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization__eyebrow {
    color: #7a8494 !important;
    display: block !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.15 !important;
    margin: 0 0 2px !important;
    text-transform: uppercase !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization__name {
    color: #263242 !important;
    display: block !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-decoration: none !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization__meta {
    display: none !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__body,
body .amx-professional-directory-results .amx-directory-card .agency_unit_wrapper {
    display: flex !important;
    flex-direction: column !important;
}

/* Phase 12: clean circular portrait frames only. */
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img {
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media img,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__image,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img img {
    background: transparent !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    display: block !important;
    filter: none !important;
    -webkit-filter: none !important;
    height: 136px !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    outline: 0 !important;
    padding: 0 !important;
    transform: none !important;
    width: 136px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a {
    border: 0 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media img,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__image,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img img {
    border: 4px solid #ffffff !important;
}

body .amx-professional-directory-results .amx-directory-card:hover .amx-agent-card__media img,
body .amx-professional-directory-results .amx-directory-card:hover .amx-agent-card__image,
body .amx-professional-directory-results .amx-directory-card:hover .agency_unit_img img {
    transform: none !important;
}

@media (max-width: 1280px) {
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a,
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media img,
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__image,
    body .amx-professional-directory-results .amx-directory-card .agency_unit_img img {
        height: 128px !important;
        width: 128px !important;
    }
}

@media (max-width: 767px) {
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a,
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media img,
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__image,
    body .amx-professional-directory-results .amx-directory-card .agency_unit_img img {
        height: 136px !important;
        width: 136px !important;
    }
}

/* Phase 2: Professional internal profile refresh. */
body.single-estate_agent,
body.single-estate_agency,
body.single-estate_developer {
    background: #f4f6f9 !important;
}

body.single-estate_agent .amx-single-professional-page,
body.single-estate_agency .amx-single-professional-page,
body.single-estate_developer .amx-single-professional-page {
    background: #f4f6f9 !important;
    padding-bottom: 42px !important;
    padding-top: 22px !important;
}

body .amx-pro-profile {
    color: var(--amx-market-ink) !important;
    margin: 0 auto !important;
    max-width: 1320px !important;
    width: 100% !important;
}

body .amx-pro-profile * {
    box-sizing: border-box !important;
}

body .amx-pro-profile a {
    text-decoration: none !important;
}

body .amx-pro-profile-hero {
    background: #ffffff !important;
    border: 1px solid #d8e1ed !important;
    border-radius: 8px !important;
    box-shadow: 0 22px 54px rgba(16, 24, 40, 0.09) !important;
    display: grid !important;
    gap: 0 !important;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) minmax(290px, 340px) !important;
    margin: 0 0 16px !important;
    min-height: 410px !important;
    overflow: hidden !important;
    position: relative !important;
}

body .amx-pro-profile-hero::before {
    background: var(--amx-market-blue) !important;
    content: "" !important;
    height: 100% !important;
    left: 0 !important;
    position: absolute !important;
    top: 0 !important;
    width: 5px !important;
    z-index: 3 !important;
}

body .amx-pro-profile--agency .amx-pro-profile-hero::before {
    background: var(--amx-market-green) !important;
}

body .amx-pro-profile--developer .amx-pro-profile-hero::before {
    background: var(--amx-market-violet) !important;
}

body .amx-pro-profile-hero__media {
    background: #eef3f8 !important;
    border-right: 1px solid #e3eaf3 !important;
    min-height: 410px !important;
    overflow: hidden !important;
    position: relative !important;
}

body .amx-pro-profile-hero__media::after {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.34)) !important;
    bottom: 0 !important;
    content: "" !important;
    height: 42% !important;
    left: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    right: 0 !important;
    z-index: 1 !important;
}

body .amx-pro-profile-hero__media img {
    display: block !important;
    height: 100% !important;
    min-height: 410px !important;
    object-fit: cover !important;
    object-position: center top !important;
    width: 100% !important;
}

body .amx-pro-profile-hero__media--logo img {
    background: #ffffff !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 34px !important;
}

body .amx-pro-profile-hero__media--photo img {
    background: #eef3f8 !important;
    object-fit: cover !important;
    object-position: center top !important;
    padding: 0 !important;
}

body .amx-pro-profile-hero__media--logo::after {
    display: none !important;
}

/* Phase 14: remove the legacy WPResidence agent header band. */
body.single-estate_agent .wpestate_agent_header2 {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
}

body.single-estate_agent .wpestate_agent_header2_content.wpresidence-content-container-wrapper {
    margin-top: 0 !important;
}

body .amx-pro-profile-hero__badge {
    align-items: center !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    border-radius: 8px !important;
    bottom: 18px !important;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.18) !important;
    color: var(--amx-market-green) !important;
    display: inline-flex !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    gap: 8px !important;
    left: 18px !important;
    line-height: 1 !important;
    max-width: calc(100% - 36px) !important;
    min-height: 36px !important;
    overflow: hidden !important;
    padding: 10px 12px !important;
    position: absolute !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    z-index: 2 !important;
}

body .amx-pro-profile-hero__content {
    align-content: center !important;
    display: grid !important;
    gap: 16px !important;
    min-width: 0 !important;
    padding: 34px !important;
}

body .amx-pro-profile-hero__topline,
body .amx-pro-profile-actions,
body .amx-pro-profile-trust {
    align-items: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
}

body .amx-pro-profile-hero__topline {
    justify-content: space-between !important;
}

body .amx-pro-profile-type {
    align-items: center !important;
    background: var(--amx-market-blue-soft) !important;
    border: 1px solid #cfe0ff !important;
    border-radius: 999px !important;
    color: var(--amx-market-blue) !important;
    display: inline-flex !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    min-height: 30px !important;
    padding: 8px 11px !important;
}

body .amx-pro-profile--agency .amx-pro-profile-type {
    background: var(--amx-market-green-soft) !important;
    border-color: #bee7dc !important;
    color: var(--amx-market-green) !important;
}

body .amx-pro-profile--developer .amx-pro-profile-type {
    background: var(--amx-market-violet-soft) !important;
    border-color: #ded4ff !important;
    color: var(--amx-market-violet) !important;
}

body .amx-pro-profile-rating {
    align-items: flex-end !important;
    color: #8792a2 !important;
    display: inline-flex !important;
    flex-direction: column !important;
    line-height: 1.1 !important;
}

body .amx-pro-profile-rating strong {
    color: var(--amx-market-ink) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

body .amx-pro-profile-rating i {
    color: var(--amx-market-gold) !important;
    font-size: 12px !important;
    margin-left: 4px !important;
}

body .amx-pro-profile-rating small {
    color: #8792a2 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

body .amx-pro-profile-hero h1 {
    color: var(--amx-market-ink) !important;
    font-size: 42px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    line-height: 1.08 !important;
    margin: 0 !important;
    overflow-wrap: anywhere !important;
}

body .amx-pro-profile-headline {
    color: #4b5565 !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    margin: 0 !important;
    max-width: 760px !important;
}

body .amx-pro-profile-hero .amx-public-organization {
    background: #f8fafc !important;
    border: 1px solid #edf1f6 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    margin: 0 !important;
    max-width: 520px !important;
    padding: 10px !important;
}

body .amx-pro-profile-trust {
    background: #fbfcfe !important;
    border: 1px solid #edf1f6 !important;
    border-radius: 8px !important;
    color: #667085 !important;
    padding: 10px 12px !important;
}

body .amx-pro-profile-trust strong {
    color: var(--amx-market-green) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

body .amx-pro-profile-trust span {
    color: #667085 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

body .amx-pro-profile-stats {
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body .amx-pro-profile-stat {
    align-items: center !important;
    background: #fbfcfe !important;
    border: 1px solid #edf1f6 !important;
    border-radius: 8px !important;
    display: flex !important;
    gap: 10px !important;
    min-height: 70px !important;
    min-width: 0 !important;
    padding: 12px !important;
}

body .amx-pro-profile-stat > i {
    align-items: center !important;
    background: var(--amx-market-blue-soft) !important;
    border-radius: 8px !important;
    color: var(--amx-market-blue) !important;
    display: inline-flex !important;
    flex: 0 0 36px !important;
    height: 36px !important;
    justify-content: center !important;
    width: 36px !important;
}

body .amx-pro-profile--agency .amx-pro-profile-stat > i {
    background: var(--amx-market-green-soft) !important;
    color: var(--amx-market-green) !important;
}

body .amx-pro-profile--developer .amx-pro-profile-stat > i {
    background: var(--amx-market-violet-soft) !important;
    color: var(--amx-market-violet) !important;
}

body .amx-pro-profile-stat strong {
    color: var(--amx-market-ink) !important;
    display: block !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body .amx-pro-profile-stat em {
    color: #8792a2 !important;
    display: block !important;
    font-size: 10px !important;
    font-style: normal !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-transform: uppercase !important;
}

body .amx-pro-profile-actions {
    border-top: 1px solid #edf1f6 !important;
    margin-top: 2px !important;
    padding-top: 16px !important;
}

body .amx-pro-profile-actions a {
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #d8e1ed !important;
    border-radius: 8px !important;
    color: #344054 !important;
    display: inline-flex !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    gap: 8px !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 10px 14px !important;
}

body .amx-pro-profile-actions .amx-pro-profile-primary {
    background: var(--amx-market-ink) !important;
    border-color: var(--amx-market-ink) !important;
    color: #ffffff !important;
}

body .amx-pro-profile-actions a:hover {
    border-color: #b9c8d9 !important;
    color: var(--amx-market-blue) !important;
}

body .amx-pro-profile-actions .amx-pro-profile-primary:hover {
    background: var(--amx-market-blue) !important;
    border-color: var(--amx-market-blue) !important;
    color: #ffffff !important;
}

body .amx-pro-profile--agency .amx-pro-profile-actions .amx-pro-profile-primary:hover {
    background: var(--amx-market-green) !important;
    border-color: var(--amx-market-green) !important;
}

body .amx-pro-profile--developer .amx-pro-profile-actions .amx-pro-profile-primary:hover {
    background: var(--amx-market-violet) !important;
    border-color: var(--amx-market-violet) !important;
}

body .amx-pro-profile-hero__contact {
    align-content: center !important;
    background: #fbfcfe !important;
    border-left: 1px solid #edf1f6 !important;
    display: grid !important;
    gap: 10px !important;
    padding: 28px !important;
}

body .amx-pro-profile-hero__contact > span,
body .amx-pro-profile-social > span {
    color: #8792a2 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
}

body .amx-pro-profile-hero__contact p,
body .amx-pro-profile-hero__contact a {
    align-items: center !important;
    color: #344054 !important;
    display: flex !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    gap: 9px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
}

body .amx-pro-profile-hero__contact i {
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #edf1f6 !important;
    border-radius: 8px !important;
    color: var(--amx-market-blue) !important;
    display: inline-flex !important;
    flex: 0 0 34px !important;
    height: 34px !important;
    justify-content: center !important;
    width: 34px !important;
}

body .amx-pro-profile-nav {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid #d8e1ed !important;
    border-radius: 8px !important;
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.075) !important;
    margin: 0 0 26px !important;
    padding: 8px !important;
    position: sticky !important;
    top: 86px !important;
    z-index: 18 !important;
}

body.admin-bar .amx-pro-profile-nav {
    top: 118px !important;
}

body .amx-pro-profile-nav__track {
    align-items: center !important;
    display: flex !important;
    gap: 6px !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain !important;
    scrollbar-width: none !important;
}

body .amx-pro-profile-nav__track::-webkit-scrollbar {
    display: none !important;
}

body .amx-pro-profile-nav a {
    align-items: center !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    color: #344054 !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    gap: 8px !important;
    min-height: 38px !important;
    padding: 9px 12px !important;
}

body .amx-pro-profile-nav a i {
    color: var(--amx-market-blue) !important;
    font-size: 13px !important;
}

body .amx-pro-profile--agency .amx-pro-profile-nav a i {
    color: var(--amx-market-green) !important;
}

body .amx-pro-profile--developer .amx-pro-profile-nav a i {
    color: var(--amx-market-violet) !important;
}

body .amx-pro-profile-nav a:hover,
body .amx-pro-profile-nav a:focus-visible {
    background: #f7f9fc !important;
    border-color: #d8e1ed !important;
    color: var(--amx-market-ink) !important;
    outline: 0 !important;
}

body .amx-pro-profile-nav a.is-active,
body .amx-pro-profile-nav a[aria-current="true"] {
    background: var(--amx-market-blue-soft) !important;
    border-color: #b9d3ff !important;
    color: var(--amx-market-blue) !important;
}

body .amx-pro-profile-nav a.is-active i,
body .amx-pro-profile-nav a[aria-current="true"] i {
    color: inherit !important;
}

body .amx-pro-profile--agency .amx-pro-profile-nav a.is-active,
body .amx-pro-profile--agency .amx-pro-profile-nav a[aria-current="true"] {
    background: var(--amx-market-green-soft) !important;
    border-color: #b7e5d8 !important;
    color: var(--amx-market-green) !important;
}

body .amx-pro-profile--developer .amx-pro-profile-nav a.is-active,
body .amx-pro-profile--developer .amx-pro-profile-nav a[aria-current="true"] {
    background: var(--amx-market-violet-soft) !important;
    border-color: #d8ccff !important;
    color: var(--amx-market-violet) !important;
}

body .amx-pro-profile-section[id],
body .amx-pro-profile-side-panel[id] {
    scroll-margin-top: 142px !important;
}

body .amx-pro-profile-layout {
    align-items: start !important;
    display: grid !important;
    gap: 26px !important;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 360px) !important;
}

body .amx-pro-profile-main,
body .amx-pro-profile-sidebar {
    display: grid !important;
    gap: 22px !important;
    min-width: 0 !important;
}

body .amx-pro-profile-sidebar {
    position: sticky !important;
    top: 110px !important;
}

body .amx-pro-profile-section,
body .amx-pro-profile-side-panel {
    background: #ffffff !important;
    border: 1px solid #d8e1ed !important;
    border-radius: 8px !important;
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.055) !important;
    padding: 24px !important;
}

body .amx-pro-profile-section:target,
body .amx-pro-profile-side-panel:target {
    border-color: #b9d3ff !important;
    box-shadow: 0 18px 42px rgba(34, 99, 217, 0.12) !important;
}

body .amx-pro-profile--agency .amx-pro-profile-section:target,
body .amx-pro-profile--agency .amx-pro-profile-side-panel:target {
    border-color: #b7e5d8 !important;
    box-shadow: 0 18px 42px rgba(13, 148, 136, 0.12) !important;
}

body .amx-pro-profile--developer .amx-pro-profile-section:target,
body .amx-pro-profile--developer .amx-pro-profile-side-panel:target {
    border-color: #d8ccff !important;
    box-shadow: 0 18px 42px rgba(105, 65, 198, 0.12) !important;
}

body .amx-pro-profile-section__header {
    align-items: end !important;
    display: flex !important;
    gap: 14px !important;
    justify-content: space-between !important;
    margin-bottom: 18px !important;
}

body .amx-pro-profile-section__header span {
    color: var(--amx-market-blue) !important;
    display: block !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    margin-bottom: 5px !important;
    text-transform: uppercase !important;
}

body .amx-pro-profile--agency .amx-pro-profile-section__header span {
    color: var(--amx-market-green) !important;
}

body .amx-pro-profile--developer .amx-pro-profile-section__header span {
    color: var(--amx-market-violet) !important;
}

body .amx-pro-profile-section__header h2 {
    color: var(--amx-market-ink) !important;
    font-size: 23px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    line-height: 1.18 !important;
    margin: 0 !important;
}

body .amx-pro-profile-copy {
    color: #4b5565 !important;
    font-size: 15px !important;
    line-height: 1.78 !important;
}

body .amx-pro-profile-copy p:last-child {
    margin-bottom: 0 !important;
}

body .amx-pro-profile-chip-groups {
    display: grid !important;
    gap: 18px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body .amx-pro-profile-chip-groups h3 {
    color: #344054 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    margin: 0 0 10px !important;
}

body .amx-pro-profile-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

body .amx-pro-profile-chips span {
    background: #f7f9fc !important;
    border: 1px solid #e5ebf3 !important;
    border-radius: 999px !important;
    color: #344054 !important;
    display: inline-flex !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    min-height: 30px !important;
    padding: 8px 11px !important;
}

body .amx-pro-profile-team-grid,
body .amx-pro-profile-listing-grid {
    display: grid !important;
    gap: 14px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body .amx-pro-profile-team-card,
body .amx-pro-profile-listing-card {
    background: #fbfcfe !important;
    border: 1px solid #edf1f6 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

body .amx-pro-profile-team-card {
    align-items: center !important;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: 74px minmax(0, 1fr) !important;
    padding: 12px !important;
}

body .amx-pro-profile-team-card img {
    aspect-ratio: 1 !important;
    border-radius: 8px !important;
    display: block !important;
    height: 74px !important;
    object-fit: cover !important;
    width: 74px !important;
}

body .amx-pro-profile-team-card small {
    color: var(--amx-market-blue) !important;
    display: block !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    margin-bottom: 4px !important;
    text-transform: uppercase !important;
}

body .amx-pro-profile-team-card h3,
body .amx-pro-profile-listing-card h3 {
    color: var(--amx-market-ink) !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1.22 !important;
    margin: 0 !important;
}

body .amx-pro-profile-team-card h3 a,
body .amx-pro-profile-listing-card h3 a {
    color: inherit !important;
}

body .amx-pro-profile-team-card p {
    color: #667085 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin: 5px 0 0 !important;
}

body .amx-pro-profile-listing-card__image {
    aspect-ratio: 16 / 10 !important;
    background: #eef3f8 !important;
    display: block !important;
    overflow: hidden !important;
    position: relative !important;
}

body .amx-pro-profile-listing-card__image img {
    display: block !important;
    height: 100% !important;
    object-fit: cover !important;
    width: 100% !important;
}

body .amx-pro-profile-listing-card__image span {
    background: rgba(255, 255, 255, 0.96) !important;
    border-radius: 8px !important;
    bottom: 10px !important;
    color: var(--amx-market-ink) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    left: 10px !important;
    min-height: 28px !important;
    padding: 8px 10px !important;
    position: absolute !important;
}

body .amx-pro-profile-listing-card__body {
    display: grid !important;
    gap: 10px !important;
    padding: 14px !important;
}

body .amx-pro-profile-listing-card__body p {
    align-items: center !important;
    color: #667085 !important;
    display: flex !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    gap: 7px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
}

body .amx-pro-profile-listing-card__body > div {
    align-items: center !important;
    border-top: 1px solid #edf1f6 !important;
    display: flex !important;
    gap: 10px !important;
    justify-content: space-between !important;
    padding-top: 11px !important;
}

body .amx-pro-profile-listing-card__body strong {
    color: var(--amx-market-ink) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

body .amx-pro-profile-listing-card__body a:last-child {
    background: var(--amx-market-ink) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    min-height: 32px !important;
    padding: 8px 11px !important;
}

body .amx-pro-profile-empty {
    background: #fbfcfe !important;
    border: 1px solid #edf1f6 !important;
    border-radius: 8px !important;
    padding: 18px !important;
}

body .amx-pro-profile-empty--inline {
    grid-column: 1 / -1 !important;
}

body .amx-pro-profile-empty strong {
    color: var(--amx-market-ink) !important;
    display: block !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    margin-bottom: 5px !important;
}

body .amx-pro-profile-empty p,
body .amx-pro-profile-muted {
    color: #667085 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

body .amx-pro-profile-facts {
    display: grid !important;
    gap: 10px !important;
}

body .amx-pro-profile-facts > div {
    align-items: flex-start !important;
    background: #fbfcfe !important;
    border: 1px solid #edf1f6 !important;
    border-radius: 8px !important;
    display: flex !important;
    gap: 10px !important;
    padding: 11px !important;
}

body .amx-pro-profile-facts i {
    align-items: center !important;
    background: var(--amx-market-blue-soft) !important;
    border-radius: 8px !important;
    color: var(--amx-market-blue) !important;
    display: inline-flex !important;
    flex: 0 0 34px !important;
    height: 34px !important;
    justify-content: center !important;
    width: 34px !important;
}

body .amx-pro-profile-facts strong {
    color: var(--amx-market-ink) !important;
    display: block !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
}

body .amx-pro-profile-facts em {
    color: #667085 !important;
    display: block !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere !important;
}

body .amx-pro-profile-contact-form .agent_contanct_form,
body .amx-pro-profile-contact-form .wpestate_contact_form_parent {
    box-shadow: none !important;
}

body .amx-pro-profile-contact-form h4,
body .amx-pro-profile-contact-form .agent_contact_form_title {
    color: var(--amx-market-ink) !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    margin: 0 0 14px !important;
}

body .amx-pro-profile-contact-form input,
body .amx-pro-profile-contact-form textarea,
body .amx-pro-profile-contact-form select {
    border-radius: 8px !important;
}

body .amx-pro-profile-contact-form .wpresidence_button,
body .amx-pro-profile-contact-form input[type="submit"] {
    background: var(--amx-market-ink) !important;
    border-color: var(--amx-market-ink) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    width: 100% !important;
}

body .amx-pro-profile-social {
    display: grid !important;
    gap: 12px !important;
}

body .amx-pro-profile-social .amx-pro-profile-social__list {
    align-items: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    min-width: 0 !important;
}

body .amx-pro-profile-social .amx-pro-profile-social__list:empty {
    display: none !important;
}

body .amx-pro-profile-social .amx-pro-profile-social__link {
    align-items: center !important;
    background: #fbfcfe !important;
    border: 1px solid #edf1f6 !important;
    border-radius: 8px !important;
    color: #344054 !important;
    display: inline-flex !important;
    height: 38px !important;
    justify-content: center !important;
    flex: 0 0 38px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    margin: 0 !important;
    text-decoration: none !important;
    width: 38px !important;
}

body .amx-pro-profile-social .amx-pro-profile-social__link:hover,
body .amx-pro-profile-social .amx-pro-profile-social__link:focus-visible {
    background: #ffffff !important;
    border-color: #d7e0ec !important;
    box-shadow: 0 3px 10px rgba(16, 24, 40, 0.055) !important;
    color: var(--amx-market-ink) !important;
}

body .amx-pro-profile-social .amx-pro-profile-social__link i {
    display: block !important;
    font-size: 14px !important;
    line-height: 1 !important;
    margin: 0 !important;
}

body .amx-pro-profile-mobile-actions {
    display: none !important;
}

@media (max-width: 1180px) {
    body .amx-pro-profile-hero {
        grid-template-columns: minmax(250px, 320px) minmax(0, 1fr) !important;
    }

    body .amx-pro-profile-hero__contact {
        border-left: 0 !important;
        border-top: 1px solid #edf1f6 !important;
        grid-column: 1 / -1 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body .amx-pro-profile-hero__contact > span {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 991px) {
    body .amx-pro-profile-hero,
    body .amx-pro-profile-layout {
        grid-template-columns: 1fr !important;
    }

    body .amx-pro-profile-sidebar {
        position: static !important;
    }

    body .amx-pro-profile-nav {
        top: 72px !important;
    }

    body.admin-bar .amx-pro-profile-nav {
        top: 104px !important;
    }

    body .amx-pro-profile-hero__media,
    body .amx-pro-profile-hero__media img {
        min-height: 330px !important;
    }

    body .amx-pro-profile-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    body.single-estate_agent .amx-single-professional-page,
    body.single-estate_agency .amx-single-professional-page,
    body.single-estate_developer .amx-single-professional-page {
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-bottom: 98px !important;
    }

    body .amx-pro-profile-hero__content,
    body .amx-pro-profile-hero__contact,
    body .amx-pro-profile-section,
    body .amx-pro-profile-side-panel {
        padding: 18px !important;
    }

    body .amx-pro-profile-hero h1 {
        font-size: 32px !important;
    }

    body .amx-pro-profile-hero__contact,
    body .amx-pro-profile-stats,
    body .amx-pro-profile-chip-groups,
    body .amx-pro-profile-team-grid,
    body .amx-pro-profile-listing-grid {
        grid-template-columns: 1fr !important;
    }

    body .amx-pro-profile-actions a {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    body .amx-pro-profile-nav {
        margin-bottom: 18px !important;
        padding: 6px !important;
        top: 0 !important;
    }

    body.admin-bar .amx-pro-profile-nav {
        top: 46px !important;
    }

    body .amx-pro-profile-nav a {
        font-size: 11px !important;
        min-height: 36px !important;
        padding: 8px 10px !important;
    }

    body .amx-pro-profile-section[id],
    body .amx-pro-profile-side-panel[id] {
        scroll-margin-top: 94px !important;
    }

    body .amx-pro-profile-mobile-actions {
        align-items: center !important;
        background: rgba(255, 255, 255, 0.96) !important;
        border: 1px solid #d8e1ed !important;
        border-radius: 8px 8px 0 0 !important;
        bottom: 0 !important;
        box-shadow: 0 -14px 34px rgba(16, 24, 40, 0.14) !important;
        display: grid !important;
        gap: 8px !important;
        grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)) !important;
        left: 12px !important;
        padding: 9px !important;
        position: fixed !important;
        right: 12px !important;
        z-index: 999 !important;
    }

    body .amx-pro-profile-mobile-actions a {
        align-items: center !important;
        background: #ffffff !important;
        border: 1px solid #d8e1ed !important;
        border-radius: 8px !important;
        color: #344054 !important;
        display: inline-flex !important;
        font-size: 11px !important;
        font-weight: 900 !important;
        gap: 6px !important;
        justify-content: center !important;
        line-height: 1 !important;
        min-height: 42px !important;
        min-width: 0 !important;
        padding: 9px 7px !important;
        white-space: nowrap !important;
    }

    body .amx-pro-profile-mobile-actions a span {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body .amx-pro-profile-mobile-actions a i {
        flex: 0 0 auto !important;
    }

    body .amx-pro-profile-mobile-actions .amx-pro-profile-mobile-actions__primary {
        background: var(--amx-market-ink) !important;
        border-color: var(--amx-market-ink) !important;
        color: #ffffff !important;
    }
}

/* Phase 15.3: match the agency portrait ring shadow on agent cards. */
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media {
    overflow: visible !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a {
    aspect-ratio: 1 / 1 !important;
    background: #ffffff !important;
    border: 4px solid #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
    box-sizing: border-box !important;
    clip-path: none !important;
    display: block !important;
    height: 136px !important;
    isolation: isolate !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 136px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media img,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__image {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    clip-path: none !important;
    display: block !important;
    filter: none !important;
    height: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    outline: 0 !important;
    padding: 0 !important;
    transform: none !important;
    width: 100% !important;
}

body .amx-professional-directory-results .amx-directory-card:hover .amx-agent-card__media img,
body .amx-professional-directory-results .amx-directory-card:hover .amx-agent-card__image {
    transform: none !important;
}

@media (max-width: 1280px) {
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a {
        height: 128px !important;
        width: 128px !important;
    }
}

@media (max-width: 767px) {
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a {
        height: 136px !important;
        width: 136px !important;
    }
}

/* Phase 15.4: reuse the agency portrait frame behavior for agent cards, with agent colors. */
body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    isolation: isolate !important;
    overflow: visible !important;
}

body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media::before,
body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media::after,
body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media a::before,
body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media a::after {
    display: none !important;
}

body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media a {
    aspect-ratio: 1 / 1 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    clip-path: none !important;
    display: block !important;
    height: 136px !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    position: relative !important;
    width: 136px !important;
    z-index: 2 !important;
}

body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media img,
body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__image {
    aspect-ratio: 1 / 1 !important;
    background: #ffffff !important;
    border: 4px solid #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
    box-sizing: border-box !important;
    clip-path: none !important;
    display: block !important;
    filter: none !important;
    -webkit-filter: none !important;
    height: 136px !important;
    max-width: none !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    outline: 0 !important;
    padding: 0 !important;
    position: relative !important;
    transform: none !important;
    width: 136px !important;
    z-index: 2 !important;
}

body .amx-professional-directory-results .amx-directory-card--agent:hover .amx-agent-card__media img,
body .amx-professional-directory-results .amx-directory-card--agent:hover .amx-agent-card__image {
    transform: none !important;
}

@media (max-width: 1280px) {
    body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media a,
    body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media img,
    body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__image {
        height: 128px !important;
        width: 128px !important;
    }
}

@media (max-width: 767px) {
    body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media a,
    body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media img,
    body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__image {
        height: 136px !important;
        width: 136px !important;
    }
}

/* Phase 16: keep the agent profile hero aligned to the agency profile frame. */
body.single-estate_agent .amx-single-professional-page.amx-elementor-full-widget .amx-pro-profile--agent {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 1320px !important;
    width: 100% !important;
}

@media (min-width: 1181px) {
    body.single-estate_agent .amx-pro-profile--agent .amx-pro-profile-hero {
        grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) minmax(290px, 340px) !important;
        min-height: 410px !important;
    }

    body.single-estate_agent .amx-pro-profile--agent .amx-pro-profile-hero__media,
    body.single-estate_agent .amx-pro-profile--agent .amx-pro-profile-hero__media img,
    body.single-estate_agent .amx-pro-profile--agent .amx-pro-profile-hero__contact {
        min-height: 410px !important;
    }

    body.single-estate_agent .amx-pro-profile--agent .amx-pro-profile-hero__content {
        gap: 8px !important;
        padding: 24px 34px !important;
    }

    body.single-estate_agent .amx-pro-profile--agent .amx-pro-profile-hero .amx-public-organization {
        gap: 8px !important;
        max-width: 520px !important;
        min-height: 52px !important;
        padding: 7px 10px !important;
    }

    body.single-estate_agent .amx-pro-profile--agent .amx-pro-profile-hero .amx-public-organization__mark {
        flex-basis: 36px !important;
        height: 36px !important;
        width: 36px !important;
    }

    body.single-estate_agent .amx-pro-profile--agent .amx-pro-profile-hero .amx-public-organization__eyebrow {
        font-size: 11px !important;
        line-height: 1.1 !important;
    }

    body.single-estate_agent .amx-pro-profile--agent .amx-pro-profile-hero .amx-public-organization__name {
        display: block !important;
        font-size: 13px !important;
        line-height: 1.15 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body.single-estate_agent .amx-pro-profile--agent .amx-pro-profile-hero .amx-public-organization__meta {
        display: none !important;
    }

    body.single-estate_agent .amx-pro-profile--agent .amx-pro-profile-trust {
        flex-wrap: nowrap !important;
        max-height: 45px !important;
        min-height: 45px !important;
        overflow: hidden !important;
        padding: 9px 12px !important;
    }

    body.single-estate_agent .amx-pro-profile--agent .amx-pro-profile-trust span:nth-of-type(n+3) {
        display: none !important;
    }
}

/* Phase 17: flatten professional surfaces and keep all profile frames aligned. */
body.page-template-agents_list,
body.single-estate_agent,
body.single-estate_agency,
body.single-estate_developer,
body.page-template-agents_list .content_wrapper,
body.page-template-agents_list .amx-professional-directory-page,
body.single-estate_agent .content_wrapper,
body.single-estate_agency .content_wrapper,
body.single-estate_developer .content_wrapper,
body.single-estate_agent .amx-single-professional-page,
body.single-estate_agency .amx-single-professional-page,
body.single-estate_developer .amx-single-professional-page {
    background: #ffffff !important;
}

body.single-estate_agent .amx-pro-profile--agent,
body.single-estate_agency .amx-pro-profile--agency,
body.single-estate_developer .amx-pro-profile--developer {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 1320px !important;
    width: 100% !important;
}

body.page-template-agents_list .amx-professional-directory-search--advanced,
body.page-template-agents_list .amx-professional-directory-status,
body.page-template-agents_list .amx-directory-card,
body.single-estate_agent .amx-pro-profile-hero,
body.single-estate_agency .amx-pro-profile-hero,
body.single-estate_developer .amx-pro-profile-hero,
body.single-estate_agent .amx-pro-profile-nav,
body.single-estate_agency .amx-pro-profile-nav,
body.single-estate_developer .amx-pro-profile-nav,
body.single-estate_agent .amx-pro-profile-section,
body.single-estate_agency .amx-pro-profile-section,
body.single-estate_developer .amx-pro-profile-section,
body.single-estate_agent .amx-pro-profile-side-panel,
body.single-estate_agency .amx-pro-profile-side-panel,
body.single-estate_developer .amx-pro-profile-side-panel {
    background: #ffffff !important;
    border-color: #dbe4ef !important;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.045) !important;
}

body.page-template-agents_list .amx-directory-card:hover,
body.page-template-agents_list .amx-directory-card:focus-visible,
body.single-estate_agent .amx-pro-profile-nav:hover,
body.single-estate_agency .amx-pro-profile-nav:hover,
body.single-estate_developer .amx-pro-profile-nav:hover {
    box-shadow: 0 3px 10px rgba(16, 24, 40, 0.055) !important;
}

body.single-estate_agent .amx-pro-profile-hero__contact,
body.single-estate_agency .amx-pro-profile-hero__contact,
body.single-estate_developer .amx-pro-profile-hero__contact,
body.single-estate_agent .amx-pro-profile-trust,
body.single-estate_agency .amx-pro-profile-trust,
body.single-estate_developer .amx-pro-profile-trust,
body.single-estate_agent .amx-pro-profile-stat,
body.single-estate_agency .amx-pro-profile-stat,
body.single-estate_developer .amx-pro-profile-stat,
body.single-estate_agent .amx-pro-profile-hero .amx-public-organization,
body.single-estate_agency .amx-pro-profile-hero .amx-public-organization,
body.single-estate_developer .amx-pro-profile-hero .amx-public-organization,
body.page-template-agents_list .amx-directory-card .amx-public-organization,
body.page-template-agents_list .amx-directory-card .amx-agent-card__stats > span,
body.page-template-agents_list .amx-directory-card .amx-company-card__stats > span,
body.page-template-agents_list .amx-directory-card .amx-agent-card__trustline,
body.page-template-agents_list .amx-directory-card .amx-company-card__trustline {
    background: #ffffff !important;
    border-color: #e1e8f2 !important;
    box-shadow: 0 1px 4px rgba(16, 24, 40, 0.035) !important;
}

body.page-template-agents_list .amx-professional-directory-tabs a,
body.page-template-agents_list .amx-professional-directory-hero__stat,
body.page-template-agents_list .amx-professional-directory-search--advanced input,
body.page-template-agents_list .amx-professional-directory-search--advanced select,
body.page-template-agents_list .amx-professional-directory-search--advanced .dropdown-toggle {
    box-shadow: 0 1px 4px rgba(16, 24, 40, 0.03) !important;
}

/* Phase 18: align the directory result band and cards to the search frame. */
body.page-template-agents_list {
    --amx-directory-primary: var(--amx-primary-button-bg, var(--wp-estate-main-color-option, #dd3333));
    --amx-directory-primary-hover: var(--amx-primary-button-bg-hover, var(--wp-estate-menu-hover-font-color-option, #dd3333));
}

body.page-template-agents_list .amx-professional-directory-hero,
body.page-template-agents_list .amx-professional-directory-tabs,
body.page-template-agents_list .amx-professional-directory-search--advanced,
body.page-template-agents_list .amx-professional-directory-results {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 1320px !important;
    width: 100% !important;
}

body.page-template-agents_list .amx-professional-directory-hero__eyebrow {
    color: var(--amx-directory-primary) !important;
}

body.page-template-agents_list .amx-professional-directory-tab:hover,
body.page-template-agents_list .amx-professional-directory-tab.is-active,
body.page-template-agents_list .amx-professional-directory-search__button {
    background: var(--amx-directory-primary) !important;
    border-color: var(--amx-directory-primary) !important;
    color: #ffffff !important;
}

body.page-template-agents_list .amx-professional-directory-search__button:hover,
body.page-template-agents_list .amx-professional-directory-search__button:focus-visible {
    background: var(--amx-directory-primary-hover) !important;
    border-color: var(--amx-directory-primary-hover) !important;
    color: #ffffff !important;
}

body.page-template-agents_list .amx-professional-directory-tab small,
body.page-template-agents_list .amx-professional-directory-active-filters span {
    color: var(--amx-directory-primary) !important;
}

body.page-template-agents_list .amx-professional-directory-tab:hover small,
body.page-template-agents_list .amx-professional-directory-tab.is-active small {
    color: #ffffff !important;
}

body.page-template-agents_list .amx-professional-directory-search__field:focus-within,
body.page-template-agents_list .amx-professional-directory-filter input[type="text"]:focus,
body.page-template-agents_list .amx-professional-directory-filter select:focus,
body.page-template-agents_list .amx-professional-directory-filter--toggle:focus-within {
    border-color: var(--amx-directory-primary) !important;
    box-shadow: 0 0 0 3px rgba(10, 93, 254, 0.12) !important;
}

body.page-template-agents_list .amx-professional-directory-filter--toggle input[type="checkbox"]:checked {
    background: var(--amx-directory-primary) !important;
    border-color: var(--amx-directory-primary) !important;
}

body.page-template-agents_list .amx-professional-directory-results {
    align-items: stretch !important;
    column-gap: 28px !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    row-gap: 26px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-professional-directory-status {
    box-sizing: border-box !important;
    flex: none !important;
    grid-column: 1 / -1 !important;
    margin: 0 !important;
    max-width: 100% !important;
    padding: 14px 16px !important;
    width: 100% !important;
}

body.page-template-agents_list .amx-professional-directory-results .wpresidence_agent_unit_wrapper,
body.page-template-agents_list .amx-professional-directory-results .amx-professional-directory-company {
    box-sizing: border-box !important;
    flex: none !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card {
    box-sizing: border-box !important;
    min-height: 400px !important;
    width: 100% !important;
}

@media (max-width: 991px) {
    body.page-template-agents_list .amx-professional-directory-results {
        grid-template-columns: 1fr !important;
    }
}

/* Phase 19: use one wider professional frame for agent, agency, developer, and directory pages. */
body.page-template-agents_list,
body.single-estate_agent,
body.single-estate_agency,
body.single-estate_developer {
    --amx-professional-frame-width: 1480px;
}

body.page-template-agents_list .amx-professional-directory-hero,
body.page-template-agents_list .amx-professional-directory-tabs,
body.page-template-agents_list .amx-professional-directory-search--advanced,
body.page-template-agents_list .amx-professional-directory-results,
body.single-estate_agent .amx-pro-profile--agent,
body.single-estate_agency .amx-pro-profile--agency,
body.single-estate_developer .amx-pro-profile--developer {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: var(--amx-professional-frame-width) !important;
    width: 100% !important;
}

@media (min-width: 1181px) {
    body.single-estate_agent .amx-pro-profile--agent .amx-pro-profile-hero,
    body.single-estate_agency .amx-pro-profile--agency .amx-pro-profile-hero,
    body.single-estate_developer .amx-pro-profile--developer .amx-pro-profile-hero {
        grid-template-columns: minmax(340px, 400px) minmax(0, 1fr) minmax(320px, 360px) !important;
    }

    body.single-estate_agent .amx-pro-profile--agent .amx-pro-profile-layout,
    body.single-estate_agency .amx-pro-profile--agency .amx-pro-profile-layout,
    body.single-estate_developer .amx-pro-profile--developer .amx-pro-profile-layout {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 380px) !important;
    }

    body.page-template-agents_list .amx-professional-directory-results {
        column-gap: 30px !important;
        row-gap: 28px !important;
    }
}

/* Phase 20: make the single agent page obey the same frame as the agents directory. */
body.single-estate_agent .amx-single-professional-page.amx-elementor-full-widget .amx-pro-profile--agent {
    max-width: var(--amx-professional-frame-width, 1480px) !important;
    width: 100% !important;
}

/* Phase 21: equalize agent and agency/developer cards in the directory grid. */
@media (min-width: 992px) {
    body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper,
    body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company {
        align-self: stretch !important;
        display: flex !important;
        min-height: 430px !important;
    }

    body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .amx-directory-card,
    body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .amx-directory-card {
        flex: 1 1 auto !important;
        height: 100% !important;
        min-height: 430px !important;
    }

    body.page-template-agents_list .amx-directory-card--agent .amx-agent-card__body,
    body.page-template-agents_list .amx-directory-card--agency .agency_unit_wrapper,
    body.page-template-agents_list .amx-directory-card--developer .agency_unit_wrapper {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100% !important;
    }

    body.page-template-agents_list .amx-directory-card--agent .amx-agent-card__actions,
    body.page-template-agents_list .amx-directory-card--agency .amx-company-card__actions,
    body.page-template-agents_list .amx-directory-card--developer .amx-company-card__actions {
        margin-top: auto !important;
    }
}

/* Phase 23: align the profile company box with the trust and stats rows below it. */
body.single-estate_agent .amx-pro-profile--agent .amx-pro-profile-hero .amx-public-organization,
body.single-estate_agency .amx-pro-profile--agency .amx-pro-profile-hero .amx-public-organization,
body.single-estate_developer .amx-pro-profile--developer .amx-pro-profile-hero .amx-public-organization {
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Phase 24: profile-card parity refresh for professional directory and hero titles. */
body.page-template-agents_list .amx-professional-directory-results {
    grid-template-columns: 1fr !important;
    row-gap: 26px !important;
}

body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper,
body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company {
    display: block !important;
    min-height: 0 !important;
    width: 100% !important;
}

body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .amx-directory-card,
body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .amx-directory-card,
body .amx-professional-directory-results .amx-directory-card {
    background: #ffffff !important;
    border: 1px solid #dbe4ef !important;
    border-left: 5px solid var(--amx-market-blue) !important;
    border-radius: 8px !important;
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.065) !important;
    display: grid !important;
    grid-template-columns: minmax(300px, 410px) minmax(0, 1fr) !important;
    height: auto !important;
    min-height: 410px !important;
    overflow: hidden !important;
    width: 100% !important;
}

body .amx-professional-directory-results .amx-directory-card--agency {
    border-left-color: var(--amx-market-green) !important;
}

body .amx-professional-directory-results .amx-directory-card--developer {
    border-left-color: var(--amx-market-violet) !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img {
    align-items: stretch !important;
    background: #eef3f8 !important;
    border-right: 1px solid #dbe4ef !important;
    box-shadow: none !important;
    display: block !important;
    filter: none !important;
    flex: none !important;
    height: 100% !important;
    isolation: isolate !important;
    max-width: none !important;
    min-height: 410px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: relative !important;
    width: 100% !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media::before,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media::after,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img::before,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img::after {
    display: none !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a {
    aspect-ratio: auto !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block !important;
    height: 100% !important;
    min-height: 410px !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 100% !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media img,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__image,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img img {
    aspect-ratio: auto !important;
    background: #eef3f8 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block !important;
    filter: none !important;
    height: 100% !important;
    max-width: none !important;
    min-height: 410px !important;
    object-fit: cover !important;
    object-position: center top !important;
    outline: 0 !important;
    padding: 0 !important;
    transform: none !important;
    width: 100% !important;
}

body .amx-professional-directory-results .amx-directory-card:hover .amx-agent-card__media img,
body .amx-professional-directory-results .amx-directory-card:hover .amx-agent-card__image,
body .amx-professional-directory-results .amx-directory-card:hover .agency_unit_img img {
    transform: scale(1.015) !important;
}

body .amx-professional-directory-results .amx-company-card .agency_unit_img img {
    object-fit: cover !important;
    padding: 0 !important;
}

body .amx-professional-directory-results .amx-agent-card__badge,
body .amx-professional-directory-results .amx-company-card__network-badge {
    align-items: center !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.76) !important;
    border-radius: 8px !important;
    bottom: 20px !important;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.16) !important;
    color: var(--amx-market-green) !important;
    display: inline-flex !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    gap: 8px !important;
    left: 20px !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    max-width: calc(100% - 40px) !important;
    min-height: 42px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 11px 14px !important;
    position: absolute !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    z-index: 4 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__body,
body .amx-professional-directory-results .amx-directory-card .agency_unit_wrapper {
    display: grid !important;
    gap: 13px !important;
    grid-template-rows: auto auto auto auto 1fr auto !important;
    min-height: 410px !important;
    min-width: 0 !important;
    padding: 30px 34px 26px !important;
}

body .amx-professional-directory-results .amx-agent-card__topline,
body .amx-professional-directory-results .amx-company-card__topline {
    align-items: flex-start !important;
    display: flex !important;
    justify-content: space-between !important;
    margin: 0 !important;
    order: 1 !important;
}

body .amx-professional-directory-results .amx-agent-card__eyebrow,
body .amx-professional-directory-results .amx-company-card__eyebrow {
    font-size: 15px !important;
    min-height: 38px !important;
    padding: 10px 17px !important;
}

body .amx-professional-directory-results .amx-professional-rating strong {
    color: var(--amx-market-ink) !important;
    font-size: 22px !important;
    line-height: 1 !important;
}

body .amx-professional-directory-results .amx-professional-rating span {
    color: #6b778c !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

body .amx-professional-directory-results .amx-agent-card__identity,
body .amx-professional-directory-results .amx-company-card__identity {
    margin: 0 !important;
    min-width: 0 !important;
    order: 2 !important;
}

body .amx-professional-directory-results .amx-agent-card__identity h4,
body .amx-professional-directory-results .amx-company-card__identity h4 {
    align-items: center !important;
    color: var(--amx-market-ink) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    font-size: clamp(30px, 3.1vw, 46px) !important;
    font-weight: 900 !important;
    gap: 8px !important;
    letter-spacing: 0 !important;
    line-height: 1.05 !important;
    margin: 0 !important;
    min-width: 0 !important;
}

body .amx-professional-directory-results .amx-agent-card__identity h4 a,
body .amx-professional-directory-results .amx-company-card__identity h4 a {
    color: inherit !important;
    min-width: 0 !important;
}

body .amx-professional-directory-results .amx-agent-card__identity h4 > .amxvbs-badge,
body .amx-professional-directory-results .amx-company-card__identity h4 > .amxvbs-badge {
    flex: 0 0 auto !important;
    height: 0.82em !important;
    margin: 0 !important;
    transform: translateY(-0.02em) !important;
    width: 0.82em !important;
}

body .amx-professional-directory-results .amx-agent-card__identity h4 > .amxvbs-badge svg,
body .amx-professional-directory-results .amx-company-card__identity h4 > .amxvbs-badge svg {
    display: block !important;
    height: 100% !important;
    width: 100% !important;
}

body .amx-professional-directory-results .agent_position,
body .amx-professional-directory-results .agent_address,
body .amx-professional-directory-results .amx-agent-card__summary,
body .amx-professional-directory-results .amx-company-card__excerpt {
    color: #475569 !important;
    font-size: 17px !important;
    font-weight: 650 !important;
    line-height: 1.45 !important;
    margin: -4px 0 0 !important;
    order: 5 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-public-organization--agent-card,
body .amx-professional-directory-results .amx-directory-card .amx-public-organization--company-card {
    display: none !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__trustline,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__trustline {
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: #647084 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 14px !important;
    margin: 0 !important;
    max-height: none !important;
    min-height: 52px !important;
    order: 3 !important;
    overflow: visible !important;
    padding: 10px 14px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__trustline strong,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__trustline strong {
    color: var(--amx-market-green) !important;
    font-size: 16px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__trustline span,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__trustline span {
    color: #647084 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats {
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin: 0 !important;
    order: 4 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span {
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    display: flex !important;
    gap: 12px !important;
    min-height: 74px !important;
    padding: 14px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats i,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats i {
    align-items: center !important;
    background: var(--amx-market-blue-soft) !important;
    border-radius: 8px !important;
    color: var(--amx-market-blue) !important;
    display: inline-flex !important;
    flex: 0 0 44px !important;
    height: 44px !important;
    justify-content: center !important;
    width: 44px !important;
}

body .amx-professional-directory-results .amx-directory-card--agency .amx-company-card__stats i {
    background: var(--amx-market-green-soft) !important;
    color: var(--amx-market-green) !important;
}

body .amx-professional-directory-results .amx-directory-card--developer .amx-company-card__stats i {
    background: var(--amx-market-violet-soft) !important;
    color: var(--amx-market-violet) !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats strong,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats strong {
    color: var(--amx-market-ink) !important;
    display: block !important;
    font-size: 21px !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats em,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats em {
    color: #647084 !important;
    display: block !important;
    font-size: 11px !important;
    font-style: normal !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    line-height: 1.15 !important;
    margin-top: 3px !important;
    text-transform: uppercase !important;
}

body .amx-professional-directory-results .amx-company-card__chips,
body .amx-professional-directory-results .amx-agent-card__chips {
    display: none !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__actions,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__actions {
    align-items: center !important;
    border-top: 1px solid #e8eef7 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    margin: 0 !important;
    order: 6 !important;
    padding-top: 16px !important;
}

body .amx-professional-directory-results .amx-agent-card__primary,
body .amx-professional-directory-results .amx-company-card__primary {
    flex: 0 1 190px !important;
    min-height: 52px !important;
}

body .amx-professional-directory-results .amx-professional-compare-button,
body .amx-professional-directory-results .amx-agent-card__contact,
body .amx-professional-directory-results .amx-agent-card__icon,
body .amx-professional-directory-results .amx-company-card__icon {
    border-radius: 8px !important;
    min-height: 52px !important;
}

body .amx-professional-directory-results .amx-agent-card__contact,
body .amx-professional-directory-results .amx-agent-card__icon,
body .amx-professional-directory-results .amx-company-card__icon {
    flex: 0 0 52px !important;
    height: 52px !important;
    width: 52px !important;
}

body.single-estate_agent .amx-pro-profile-hero h1.amx-pro-profile-title,
body.single-estate_agency .amx-pro-profile-hero h1.amx-pro-profile-title,
body.single-estate_developer .amx-pro-profile-hero h1.amx-pro-profile-title {
    align-items: center !important;
    column-gap: 12px !important;
    display: flex !important;
    flex-wrap: wrap !important;
}

body.single-estate_agent .amx-pro-profile-hero h1.amx-pro-profile-title > .amxvbs-badge,
body.single-estate_agency .amx-pro-profile-hero h1.amx-pro-profile-title > .amxvbs-badge,
body.single-estate_developer .amx-pro-profile-hero h1.amx-pro-profile-title > .amxvbs-badge {
    flex: 0 0 auto !important;
    height: 0.82em !important;
    margin: 0 !important;
    transform: translateY(-0.02em) !important;
    width: 0.82em !important;
}

body.single-estate_agent .amx-pro-profile-hero h1.amx-pro-profile-title > .amxvbs-badge svg,
body.single-estate_agency .amx-pro-profile-hero h1.amx-pro-profile-title > .amxvbs-badge svg,
body.single-estate_developer .amx-pro-profile-hero h1.amx-pro-profile-title > .amxvbs-badge svg {
    display: block !important;
    height: 100% !important;
    width: 100% !important;
}

body.single-estate_agent .amx-pro-profile-hero__contact > span,
body.single-estate_agency .amx-pro-profile-hero__contact > span,
body.single-estate_developer .amx-pro-profile-hero__contact > span,
body.single-estate_agent .amx-pro-profile-section__header span,
body.single-estate_agency .amx-pro-profile-section__header span,
body.single-estate_developer .amx-pro-profile-section__header span,
body.single-estate_agent .amx-pro-profile-stat em,
body.single-estate_agency .amx-pro-profile-stat em,
body.single-estate_developer .amx-pro-profile-stat em {
    color: #647084 !important;
    letter-spacing: 0 !important;
}

@media (min-width: 1181px) {
    body.single-estate_agent .amx-pro-profile--agent .amx-pro-profile-hero,
    body.single-estate_agency .amx-pro-profile--agency .amx-pro-profile-hero,
    body.single-estate_developer .amx-pro-profile--developer .amx-pro-profile-hero {
        grid-template-columns: minmax(360px, 430px) minmax(0, 1fr) minmax(300px, 340px) !important;
    }
}

@media (max-width: 991px) {
    body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .amx-directory-card,
    body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .amx-directory-card,
    body .amx-professional-directory-results .amx-directory-card {
        grid-template-columns: 1fr !important;
        min-height: 0 !important;
    }

    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media,
    body .amx-professional-directory-results .amx-directory-card .agency_unit_img,
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a {
        aspect-ratio: 16 / 10 !important;
        min-height: 0 !important;
    }

    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media img,
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__image,
    body .amx-professional-directory-results .amx-directory-card .agency_unit_img img {
        min-height: 0 !important;
    }
}

@media (max-width: 767px) {
    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__body,
    body .amx-professional-directory-results .amx-directory-card .agency_unit_wrapper {
        gap: 12px !important;
        min-height: 0 !important;
        padding: 20px !important;
    }

    body .amx-professional-directory-results .amx-agent-card__identity h4,
    body .amx-professional-directory-results .amx-company-card__identity h4 {
        font-size: 28px !important;
    }

    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats,
    body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats {
        grid-template-columns: 1fr !important;
    }

    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__actions,
    body .amx-professional-directory-results .amx-directory-card .amx-company-card__actions {
        flex-wrap: wrap !important;
    }

    body .amx-professional-directory-results .amx-agent-card__primary,
    body .amx-professional-directory-results .amx-company-card__primary {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
}

/* Phase 24.1: compact two-up professional directory cards. */
body.page-template-agents_list .amx-professional-directory-results {
    column-gap: 24px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    row-gap: 24px !important;
}

body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper,
body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company {
    min-width: 0 !important;
    width: 100% !important;
}

body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .amx-directory-card,
body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .amx-directory-card,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card {
    grid-template-columns: minmax(185px, 215px) minmax(0, 1fr) !important;
    min-height: 312px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__media,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .agency_unit_img {
    align-items: stretch !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    height: 100% !important;
    min-height: 312px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a {
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    height: 100% !important;
    min-height: 312px !important;
    width: 100% !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__media img,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__image,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .agency_unit_img img {
    aspect-ratio: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    min-height: 312px !important;
    object-fit: cover !important;
    object-position: center top !important;
    padding: 0 !important;
    width: 100% !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agency .agency_unit_img img,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--developer .agency_unit_img img {
    background: #f8fbff !important;
    box-sizing: border-box !important;
    object-fit: contain !important;
    padding: 22px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__badge,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__network-badge {
    bottom: 14px !important;
    font-size: 12px !important;
    gap: 7px !important;
    left: 14px !important;
    max-width: calc(100% - 28px) !important;
    min-height: 36px !important;
    padding: 9px 11px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__body,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .agency_unit_wrapper {
    gap: 9px !important;
    grid-template-rows: auto auto auto auto 1fr auto !important;
    min-height: 312px !important;
    padding: 18px 20px 16px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__eyebrow,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__eyebrow {
    font-size: 12px !important;
    min-height: 30px !important;
    padding: 7px 12px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-professional-rating strong {
    font-size: 18px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-professional-rating span {
    font-size: 10px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__identity h4,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__identity h4 {
    font-size: clamp(26px, 2vw, 34px) !important;
    gap: 7px !important;
    line-height: 1.05 !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__identity h4 > .amxvbs-badge,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__identity h4 > .amxvbs-badge {
    height: 0.82em !important;
    transform: translateY(-0.02em) !important;
    width: 0.82em !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__identity h4 > .amxvbs-badge svg,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__identity h4 > .amxvbs-badge svg {
    display: block !important;
    height: 100% !important;
    width: 100% !important;
}

body.page-template-agents_list .amx-professional-directory-results .agent_position,
body.page-template-agents_list .amx-professional-directory-results .agent_address,
body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__summary,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__excerpt {
    font-size: 14px !important;
    line-height: 1.35 !important;
    margin: -1px 0 0 !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__trustline,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__trustline {
    gap: 7px 9px !important;
    min-height: 38px !important;
    padding: 7px 10px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__trustline strong,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__trustline strong,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__trustline span,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__trustline span {
    font-size: 12px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats {
    gap: 8px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span {
    gap: 8px !important;
    min-height: 58px !important;
    padding: 9px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats i,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats i {
    flex-basis: 34px !important;
    height: 34px !important;
    width: 34px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats strong,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats strong {
    font-size: 17px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats em,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats em {
    font-size: 9px !important;
    line-height: 1.1 !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__actions,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__actions {
    gap: 8px !important;
    padding-top: 10px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__primary,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__primary {
    flex: 1 1 145px !important;
    min-height: 42px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-professional-compare-button,
body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__contact,
body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__icon,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__icon {
    min-height: 42px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__contact,
body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__icon,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__icon {
    flex: 0 0 42px !important;
    height: 42px !important;
    width: 42px !important;
}

@media (max-width: 1180px) {
    body.page-template-agents_list .amx-professional-directory-results {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767px) {
    body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .amx-directory-card,
    body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .amx-directory-card,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card {
        grid-template-columns: 1fr !important;
        min-height: 0 !important;
    }

    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__media,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .agency_unit_img,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a {
        aspect-ratio: 4 / 3 !important;
        min-height: 0 !important;
    }

    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__media img,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__image,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .agency_unit_img img {
        min-height: 0 !important;
    }

    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__body,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .agency_unit_wrapper {
        min-height: 0 !important;
    }
}

/* Phase 26.3 final override: readable two-by-two stat cards. */
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats {
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-width: 0 !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span {
    align-items: center !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    min-height: 54px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 8px 10px !important;
    text-align: left !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats i,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats i {
    flex: 0 0 32px !important;
    font-size: 14px !important;
    height: 32px !important;
    width: 32px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span > span,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span > span {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats strong,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats strong {
    display: block !important;
    font-size: clamp(15px, 1.1vw, 18px) !important;
    hyphens: none !important;
    line-height: 1.05 !important;
    max-width: 100% !important;
    overflow-wrap: normal !important;
    text-align: left !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: normal !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats em,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats em {
    display: block !important;
    font-size: 9px !important;
    hyphens: none !important;
    line-height: 1.1 !important;
    max-width: 100% !important;
    overflow-wrap: normal !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: normal !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__body,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .agency_unit_wrapper {
    min-height: 318px !important;
}

@media (max-width: 520px) {
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats {
        grid-template-columns: 1fr !important;
    }
}

/* Verified Partner shield final override: keep inline shields at capital-letter height. */
body.single-estate_agent .amx-pro-profile-hero h1.amx-pro-profile-title > .amxvbs-badge,
body.single-estate_agency .amx-pro-profile-hero h1.amx-pro-profile-title > .amxvbs-badge,
body.single-estate_developer .amx-pro-profile-hero h1.amx-pro-profile-title > .amxvbs-badge,
body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__identity h4 > .amxvbs-badge,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__identity h4 > .amxvbs-badge,
body .amx-public-organization__body.amxvbs-has-badge > .amxvbs-badge {
    flex: 0 0 auto !important;
    height: 0.82em !important;
    margin: 0 !important;
    transform: translateY(-0.02em) !important;
    width: 0.82em !important;
}

body.single-estate_agent .amx-pro-profile-hero h1.amx-pro-profile-title > .amxvbs-badge svg,
body.single-estate_agency .amx-pro-profile-hero h1.amx-pro-profile-title > .amxvbs-badge svg,
body.single-estate_developer .amx-pro-profile-hero h1.amx-pro-profile-title > .amxvbs-badge svg,
body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__identity h4 > .amxvbs-badge svg,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__identity h4 > .amxvbs-badge svg,
body .amx-public-organization__body.amxvbs-has-badge > .amxvbs-badge svg {
    display: block !important;
    height: 100% !important;
    width: 100% !important;
}

/* Verified Partner shield: keep the inline icon at capital-letter height. */
body.single-estate_agent .amx-pro-profile-hero h1.amx-pro-profile-title > .amxvbs-badge,
body.single-estate_agency .amx-pro-profile-hero h1.amx-pro-profile-title > .amxvbs-badge,
body.single-estate_developer .amx-pro-profile-hero h1.amx-pro-profile-title > .amxvbs-badge,
body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__identity h4 > .amxvbs-badge,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__identity h4 > .amxvbs-badge {
    flex: 0 0 auto !important;
    height: 0.82em !important;
    margin: 0 !important;
    transform: translateY(-0.02em) !important;
    width: 0.82em !important;
}

body.single-estate_agent .amx-pro-profile-hero h1.amx-pro-profile-title > .amxvbs-badge svg,
body.single-estate_agency .amx-pro-profile-hero h1.amx-pro-profile-title > .amxvbs-badge svg,
body.single-estate_developer .amx-pro-profile-hero h1.amx-pro-profile-title > .amxvbs-badge svg,
body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__identity h4 > .amxvbs-badge svg,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__identity h4 > .amxvbs-badge svg {
    display: block !important;
    height: 100% !important;
    width: 100% !important;
}

/* Phase 26.4: final external directory card lock. */
body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper,
body .amx-professional-directory-results > .amx-professional-directory-company {
    align-self: stretch !important;
    display: flex !important;
    height: auto !important;
    min-height: 0 !important;
}

body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .amx-directory-card,
body .amx-professional-directory-results > .amx-professional-directory-company > .amx-directory-card,
body .amx-professional-directory-results .amx-directory-card {
    align-items: stretch !important;
    background: #ffffff !important;
    border: 1px solid #dbe4ef !important;
    border-left: 5px solid var(--amx-market-blue) !important;
    border-radius: 8px !important;
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.065) !important;
    display: grid !important;
    gap: 0 !important;
    grid-template-columns: minmax(216px, 248px) minmax(0, 1fr) !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 14px !important;
    position: relative !important;
    width: 100% !important;
}

body .amx-professional-directory-results .amx-directory-card--agent {
    border-left: 5px solid var(--amx-market-blue) !important;
}

body .amx-professional-directory-results .amx-directory-card--agency {
    border-left: 5px solid var(--amx-market-green) !important;
}

body .amx-professional-directory-results .amx-directory-card--developer {
    border-left: 5px solid #111827 !important;
}

body .amx-professional-directory-results .amx-directory-card::before {
    background: var(--amx-market-blue) !important;
    bottom: 0 !important;
    content: "" !important;
    display: block !important;
    left: 0 !important;
    opacity: 1 !important;
    position: absolute !important;
    top: 0 !important;
    width: 5px !important;
    z-index: 4 !important;
}

body .amx-professional-directory-results .amx-directory-card--agency::before {
    background: var(--amx-market-green) !important;
}

body .amx-professional-directory-results .amx-directory-card--developer::before {
    background: #111827 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a {
    align-items: stretch !important;
    align-self: start !important;
    aspect-ratio: 1 / 1 !important;
    background: #eef3f8 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    clip-path: none !important;
    display: block !important;
    filter: none !important;
    flex: none !important;
    height: auto !important;
    isolation: isolate !important;
    margin: 0 !important;
    max-height: none !important;
    max-width: none !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: relative !important;
    width: 100% !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media::before,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media::after,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img::before,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img::after,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a::before,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media a::after {
    display: none !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__media img,
body .amx-professional-directory-results .amx-directory-card .amx-agent-card__image,
body .amx-professional-directory-results .amx-directory-card .agency_unit_img img {
    aspect-ratio: 1 / 1 !important;
    background: #eef3f8 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    clip-path: none !important;
    display: block !important;
    filter: none !important;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center top !important;
    outline: 0 !important;
    padding: 0 !important;
    position: relative !important;
    transform: none !important;
    width: 100% !important;
    z-index: 1 !important;
}

body .amx-professional-directory-results .amx-directory-card--agency .agency_unit_img img,
body .amx-professional-directory-results .amx-directory-card--developer .agency_unit_img img {
    object-position: center center !important;
}

body .amx-professional-directory-results .amx-directory-card:hover .amx-agent-card__media img,
body .amx-professional-directory-results .amx-directory-card:hover .amx-agent-card__image,
body .amx-professional-directory-results .amx-directory-card:hover .agency_unit_img img {
    transform: scale(1.015) !important;
}

body .amx-professional-directory-results .agency_unit_img .prop_new_details_back {
    display: none !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__badge,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__network-badge {
    align-items: center !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.76) !important;
    border-radius: 8px !important;
    bottom: 12px !important;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.14) !important;
    color: var(--amx-market-green) !important;
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    gap: 7px !important;
    justify-content: center !important;
    left: 12px !important;
    line-height: 1 !important;
    margin: 0 !important;
    max-width: calc(100% - 24px) !important;
    min-height: 34px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 8px 10px !important;
    position: absolute !important;
    right: auto !important;
    text-transform: none !important;
    top: auto !important;
    transform: none !important;
    white-space: nowrap !important;
    z-index: 3 !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__body,
body .amx-professional-directory-results .amx-directory-card .agency_unit_wrapper {
    align-content: center !important;
    display: grid !important;
    gap: 8px !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 2px 0 2px 16px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__trustline,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__trustline {
    min-height: 36px !important;
    padding: 7px 10px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats {
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span {
    min-height: 52px !important;
    padding: 8px 10px !important;
}

body .amx-professional-directory-results .amx-directory-card .amx-agent-card__actions,
body .amx-professional-directory-results .amx-directory-card .amx-company-card__actions {
    gap: 8px !important;
    padding-top: 8px !important;
}

@media (max-width: 1180px) {
    body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .amx-directory-card,
    body .amx-professional-directory-results > .amx-professional-directory-company > .amx-directory-card,
    body .amx-professional-directory-results .amx-directory-card {
        grid-template-columns: minmax(210px, 240px) minmax(0, 1fr) !important;
    }
}

@media (max-width: 767px) {
    body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .amx-directory-card,
    body .amx-professional-directory-results > .amx-professional-directory-company > .amx-directory-card,
    body .amx-professional-directory-results .amx-directory-card {
        grid-template-columns: 1fr !important;
    }

    body .amx-professional-directory-results .amx-directory-card .amx-agent-card__body,
    body .amx-professional-directory-results .amx-directory-card .agency_unit_wrapper {
        padding: 14px 0 0 !important;
    }
}

/* Phase 26.3 final: two-by-two stat grids after all card image rules. */
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats {
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-width: 0 !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span {
    align-items: center !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    min-height: 54px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 8px 10px !important;
    text-align: left !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats i,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats i {
    flex: 0 0 32px !important;
    font-size: 14px !important;
    height: 32px !important;
    width: 32px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span > span,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span > span {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats strong,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats strong {
    display: block !important;
    font-size: clamp(15px, 1.1vw, 18px) !important;
    hyphens: none !important;
    line-height: 1.05 !important;
    max-width: 100% !important;
    overflow-wrap: normal !important;
    text-align: left !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: normal !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats em,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats em {
    display: block !important;
    font-size: 9px !important;
    hyphens: none !important;
    line-height: 1.1 !important;
    max-width: 100% !important;
    overflow-wrap: normal !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: normal !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__body,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .agency_unit_wrapper {
    min-height: 318px !important;
}

@media (max-width: 520px) {
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats {
        grid-template-columns: 1fr !important;
    }
}

/* Phase 26.3: two-by-two stat grids for readable compact cards. */
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats {
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-width: 0 !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span {
    align-items: center !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    min-height: 54px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 8px 10px !important;
    text-align: left !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats i,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats i {
    flex: 0 0 32px !important;
    font-size: 14px !important;
    height: 32px !important;
    width: 32px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span > span,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span > span {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats strong,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats strong {
    display: block !important;
    font-size: clamp(15px, 1.1vw, 18px) !important;
    hyphens: none !important;
    line-height: 1.05 !important;
    max-width: 100% !important;
    overflow-wrap: normal !important;
    text-align: left !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: normal !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats em,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats em {
    display: block !important;
    font-size: 9px !important;
    hyphens: none !important;
    line-height: 1.1 !important;
    max-width: 100% !important;
    overflow-wrap: normal !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: normal !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__body,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .agency_unit_wrapper {
    min-height: 318px !important;
}

@media (max-width: 520px) {
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats {
        grid-template-columns: 1fr !important;
    }
}

/* Phase 25.1: profile-type image and identity treatment for directory cards. */
body .amx-professional-directory-results .amx-directory-card--agent {
    border-left-color: var(--amx-market-blue) !important;
}

body .amx-professional-directory-results .amx-directory-card--agency {
    border-left-color: var(--amx-market-green) !important;
}

body .amx-professional-directory-results .amx-directory-card--developer {
    border-left-color: #111827 !important;
}

body .amx-professional-directory-results .amx-directory-card--agent::before {
    background: var(--amx-market-blue) !important;
}

body .amx-professional-directory-results .amx-directory-card--agency::before {
    background: var(--amx-market-green) !important;
}

body .amx-professional-directory-results .amx-directory-card--developer::before {
    background: #111827 !important;
}

body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media,
body .amx-professional-directory-results .amx-directory-card--agency .agency_unit_img,
body .amx-professional-directory-results .amx-directory-card--developer .agency_unit_img {
    align-items: stretch !important;
    background: #eef3f8 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block !important;
    filter: none !important;
    height: 100% !important;
    isolation: isolate !important;
    max-width: none !important;
    min-height: 312px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: relative !important;
    width: 100% !important;
}

body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media a {
    aspect-ratio: auto !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    clip-path: none !important;
    display: block !important;
    height: 100% !important;
    min-height: 312px !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 100% !important;
}

body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media img,
body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__image,
body .amx-professional-directory-results .amx-directory-card--agency .agency_unit_img img,
body .amx-professional-directory-results .amx-directory-card--developer .agency_unit_img img {
    aspect-ratio: auto !important;
    background: #eef3f8 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    clip-path: none !important;
    display: block !important;
    filter: none !important;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    min-height: 312px !important;
    object-fit: cover !important;
    object-position: center top !important;
    outline: 0 !important;
    padding: 0 !important;
    transform: none !important;
    width: 100% !important;
}

body .amx-professional-directory-results .amx-directory-card--agency .agency_unit_img img,
body .amx-professional-directory-results .amx-directory-card--developer .agency_unit_img img {
    object-position: center center !important;
}

body .amx-professional-directory-results .amx-directory-card--agent:hover .amx-agent-card__media img,
body .amx-professional-directory-results .amx-directory-card--agent:hover .amx-agent-card__image,
body .amx-professional-directory-results .amx-directory-card--agency:hover .agency_unit_img img,
body .amx-professional-directory-results .amx-directory-card--developer:hover .agency_unit_img img {
    transform: scale(1.015) !important;
}

body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__eyebrow {
    background: var(--amx-market-blue-soft) !important;
    border-color: rgba(43, 105, 255, 0.22) !important;
    color: var(--amx-market-blue) !important;
}

body .amx-professional-directory-results .amx-directory-card--agency .amx-company-card__eyebrow {
    background: var(--amx-market-green-soft) !important;
    border-color: rgba(45, 125, 116, 0.22) !important;
    color: var(--amx-market-green) !important;
}

body .amx-professional-directory-results .amx-directory-card--developer .amx-company-card__eyebrow {
    background: #f3f4f6 !important;
    border-color: rgba(17, 24, 39, 0.18) !important;
    color: #111827 !important;
}

@media (max-width: 767px) {
    body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media,
    body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media a,
    body .amx-professional-directory-results .amx-directory-card--agency .agency_unit_img,
    body .amx-professional-directory-results .amx-directory-card--developer .agency_unit_img {
        aspect-ratio: 4 / 3 !important;
        min-height: 0 !important;
    }

    body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media img,
    body .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__image,
    body .amx-professional-directory-results .amx-directory-card--agency .agency_unit_img img,
    body .amx-professional-directory-results .amx-directory-card--developer .agency_unit_img img {
        min-height: 0 !important;
    }
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent {
    border-left-color: var(--amx-market-blue) !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agency {
    border-left-color: var(--amx-market-green) !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--developer {
    border-left-color: #111827 !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agency .agency_unit_img,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--developer .agency_unit_img,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media a {
    border-radius: 0 !important;
    height: 100% !important;
    min-height: 312px !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 100% !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media img,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__image,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agency .agency_unit_img img,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--developer .agency_unit_img img {
    aspect-ratio: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    min-height: 312px !important;
    object-fit: cover !important;
    object-position: center center !important;
    padding: 0 !important;
    width: 100% !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media img,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__image {
    object-position: center top !important;
}

/* Phase 25.2: readable stat cards for compact directory cards. */
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats {
    align-items: stretch !important;
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    min-width: 0 !important;
    overflow: visible !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span {
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 64px !important;
    min-width: 0 !important;
    overflow: visible !important;
    padding: 9px 8px !important;
    text-align: left !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span > span,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span > span {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: visible !important;
    text-align: left !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats i,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats i {
    flex: 0 0 32px !important;
    font-size: 14px !important;
    height: 32px !important;
    width: 32px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats strong,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats strong {
    display: block !important;
    font-size: clamp(15px, 1.15vw, 17px) !important;
    line-height: 1.08 !important;
    max-width: 100% !important;
    overflow: visible !important;
    text-align: left !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: normal !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats em,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats em {
    display: block !important;
    font-size: 9px !important;
    line-height: 1.12 !important;
    max-width: 100% !important;
    overflow: visible !important;
    text-align: left !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: normal !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agency .amx-company-card__stats strong,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--developer .amx-company-card__stats strong {
    font-size: clamp(14px, 1.05vw, 16px) !important;
}

@media (max-width: 1480px) {
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span {
        gap: 7px !important;
        padding: 8px 7px !important;
    }

    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats i,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats i {
        flex-basis: 30px !important;
        height: 30px !important;
        width: 30px !important;
    }
}

@media (max-width: 767px) {
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats {
        grid-template-columns: 1fr !important;
    }
}

/* Phase 25.3: row balance for two-up professional directory cards. */
body.page-template-agents_list .amx-professional-directory-results {
    align-items: stretch !important;
    grid-auto-rows: 1fr !important;
}

body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper,
body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company {
    align-self: stretch !important;
    display: flex !important;
    height: 100% !important;
    min-height: 0 !important;
}

body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .amx-directory-card,
body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .amx-directory-card,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card {
    align-self: stretch !important;
    height: 100% !important;
    min-height: 340px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media a,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agency .agency_unit_img,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--developer .agency_unit_img {
    height: 100% !important;
    min-height: 340px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media img,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__image,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agency .agency_unit_img img,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--developer .agency_unit_img img {
    height: 100% !important;
    min-height: 340px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__body,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .agency_unit_wrapper {
    align-content: stretch !important;
    height: 100% !important;
    min-height: 340px !important;
    overflow: visible !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__summary,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__excerpt,
body.page-template-agents_list .amx-professional-directory-results .agent_position,
body.page-template-agents_list .amx-professional-directory-results .agent_address {
    display: -webkit-box !important;
    max-height: 40px !important;
    min-height: 19px !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__actions,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__actions {
    align-self: end !important;
    margin-top: 0 !important;
    min-width: 0 !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-professional-compare-button {
    flex: 0 1 112px !important;
    min-width: 0 !important;
}

@media (max-width: 1180px) {
    body.page-template-agents_list .amx-professional-directory-results {
        grid-auto-rows: auto !important;
    }

    body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper,
    body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company,
    body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .amx-directory-card,
    body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .amx-directory-card,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card {
        height: auto !important;
    }
}

@media (max-width: 767px) {
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__body,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .agency_unit_wrapper,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media a,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media img,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__image,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agency .agency_unit_img,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agency .agency_unit_img img,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--developer .agency_unit_img,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--developer .agency_unit_img img {
        min-height: 0 !important;
    }
}

/* Phase 26.1: restore the compact results status band. */
body.page-template-agents_list .amx-professional-directory-results {
    align-items: stretch !important;
    grid-auto-rows: auto !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-professional-directory-status {
    align-items: center !important;
    align-self: start !important;
    background: #ffffff !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 4px rgba(16, 24, 40, 0.03) !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    grid-column: 1 / -1 !important;
    height: auto !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    min-height: 58px !important;
    padding: 14px 16px !important;
    width: 100% !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-professional-directory-status span,
body.page-template-agents_list .amx-professional-directory-results .amx-professional-directory-status strong,
body.page-template-agents_list .amx-professional-directory-results .amx-professional-directory-status em {
    line-height: 1.2 !important;
}

body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper,
body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company {
    align-self: stretch !important;
    display: flex !important;
    height: auto !important;
}

body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .amx-directory-card,
body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .amx-directory-card {
    flex: 1 1 auto !important;
    height: 100% !important;
}

/* Phase 26.2: square external card media and profile-type rails. */
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent {
    border-left-color: var(--amx-market-blue) !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agency {
    border-left-color: var(--amx-market-green) !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--developer {
    border-left-color: #111827 !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent::before {
    background: var(--amx-market-blue) !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agency::before {
    background: var(--amx-market-green) !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--developer::before {
    background: #111827 !important;
}

body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .amx-directory-card,
body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .amx-directory-card,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card {
    align-items: center !important;
    grid-template-columns: minmax(198px, 232px) minmax(0, 1fr) !important;
    min-height: 292px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agency .agency_unit_img,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--developer .agency_unit_img,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media a {
    align-self: center !important;
    aspect-ratio: 1 / 1 !important;
    background: #eef3f8 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    clip-path: none !important;
    display: block !important;
    flex: 0 0 auto !important;
    height: auto !important;
    margin: 18px 0 18px 18px !important;
    max-height: 214px !important;
    max-width: 214px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: calc(100% - 18px) !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media a {
    margin: 0 !important;
    max-height: none !important;
    max-width: none !important;
    width: 100% !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media img,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__image,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agency .agency_unit_img img,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--developer .agency_unit_img img {
    aspect-ratio: 1 / 1 !important;
    background: #eef3f8 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    clip-path: none !important;
    display: block !important;
    filter: none !important;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center top !important;
    outline: 0 !important;
    padding: 0 !important;
    transform: none !important;
    width: 100% !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agency .agency_unit_img img,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--developer .agency_unit_img img {
    object-position: center center !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent:hover .amx-agent-card__media img,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent:hover .amx-agent-card__image,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agency:hover .agency_unit_img img,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--developer:hover .agency_unit_img img {
    transform: scale(1.015) !important;
}

body.page-template-agents_list .amx-professional-directory-results .agency_unit_img .prop_new_details_back {
    display: none !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__body,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .agency_unit_wrapper {
    align-content: center !important;
    height: auto !important;
    min-height: 292px !important;
}

@media (max-width: 767px) {
    body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .amx-directory-card,
    body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .amx-directory-card,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card {
        grid-template-columns: 1fr !important;
        min-height: 0 !important;
    }

    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agent .amx-agent-card__media,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--agency .agency_unit_img,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card--developer .agency_unit_img {
        margin: 14px auto 0 !important;
        max-height: none !important;
        max-width: min(100%, 420px) !important;
        width: calc(100% - 28px) !important;
    }

    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__body,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .agency_unit_wrapper {
        min-height: 0 !important;
    }
}

/* Phase 26.3 final override: readable two-by-two stat cards. */
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats {
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-width: 0 !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span {
    align-items: center !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    min-height: 54px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 8px 10px !important;
    text-align: left !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats i,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats i {
    flex: 0 0 32px !important;
    font-size: 14px !important;
    height: 32px !important;
    width: 32px !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats > span > span,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats > span > span {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats strong,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats strong {
    display: block !important;
    font-size: clamp(15px, 1.1vw, 18px) !important;
    hyphens: none !important;
    line-height: 1.05 !important;
    max-width: 100% !important;
    overflow-wrap: normal !important;
    text-align: left !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: normal !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats em,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats em {
    display: block !important;
    font-size: 9px !important;
    hyphens: none !important;
    line-height: 1.1 !important;
    max-width: 100% !important;
    overflow-wrap: normal !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: normal !important;
}

body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__body,
body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .agency_unit_wrapper {
    min-height: 318px !important;
}

@media (max-width: 520px) {
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-agent-card__stats,
    body.page-template-agents_list .amx-professional-directory-results .amx-directory-card .amx-company-card__stats {
        grid-template-columns: 1fr !important;
    }
}

/* Phase 37 EOF override: verified shield and label alignment. */
body.page-template-agents_list .amx-professional-directory-hero__eyebrow {
    align-items: center !important;
    color: #2f5cf6 !important;
    gap: 2px !important;
    line-height: 1.05 !important;
}

body.page-template-agents_list .amx-professional-directory-hero__eyebrow-text,
body .amx-professional-status-badge__label {
    color: inherit !important;
    display: inline-block !important;
    line-height: 1 !important;
}

body.page-template-agents_list .amx-professional-directory-hero__eyebrow > .amx-verified-partner-shield-svg {
    display: block !important;
    flex: 0 0 auto !important;
    height: 0.95em !important;
    margin: 0 !important;
    position: relative !important;
    top: -0.13em !important;
    transform: none !important;
    width: 0.95em !important;
}

body .amx-professional-status-badge,
body .amx-agent-card__badge,
body .amx-company-card__network-badge,
body .amx-agent-profile-hero__badge,
body .amx-pro-profile-hero__badge {
    align-items: center !important;
    color: #2f5cf6 !important;
    gap: 4px !important;
}

body .amx-professional-status-badge > .amx-verified-partner-shield-svg,
body .amx-agent-card__badge > .amx-verified-partner-shield-svg,
body .amx-company-card__network-badge > .amx-verified-partner-shield-svg,
body .amx-agent-profile-hero__badge > .amx-verified-partner-shield-svg,
body .amx-pro-profile-hero__badge > .amx-verified-partner-shield-svg {
    display: block !important;
    flex: 0 0 auto !important;
    height: 0.92em !important;
    margin: 0 !important;
    position: relative !important;
    top: -0.09em !important;
    transform: none !important;
    width: 0.92em !important;
}

body.single-estate_agent .amx-pro-profile-hero h1.amx-pro-profile-title,
body.single-estate_agency .amx-pro-profile-hero h1.amx-pro-profile-title,
body.single-estate_developer .amx-pro-profile-hero h1.amx-pro-profile-title,
body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__identity h4,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__identity h4,
body .amx-professional-directory-results .amx-agent-card__identity h4,
body .amx-professional-directory-results .amx-company-card__identity h4 {
    align-items: center !important;
    gap: 4px 2px !important;
}

body.single-estate_agent .amx-pro-profile-hero h1.amx-pro-profile-title > .amxvbs-badge,
body.single-estate_agency .amx-pro-profile-hero h1.amx-pro-profile-title > .amxvbs-badge,
body.single-estate_developer .amx-pro-profile-hero h1.amx-pro-profile-title > .amxvbs-badge,
body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__identity h4 > .amxvbs-badge,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__identity h4 > .amxvbs-badge,
body .amx-professional-directory-results .amx-agent-card__identity h4 > .amxvbs-badge,
body .amx-professional-directory-results .amx-company-card__identity h4 > .amxvbs-badge,
body .amxvbs-inline.amxvbs-badge {
    align-items: center !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    height: 0.78em !important;
    justify-content: center !important;
    margin: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    position: relative !important;
    top: -0.105em !important;
    transform: none !important;
    width: 0.78em !important;
}

/* Phase 38 EOF override: image badge color and tighter shield spacing. */
body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card > .amx-agent-card__media .amx-agent-card__badge,
body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card > .agency_unit_img .amx-company-card__network-badge,
body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card > .amx-agent-card__media .amx-agent-card__badge,
body .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card > .agency_unit_img .amx-company-card__network-badge,
body .amx-pro-profile-hero__badge {
    color: #2f5cf6 !important;
    column-gap: 2px !important;
    gap: 2px !important;
}

body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card > .amx-agent-card__media .amx-agent-card__badge .amx-professional-status-badge__label,
body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card > .agency_unit_img .amx-company-card__network-badge .amx-professional-status-badge__label,
body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card > .amx-agent-card__media .amx-agent-card__badge .amx-professional-status-badge__label,
body .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card > .agency_unit_img .amx-company-card__network-badge .amx-professional-status-badge__label,
body .amx-pro-profile-hero__badge .amx-professional-status-badge__label {
    color: inherit !important;
    line-height: 1 !important;
}

body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card > .amx-agent-card__media .amx-agent-card__badge > .amx-verified-partner-shield-svg,
body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card > .agency_unit_img .amx-company-card__network-badge > .amx-verified-partner-shield-svg,
body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card > .amx-agent-card__media .amx-agent-card__badge > .amx-verified-partner-shield-svg,
body .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card > .agency_unit_img .amx-company-card__network-badge > .amx-verified-partner-shield-svg,
body .amx-pro-profile-hero__badge > .amx-verified-partner-shield-svg {
    height: 0.9em !important;
    position: relative !important;
    top: -0.11em !important;
    width: 0.9em !important;
}

/* Phase 39 EOF override: name-only verified shield cap-height alignment. */
body.single-estate_agent .amx-pro-profile-hero h1.amx-pro-profile-title,
body.single-estate_agency .amx-pro-profile-hero h1.amx-pro-profile-title,
body.single-estate_developer .amx-pro-profile-hero h1.amx-pro-profile-title,
body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__identity h4,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__identity h4,
body .amx-professional-directory-results .amx-agent-card__identity h4,
body .amx-professional-directory-results .amx-company-card__identity h4 {
    align-items: center !important;
    column-gap: 0.14em !important;
    gap: 0.14em !important;
}

body.single-estate_agent .amx-pro-profile-hero h1.amx-pro-profile-title > .amx-name-verified-shield,
body.single-estate_agency .amx-pro-profile-hero h1.amx-pro-profile-title > .amx-name-verified-shield,
body.single-estate_developer .amx-pro-profile-hero h1.amx-pro-profile-title > .amx-name-verified-shield,
body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__identity h4 > .amx-name-verified-shield,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__identity h4 > .amx-name-verified-shield,
body .amx-professional-directory-results .amx-agent-card__identity h4 > .amx-name-verified-shield,
body .amx-professional-directory-results .amx-company-card__identity h4 > .amx-name-verified-shield {
    align-items: center !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    height: 0.92em !important;
    justify-content: center !important;
    margin: 0 !important;
    margin-inline-end: 0 !important;
    margin-inline-start: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    position: relative !important;
    top: 0.015em !important;
    transform: none !important;
    width: 0.92em !important;
}

body.single-estate_agent .amx-pro-profile-hero h1.amx-pro-profile-title > .amx-name-verified-shield svg,
body.single-estate_agency .amx-pro-profile-hero h1.amx-pro-profile-title > .amx-name-verified-shield svg,
body.single-estate_developer .amx-pro-profile-hero h1.amx-pro-profile-title > .amx-name-verified-shield svg,
body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__identity h4 > .amx-name-verified-shield svg,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__identity h4 > .amx-name-verified-shield svg,
body .amx-professional-directory-results .amx-agent-card__identity h4 > .amx-name-verified-shield svg,
body .amx-professional-directory-results .amx-company-card__identity h4 > .amx-name-verified-shield svg {
    display: block !important;
    height: 100% !important;
    width: 100% !important;
}

/* Verified image safety: the round seal stays inline-size everywhere; only wide badges use card/profile sizing. */
body .amxvbs-badge,
body .amx-name-verified-shield {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    max-height: 1em !important;
    max-width: 1em !important;
    overflow: hidden !important;
}

body .amxvbs-badge > img.amx-verified-partner-round-badge,
body .amx-name-verified-shield > img.amx-verified-partner-round-badge,
body .amxvbs-badge > svg,
body .amx-name-verified-shield > svg {
    display: block !important;
    height: 100% !important;
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    width: 100% !important;
}

body img.amx-verified-partner-round-badge:not(.amx-verified-partner-wide-badge) {
    display: inline-block !important;
    height: 1em !important;
    max-height: 1em !important;
    max-width: 1em !important;
    object-fit: contain !important;
    vertical-align: -0.125em !important;
    width: 1em !important;
}

body .amxvbs-badge > img.amx-verified-partner-round-badge,
body .amx-name-verified-shield > img.amx-verified-partner-round-badge {
    display: block !important;
    height: 100% !important;
    max-height: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Final transparent-asset guard: verified image badges should never draw a white card behind the artwork. */
body .amx-pro-profile-hero__badge,
body .amx-agent-profile-hero__badge,
body .amx-professional-directory-results .amx-agent-card__badge,
body .amx-professional-directory-results .amx-company-card__network-badge,
body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__badge,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__network-badge {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body .amx-pro-profile-hero__badge > img.amx-verified-partner-wide-badge,
body .amx-agent-profile-hero__badge > img.amx-verified-partner-wide-badge,
body .amx-professional-directory-results .amx-agent-card__badge > img.amx-verified-partner-wide-badge,
body .amx-professional-directory-results .amx-company-card__network-badge > img.amx-verified-partner-wide-badge,
body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__badge > img.amx-verified-partner-wide-badge,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__network-badge > img.amx-verified-partner-wide-badge {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: block !important;
    padding: 0 !important;
}

/* Public directory names are capped by data, then kept on one stable badge row. */
body .amx-professional-directory-results .amx-agent-card__identity h4,
body .amx-professional-directory-results .amx-company-card__identity h4,
body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__identity h4,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__identity h4 {
    align-items: center !important;
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    font-size: 24px !important;
    gap: 5px !important;
    line-height: 1.06 !important;
    max-width: 100% !important;
    white-space: nowrap !important;
}

body .amx-professional-directory-results .amx-agent-card__identity h4 > .amx-public-card-name,
body .amx-professional-directory-results .amx-company-card__identity h4 > .amx-public-card-name,
body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__identity h4 > .amx-public-card-name,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__identity h4 > .amx-public-card-name {
    max-width: calc(100% - 1.08em) !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

body .amx-professional-directory-results .amx-agent-card__identity h4 > .amx-name-verified-shield,
body .amx-professional-directory-results .amx-company-card__identity h4 > .amx-name-verified-shield,
body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__identity h4 > .amx-name-verified-shield,
body.page-template-agents_list .amx-professional-directory-results .amx-company-card__identity h4 > .amx-name-verified-shield {
    height: 0.86em !important;
    width: 0.86em !important;
}

/* Desktop-only card fit: keep the 22-character public name on one line with the seal. */
@media (min-width: 992px) {
    body .amx-professional-directory-results .amx-agent-card__identity h4,
    body .amx-professional-directory-results .amx-company-card__identity h4,
    body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__identity h4,
    body.page-template-agents_list .amx-professional-directory-results .amx-company-card__identity h4 {
        align-items: center !important;
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        font-size: 21px !important;
        gap: 4px !important;
        line-height: 1.05 !important;
        max-width: 100% !important;
        overflow: visible !important;
        white-space: nowrap !important;
    }

    body .amx-professional-directory-results .amx-agent-card__identity h4 > .amx-public-card-name,
    body .amx-professional-directory-results .amx-company-card__identity h4 > .amx-public-card-name,
    body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__identity h4 > .amx-public-card-name,
    body.page-template-agents_list .amx-professional-directory-results .amx-company-card__identity h4 > .amx-public-card-name {
        color: inherit !important;
        display: inline-block !important;
        flex: 0 0 auto !important;
        max-width: none !important;
        min-width: 0 !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }

    body .amx-professional-directory-results .amx-agent-card__identity h4 > .amx-name-verified-shield,
    body .amx-professional-directory-results .amx-company-card__identity h4 > .amx-name-verified-shield,
    body.page-template-agents_list .amx-professional-directory-results .amx-agent-card__identity h4 > .amx-name-verified-shield,
    body.page-template-agents_list .amx-professional-directory-results .amx-company-card__identity h4 > .amx-name-verified-shield {
        height: 0.84em !important;
        width: 0.84em !important;
    }
}

/* Final public profile title balance: Agent, Agency, and Developer pages use a quieter hero name scale. */
body.single-estate_agent .amx-pro-profile-hero h1.amx-pro-profile-title,
body.single-estate_agency .amx-pro-profile-hero h1.amx-pro-profile-title,
body.single-estate_developer .amx-pro-profile-hero h1.amx-pro-profile-title,
body.single-estate_agency .amx-public-profile-header .agency_title,
body.single-estate_developer .amx-public-profile-header .agency_title,
body.single-estate_agency .amx-parent-profile-card .agency_title,
body.single-estate_developer .amx-parent-profile-card .agency_title {
    font-size: 42px !important;
    line-height: 1.04 !important;
}

body.single-estate_agent .amx-pro-profile-hero h1.amx-pro-profile-title > .amx-name-verified-shield,
body.single-estate_agency .amx-pro-profile-hero h1.amx-pro-profile-title > .amx-name-verified-shield,
body.single-estate_developer .amx-pro-profile-hero h1.amx-pro-profile-title > .amx-name-verified-shield {
    height: 0.82em !important;
    width: 0.82em !important;
}

@media (max-width: 991px) {
    body.single-estate_agent .amx-pro-profile-hero h1.amx-pro-profile-title,
    body.single-estate_agency .amx-pro-profile-hero h1.amx-pro-profile-title,
    body.single-estate_developer .amx-pro-profile-hero h1.amx-pro-profile-title,
    body.single-estate_agency .amx-public-profile-header .agency_title,
    body.single-estate_developer .amx-public-profile-header .agency_title,
    body.single-estate_agency .amx-parent-profile-card .agency_title,
    body.single-estate_developer .amx-parent-profile-card .agency_title {
        font-size: 34px !important;
    }
}

@media (max-width: 575px) {
    body.single-estate_agent .amx-pro-profile-hero h1.amx-pro-profile-title,
    body.single-estate_agency .amx-pro-profile-hero h1.amx-pro-profile-title,
    body.single-estate_developer .amx-pro-profile-hero h1.amx-pro-profile-title,
    body.single-estate_agency .amx-public-profile-header .agency_title,
    body.single-estate_developer .amx-public-profile-header .agency_title,
    body.single-estate_agency .amx-parent-profile-card .agency_title,
    body.single-estate_developer .amx-parent-profile-card .agency_title {
        font-size: 28px !important;
    }
}

/* Card title final pass: restore mobile title flow, then tighten desktop card titles only. */
@media (max-width: 991px) {
    body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4,
    body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4,
    body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4,
    body .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 {
        align-items: center !important;
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        font-size: 24px !important;
        gap: 5px !important;
        line-height: 1.06 !important;
        max-width: 100% !important;
        overflow: visible !important;
        white-space: nowrap !important;
    }

    body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4 > .amx-public-card-name,
    body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 > .amx-public-card-name,
    body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4 > .amx-public-card-name,
    body .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 > .amx-public-card-name {
        color: inherit !important;
        display: inline-block !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }
}

@media (min-width: 992px) {
    body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4,
    body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4,
    body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4,
    body .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 {
        align-items: center !important;
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        font-size: 19px !important;
        gap: 4px !important;
        line-height: 1.05 !important;
        max-width: 100% !important;
        overflow: visible !important;
        white-space: nowrap !important;
    }

    body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4 > .amx-public-card-name,
    body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 > .amx-public-card-name,
    body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4 > .amx-public-card-name,
    body .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 > .amx-public-card-name {
        color: inherit !important;
        display: inline-block !important;
        flex: 0 0 auto !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }

    body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4 > .amx-name-verified-shield,
    body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 > .amx-name-verified-shield,
    body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4 > .amx-name-verified-shield,
    body .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 > .amx-name-verified-shield {
        height: 0.84em !important;
        width: 0.84em !important;
    }
}

/* Mobile card seal pass: keep the seal after the full name instead of inside the word. */
@media (max-width: 991px) {
    body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4,
    body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4,
    body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4,
    body .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 {
        display: block !important;
        font-size: 24px !important;
        line-height: 1.06 !important;
        max-width: 100% !important;
        overflow: visible !important;
        white-space: nowrap !important;
    }

    body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4 > .amx-public-card-name,
    body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 > .amx-public-card-name,
    body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4 > .amx-public-card-name,
    body .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 > .amx-public-card-name {
        color: inherit !important;
        display: inline !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }

    body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4 > .amx-name-verified-shield,
    body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 > .amx-name-verified-shield,
    body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4 > .amx-name-verified-shield,
    body .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 > .amx-name-verified-shield {
        display: inline-flex !important;
        height: 0.78em !important;
        margin-left: 4px !important;
        position: relative !important;
        top: 0.02em !important;
        transform: none !important;
        vertical-align: -0.08em !important;
        width: 0.78em !important;
    }
}

/* Profile page title final pass: smaller public names on profile pages only. */
body.single-estate_agent .amx-pro-profile-hero h1.amx-pro-profile-title,
body.single-estate_agency .amx-pro-profile-hero h1.amx-pro-profile-title,
body.single-estate_developer .amx-pro-profile-hero h1.amx-pro-profile-title,
body.single-estate_agency .amx-public-profile-header .agency_title,
body.single-estate_developer .amx-public-profile-header .agency_title,
body.single-estate_agency .amx-parent-profile-card .agency_title,
body.single-estate_developer .amx-parent-profile-card .agency_title {
    font-size: 34px !important;
    line-height: 1.06 !important;
}

body.single-estate_agent .amx-pro-profile-hero h1.amx-pro-profile-title > .amx-name-verified-shield,
body.single-estate_agency .amx-pro-profile-hero h1.amx-pro-profile-title > .amx-name-verified-shield,
body.single-estate_developer .amx-pro-profile-hero h1.amx-pro-profile-title > .amx-name-verified-shield {
    height: 0.78em !important;
    margin-left: 4px !important;
    top: 0.02em !important;
    width: 0.78em !important;
}

@media (max-width: 991px) {
    body.single-estate_agent .amx-pro-profile-hero h1.amx-pro-profile-title,
    body.single-estate_agency .amx-pro-profile-hero h1.amx-pro-profile-title,
    body.single-estate_developer .amx-pro-profile-hero h1.amx-pro-profile-title,
    body.single-estate_agency .amx-public-profile-header .agency_title,
    body.single-estate_developer .amx-public-profile-header .agency_title,
    body.single-estate_agency .amx-parent-profile-card .agency_title,
    body.single-estate_developer .amx-parent-profile-card .agency_title {
        font-size: 28px !important;
    }
}

@media (max-width: 575px) {
    body.single-estate_agent .amx-pro-profile-hero h1.amx-pro-profile-title,
    body.single-estate_agency .amx-pro-profile-hero h1.amx-pro-profile-title,
    body.single-estate_developer .amx-pro-profile-hero h1.amx-pro-profile-title,
    body.single-estate_agency .amx-public-profile-header .agency_title,
    body.single-estate_developer .amx-public-profile-header .agency_title,
    body.single-estate_agency .amx-parent-profile-card .agency_title,
    body.single-estate_developer .amx-parent-profile-card .agency_title {
        font-size: 24px !important;
    }
}

/* Mobile-only final card name alignment. */
@media (max-width: 991px) {
    body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity,
    body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity,
    body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity,
    body .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity {
        display: block !important;
        text-align: left !important;
        width: 100% !important;
    }

    body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4,
    body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4,
    body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4,
    body .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 {
        display: block !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left !important;
        width: 100% !important;
    }

    body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4 > .amx-public-card-name,
    body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 > .amx-public-card-name,
    body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4 > .amx-public-card-name,
    body .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 > .amx-public-card-name {
        display: inline !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        vertical-align: baseline !important;
    }

    body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4 > .amx-name-verified-shield,
    body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 > .amx-name-verified-shield,
    body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4 > .amx-name-verified-shield,
    body .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 > .amx-name-verified-shield {
        display: inline-flex !important;
        margin-left: 3px !important;
        margin-right: 0 !important;
        vertical-align: -0.08em !important;
    }
}

/* Card-only verified seal spacing: exactly one visual text space after the name. */
body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4,
body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4,
body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4,
body .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 {
    column-gap: 0.22em !important;
    gap: 0.22em !important;
}

body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4 > .amx-name-verified-shield,
body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 > .amx-name-verified-shield,
body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4 > .amx-name-verified-shield,
body .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 > .amx-name-verified-shield {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* AvailMax editorial blog index. */
body .amx-blog-shell.wpresidence_page_content_wrapper {
    background: #ffffff;
    margin-left: 0;
    margin-right: 0;
    padding: 0 24px 76px;
}

body .amx-blog-main {
    margin-left: auto;
    margin-right: auto;
    max-width: 1320px;
    width: 100%;
}

body .amx-blog-shell > .breadcrumb_container {
    display: none !important;
}

body .amx-blog-library {
    padding: 58px 0 0;
}

body .amx-blog-library__header {
    align-items: end;
    display: grid;
    gap: 14px 42px;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.58fr);
    margin-bottom: 28px;
}

body .amx-blog-library__eyebrow {
    color: #0b67ff;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.3;
    margin: 0 0 10px;
    text-transform: uppercase;
}

body .amx-blog-library__header h2 {
    color: #07111f;
    font-size: 36px;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
}

body .amx-blog-library__header > p:last-child {
    color: #44546a;
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
}

body .amx-blog-grid.row {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

body .amx-blog-grid.row::before,
body .amx-blog-grid.row::after {
    content: none;
}

body .amx-blog-grid > .amx-blog-card-wrap,
body .amx-blog-grid > .listing_wrapper {
    float: none;
    margin: 0;
    max-width: none;
    min-height: 0;
    padding: 0;
    width: auto;
}

body .amx-blog-card {
    background: #ffffff;
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    min-height: 0;
    overflow: hidden;
    position: relative;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    width: 100%;
}

body .amx-blog-card:hover,
body .amx-blog-card:focus-within {
    border-color: #9cc4ff;
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.13);
    transform: translateY(-3px);
}

body .amx-blog-card__media {
    aspect-ratio: 16 / 10;
    background: #d9e5f5;
    display: block;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

body .amx-blog-card__media::after {
    background: linear-gradient(180deg, rgba(7, 17, 31, 0) 52%, rgba(7, 17, 31, 0.28) 100%);
    bottom: 0;
    content: "";
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
}

body .amx-blog-card__media-img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
    width: 100%;
}

body .amx-blog-card:hover .amx-blog-card__media-img {
    transform: scale(1.035);
}

body .amx-blog-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 22px 22px 24px;
}

body .amx-blog-card__meta {
    align-items: center;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 750;
    gap: 8px;
    line-height: 1.3;
    margin-bottom: 13px;
}

body .amx-blog-card__category {
    background: #ecf4ff;
    border: 1px solid #d3e6ff;
    border-radius: 999px;
    color: #075df2;
    display: inline-flex;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    padding: 7px 10px;
    text-decoration: none;
}

body .amx-blog-card__category:hover,
body .amx-blog-card__category:focus {
    color: #003fae;
}

body .amx-blog-card__title {
    font-size: 22px;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.16;
    margin: 0 0 12px;
}

body .amx-blog-card__title a {
    color: #07111f;
    display: -webkit-box;
    overflow: hidden;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body .amx-blog-card__title a:hover,
body .amx-blog-card__title a:focus {
    color: #075df2;
}

body .amx-blog-card__excerpt {
    color: #46566e;
    display: -webkit-box;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

body .amx-blog-card__action {
    align-items: center;
    color: #075df2;
    display: inline-flex;
    font-size: 14px;
    font-weight: 850;
    gap: 7px;
    line-height: 1;
    margin-top: auto;
    text-decoration: none;
}

body .amx-blog-card__action span {
    font-size: 16px;
    line-height: 1;
    transition: transform 160ms ease;
}

body .amx-blog-card__action:hover,
body .amx-blog-card__action:focus {
    color: #003fae;
}

body .amx-blog-card__action:hover span,
body .amx-blog-card__action:focus span {
    transform: translateX(3px);
}

body .amx-blog-pagination {
    margin-top: 34px;
}

body .amx-blog-pagination .pagination {
    justify-content: center;
}

@media (min-width: 1500px) {
    body .amx-blog-grid.row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1199px) {
    body .amx-blog-grid.row {
        gap: 22px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .amx-blog-library__header {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body .amx-blog-shell.wpresidence_page_content_wrapper {
        padding: 0 16px 54px;
    }

    body .amx-blog-library {
        padding-top: 32px;
    }

    body .amx-blog-library__header h2 {
        font-size: 29px;
    }

    body .amx-blog-grid.row {
        grid-template-columns: 1fr;
    }

    body .amx-blog-card__body {
        padding: 20px 18px 22px;
    }

    body .amx-blog-card__title {
        font-size: 20px;
    }
}

@media (max-width: 991px) {
    body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4,
    body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4,
    body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4,
    body .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 {
        gap: 0 !important;
    }

    body.page-template-agents_list .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4 > .amx-name-verified-shield,
    body.page-template-agents_list .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 > .amx-name-verified-shield,
    body .amx-professional-directory-results > .wpresidence_agent_unit_wrapper > .agent_unit.amx-agent-card .amx-agent-card__identity h4 > .amx-name-verified-shield,
    body .amx-professional-directory-results > .amx-professional-directory-company > .agency_unit.amx-company-card .amx-company-card__identity h4 > .amx-name-verified-shield {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/*
 * AvailMax mobile navigation refinement (v5.1.80).
 * Preserve the theme's default logo on desktop and mobile.
 */
@media (max-width: 1199.98px) {
    html body #mobilewrapper_links {
        --amx-mobile-menu-bg: var(--wp-estate-mobile-menu-background-color-option, #ffffff);
        --amx-mobile-menu-color: var(--wp-estate-mobile-menu-font-color-option, var(--wp-estate-main-color-option, #dd3333));
        --amx-mobile-menu-hover-color: var(--wp-estate-mobile-menu-hover-font-color-option, var(--wp-estate-main-color-option, #dd3333));
        --amx-mobile-menu-hover-bg: var(--wp-estate-mobile-item-hover-back-color-option, #ffffff);
    }

    html body #mobilewrapper_links,
    html body #mobilewrapper_links .snap-drawers,
    html body #mobilewrapper_links .snap-drawer,
    html body #mobilewrapper_links .snap-drawer-left,
    html body #mobilewrapper_links .mobilex-menu,
    html body #mobilewrapper_links .mobilex-menu ul.sub-menu,
    html body #mobilewrapper_links .mobilex-menu li,
    html body #mobilewrapper_links .mobilex-menu li:hover,
    html body #mobilewrapper_links .mobilex-menu li:focus-within {
        background: var(--amx-mobile-menu-bg) !important;
        background-color: var(--amx-mobile-menu-bg) !important;
    }

    html body #mobilewrapper_links .mobilex-menu li > a,
    html body #mobilewrapper_links .mobilex-menu li > span,
    html body #mobilewrapper_links .mobilex-menu li.amx-mobile-menu__heading,
    html body #mobilewrapper_links .mobilex-menu li.amx-mobile-menu__heading > span {
        background: var(--amx-mobile-menu-bg) !important;
        background-color: var(--amx-mobile-menu-bg) !important;
        color: var(--amx-mobile-menu-color) !important;
    }

    html body #mobilewrapper_links .mobilex-menu li > a:hover,
    html body #mobilewrapper_links .mobilex-menu li > a:focus,
    html body #mobilewrapper_links .mobilex-menu li > a:active,
    html body #mobilewrapper_links .mobilex-menu li.current-menu-item > a,
    html body #mobilewrapper_links .mobilex-menu li.current-menu-ancestor > a,
    html body #mobilewrapper_links .mobilex-menu li.current-menu-parent > a,
    html body #mobilewrapper_links .mobilex-menu li.amx-mobile-menu__item--open > a,
    html body #mobilewrapper_links .mobilex-menu li > a[aria-current="page"] {
        background: var(--amx-mobile-menu-hover-bg) !important;
        background-color: var(--amx-mobile-menu-hover-bg) !important;
        color: var(--amx-mobile-menu-hover-color) !important;
    }

    html body #mobilewrapper_links .mobilex-menu li.menu-item-has-children > a::after,
    html body #mobilewrapper_links .mobilex-menu li > .amx-mobile-submenu-toggle {
        background: transparent !important;
        color: var(--amx-mobile-menu-color) !important;
    }

    html body #mobilewrapper_links .mobilex-menu li > .amx-mobile-submenu-toggle:hover,
    html body #mobilewrapper_links .mobilex-menu li > .amx-mobile-submenu-toggle:focus,
    html body #mobilewrapper_links .mobilex-menu li > .amx-mobile-submenu-toggle[aria-expanded="true"] {
        background: transparent !important;
        color: var(--amx-mobile-menu-hover-color) !important;
    }

    html body #mobilewrapper_links .mobilemenu-close {
        background: var(--amx-mobile-menu-bg) !important;
        background-color: var(--amx-mobile-menu-bg) !important;
        color: var(--amx-mobile-menu-color) !important;
    }

    html body #mobilewrapper_links .mobilemenu-close:hover,
    html body #mobilewrapper_links .mobilemenu-close:focus,
    html body #mobilewrapper_links .mobilemenu-close i:hover,
    html body #mobilewrapper_links .mobilemenu-close i:focus {
        color: var(--amx-mobile-menu-hover-color) !important;
    }
}

/*
 * Property-type popup semantic color exception (v5.1.81).
 * Rent remains blue while Sale keeps the popup's own red gradient.
 */
html body #amx-type-popup .amx-popup-actions button.amx-rent,
html body #amx-type-popup .amx-popup-actions button.amx-rent:hover,
html body #amx-type-popup .amx-popup-actions button.amx-rent:focus,
html body #amx-type-popup .amx-popup-actions button.amx-rent:active {
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%) !important;
    background-color: #2563eb !important;
}

/*
 * Canonical footer logo for every public page.
 * The content override also repairs cached footer markup that still references
 * the removed availMax-main-logo.webp attachment.
 */
html body #amx-site-footer img.amx-footer-logo {
    content: url("https://availmax.com/wp-content/uploads/2026/08/availmax-red-logo-e1787364424580.png") !important;
    display: block !important;
    width: 120px !important;
    max-width: 120px !important;
    height: auto !important;
    margin: 0 0 10px !important;
    object-fit: contain !important;
}
