/* ===========================================
   Modern Mobile Menu - Glassmorphism Design
   Pure CSS - No dependencies
   =========================================== */

/* Menu Panel */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
              opacity 0.4s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
}

/* Background Scene - Deep Black Base */
.mobile-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, #050505 0%, rgba(5, 5, 5, 0.94) 42%, rgba(5, 5, 5, 0) 100%) top / 100% 72px no-repeat,
    radial-gradient(circle at 75% 50%, rgba(255, 51, 102, 0.18) 0%, rgba(255, 51, 102, 0.10) 28%, rgba(255, 51, 102, 0.04) 44%, transparent 60%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.72) 0%, rgba(5, 5, 5, 0.38) 22%, rgba(5, 5, 5, 0.52) 48%, rgba(5, 5, 5, 0.88) 82%, #050505 100%),
    linear-gradient(100deg, rgba(5, 5, 5, 0.94) 0%, rgba(5, 5, 5, 0.84) 30%, rgba(5, 5, 5, 0.5) 55%, rgba(5, 5, 5, 0.14) 80%, transparent 100%),
    #050505;
  z-index: 0;
}

/* Hero-style directional dark wash */
.mobile-menu::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(5, 5, 5, 0.62) 0%, rgba(5, 5, 5, 0.42) 34%, rgba(5, 5, 5, 0.18) 62%, rgba(5, 5, 5, 0) 100%),
    radial-gradient(circle at 18% 28%, rgba(5, 5, 5, 0.36) 0%, rgba(5, 5, 5, 0.12) 44%, rgba(5, 5, 5, 0) 72%);
  pointer-events: none;
  z-index: 0;
}

.mobile-menu-blob {
  display: none;
}

/* Light Ghost Glass Container */
.mobile-menu-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  /* Glass Effect */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0%, rgba(255, 255, 255, 0.008) 100%),
    linear-gradient(90deg, rgba(6, 6, 8, 0.72) 0%, rgba(18, 12, 18, 0.46) 18%, rgba(28, 18, 26, 0.24) 50%, rgba(18, 12, 18, 0.46) 82%, rgba(6, 6, 8, 0.72) 100%);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: white;
  overflow: hidden;
  min-height: 0;
}

.mobile-menu,
.mobile-menu a,
.mobile-menu button,
.mobile-menu span,
.mobile-menu .msubtitle,
.mobile-menu-premium-item span {
  font-family: "S\00F6hne", sans-serif;
  font-style: normal;
}

/* Make sure content area can scroll and show all items */
.mobile-menu-content > * {
  flex-shrink: 0 !important;
}

/* Backdrop Overlay */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  z-index: 9998;
  pointer-events: none;
  transition: background 0.4s ease;
}

.mobile-menu-backdrop.is-visible {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
}

/* Header */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  gap: 16px;
  flex-shrink: 0;
}

/* Login Button */
.mobile-menu-login-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.025em;
  transition: all 0.2s ease;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: "S\00F6hne", sans-serif;
}

.mobile-menu-login-btn:hover,
.mobile-menu-login-btn:active {
  background: rgba(255, 255, 255, 0.1);
}

/* Icon wrap styling */

.mobile-menu-login-btn .icon-wrap {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background 0.2s ease;
  color: #aea8aa;
}

.mobile-menu-login-btn i {
  font-size: 14px;
}

/* Close Button */
.mobile-menu-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-close::before,
.mobile-menu-close::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
}

.mobile-menu-close::before {
  transform: rotate(45deg);
}

.mobile-menu-close::after {
  transform: rotate(-45deg);
}

/* Scrollable Content Area */
.mobile-menu-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  -webkit-overflow-scrolling: touch;
  /* Ensure touch scrolling works */
  touch-action: pan-y;
  overscroll-behavior: contain;
  /* Allow content to be scrollable */
  min-height: 0;
}

