/**
 * Mobile Menu — Right Side Drawer
 * Styles for the drawer/overlay built by assets/js/mobile-menu.js
 */

/* Mobile Overlay */
#so-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

#so-mobile-overlay.so-overlay-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease 0s, visibility 0s linear 0s;
}

/* Drawer panel */
#so-mobile-drawer {
  position: fixed;
  top: 0;
  right: -62%;
  width: 60%;
  height: 100%;
  background: #ffffff;
  z-index: 99999;
  overflow-y: auto;
  transition: right 0.3s ease;
  padding: 0;
  border-radius: 20px 0 0 20px;
}

#so-mobile-drawer.so-drawer-open {
  right: 0;
}

/* Drawer header: close button on LEFT, Menu title on right */
#so-drawer-header {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  padding: 18px 20px 14px 20px;
  gap: 12px;
}

/* "Menu" title */
#so-drawer-title {
  font-family: Quicksand, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a1d5e;
  line-height: 1;
}

/* Close (×) button — now on the LEFT */
#so-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #1a1d5e;
  cursor: pointer;
  padding: 2px 4px;
  font-weight: 400;
}
#so-drawer-close:hover {
  color: #04b2d9;
}

/* Nav inside drawer */
#so-drawer-nav {
  padding: 0 0 30px;
}
#so-drawer-nav .main-navigation {
  display: block !important;
}
#so-drawer-nav .ast-nav-menu {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

/* Top-level menu items */
#so-drawer-nav .ast-nav-menu > li {
  border-bottom: 0.5px solid #04b2d9 !important;
  margin: 0 !important;
}
#so-drawer-nav .ast-nav-menu > li > a {
  display: block !important;
  padding: 12px 16px !important;
  font-family: Quicksand, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #4a4c56 !important;
  text-decoration: none !important;
  background: none !important;
}
#so-drawer-nav .ast-nav-menu > li > a:hover,
#so-drawer-nav .ast-nav-menu > li.current-menu-item > a {
  color: #04b2d9 !important;
}

/* Sub-menu toggle (chevron) */
#so-drawer-nav .ast-menu-toggle {
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  color: #04b2d9 !important;
  padding: 12px 12px 12px 4px !important;
}
#so-drawer-nav .ast-menu-toggle .ast-icon svg {
  fill: #04b2d9 !important;
  stroke: #04b2d9 !important;
  width: 14px !important;
  height: 14px !important;
}

/* "Find Activity" row: flex to put chevron inline */
#so-drawer-nav .menu-item-has-children {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}
#so-drawer-nav .menu-item-has-children > a {
  flex: 1 !important;
}
#so-drawer-nav .menu-item-has-children > .ast-menu-toggle {
  flex-shrink: 0 !important;
}

/* Sub-menu */
#so-drawer-nav .sub-menu {
  display: none !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  background: #f8fbfc !important;
}
#so-drawer-nav li.ast-submenu-expanded > .sub-menu {
  display: block !important;
}
#so-drawer-nav .sub-menu li {
  border-bottom: 0.5px solid #e0f4f9 !important;
}
#so-drawer-nav .sub-menu li a {
  display: block !important;
  padding: 12px 16px 12px 28px !important;
  font-family: Quicksand, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #4a4c56 !important;
  text-decoration: none !important;
  background: none !important;
}
#so-drawer-nav .sub-menu li a:hover {
  color: #04b2d9 !important;
}

/* Prevent body scroll when drawer is open */
/* body.so-drawer-active - no longer used; scroll locking is handled by JS body position:fixed technique */
body.so-drawer-active {
  /* overflow:hidden removed - causes iOS Safari paint artifacts */
}
