/* 1. Reset & Base */

html.loading {
    overflow: hidden !important;
}

html.loading body {
    overflow: hidden !important;
}

/* Hide all content immediately until JavaScript loads */
html.loading main,
html.loading .top-bar {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) !important;
    transition: none !important; /* TEMPORARY: Only prevents flash during initial load */
}

/* Entrance blocker - prevents any content from showing */
html.loading::before {
    content: '';
    position: fixed;
    inset: 0;
    background: #f5f5f5; /* Match your body background */
    z-index: 99999;
    pointer-events: none;
}

/* Ready state - Your beautiful transitions work normally here */
html.content-ready main,
html.content-ready .top-bar {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    /* NO transition override here - your CSS transitions work normally */
}

html.content-ready::before {
    display: none;
}

.fog-entrance {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: 
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.9) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(248, 250, 252, 0.8) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(241, 245, 249, 0.7) 0%, transparent 70%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.6) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(249, 250, 251, 0.5) 0%, transparent 50%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 25%, #f1f5f9 50%, #e2e8f0 75%, #f8fafc 100%);
  
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s ease-out, visibility 1.2s ease-out; /* CHANGE from 2s to 1s for faster fade */
  animation: fogFloat 8s ease-in-out infinite alternate;
  backdrop-filter: blur(0px);
}

.fog-entrance.dissipate {
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(2px);
}

@keyframes fogFloat {
  0% {
    background-position: 0% 0%, 100% 100%, 50% 50%, 0% 100%, 100% 0%;
  }
  100% {
    background-position: 20% 20%, 80% 80%, 60% 40%, 10% 90%, 90% 10%;
  }
}

/* Prevent scrolling during entrance */
body.fog-loading {
  overflow: hidden;
}
html {
  overflow-y: scroll; /* Always show scrollbar space */
}

/* Hide the actual scrollbar but keep the space */
html::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}
/* Theater Curtains - Smooth Gradient */
.curtain-container {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  overflow: hidden;
}

.curtain {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  /* Add more color stops for smoother gradient */
  background: linear-gradient(90deg, 
    #d8d8d8 0%, 
    #dcdcdc 10%,
    #e0e0e0 20%,
    #e4e4e4 30%,
    #e8e8e8 40%,
    #ececec 50%,
    #f0f0f0 60%,
    #f4f4f4 70%,
    #f8f8f8 80%,
    #fcfcfc 90%,
    #ffffff 100%
  );
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
  /* Force smooth rendering */
  image-rendering: optimizeQuality;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.curtain-left {
  left: 0;
  transform-origin: left center;
}

.curtain-right {
  right: 0;
  transform-origin: right center;
  /* Mirror gradient */
  background: linear-gradient(90deg, 
    #ffffff 0%,
    #fcfcfc 10%,
    #f8f8f8 20%,
    #f4f4f4 30%,
    #f0f0f0 40%,
    #ececec 50%,
    #e8e8e8 60%,
    #e4e4e4 70%,
    #e0e0e0 80%,
    #dcdcdc 90%,
    #d8d8d8 100%
  );
}

.curtain-container.open .curtain-left {
  transform: translateX(-100%);
}

.curtain-container.open .curtain-right {
  transform: translateX(100%);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html.is-animating, html.is-loading {
  overflow: hidden;
}
html, body {
  user-select: none;
}
body {
  font-family: 'Lexend', Arial, sans-serif;
  background: #f5f5f5; /* CHANGE from #ffffff to #f5f5f5 */
  color: #111;
  overflow-x: hidden;
  padding-bottom: 4rem;
  padding-top: 120px !important;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(-45deg, #f8f8f8 0%, #fafafa 25%, #f5f5f5 50%, #f0f0f0 75%, #fafafa 100%);
  background-size: 400% 400%;
  animation: gradientShift 40s ease infinite;
  will-change: background-position;
  z-index: -1;
}

body, main {
  padding-left: 16px;
  padding-right: 16px;
}

/* 2. Header / Top Bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 32px;
  right: 32px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%); /* Safari support */
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 3px 24px rgba(79, 50, 30, 0.17), 0 1px 4px rgba(0, 0, 0, 0.10);
  border-radius: 0 0 16px 16px;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  opacity: 1;

  /* REMOVED:
     transform: translateY(0);
     will-change: opacity, transform;
  */
}

/* Only apply transform during hide animation */
.top-bar.hidden {
  transform: translateY(-120%);
}

/* Original header styles - will be overridden by media queries */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: transparent;
  position: relative;
  padding: 0.7rem 0;
}
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
}
.logo-img { display: none; }
.logo-img-mobile {
  display: none;
  height: 50px;
  max-width: 240px;
  object-fit: contain;
}
.logo-text {
  font-family: 'Lexend', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #111 !important;
  letter-spacing: 0.04em;
  transition: opacity 0.3s;
}

/* 3. Controls (Lang + Top) */
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-left: auto;
}
.controls #langToggle,
#backToTop {
  margin: 0 !important;
}

/* 4. Tabs (Categories) */
.tabs {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.5rem 0.5rem 6px;
  border-radius: 0 0 16px 16px;
  mask-image: linear-gradient(to right, transparent 0, black 40px, black calc(100% - 40px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 40px, black calc(100% - 40px), transparent 100%);
  scrollbar-width: none;
  scroll-behavior: smooth;
  will-change: scroll-position;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  font-family: 'Lexend', Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 114px;
  padding: 0.7rem 1.22rem;
  font-weight: 600;
  font-size: 1.01rem;
  color: #111;
  background: rgba(255, 255, 255, 0);
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.25s ease, color 0.25s ease, border 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease-out;
  will-change: transform;
}
.tab.active {
  color: #2e2112 !important;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.tab:hover:not(.active) {
  transform: translateY(-1px);
}

/* 5. Menu Dividers with Enhanced Styling */
.menu-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 80px auto 64px;
  position: relative;
  width: 100%;
  max-width: 640px;
  font-family: 'Lexend', Arial, sans-serif;
  font-size: clamp(1.5rem, 4.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: clamp(0.08em, 0.4vw, 0.18em);
  color: #111;
  text-transform: uppercase;
  
  /* CSS custom property for dynamic width */
  --line-width: 300px;
}

/* Text container span */
.menu-divider span {
  display: inline-block;
  line-height: 1.25;
  margin-bottom: 1.2rem;
  
  /* Clean glass effect */
  text-shadow: 
    0 1px 2px rgba(255, 255, 255, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.08);
  
  position: relative;
  z-index: 2;
  
  /* Center the text properly */
  text-align: center;
  white-space: nowrap;
}

/* Main line - Uses CSS custom property for exact width */
.menu-divider::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--line-width);
  min-width: 250px; /* Fallback minimum width */
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 0, 0, 0.25) 20%, 
    rgba(0, 0, 0, 0.45) 50%, 
    rgba(0, 0, 0, 0.25) 80%, 
    transparent 100%
  );
}

