/* Restore bounded scrolling inside the map drawer without changing the frozen JS. */
div.relative.h-screen.overflow-hidden.bg-background > aside [data-slot="tabs-content"] .sq-scroll {
  min-height: 0;
}

/* On phones the filters can occupy most of the drawer. Let the complete tab
   (filters and results) scroll as one surface instead of a tiny nested list. */
@media (max-width: 639px) {
  div.relative.h-screen.overflow-hidden.bg-background > aside [data-slot="tabs-content"] {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }
  div.relative.h-screen.overflow-hidden.bg-background > aside [data-slot="tabs-content"] > div.flex.h-full.flex-col {
    height: auto;
    min-height: 100%;
  }
  div.relative.h-screen.overflow-hidden.bg-background > aside [data-slot="tabs-content"] .sq-scroll {
    flex: 0 0 auto;
    overflow: visible;
  }
  div.relative.h-screen.overflow-hidden.bg-background > aside [data-slot="tabs-content"] .sq-scroll [data-radix-scroll-area-viewport] {
    height: auto;
    overflow: visible !important;
  }
  div.relative.h-screen.overflow-hidden.bg-background > aside [data-slot="tabs-content"] .sq-scroll [data-slot="scroll-area-scrollbar"] {
    display: none;
  }
}
