/* Mobile / tablet dropdown fix - 2026-11-24
   Problem: the Location (11 items) and Services lists opened inline, pushed the page down
   and ran under the fixed call bar. Now the open menu scrolls inside its own panel,
   Location uses two columns, and only one dropdown stays open at a time. */
@media (max-width: 991.98px) {
  #sticky_menu .navbar-collapse.show,
  #sticky_menu .navbar-collapse.collapsing {
    max-height: calc(100vh - 230px);
    max-height: calc(100dvh - 230px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 70px; /* clears the fixed call bar */
  }
  .fixed-top#sticky_menu .navbar-collapse.show {
    max-height: calc(100vh - 150px);
    max-height: calc(100dvh - 150px);
  }
  #sticky_menu .navbar-nav > li > .dropdown-menu { max-width: 100%; }
  #sticky_menu .navbar-nav > li > .dropdown-menu li a {
    padding: 11px 10px;
    font-size: .9em;
    white-space: normal;
    line-height: 1.25;
  }
  /* Location: two columns instead of one tall column */
  #sticky_menu .navbar-nav > li.menu-item-430 > .dropdown-menu.show,
  #sticky_menu .navbar-nav > li.menu-item-430 > .dropdown-menu[style*="display: block"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }
  #sticky_menu .navbar-nav > li.menu-item-430 > .dropdown-menu li a { font-size: .82em; }
}

/* Desktop dropdown fix - 2026-11-24
   The Location list (11 cities) ran below the visible window on short screens.
   Now it opens in two columns, aligned to the right edge of its menu item,
   and any dropdown scrolls inside itself if the window is still too short. */
@media (min-width: 992px) {
  #sticky_menu .navbar-nav > li > .dropdown-menu {
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #sticky_menu .navbar-nav > li.menu-item-430 > .dropdown-menu.show {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    width: max-content;
    max-width: min(560px, 92vw);
    left: auto;
    right: 0;
  }
  #sticky_menu .navbar-nav > li.menu-item-430 > .dropdown-menu li a {
    white-space: normal;
    line-height: 1.25;
    padding: 12px 14px;
  }
}