/* Hide Scrollbar but keep functional */
.mobile-menu-content::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.mobile-menu-content {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Main CTA Button */
.mobile-menu-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(to right, #E61E4D 0%, #E31C5F 50%, #D70466 100%);
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.025em;
  box-shadow: 0 8px 32px -8px rgba(255, 51, 102, 0.4);
  transition: all 0.2s ease;
  overflow: hidden;
  font-family: "S\00F6hne", sans-serif;
  text-transform: uppercase;
}

.mobile-menu-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mobile-menu-cta:hover::before,
.mobile-menu-cta:active::before {
  opacity: 1;
}

.mobile-menu-cta:active {
  transform: scale(0.98);
}

.mobile-menu-cta i {
  font-size: 20px;
}

/* Glass Widget Container */
.mobile-menu-widget {
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  float: none !important;
  display: block !important;
  height: auto !important;
  max-height: none !important;
}

/* Widget Header */
.mobile-menu-widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mobile-menu-widget-header i {
  font-size: 12px;
}

/* Locations Grid */
.mobile-menu-locations {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 14px !important;
  margin: 0 !important;
  list-style: none !important;
  background: transparent !important;
  border: none !important;
  max-width: none !important;
  text-align: left !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.mobile-menu-location {
  display: block !important;
  padding: 11px 0px 11px 18px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none !important;
  font-size: 14px !important;
  transition: all 0.2s ease;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
  line-height: 1.4 !important;
  font-family: "S\00F6hne", sans-serif;
  font-weight: 500;
}

/* Single item on last row - span full width */
.mobile-menu-location:last-child:nth-child(odd) {
  grid-column: span 2;
}

.mobile-menu-location:hover,
.mobile-menu-location:active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Location with icon */
.mobile-menu-location.has-icon {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
}

.mobile-menu-location.has-icon svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.mobile-menu-location.has-icon:hover svg,
.mobile-menu-location.has-icon:active svg {
  opacity: 1;
}

/* NEW label pill */
.mobile-menu-location .label-pill {
  display: inline-block;
  padding: 2px 6px;
  margin-left: -3px;
  background: linear-gradient(to right, #E61E4D 0%, #D70466 100%);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

/* Premium Footer Grid */
.mobile-menu-premium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mobile-menu-premium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-menu-premium-item:hover,
.mobile-menu-premium-item:active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 51, 102, 0.5);
}

.mobile-menu-premium-item svg {
  width: 20px;
  height: 20px;
  color: #ff3366;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.mobile-menu-premium-item:hover svg {
  transform: scale(1.1);
}

.mobile-menu-premium-item span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.08em;
}

/* Body Lock when menu open - avoid position:fixed on iOS */
body.mobile-menu-open {
  overflow: hidden !important;
  position: fixed;
  left: 0;
  right: 0;
  /* top is set dynamically by JS to preserve scroll position */
}

/* Scroll indicator gradient removed - was covering content */

/* Ensure no conflicts with site's .box_location */
.mobile-menu .mobile-menu-locations,
.mobile-menu .mobile-menu-location {
  position: static !important;
  box-sizing: border-box !important;
}

.msubtitle {
    padding-left: 18px;
    color: #d8d8d8;
    font-size: 16px;
    font-family: "S\00F6hne", sans-serif;
}

/* Prevent conflicts with .box_location on mobile */
@media (max-width: 1141px) {
/*  .box_location {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }  */

  body.mobile-menu-open .box_location {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
  }
}

/* Force mobile menu above everything */
.mobile-menu,
.mobile-menu-backdrop {
  isolation: isolate;
}

/* Hide on desktop */
@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu-backdrop,
  .hamburger {
    display: none !important;
  }
}

/* Safe area for notched devices */
@supports (padding-top: env(safe-area-inset-top)) {
  .mobile-menu-header {
    padding-top: calc(24px + env(safe-area-inset-top));
  }

  .mobile-menu-content {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}
