
/* V41.23 — definitive desktop scrolling reset for every non-home page */
@media screen and (min-width:769px){
  html{
    height:auto!important;
    min-height:100%!important;
    max-height:none!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }

  body:not(.aqar-home-map){
    position:static!important;
    height:auto!important;
    min-height:100vh!important;
    max-height:none!important;
    overflow-x:hidden!important;
    overflow-y:visible!important;
  }

  body:not(.aqar-home-map) main{
    position:relative!important;
    height:auto!important;
    min-height:60vh!important;
    max-height:none!important;
    overflow:visible!important;
  }

  body:not(.aqar-home-map) footer{
    display:block!important;
    position:relative!important;
  }

  /* Account, add listing, notifications, profile, static pages and forms */
  body:not(.aqar-home-map) form,
  body:not(.aqar-home-map) section,
  body:not(.aqar-home-map) article{
    max-height:none;
  }

  /* Search/list results */
  body.aqar-properties-list,
  body.aqar-properties-map{
    height:auto!important;
    min-height:100vh!important;
    overflow-x:hidden!important;
    overflow-y:visible!important;
  }
  body.aqar-properties-list main,
  body.aqar-properties-map main{
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }

  /* Map inside properties page must not turn the whole document into a fixed viewport */
  body.aqar-properties-map #properties-map-shell:not(.map-fullscreen-panel){
    position:relative!important;
    height:620px!important;
    min-height:480px!important;
    max-height:68vh!important;
    overflow:visible!important;
  }
  body.aqar-properties-map #properties-map-shell:not(.map-fullscreen-panel) #map{
    height:100%!important;
    min-height:480px!important;
    max-height:none!important;
  }

  /* Fullscreen is the only allowed page-lock state outside homepage */
  body.map-open-fullscreen{
    overflow:hidden!important;
  }
}

/* Homepage remains intentionally map-first/fullscreen */
body.aqar-home-map{
  overflow:hidden!important;
}