/* REAL 3D reflection - Uses CSS custom property for exact width */
.menu-divider::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleY(-1);
  width: var(--line-width);
  min-width: 250px; /* Fallback minimum width */
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 0, 0, 0.12) 20%, 
    rgba(0, 0, 0, 0.22) 50%, 
    rgba(0, 0, 0, 0.12) 80%, 
    transparent 100%
  );
  opacity: 0.5;
  filter: blur(0.5px);
}

/* Special wrapper for & symbols - BLACK color */
.divider-amp {
  display: inline;
  font-weight: inherit;
  color: #111 !important;
  opacity: 1 !important;
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
   ===================================================== */

/* Mobile screens (up to 600px) */
@media (max-width: 600px) {
  .menu-divider {
    margin: 56px auto 48px;
    padding: 0 2rem;
  }
  
  .menu-divider span {
    margin-bottom: 1rem;
    white-space: normal; /* Allow wrapping on mobile */
  }
  
  /* ONLY ON MOBILE: Make & symbols into separate centered lines */
  .divider-amp {
    display: block !important; /* FORCE block display */
    margin: 0.2em 0;
    font-size: 0.8em;
    color: #111 !important;
    opacity: 1 !important;
    text-align: center;
  }
  
  /* MOBILE: Force centered lines with fixed width */
  .menu-divider::after,
  .menu-divider::before {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 200px !important; /* Fixed width for mobile */
  }
  
  .menu-divider::before {
    transform: translateX(-50%) scaleY(-1) !important;
  }
  
}

/* =====================================================
   ENHANCED SCROLLING & ACCESSIBILITY
   ===================================================== */

/* Enhanced scrolling for tabs on desktop */
@media (hover: hover) and (min-width: 601px) {
  .tabs {
    position: relative;
  }
  
  .tabs::before,
  .tabs::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 6px;
    width: 20px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .tabs::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.9), transparent);
  }
  
  .tabs::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
  }
  
  .tabs.scrollable::before,
  .tabs.scrollable::after {
    opacity: 1;
  }
  
  .tabs.scrollable {
    cursor: grab;
  }
  
  .tabs.scrollable:active {
    cursor: grabbing;
  }
  
  .tabs.has-scroll-left::before,
  .tabs.has-scroll-right::after {
    opacity: 0.7;
  }
}

/* Focus indicators for accessibility */
.tab:focus {
  outline: 2px solid #4f321e;
  outline-offset: 2px;
}

#changeLocationBtn:focus,
#langToggle:focus {
  outline: 2px solid #4f321e;
  outline-offset: 2px;
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  .tab,
  .tabs {
    transition: none;
  }
  
  .tab:hover:not(.active) {
    transform: none;
  }
  
  .tabs {
    scroll-behavior: auto;
  }
  
  /* Disable smooth fade-in animation for reduced motion */
  main,
  .top-bar {
    transition: none !important;
  }
}

/* Tablet screens (601px - 768px) */
@media (min-width: 601px) and (max-width: 768px) {
  .menu-divider {
    margin: 70px auto 56px;
    padding: 0 2rem;
  }
  
  .menu-divider span {
    white-space: nowrap !important;
  }
  
  /* TABLET: Keep & symbols inline */
  .divider-amp {
    display: inline !important;
    color: #111 !important;
    opacity: 1 !important;
  }
  
  /* TABLET: Force centered lines */
  .menu-divider::after,
  .menu-divider::before {
    left: 50% !important;
    transform: translateX(-50%) !important;
    min-width: 300px !important;
  }
  
  .menu-divider::before {
    transform: translateX(-50%) scaleY(-1) !important;
  }
}

/* Desktop screens (769px and up) */
@media (min-width: 769px) {
  .menu-divider span {
    white-space: nowrap !important; /* DESKTOP: FORCE one line */
  }
  
  /* DESKTOP: & symbols stay inline */
  .divider-amp {
    display: inline !important;
    color: #111 !important;
    opacity: 1 !important;
  }
  
  /* DESKTOP: Ensure proper centering */
  .menu-divider::after,
  .menu-divider::before {
    left: 50% !important;
    transform: translateX(-50%) !important;
    min-width: 400px !important;
  }
  
  .menu-divider::before {
    transform: translateX(-50%) scaleY(-1) !important;
  }
}

/* Large desktop (1025px and up) */
@media (min-width: 1025px) {
  .menu-divider span {
    white-space: nowrap !important;
  }
  
  /* LARGE DESKTOP: Longer minimum lines */
  .menu-divider::after,
  .menu-divider::before {
    min-width: 500px !important;
  }
}

/* =====================================================
   VISIBILITY AND ANIMATION
   ===================================================== */

/* Fix first section visibility - UPDATED for better desktop spacing */
.menu-section:first-of-type {
  margin-top: 0 !important;
  padding-top: 2rem !important; /* Keep base padding for mobile */
}

/* DESKTOP: Add more space between header and first divider */
@media (min-width: 601px) {
  .menu-section:first-of-type {
    padding-top: 4rem !important; /* Increased from 2rem to 4rem for desktop */
  }
}

/* LARGE DESKTOP: Even more breathing room */
@media (min-width: 1025px) {
  .menu-section:first-of-type {
    padding-top: 5rem !important; /* Even more space on large screens */
  }
}

.menu-section:first-of-type .menu-divider {
  margin-top: 40px !important;
}

/* Smooth entrance animation */
.menu-divider {
  opacity: 1 !important; /* Force visibility for first section */
  transform: translateY(0) !important;
}

/* Progressive reveal for subsequent dividers */
.menu-divider:not(:first-child) {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.menu-divider.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .menu-divider {
    transition: none;
  }
  
  .menu-divider::before {
    filter: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .menu-divider span {
    color: #000;
    text-shadow: none;
  }
  
  .menu-divider::after {
    background: linear-gradient(90deg, transparent 0%, #000 50%, transparent 100%);
    height: 2px;
  }
  
  .menu-divider::before {
    display: none; /* Hide reflection in high contrast mode */
  }
}

/* 6. Menu Items */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100vw;
  min-height: 100vh;
  padding-bottom: 3rem;
  
  /* ENHANCED: Support for smooth fade-in */
  opacity: 1;
  transform: translateY(0);
  will-change: opacity, transform;
}

.menu-section {
  width: 100%;
  max-width: 640px;
  scroll-margin-top: 120px; 
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-item {
  width: 100%;
  max-width: 540px;
  margin: 36px 0;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 8px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.food-photo {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
  background: #fff;
  user-select: none;
}

.item-info {
  padding: 1.4rem 1.8rem 4.5rem;
  position: relative;
  background: #fff;
}

.item-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  line-height: 1.3;
  position: relative;
}

.item-info p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.price {
  position: absolute;
  bottom: 1.5rem;
  right: 1.8rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.45rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.15em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* 8. Premium Glass-Style Buttons */
.premium-btn {
  font-family: 'Lexend', Arial, sans-serif !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.6em 1.4em !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: #2e2112 !important;
  background: rgba(255, 255, 255, 0.20) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05), 0 4px 15px rgba(0,0,0,0.06) !important;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease !important;
  cursor: pointer !important;
  user-select: none !important;
  outline: none !important;
  z-index: 10 !important;
}
.premium-btn:hover {
  background: rgba(255,255,255,0.3) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6) !important, 0 6px 20px rgba(0,0,0,0.08) !important;
  transform: translateY(-1px) !important;
}
.premium-btn:active {
  background: rgba(255,255,255,0.35) !important;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.1) !important, 0 2px 8px rgba(0,0,0,0.06) !important;
  transform: translateY(0) !important;
  filter: brightness(1.07) !important;
  transition: filter 0.08s !important;
}

