
/* AC-R169-DESKTOP-STICKY
   Desktop only. Scoped to the existing public listing sidebar.
   Preserve mobile drawer, breadcrumb, cards, images and footer untouched.
   Works even when AC-only html[data-ac104-mode] flags are missing.
*/
@media screen and (min-width: 992px) {
  /* Sticky cannot work if a containing ancestor creates a scroll clip. */
  html body section.dir-list-all-bg:has(.dir-alp-con > #ac137-filter-panel),
  html body section.dir-list-all-bg:has(.dir-alp-con > #ac137-filter-panel) > .container,
  html body section.dir-list-all-bg:has(.dir-alp-con > #ac137-filter-panel) > .container > .row {
    overflow: visible !important;
  }

  html body section.dir-list-all-bg:has(.dir-alp-con > #ac137-filter-panel) .dir-alp-con {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* Only this real listings sidebar stays in view. Its own overflow scrolls
     when filters are taller than the available viewport height. */
  html body section.dir-list-all-bg .dir-alp-con > #ac137-filter-panel.col-md-3.dir-no-padd {
    display: block !important;
    flex: 0 0 25% !important;
    width: 25% !important;
    min-width: 0 !important;
    max-width: 25% !important;
    float: none !important;
    align-self: flex-start !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 70px !important;
    bottom: auto !important;
    height: auto !important;
    max-height: calc(100vh - 84px) !important;
    max-height: calc(100dvh - 84px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: #9eafc1 transparent;
    z-index: 12 !important;
    transform: none !important;
    -webkit-transform: none !important;
    will-change: auto !important;
    transition: none !important;
    animation: none !important;
  }

  html body section.dir-list-all-bg .dir-alp-con > .col-md-9.dir-alp-con-right {
    display: block !important;
    flex: 1 1 75% !important;
    width: 75% !important;
    min-width: 0 !important;
    max-width: 75% !important;
    float: none !important;
    position: relative !important;
    overflow: visible !important;
  }

  html body section.dir-list-all-bg .dir-alp-con > #ac137-filter-panel::-webkit-scrollbar {
    width: 6px;
  }
  html body section.dir-list-all-bg .dir-alp-con > #ac137-filter-panel::-webkit-scrollbar-thumb {
    background: #9eafc1;
    border-radius: 9px;
  }
}
