/* Hide Mobile Menu on Desktop Screens and Fix Positioning */

/* Hide mobile menu elements on desktop */
@media (min-width: 768px) {
  .mobile-menu-toggle,
  .mobile-menu-panel,
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* Ensure mobile menu is properly positioned on mobile */
@media (max-width: 767px) {
  .mobile-menu-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
    cursor: pointer;
  }
  
  .mobile-menu-panel {
    position: fixed;
    top: 0;
    left: -100%;
    z-index: 9999;
    height: 100vh;
    width: 85%;
    max-width: 320px;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
  }
  
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 998;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Ensure proper stacking */
  body {
    position: relative;
  }
  
  /* When menu is open */
  body.menu-open {
    overflow: hidden;
  }
}