/* Back-to-Top - Enhanced with Apple-style animations */
#backToTop {
  position: fixed !important;
  right: 32px !important;
  bottom: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  
  /* Premium Apple-style transitions */
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Apple's easing curve */
  z-index: 3000 !important;
  
  /* Enhanced visual styling */
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Visible state - smooth Apple-style entrance */
#backToTop.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1); /* Smooth entrance */
}

/* Premium hover effect - but not when hiding */
#backToTop.visible:hover:not(.hiding) {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.16),
    0 4px 12px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px) saturate(200%);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Pressed state - Apple-style feedback */
#backToTop.visible:active:not(.hiding) {
  transform: translateY(-1px) scale(0.98);
  transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* HIDING STATE - This overrides .visible when both classes are present */
#backToTop.visible.hiding {
  opacity: 0 !important;
  transform: translateY(15px) scale(0.9) !important;
  pointer-events: none !important;
  transition: all 0.5s cubic-bezier(0.55, 0.06, 0.68, 0.19) !important; /* Apple's exit curve */
}

/* 9. Language Transition Effect */
.lt, .en {
  transition: opacity 0.15s ease-in-out;
}
body.lang-transition .lt,
body.lang-transition .en {
  opacity: 0;
}

/* 10. SCROLL FADE-IN ANIMATION */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  will-change: opacity, transform;
}
.fade-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1), transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

@media (hover: hover) {
  .menu-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06), 0 16px 50px rgba(0, 0, 0, 0.08);
  }
}

/* NEW BADGE STYLES */
.new-badge {
  position: absolute;
  top: 16px;
  left: -8px;
  /* Apple-style red gradient */
  background: linear-gradient(135deg, 
    #FF453A 0%,
    #FF3B30 40%,
    #FF2D55 80%,
    #FF3B30 100%
  );
  color: white;
  padding: 6px 14px 6px 22px;
  border-radius: 4px 12px 12px 4px;
  z-index: 5;
  font-family: 'Lexend', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  
  /* Premium effects */
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 4px 16px rgba(255, 59, 48, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(1px);
  transform: translateZ(0);
}

/* Star animation - top border */
.new-badge::before {
  content: '';
  position: absolute;
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.8) 50%,
    transparent 100%
  );
  top: 0;
  left: -50px;
  animation: star-border-horizontal 3s linear infinite;
  pointer-events: none;
}

/* Star animation - bottom border */
.new-badge::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.8) 50%,
    transparent 100%
  );
  bottom: 0;
  right: -50px;
  animation: star-border-horizontal-reverse 3s linear infinite;
  pointer-events: none;
}

/* Glare hover effect */
.new-badge:hover::before {
  /* Temporarily replace star with glare sweep */
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 100%
  );
  transform: skewX(-15deg);
  animation: glare-sweep 0.6s ease-out;
}

@keyframes star-border-horizontal {
  0% {
    left: -50px;
  }
  100% {
    left: calc(100% + 50px);
  }
}

@keyframes star-border-horizontal-reverse {
  0% {
    right: -50px;
  }
  100% {
    right: calc(100% + 50px);
  }
}

@keyframes glare-sweep {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Keep inline badge unchanged */
.new-badge-inline {
  display: inline-block;
  vertical-align: baseline;
  margin-left: 8px;
  background: rgb(210, 35, 35);
  color: white;
  padding: 3px 7px;
  border-radius: 5px;
  font-family: 'Lexend', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Fix zoom issue */
@media (hover: hover) {
  .menu-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06), 0 16px 50px rgba(0, 0, 0, 0.08);
  }
  
  /* Prevent menu items with new badge from scaling on hover */
  .menu-item:has(.new-badge):hover {
    transform: translateY(-8px); /* Keep the lift but remove the scale */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06), 0 16px 50px rgba(0, 0, 0, 0.08);
  }
}

/* =====================================================
   LOCATION MODAL STYLES - FIXED ALL CONFLICTS
   ===================================================== */
/* =====================================================
   LOCATION MODAL STYLES - FIXED ALL CONFLICTS
   ===================================================== */
.location-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 8000 !important;
  overflow-y: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  opacity: 1;
  visibility: hidden;
  transition: visibility 0s linear 0.3s;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none !important;
}

.location-modal.visible {
  visibility: visible;
  transition-delay: 0s;
}

.location-modal-backdrop {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  backdrop-filter: blur(8px) !important;
  background: rgba(0,0,0,0.3) !important;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.location-modal.visible .location-modal-backdrop {
  opacity: 1;
  transition: opacity 0.2s ease-out;
}

/* Normal state - no zoom */
.location-modal-content {
  position: relative !important;
  z-index: 2 !important;
  background: #fdfdfd !important;
  border-radius: 20px !important;
  padding: 2rem 1.5rem !important;
  max-width: 640px !important;
  width: calc(100% - 40px) !important;
  max-height: calc(100vh - 80px) !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important;
  text-align: center !important;
  opacity: 0;
  transform: scale(1); /* Normal scale by default */
  transition: opacity 0.3s ease-out;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Start scaled down ONLY when entrance-animation class is present */
.location-modal.entrance-animation .location-modal-content {
  transform: scale(0.5) !important; /* Force 50% scale at start */
  opacity: 0;
}

/* Zoom to 100% when both entrance-animation and visible */
.location-modal.entrance-animation.visible .location-modal-content {
  transform: scale(1) !important;
  opacity: 1;
  transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Normal state without entrance - no zoom */
.location-modal:not(.entrance-animation) .location-modal-content {
  transform: scale(1);
  transition: opacity 0.3s ease-out;
}

.location-modal.visible:not(.entrance-animation) .location-modal-content {
  opacity: 1;
  transform: scale(1);
}
#modalLangToggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.location-logo {
  max-width: 220px;
  margin-bottom: 2rem;
}

.location-modal-content h2 {
  font-family: 'Lexend', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 2rem;
}

.location-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.location-btn {
  font-family: 'Lexend', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 1.2rem 1rem;
  border: 1px solid rgba(0,0,0,0.1);
  background-color: #fff;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  color: #000;
}

.location-btn:hover {
  color: #000;
  transform: translateY(-4px) scale(1.02);
  background-color: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.location-btn:active {
  color: #000;
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* =====================================================
   SOCIAL ICONS STYLES
   ===================================================== */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 0 1px rgba(0,0,0,0.05);
  transition: all 0.2s ease-in-out;
  color: #4f321e;
  flex-shrink: 0;
}

.social-icons a:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 15px rgba(0,0,0,0.12), 0 0 1px rgba(0,0,0,0.08);
}

.social-icons a:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 5px rgba(0,0,0,0.06);
  filter: brightness(1.05);
}

.social-icons svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2;
}

