/* ================================================================
   REAL PROPERTY GURU — AGENCY DESKTOP FILTER ISOLATION M24
   DESKTOP ONLY: min-width 1101px
   Mobile/tablet intentionally untouched.
   ================================================================ */

@media (min-width:1101px) {
    /* Any direct child injected into the native agency GET form by
       Properties-only desktop filter scripts is not part of the agency UI. */
    #agency-properties form.rpg-storefront__filters > .bpp-m24-desktop-foreign-filter-artifact,
    .rpg-storefront__inventory form.rpg-storefront__filters > .bpp-m24-desktop-foreign-filter-artifact {
        display:none !important;
        width:0 !important;
        height:0 !important;
        min-width:0 !important;
        min-height:0 !important;
        max-width:0 !important;
        max-height:0 !important;
        margin:0 !important;
        padding:0 !important;
        border:0 !important;
        overflow:hidden !important;
        opacity:0 !important;
        visibility:hidden !important;
        pointer-events:none !important;
    }

    /* Native agency sections remain normal and visible. */
    #agency-properties form.rpg-storefront__filters > .rpg-storefront__filter-search,
    #agency-properties form.rpg-storefront__filters > .rpg-storefront__transaction-tabs,
    #agency-properties form.rpg-storefront__filters > .rpg-storefront__filter-grid,
    #agency-properties form.rpg-storefront__filters > .rpg-storefront__filter-actions {
        display:revert !important;
        visibility:visible !important;
        opacity:1 !important;
    }

    /* Prevent desktop Properties shell states from changing the agency form. */
    #agency-properties form.rpg-storefront__filters.bpp-v79-open,
    #agency-properties form.rpg-storefront__filters.bpp-v79-ready,
    #agency-properties form.rpg-storefront__filters[class*="offcanvas"],
    #agency-properties form.rpg-storefront__filters[class*="drawer"] {
        position:relative !important;
        inset:auto !important;
        width:100% !important;
        max-width:none !important;
        height:auto !important;
        max-height:none !important;
        overflow:visible !important;
        transform:none !important;
    }

    /* Desktop agency filter never needs a Properties-page drawer/backdrop. */
    #agency-properties .bpp-m24-desktop-properties-drawer,
    #agency-properties [data-bpp-m24-desktop-properties-drawer="1"] {
        display:none !important;
    }
}