.location-buttons .social-icons {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a,
.social-icons a img {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* =====================================================
   ANIMATED BACKGROUND STYLES
   ===================================================== */
.animated-background {
  position: fixed;
  inset: 0;
  z-index: 7998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.animated-background.visible {
  opacity: 0.1;
  visibility: visible;
}

#animated-background-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* =====================================================
   SHINY TEXT EFFECT
   ===================================================== */
.shiny-text {
  color: #333 !important;
  position: relative;
}

.shiny-text::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(110deg, transparent 45%, white 50%, transparent 55%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine-final 4s linear infinite;
}

@keyframes shine-final {
  to {
    background-position: -200% 0;
  }
}

/* =====================================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ===================================================== */

/* Mobile adjustments for back to top */
@media (max-width: 600px) {
  #backToTop {
    right: 12px !important;
    bottom: 18px !important;
    padding: 0.42rem 1.1rem !important;
    font-size: 1rem !important;
    
    /* Slightly different mobile transitions */
    transform: translateY(25px) scale(0.75);
  }
  
  #backToTop.visible {
    transform: translateY(0) scale(1);
  }
  
  #backToTop.visible:hover:not(.hiding) {
    transform: translateY(-1px) scale(1.02); /* Subtle on mobile */
  }
  
  #backToTop.visible.hiding {
    transform: translateY(20px) scale(0.85) !important;
  }

  /* Mobile modal optimizations */
  .location-modal {
    padding: 15px !important;
  }
  
  .location-modal-content {
    width: calc(100% - 30px) !important;
    max-height: calc(100vh - 60px) !important;
    padding: 1.5rem 1rem !important;
  }

  .location-buttons { 
    grid-template-columns: 1fr; 
  }
  
  .location-logo { 
    max-width: 200px; 
  }
  
  .location-modal-content h2 { 
    font-size: 1.2rem; 
  }
  
  .location-btn { 
    font-size: 1rem; 
    padding: 1rem; 
  }

  .social-icons {
    gap: 15px;
    margin-top: 25px;
    padding-top: 15px;
  }
  
  .social-icons a {
    width: 44px;
    height: 44px;
  }
  
  .social-icons svg {
    width: 22px;
    height: 22px;
  }
  
  
  
  /* Mobile screens (up to 600px) */
@media (max-width: 600px) {
  /* Prevent ANY layout shift on mobile */
  html {
    overflow-y: visible !important;
    height: 100% !important;
  }
  
  body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 100% !important;
  }
  
  /* When modal is visible, lock everything */
  body:has(.location-modal.visible) {
    overflow: hidden !important;
  }
  
  /* Ensure modal takes full viewport without causing shifts */
  .location-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important; /* Dynamic viewport height for mobile */
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .location-modal-backdrop {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
  }
}
  
}

/* ALL MOBILE SCREENS (max-width: 600px) */
@media (max-width: 600px) {
  header {
  display: grid !important;
  grid-template-columns: 44px 1fr 44px !important;
  grid-template-areas: "left center right" !important;
  align-items: center !important;
  justify-items: center !important;
  padding: 0.8rem 1rem !important;
  min-height: 56px !important;
  gap: 0.8rem !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 1000 !important;
  width: 100% !important;
}
  
  .header-left {
  grid-area: left !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 1001 !important;
  overflow: visible !important;
}
  
  .logo {
    grid-area: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .logo-img { display: none; }
  .logo-img-mobile {
    display: block;
    height: 60px !important;
    max-width: 250px !important;
    object-fit: contain;
    margin: 0 !important;
  }
  .logo-text { display: none; }
  .header-right {
  grid-area: right !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  margin-top: 2px !important;
  padding: 0 !important;
}
  
  .controls {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  width: 44px !important;
  height: 44px !important;
  grid-area: right !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}
  
  #changeLocationBtn {
  position: absolute !important;
  left: 16px !important;
  top: 16px !important;
  width: 44px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  z-index: 9999 !important;
  box-sizing: border-box !important;
  vertical-align: top !important;
  
  /* NEW UNIFIED PROPERTIES */
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  font-size: 0.85rem !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  outline: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  flex-basis: 44px !important;
}
  
  #changeLocationBtn:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
  }
  
  #changeLocationBtn:active {
    transform: translateY(0) !important;
    background: rgba(255, 255, 255, 0.4) !important;
  }
  
  #changeLocationBtn .icon-text { display: none; }
  
  #changeLocationBtn .icon-svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    stroke-width: 2.5 !important;
    position: relative !important;
    z-index: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  /* Fix any pseudo-elements or lines */
  #changeLocationBtn::before,
  #changeLocationBtn::after {
    display: none !important;
    content: none !important;
  }

  #changeLocationBtn * {
    position: relative !important;
    z-index: 1 !important;
  }
  
 #langToggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 4px !important;
  height: 46px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  transition: all 0.2s ease !important;
  font-size: 0.85rem !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  outline: none !important;
  box-sizing: border-box !important;
  vertical-align: top !important;
position: relative !important;
 top: -4.1px !important;
  
  /* NEW UNIFIED PROPERTIES */
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  font-weight: 500 !important;
  color: #2e2112 !important;
  cursor: pointer !important;
  text-align: center !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  flex-basis: 44px !important;
}

#changeLocationBtn:hover,
#langToggle:hover {
  background: rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
}

/* ACTIVE STATES - Identical for both buttons */
#changeLocationBtn:active,
#langToggle:active {
  transform: translateY(0) !important;
  background: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}
#changeLocationBtn::before,
#changeLocationBtn::after,
#langToggle::before,
#langToggle::after {
  display: none !important;
  content: none !important;
}
@media (max-width: 600px) {
  .location-modal #modalLangToggle {
    position: absolute !important;
    top: 0.8rem !important;
    right: 0.8rem !important;
    z-index: 10 !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    font-size: 0.75rem !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  }
}

/* Ensure no margin/padding inheritance */
.controls #langToggle,
.controls #changeLocationBtn {
  margin: 0 !important;
  padding: 0 !important;
}



  body { padding-top: 110px !important; }
  
  .top-bar {
    left: 8px !important; 
    right: 8px !important; 
    top: 8px !important;
    border-radius: 16px !important;
    box-shadow: 0 3px 18px rgba(79,50,30,0.10), 0 1px 4px rgba(79,50,30,0.05);
  }
  
  .tabs {
    gap: 0.35rem;
    padding: 0.5rem 0.1rem 6px;
    justify-content: flex-start !important;
    margin-top: 0.4rem !important;
  }
  
  .tab {
    flex: 0 0 auto; 
    white-space: nowrap; 
    padding: 0.6rem 1rem;
    margin: 0 0.2rem; 
    font-size: 0.96rem;
  }
  
  .tab:hover:not(.active) { transform: none; }
  
  .menu-divider { 
    font-size: 1.5rem;
    margin: 56px auto 48px;
    letter-spacing: 0.12em;
    padding: 0 30px;
  }
}

/* Small Desktop/Tablet (601px - 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
  header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0.7rem 24px !important;
  }

  .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
  }
  
  .logo-img { 
    display: block;
    max-height: 50px;
    max-width: 180px;
  }
  .logo-img-mobile { display: none; }

  .header-left {
    position: relative;
    display: flex;
    align-items: center;
    width: auto;
    min-width: 0;
  }

  #changeLocationBtn {
    display: inline-flex;
    padding: 0.5em 1.1em !important;
    font-size: 0.9rem !important;
    margin: 0;
  }
  
  #changeLocationBtn .icon-text { display: inline; }
  #changeLocationBtn .icon-svg { display: none; }

  #currentlyBrowsing {
    position: absolute;
    top: 100%;
    left: 0;
	transform: translateX(4%);
    display: inline-block;
    font-size: 0.75rem;
    font-weight: normal;
    color: #555;
    margin-top: 0.3rem;
    margin-bottom: 0.6rem;
    white-space: nowrap;
  }

  .controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  #langToggle {
    padding: 0.5em 1.1em !important;
    font-size: 0.9rem !important;
    min-width: 55px;
  }
  
  .tabs {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding: 0.5rem 0.5rem 6px;
    gap: 0.4rem;
    mask-image: linear-gradient(to right, transparent 0, black 20px, black calc(100% - 20px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 20px, black calc(100% - 20px), transparent 100%);
    scrollbar-width: none !important;
    margin-top: 0.8rem;
  }
  
  .tabs::-webkit-scrollbar {
    display: none !important;
  }
  
  .tab {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.65rem 1.1rem;
    font-size: 0.95rem;
    min-width: auto;
  }
}

/* Medium Desktop (1025px - 1366px) */
@media (min-width: 1025px) and (max-width: 1366px) {
  header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 95px;
    padding: 1.2rem 32px !important;
  }

  .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
  }
  
  .logo-img {
    display: block;
    max-height: 55px;
    max-width: 200px;
  }
  .logo-img-mobile { display: none; }

  .header-left {
    position: relative;
    display: flex;
    align-items: center;
    width: auto;
  }

  #changeLocationBtn {
    display: inline-flex;
    padding: 0.55em 1.3em !important;
    font-size: 0.92rem !important;
    margin: 0;
  }
  
  #changeLocationBtn .icon-text { display: inline; }
  #changeLocationBtn .icon-svg { display: none; }

  #currentlyBrowsing {
    position: absolute;
    top: 100%;
    left: 0;
	transform: translateX(4%);
    display: inline-block;
    font-size: 0.78rem;
    font-weight: normal;
    color: #555;
    margin-top: 0.4rem;
    margin-bottom: 0.7rem;
    white-space: nowrap;
  }

  .controls {
    display: flex;
    align-items: center;
    gap: 0.85rem;
  }
  
  #langToggle {
    padding: 0.55em 1.3em !important;
    font-size: 0.92rem !important;
    min-width: 58px;
  }
  
  .tabs {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding: 0.5rem 0.75rem 6px;
    gap: 0.5rem;
    mask-image: linear-gradient(to right, transparent 0, black 30px, black calc(100% - 30px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 30px, black calc(100% - 30px), transparent 100%);
    scrollbar-width: none !important;
    margin-top: 0.9rem;
  }
  
  .tabs::-webkit-scrollbar {
    display: none !important;
  }
  
  .tab {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.7rem 1.15rem;
    font-size: 0.98rem;
  }
}

/* Large Desktop (1367px and up) */
@media (min-width: 1367px) {
  header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    padding: 1.4rem 48px !important;
  }

  .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
  }
  
  .logo-img {
    display: block;
    max-height: 60px;
    max-width: 210px;
  }
  .logo-img-mobile { display: none; }

  .header-left {
    position: relative;
    display: flex;
    align-items: center;
    width: auto;
  }

  #changeLocationBtn {
    display: inline-flex;
    padding: 0.6em 1.4em !important;
    font-size: 0.95rem !important;
    margin: 0;
  }
  
  #changeLocationBtn .icon-text { display: inline; }
  #changeLocationBtn .icon-svg { display: none; }

  #currentlyBrowsing {
    position: absolute;
    top: 100%;
    left: 0;
	transform: translateX(4%);
    display: inline-block;
    font-size: 0.8rem;
    font-weight: normal;
    color: #555;
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
    white-space: nowrap;
  }

  .controls {
    display: flex;
    align-items: center;
    gap: 0.85rem;
  }
  
  #langToggle {
    padding: 0.6em 1.4em !important;
    font-size: 0.95rem !important;
    min-width: 60px;
  }
  
  .tabs {
    justify-content: center !important;
    overflow-x: auto !important;
    padding: 0.5rem 1rem 6px;
    gap: 0.6rem;
    mask-image: none;
    -webkit-mask-image: none;
    margin-top: 1rem;
  }
  
  .tab {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.7rem 1.22rem;
    font-size: 1.01rem;
  }
}

/* Food Icons */
.food-name {
  display: inline;
}

.food-icons {
  display: inline-block; /* This is the key change */
  vertical-align: baseline; /* Aligns the icon with the text */
  white-space: nowrap;
}

.food-icons img {
  width: 20px;
  height: 20px;
  opacity: 0.85;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.food-icons img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Desktop only spicy adjustment */
@media (min-width: 601px) {
  .food-icons.spicy-icons {
    margin-left: 0.1rem;
  }
}

/* Hide mobile icons by default */
/* ======================================================= */
/* === FINAL MOBILE ICON PLACEMENT (Handles All Cases) === */
/* ======================================================= */

/* This is the crucial default rule that was missing. */
/* It hides the mobile icons on desktop. */
.mobile-icons {
  display: none !important;
}

@media (max-width: 600px) {
  /* Hide desktop icons on mobile */
  .desktop-icons {
    display: none !important;
  }
  
  /* 1. Default state (no accordion): mobile icons align with price level */
  /* Default state: mobile icons align with price level */
.item-info > .mobile-icons {
  display: flex !important;
  position: absolute;
  bottom: 1.8rem;
  left: 1.8rem;
  gap: 0.3rem;
}

.menu-item:has(.variants-list) .mobile-icons {
  bottom: 0.8rem !important; /* Much lower to avoid overlap */
}
.menu-item:has(.variants-list):has(.mobile-icons) .item-info {
  padding-bottom: 2.5rem !important; /* More space for vegan icon */
}
  
  /* MANUAL CONTROL: Regular food tab vegan icon size */
  .item-info > .mobile-icons img {
    width: 20px !important;
    height: 20px !important;
  }
  
  /* 2. When accordion is open: */
  
  /* Reduce bottom padding - less awkward space */
  .menu-item:has(details.addons-accordion[open]) .item-info {
    padding-bottom: 3rem !important;
  }
  .menu-item:has(details.addons-accordion[open]) .mobile-icons {
  position: absolute !important;
  bottom: 1.3rem !important;
  left: 1.8rem !important;
}

  
  /* Position vegan icon lower but not at very bottom */
  details.addons-accordion[open] ~ .mobile-icons {
    position: absolute !important;
    bottom: 3.5rem !important;
    left: 1.8rem !important;
  }
  
  /* MANUAL CONTROL: Accordion vegan icon size */
  details.addons-accordion[open] ~ .mobile-icons img {
    width: 20px !important;
    height: 20px !important;
  }
  
  /* Make sure price aligns with "Be priedų" text */
  .menu-item:has(details.addons-accordion[open]) .item-info > .price {
    position: absolute !important;
    bottom: 3.5rem !important; /* Same as "Be priedų" */
    right: 1.8rem !important;
  }
}
/* Mobile performance optimizations */
.low-performance * {
  will-change: auto !important;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.low-performance .menu-item {
  transition: none !important;
}

.low-performance .fade-in-element {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.low-performance .menu-divider {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.low-performance .top-bar {
  transition: none !important;
}

.low-performance main {
  transition: none !important;
}

/* Disable hover effects on touch devices */
@media (hover: none) {
  .menu-item:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04), 0 8px 40px rgba(0, 0, 0, 0.06) !important;
  }
  
  .tab:hover:not(.active) {
    transform: none !important;
  }
  
  .food-icons img:hover {
    transform: none !important;
    opacity: 0.85 !important;
  }
}
/* ADD THIS AT THE VERY END OF YOUR CSS FILE */

/* Force instant state change when hiding */
.location-modal:not(.visible) .location-modal-content {
  opacity: 0 !important;
  transform: scale(1) !important;
  transition: opacity 0.2s ease-out !important; /* Only fade, no transform */
}

/* Prevent any flicker during state changes */
.location-modal {
  will-change: auto !important; /* Don't pre-optimize */
}

.location-modal-content {
  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .location-modal-content,
  .curtain,
  .fog-entrance,
  .top-bar,
  main {
    transition: none !important;
    animation: none !important;
  }
  
  .location-modal.entrance-animation .location-modal-content {
    transform: scale(1) !important;
  }
}

/* Optimize for mobile performance */
@media (max-width: 600px) {
  .location-modal-content {
    transition: opacity 0.2s ease-out !important;
    transform: scale(1) !important;
  }
  
  .location-modal.entrance-animation .location-modal-content {
    transform: scale(1) !important; /* No zoom on mobile */
  }
}
/* ======================================================= */
/* === UNIFIED LIST & ACCORDION STYLES (FINAL)         === */
/* ======================================================= */

/* --- 1. Main Containers for Accordion & Variants List --- */
.addons-accordion,
.variants-list {
  margin-top: 1.5rem;
  border-top: 1px solid #f0f0f0;
  padding-top: 1rem;
}

/* Tighter spacing when a list follows a title with no description */
.item-info h3 + .variants-list,
.item-info h3 + .addons-accordion {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}


/* --- 2. Accordion-Specific Styles (Header & Icon) --- */
.addons-accordion summary {
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
  outline: none;
  list-style: none; /* Hide default arrow */
  position: relative;
  display: flex; /* Ensures icon aligns properly */
}

.addons-accordion summary::-webkit-details-marker {
  display: none; /* Hide arrow for Chrome/Safari */
}

.addons-accordion summary::after {
  content: '+';
  margin-left: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  transition: transform 0.2s;
  line-height: 1;
}

.addons-accordion[open] > summary::after {
  transform: rotate(45deg);
}


/* --- 3. Shared List & Item Styles --- */
.addons-accordion ul,
.variants-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.addons-accordion li,
.variants-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #f8f8f8;
  line-height: 1.4;
}

.addons-accordion li:last-child,
.variants-list li:last-child {
  border-bottom: none;
}


/* --- 4. Shared Layout Stability & Price Tag Design --- */

/* This wrapper prevents layout shift on language toggle for both list types */
.variant-name {
  flex-grow: 1;
}

/* This styles the price tag to be identical for both list types */
.addons-accordion li .price,
.variants-list li .price {
  position: static;
  flex-shrink: 0;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 0.45rem 1.2rem;
  font-weight: 600;
  font-size: 1.15em;
  color: #111;
  min-width: 80px; /* Fixed width for consistency */
  text-align: center; /* Center the price text */
}
/* ======================================================= */
/* === PREMIUM INLINE "NEW" BADGE (with Star Border)   === */
/* ======================================================= */

/* 1. Updated main style for the inline badge */
.new-badge-inline {
  display: inline-block;
  position: relative; /* Crucial for positioning the animation elements */
  vertical-align: baseline;
  margin-left: 8px;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 5px;
  overflow: hidden; /* CRUCIAL: Hides the animation outside the badge's bounds */
  background: linear-gradient(135deg, #FF453A 0%, #FF3B30 40%, #FF2D55 80%, #FF3B30 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateZ(0);
}


/* 2. Top star border animation (from the original .new-badge) */
.new-badge-inline::before {
  content: '';
  position: absolute;
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.8) 50%,
    transparent 100%
  );
  top: 0;
  left: -50px; /* Starts off-screen */
  animation: star-border-horizontal 3s linear infinite;
  pointer-events: none;
}


/* 3. Bottom star border animation (from the original .new-badge) */
.new-badge-inline::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.8) 50%,
    transparent 100%
  );
  bottom: 0;
  right: -50px; /* Starts off-screen */
  animation: star-border-horizontal-reverse 3s linear infinite;
  pointer-events: none;
}

/* ======================================================= */
/* === STYLED DESCRIPTION LISTS (Matching Variant Style) === */
/* ======================================================= */

.description-list {
  margin: 0.5rem 0 1.2rem 0; /* Space above and below the list */
  color: #555;
  font-size: 1.05rem;
  line-height: 1.5;
}

.description-list ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* This now matches the style of the variant/addon list items */
.description-list li {
  padding: 0.7rem 0; /* Vertical spacing */
  border-bottom: 1px solid #f8f8f8; /* Subtle line separator */
}

.description-list li:last-child {
  border-bottom: none; /* Remove line from the last item */
}

.title-icon {
  opacity: 0.85;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* This adds the hover effect back */
.title-icon:hover {
  opacity: 1;
  transform: scale(1.1); /* Slightly larger scale for better feedback */
}

.variant-name {
  flex-grow: 1;
  display: block; /* Change from flex to block */
  max-width: 70%; /* Limit width to prevent extreme stretching */
  word-wrap: break-word;
  hyphens: auto;
}

/* This pushes the badge down to align with the second line.
  You can adjust the 'margin-top' value to fine-tune the position.
*/
.badge-wrapper {
    display: flex;
    justify-content: center; /* Center the badge */
    margin-top: 4px;
    width: 100%; /* Take full width of price container */
}

.new-badge-inline {
    margin-left: 0 !important; /* Remove left margin */
}

@media (max-width: 600px) {
  .variant-name {
    display: block !important; /* Override flex completely on mobile */
  }
  
  .badge-wrapper {
    float: right !important; /* Simple float to right */
    margin-top: 0.5rem !important;
    clear: both !important;
  }
}
.seasonal-badge {
  position: absolute;
  top: 16px;
  left: -8px;
  /* Rich autumn gradient - perfect for hearty soups */
  background: linear-gradient(135deg, 
    #FF8C00 0%,    /* Dark Orange */
    #FF7F50 25%,   /* Coral */
    #CD853F 50%,   /* Peru */
    #D2691E 75%,   /* Chocolate */
    #FF6347 100%   /* Tomato */
  );
  color: white;
  padding: 6px 14px 6px 22px;
  border-radius: 4px 12px 12px 4px;
  z-index: 5;
  font-family: 'Lexend', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 4px 16px rgba(255, 140, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(1px);
  transform: translateZ(0);
}

/* Golden star border animations */
.seasonal-badge::before {
  content: '';
  position: absolute;
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 215, 0, 0.9) 50%,
    transparent 100%
  );
  top: 0;
  left: -50px;
  animation: star-border-horizontal 3.5s linear infinite;
  pointer-events: none;
}

.seasonal-badge::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 215, 0, 0.9) 50%,
    transparent 100%
  );
  bottom: 0;
  right: -50px;
  animation: star-border-horizontal-reverse 3.5s linear infinite;
  pointer-events: none;
}
/* Weather icons inherit all the same rules as food icons */
.weather-icons {
  display: inline-block;
  vertical-align: baseline;
  white-space: nowrap;
}

.weather-icons img {
  width: 20px;
  height: 20px;
  opacity: 0.85;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.weather-icons img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Desktop spacing adjustment for weather icons (same pattern as spicy) */
@media (min-width: 601px) {
  .weather-icons.cold-icons,
  .weather-icons.hot-icons {
    margin-left: 0.1rem;
  }
}

/* Hide mobile weather icons by default */
.mobile-weather-icons {
  display: none !important;
}

@media (max-width: 600px) {
  /* Hide desktop weather icons on mobile */
  .desktop-weather-icons {
    display: none !important;
  }
  
  /* Default state: mobile weather icons align with price level */
  .item-info > .mobile-weather-icons {
    display: flex !important;
    position: absolute;
    bottom: 1.8rem;
    left: 1.8rem;
    gap: 0.3rem;
  }
  
  /* Weather icon size */
  .item-info > .mobile-weather-icons img {
    width: 20px !important;
    height: 20px !important;
  }
  
  /* When accordion is open with weather icons: */
  details.addons-accordion[open] ~ .mobile-weather-icons {
    position: absolute !important;
    bottom: 1.5rem !important;
    left: 1.8rem !important;
  }
  
  details.addons-accordion[open] ~ .mobile-weather-icons img {
    width: 20px !important;
    height: 20px !important;
  }
}
.price-and-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.price-and-badge .new-badge-inline {
    margin-left: 0;
}
/* === MOBILE FIX for Price/Badge Alignment === */
/* === FINAL MOBILE FIX (Corrected for Manual Adjustment) === */
@media (max-width: 600px) {
  /*
    This rule sets up the main grid structure.
    Note that the 'gap' property has been removed.
  */
  .variants-list li:has(.price-and-badge) {
    display: grid;
    grid-template-columns: 1fr auto; /* Col 1 expands, Col 2 fits content */
    align-items: start;
  }

  /*
    ===> HORIZONTAL (Left/Right) ADJUSTMENT <===
    This rule targets the description text container. By changing
    the padding-right, you control the space between the text
    and the price/badge block.
  */
  .variants-list li:has(.price-and-badge) .variant-name {
    padding-right: 1rem; /* Increase to move right, decrease to move left */
  }

  /*
    ===> VERTICAL (Up/Down) ADJUSTMENT <===
    This rule targets the price/badge container. By changing
    the top property, you can nudge the block up or down.
  */
  .variants-list li:has(.price-and-badge) .price-and-badge {
    position: relative;
    top: 3px; /* Increase to move down, decrease (or use negative) to move up */
  }
}
.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 80px; /* Ensure consistent width */
}
/* ======================================================= */
/* FIX FOR BULVINIAI BLYNAI WHITE SPACE - ADD THESE RULES */
/* ======================================================= */

/* Reduce bottom padding for items with variants list */
.menu-item:has(.variants-list) .item-info {
  padding-bottom: 1.5rem !important; /* Much more reduced */
}

/* Fix text wrapping for long variant names */
.variants-list .variant-name {
  flex-grow: 1;
  line-height: 1.4; /* Better line height for readability */
  word-wrap: normal; /* Don't force word breaking */
  hyphens: none; /* Remove auto hyphens */
  overflow-wrap: normal; /* Don't break words aggressively */
}

/* Better spacing for variant items with long text */
.variants-list li {
  padding: 0.6rem 0; /* Slightly reduced from 0.7rem */
  align-items: flex-start; /* Align items to top instead of center */
  gap: 0.8rem; /* Add gap between text and price */
}

/* Specific fix for the truffle variant text wrapping */
.variants-list li .variant-name span {
  display: block;
  max-width: 100%;
  word-break: normal; /* Don't break words unnaturally */
  white-space: normal; /* Allow natural text flow */
}

/* Mobile specific fixes */
@media (max-width: 600px) {
  .menu-item:has(.variants-list) .item-info {
    padding-bottom: 1.2rem !important;
  }
  
  .variants-list .variant-name {
    font-size: 0.9rem; /* Smaller text on mobile */
    line-height: 1.3;
    max-width: 70%; /* Limit width to prevent extreme wrapping */
  }
  
  .variants-list li {
    gap: 0.5rem; /* Smaller gap on mobile */
  }
  
  /* Make price area more compact on mobile */
  .variants-list li .price {
    font-size: 0.95em;
    padding: 0.35rem 1rem;
  }
}
/* FIX: Match base price tag width in open accordion */
.item-info:has(.addons-accordion[open]) > .price {
  min-width: 80px;
  text-align: center;
}
/* Hide main price tag when accordion is open */
.menu-item:has(details.addons-accordion[open]) .item-info > .price {
  display: none !important;
}

/* Remove the space where price was hidden */
.menu-item:has(details.addons-accordion[open]) .item-info {
  padding-bottom: 3rem !important;
}
/* =====================================================
   MOBILE-ONLY FIXES - ADD TO BOTTOM OF CSS
   ===================================================== */

/* Mobile-only blur fixes */
@media (max-width: 600px) {
  /* Force blur on capable mobile devices */
  @supports (backdrop-filter: blur(1px)) {
    .top-bar {
      background: rgba(255,255,255,0.80) !important;
      backdrop-filter: blur(20px) saturate(180%) !important;
      -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    }
  }
  
  /* Enhanced blur for high-resolution mobile screens */
  @supports (backdrop-filter: blur(1px)) and (min-resolution: 2dppx) {
    .blur-capable .top-bar {
      background: rgba(255,255,255,0.75) !important;
      backdrop-filter: blur(25px) saturate(200%) !important;
      -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
    }
  }
  
  /* Disable blur only on truly ancient mobile devices */
  .low-performance .top-bar {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  /* Mobile safe area adjustments */
  @supports (padding: max(0px)) {
    .top-bar {
      left: max(8px, calc(8px + env(safe-area-inset-left))) !important;
      right: max(8px, calc(8px + env(safe-area-inset-right))) !important;
      top: max(8px, calc(8px + env(safe-area-inset-top))) !important;
    }
    
    body {
      padding-top: max(110px, calc(110px + env(safe-area-inset-top))) !important;
    }
    
    .location-modal-content {
      padding-top: max(2rem, calc(2rem + env(safe-area-inset-top))) !important;
      padding-bottom: max(2rem, calc(2rem + env(safe-area-inset-bottom))) !important;
      padding-left: max(1.5rem, calc(1.5rem + env(safe-area-inset-left))) !important;
      padding-right: max(1.5rem, calc(1.5rem + env(safe-area-inset-right))) !important;
    }
  }
  
  /* Mobile layout stability */
  html {
    overflow-x: hidden !important;
  }
  
  body {
    overflow-x: hidden !important;
    min-height: 100vh !important;
    min-height: 100dvh !important; /* Dynamic viewport height */
  }
  
  /* Prevent horizontal scrolling on mobile */
  * {
    max-width: 100% !important;
  }
  
  /* Mobile modal fixes */
  .location-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .location-modal-backdrop {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
  }
  
  /* Prevent mobile Safari issues */
  body:has(.location-modal.visible) {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }
}
/* 👇 Ultra small screens (iPhone X, SE, etc.) */
@media (max-width: 375px), (max-height: 700px) {
  body {
    padding-top: 95px !important;
  }

  .menu-item {
    margin: 24px 0;
  }

  .item-info {
    padding: 1.2rem 1rem 3.2rem !important;
  }

  .item-info h3 {
    font-size: 1.2rem;
  }

  .item-info p {
    font-size: 0.95rem;
  }

  .price {
    font-size: 1.05rem;
    bottom: 1.2rem !important;
    right: 1.2rem !important;
    padding: 0.4rem 1rem;
  }

  .menu-divider {
    font-size: 1.25rem !important;
    letter-spacing: 0.06em;
    padding: 0 1rem;
    margin: 40px auto 32px;
  }

  .logo-img-mobile {
    height: 50px !important;
    max-width: 240px !important;
  }

  .top-bar {
    top: 4px !important;
    left: 4px !important;
    right: 4px !important;
    border-radius: 12px !important;
  }

  .tab {
    font-size: 0.88rem !important;
    padding: 0.5rem 0.85rem !important;
  }

  .menu-section:first-of-type {
    padding-top: 2.2rem !important;
  }
}
/* ===================================================================
   FINAL, ADAPTIVE & UNIFIED MOBILE MODAL CSS
   - Works for ALL mobile devices, not just specific models.
   - Prioritizes a "no-scroll" fit by adapting content to screen height.
   - Ensures symmetrical spacing (top/bottom/sides).
   - Combines all logic into a single, clean block.
   =================================================================== */

/* --- Universal Mobile Base (for screens up to 600px wide) --- */
@media (max-width: 600px) {
  /* Prevent body scroll when modal is active */
  body:has(.location-modal.visible) {
    overflow: hidden !important;
  }

  /* 1. THE MAIN CONTAINER (THE "BLACK BARS" AREA)
     Uses flexbox to perfectly center the content box vertically and horizontally.
     Padding creates the symmetrical spacing you want. */
  .location-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100dvh !important; /* Dynamic viewport height for accuracy */
    padding: 25px !important; /* Symmetrical spacing for all sides */
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important; /* Vertically centers the content */
    justify-content: center !important; /* Horizontally centers the content */
  }

  /* 2. THE CONTENT BOX
     The white box holding the logo, text, and buttons. */
  .location-modal-content {
    width: 100% !important;
    max-width: 450px !important;
    height: auto !important; /* Height is determined by its content */
    max-height: 100% !important; /* Can't be taller than its parent container */
    padding: 2.5rem 1.5rem !important; /* Generous internal padding for taller screens */
    overflow-y: auto !important; /* CRITICAL: Only scrolls if content absolutely cannot fit */
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
  }

  /* 3. CONTENT STYLING (LOGO, HEADING, BUTTONS)
     These are the default sizes for taller phones like the iPhone 12 Pro Max. */
  .location-logo {
    max-width: 160px !important; /* Default logo size */
    height: auto !important;
    margin: 0 auto 2rem auto !important;
  }

  .location-modal-content h2 {
    font-size: 1.25rem !important;
    margin: 0 0 2rem 0 !important;
    text-align: center !important;
  }

  .location-buttons {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .location-btn {
    font-size: 1rem !important;
    padding: 1rem !important;
    width: 100% !important;
    min-height: 50px !important;
    white-space: normal !important;
  }
  
  .social-icons {
      margin-top: 1.5rem !important;
  }

  #modalLangToggle {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
  }
}

/* --- ADAPTATION FOR MEDIUM-HEIGHT SCREENS (e.g., iPhone X/12, many Androids) --- */
/* This is the key to making it work everywhere. We check height, not device. */
@media (max-width: 600px) and (max-height: 820px) {
  .location-modal-content {
    padding: 1.5rem 1.25rem !important; /* Reduce vertical padding */
  }
  .location-logo {
    max-width: 140px !important; /* Smaller logo */
    margin-bottom: 1.5rem !important;
  }
  .location-modal-content h2 {
    font-size: 1.15rem !important;
    margin-bottom: 1.5rem !important;
  }
  .location-buttons {
    gap: 0.8rem !important; /* Tighter button spacing */
  }
  .location-btn {
    padding: 0.9rem !important;
  }
}

/* --- ADAPTATION FOR SHORTER SCREENS (e.g., iPhone 7/8 Plus) --- */
@media (max-width: 600px) and (max-height: 740px) {
  .location-logo {
    max-width: 130px !important;
    margin-bottom: 1.2rem !important;
  }
  .location-modal-content h2 {
    font-size: 1.1rem !important;
    margin-bottom: 1.2rem !important;
  }
  .location-buttons {
    gap: 0.7rem !important;
  }
  .location-btn {
    padding: 0.8rem !important;
    min-height: 46px !important;
  }
}

/* --- ADAPTATION FOR VERY SHORT SCREENS (e.g., iPhone SE, budget Androids) --- */
@media (max-width: 600px) and (max-height: 670px) {
  .location-modal {
    padding: 15px !important; /* Reduce outer spacing to gain room */
  }
  .location-modal-content {
    padding: 1rem !important;
  }
  .location-logo {
    max-width: 110px !important;
    margin-bottom: 1rem !important;
  }
  .location-modal-content h2 {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
  }
  .location-buttons {
    gap: 0.6rem !important;
  }
  .location-btn {
    padding: 0.7rem !important;
    font-size: 0.9rem !important;
    min-height: 44px !important;
  }
}

/* --- LANDSCAPE ORIENTATION --- */
@media (max-width: 900px) and (orientation: landscape) {
    .location-buttons {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
}


/* --- SUPPORT FOR NOTCHED DEVICES (iPhone X, Pixels, etc.) --- */
@supports (padding: env(safe-area-inset-top)) {
  .location-modal {
    /* Uses the phone's safe area values, but ensures a minimum of 25px */
    padding-top: max(25px, env(safe-area-inset-top)) !important;
    padding-bottom: max(25px, env(safe-area-inset-bottom)) !important;
    padding-left: max(25px, env(safe-area-inset-left)) !important;
    padding-right: max(25px, env(safe-area-inset-right)) !important;
  }
}
