/* ============================================
   EAT THIS — Berlin Food Blog
   Design System & Styles
   ============================================ */

/* RESET */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;overflow-x:hidden;overscroll-behavior:none;position:relative}
body{overflow-x:hidden;max-width:100%;overscroll-behavior:none;background:#fff}
img{max-width:100%;height:auto;display:block}
iframe{max-width:100%}
a{text-decoration:none;color:inherit}
button{cursor:pointer;font-family:inherit;border:none;background:none}
a,button,input,select,textarea,label{touch-action:manipulation}
ul,ol{list-style:none}

/* DESIGN TOKENS */
:root {
  --black: #000000;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --gray-50: #F5F5F5;
  --gray-100: #E8E8E8;
  --gray-200: #D4D4D4;
  --gray-400: #888888;
  --gray-600: #555555;
  --orange: #FF3B00;
  --darkred: #8B1A1A;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 2px;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.navbar.scrolled {
  border-bottom-color: var(--gray-100);
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.navbar-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  padding: 0;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.navbar-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
.navbar-icon-btn:hover {
  color: var(--orange);
}
.navbar-icon-btn.active {
  color: var(--orange);
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--gray-50);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  cursor: pointer;
  border: none;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 100px;
  color: var(--gray-400);
  background: transparent;
  transition: background 0.18s, color 0.18s;
  line-height: 1;
}
.lang-btn.active {
  background: var(--black);
  color: var(--white);
}
.lang-btn:hover:not(.active) {
  color: var(--black);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: #efefef;
  background-image: url('../pics/hero-desktop.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  touch-action: pan-y;
}

/* Hero Slider */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: opacity;
  background-color: #1a1a1a;
  background-image: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #0f0f0f 100%);
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.05) 30%,
    rgba(0,0,0,0.3) 70%,
    rgba(0,0,0,0.7) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: 10vh 24px 20vh;
  text-align: center;
}
.hero-logo {
  width: 100%;
  max-width: 600px;
  display: block;
  margin: 0 auto 16px;
}
/* Plate hero: logo2.webp on all viewports, hide slideshow */
.hero-logo--mobile { display: none !important; }
.hero-logo--desktop {
  display: block !important;
  width: 70%;
  max-width: 500px;
  margin: 0 auto 4px;
}
.hero-slides { display: none !important; }
.hero-overlay { display: none !important; }
.hero-tagline {
  font-size: clamp(0.65rem, 2.5vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-align: center;
  margin: 0;
  line-height: inherit;
  text-shadow: 0 1px 8px rgba(255,255,255,0.9), 0 0px 20px rgba(255,255,255,0.7);
}
/* Dark mode: overlay back, white text */
[data-theme="dark"] .hero-overlay { display: block !important; }
[data-theme="dark"] .hero-logo--desktop { filter: brightness(0) invert(1); }
[data-theme="dark"] .hero-tagline { color: rgba(255,255,255,0.85); }

/* Hero register button */
/* ══════════════════════════════════════════════
   iOS 26 LIQUID GLASS BUTTON
   Identical across light / dark mode, mobile / desktop.
   Blur + saturation make the hero image bleed through
   as a tinted lens. Two pseudo-elements layer the specular
   highlights. box-shadow adds inner rim + outer depth.
   ══════════════════════════════════════════════ */
.hero-register-btn {
  position: relative;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  isolation: isolate;           /* own stacking ctx for pseudo-elements */

  /* Nearly invisible — backdrop does all the colouring */
  background: rgba(255,255,255,0.03);
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);

  /* Full glass rim */
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 100px;
  padding: 13px 28px;

  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;

  /* The "lens" — heavy blur + colour amplification */
  backdrop-filter: blur(40px) saturate(2.4) brightness(1.18);
  -webkit-backdrop-filter: blur(40px) saturate(2.4) brightness(1.18);

  /* Depth stack:
     1. Bright top rim (specular edge)
     2. Faint bottom inner shadow (depth)
     3. Outer ambient shadow
     4. Hard outer rim for definition */
  box-shadow:
    inset 0 1.5px 0   rgba(255,255,255,0.85),
    inset 0 -1.5px 0  rgba(0,0,0,0.12),
    inset 1px 0 0     rgba(255,255,255,0.18),
    inset -1px 0 0    rgba(255,255,255,0.18),
    0 6px 28px        rgba(0,0,0,0.22),
    0 2px 6px         rgba(0,0,0,0.14),
    0 0 0 0.5px       rgba(255,255,255,0.22);

  transition: background 0.22s, box-shadow 0.22s,
              transform 0.22s cubic-bezier(0.34,1.56,0.64,1),
              backdrop-filter 0.22s;
  will-change: transform;
}

/* ── Pseudo 1: curved top-half specular shine ──
   Simulates the bright reflection on a glass pill from above */
.hero-register-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 55%;
  border-radius: 100px 100px 60% 60% / 100px 100px 90% 90%;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.22) 0%,
    rgba(255,255,255,0.01) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* ── Pseudo 2: radial inner glow from top centre ──
   The soft "light source above" halo */
.hero-register-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 80% 50% at 50% 0%,
    rgba(255,255,255,0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 2;
}

/* Keep text & icon above the pseudo layers */
.hero-register-btn span,
.hero-register-btn svg {
  position: relative;
  z-index: 3;
}

.hero-register-btn:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.5);
  backdrop-filter: blur(44px) saturate(2.8) brightness(1.22);
  -webkit-backdrop-filter: blur(44px) saturate(2.8) brightness(1.22);
  box-shadow:
    inset 0 1.5px 0   rgba(255,255,255,0.95),
    inset 0 -1.5px 0  rgba(0,0,0,0.1),
    inset 1px 0 0     rgba(255,255,255,0.25),
    inset -1px 0 0    rgba(255,255,255,0.25),
    0 12px 40px       rgba(0,0,0,0.26),
    0 4px 10px        rgba(0,0,0,0.14),
    0 0 0 0.5px       rgba(255,255,255,0.45);
  transform: translateY(-3px) scale(1.025);
}

.hero-register-btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

.hero-register-btn svg {
  transition: transform 0.2s;
}
.hero-register-btn:hover svg {
  transform: translateX(4px);
}

@media (min-width: 768px) {
  .hero-content { padding: 10vh 48px 12vh; }
  .hero-logo { font-size: clamp(6rem, 18vw, 16rem); }
}

/* ── Desktop hero: full-bleed, centered ── */
@media (min-width: 1024px) {
  .hero {
    background-size: cover;
    background-position: center center;
  }
  .hero-content {
    align-items: center;
    text-align: center;
    padding: 0 7vw 8vh;
    justify-content: flex-end;
  }
  /* Desktop: larger logo and button sizing only */
  .hero-logo--desktop {
    width: clamp(320px, 36vw, 700px);
    margin: 0 auto 4px;
  }
  .hero-tagline {
    font-size: clamp(0.7rem, 1vw, 1rem);
    letter-spacing: 0.3em;
    text-shadow: 0 1px 8px rgba(255,255,255,0.9), 0 0px 20px rgba(255,255,255,0.7);
  }
  .hero-register-btn {
    margin-top: 28px;
    padding: 14px 36px;
    font-size: 0.88rem;
  }
}

/* ── Mobile hero: portrait plate image, full plate visible ── */
@media (max-width: 1023px) {
  .hero {
    background-image: url('../pics/hero-mobile.webp');
    background-size: cover;
    background-position: center 15%;
  }
}

/* ── Solid navbar everywhere — no glass/blur ── */
[data-theme="dark"][data-active-page="start"] .navbar:not(.scrolled) {
  background: #0d0d0d;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
[data-theme="dark"][data-active-page="start"] .navbar:not(.scrolled) .navbar-icon-btn,
[data-theme="dark"][data-active-page="start"] .navbar:not(.scrolled) .burger-btn {
  color: rgba(255, 255, 255, 0.88);
}
[data-theme="dark"][data-active-page="start"] .navbar:not(.scrolled) .navbar-icon-btn:hover,
[data-theme="dark"][data-active-page="start"] .navbar:not(.scrolled) .burger-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
[data-active-page="start"] .navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
[data-active-page="start"][data-theme="dark"] .navbar.scrolled {
  background: #0d0d0d;
}

/* ── Hero dark mode — light overlay to keep image visible ── */
[data-theme="dark"] .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.0) 40%,
    rgba(0,0,0,0.25) 75%,
    rgba(0,0,0,0.5) 100%
  );
}
@media (min-width: 1024px) {
  [data-theme="dark"] .hero-overlay {
    background:
      linear-gradient(
        to bottom,
        rgba(0,0,0,0.0) 0%,
        rgba(0,0,0,0.0) 50%,
        rgba(0,0,0,0.35) 80%,
        rgba(0,0,0,0.55) 100%
      );
  }
}

/* ============================================
   SHARED LABELS
   ============================================ */
.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

/* ============================================
   MUST EATS SECTION
   ============================================ */
.must-eats-section {
  padding: 60px 0 60px;
}
.must-eats-header {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 16px 40px;
  text-align: center;
}
.must-eats-header .section-label {
  text-align: center;
}
.must-eats-logo-img {
  max-width: 220px;
  display: block;
  margin: 0 auto;
}
.must-eats-subtitle {
  font-size: 14px;
  color: var(--gray-400);
  font-weight: 400;
  margin-top: 10px;
}

/* Grid */
.must-eats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 10px 40px;
  max-width: 700px;
  margin: 0 auto;
}
.must-eats-grid .must-card:nth-child(odd):last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 5px);
}
@media (min-width: 600px) {
  .must-eats-section { padding: 100px 0 80px; }
  .must-eats-grid { gap: 14px; padding: 0 16px 40px; }
  .must-eats-grid .must-card:nth-child(odd):last-child { width: calc(50% - 7px); }
}
@media (min-width: 1024px) {
  .must-eats-section { padding: 140px 0 100px; }
  .must-eats-grid { gap: 18px; padding: 0 20px 40px; max-width: 800px; }
  .must-eats-grid .must-card:nth-child(odd):last-child { width: calc(50% - 9px); }
}

/* Cards */
.must-card {
  cursor: pointer;
  position: relative;
  aspect-ratio: 1449 / 2163;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.15s ease;
}
.must-card:active {
  transform: scale(0.97);
}
/* absolute inset so height resolves correctly on iOS Safari (aspect-ratio grid items) */
.must-card-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 round 6%);
  pointer-events: none;
  overflow: hidden;
}
.must-card-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

/* Lightbox */
.must-card-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10010;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.must-card-lightbox::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.must-card-lightbox.active {
  display: flex;
  pointer-events: auto;
}
.must-card-lightbox.active::before {
  opacity: 1;
}
.must-card-lightbox.closing::before {
  opacity: 0;
  transition: opacity 0.36s ease;
}
.must-card-lightbox-inner {
  position: relative;
  z-index: 1;
  /* fill ~90% of the shorter viewport axis */
  width: min(90vw, calc(90vh * (1449 / 2163)));
}
.must-card-lightbox-img {
  width: 100%;
  display: block;
  border-radius: 6%;
  box-shadow: 0 40px 120px rgba(0,0,0,0.8);
}

/* ── Globe active: hide Leaflet controls and map UI ── */
#foodMap.globe-active .leaflet-control-container {
  display: none;
}
.app-page[data-page="map"].globe-active .map-filters {
  display: none !important;
}

/* ── Eat Card Backdrop ── */
.eat-card-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9996;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.eat-card-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ── 3D Retro Card ── */
.eat-card {
  background: transparent;
  border: none;
  overflow: visible;
  cursor: pointer;
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.eat-card.is-expanded {
  /* Scene is moved to portal; card is a placeholder */
  cursor: pointer;
}

/* Portal: fixed wrapper that holds the scene while it's animated */
.eat-card-portal {
  overflow: visible;
  border-radius: 9px;
}
.eat-card-portal .eat-card-scene {
  width: 100%;
  height: 100%;
}
/* Scene: sets perspective */
.eat-card-scene {
  width: 100%;
  perspective: 900px;
}


.cf {
  width: 100%; height: 100%;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  position: relative;
  overflow: hidden;
}


/* ── BACK FACE — Dark + Logo ── */
.eat-card-back {
  transform: rotateY(180deg);
  background: #111111;
  overflow: hidden;
  z-index: 1;
}
.cb-poster {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cb-poster img {
  width: 65%;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

/* ============================================
   FOOD MAP SECTION
   ============================================ */
.map-section {
  padding: 60px 0 40px;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  position: relative;
  z-index: 1;
}
.map-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 28px;
}
.map-header-top {
  margin-bottom: 0;
}
.map-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0;
}
.map-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}
.map-subtitle {
  font-size: 14px;
  color: var(--gray-400);
  margin-top: 12px;
}
.map-container {
  width: 100%;
  height: calc(100vh - 300px);
  min-height: 400px;
  background: var(--gray-50);
  position: relative;
  z-index: 1;
  margin-top: 16px;
}

/* Spot Detail Bottom Sheet */
.spot-detail {
  display: none;
}

.spot-detail.open {
  transform: translateY(0);
}

.spot-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 50%;
  color: var(--black);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.spot-detail-close:hover {
  background: var(--black);
  color: var(--white);
}

.spot-detail-close svg {
  width: 20px;
  height: 20px;
}

/* Nearby Strip */
/* ---- Nearby strip (non-app / desktop fallback) ---- */
.map-nearby {
  background: #f8f8f8;
  border-top: 1px solid #ebebeb;
  padding: 12px 16px 14px;
}

.map-nearby-handle {
  display: none; /* only shown in app bottom-sheet mode */
  justify-content: center;
  padding: 18px 0 14px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  min-height: 48px;
  box-sizing: border-box;
}
.map-nearby-handle:active { cursor: grabbing; }
.map-nearby-handle-bar {
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: #ccc;
}

.map-nearby-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Grid layout — always vertical, 3 cols mobile / 6 cols desktop */
.map-nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 0 16px;
}
/* Mobile list mode: single column, rows stretch to fill available height */
.map-nearby-grid--list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  height: 100%;
}
.map-nearby-grid--list .map-nearby-list-row {
  flex: 1;
}

.map-nearby-grid-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.09);
  border: 1px solid #efefef;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.map-nearby-grid-card:active {
  transform: scale(0.95);
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

/* Image + distance badge */
.map-nearby-grid-card-img-wrap {
  position: relative;
  flex-shrink: 0;
}
.map-nearby-grid-card-img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  display: block;
  background: #ebebeb;
}
.map-nearby-grid-card-dist {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 2px 6px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* Card body */
.map-nearby-grid-card-body {
  padding: 7px 7px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Name row with heart */
.map-nearby-grid-card-name-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.map-nearby-grid-card-name {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-weight: 800;
  color: #111;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-nearby-grid-card-fav {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  color: #ccc;
  padding: 0;
  margin-top: 1px;
  transition: color 0.15s, transform 0.12s;
}
.map-nearby-grid-card-fav--active { color: #FF3B00; }
.map-nearby-grid-card-fav:active { transform: scale(0.82); }

.map-nearby-grid-card-meta {
  font-size: 9px;
  color: #bbb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.map-nearby-grid-card-hours {
  font-size: 8.5px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.map-nearby-grid-card-hours-label {
  font-weight: 700;
  color: #777;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 7.5px;
}
.map-nearby-grid-card-status {
  display: inline-block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 3px;
  padding: 2px 5px;
  border-radius: 3px;
}
.map-nearby-grid-card-status--open {
  color: #1a8a3a;
  background: rgba(26,138,58,0.12);
}
.map-nearby-grid-card-status--closed {
  color: #c0392b;
  background: rgba(192,57,43,0.10);
}

/* Mobile list rows */
.map-nearby-list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  background: #fff;
  transition: background 0.12s;
}
.map-nearby-list-row:active { background: #f8f8f8; }
.map-list-thumb {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: #ebebeb;
}
.map-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.map-list-info {
  flex: 1;
  min-width: 0;
}
.map-list-top {
  display: flex;
  align-items: center;
  gap: 7px;
}
.map-list-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.map-list-meta {
  font-size: 13px;
  color: #999;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-list-status {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.map-list-status--open { color: #1a8a3a; background: rgba(26,138,58,0.12); }
.map-list-status--closed { color: #c0392b; background: rgba(192,57,43,0.10); }
.map-list-fav {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 20px;
  color: #ddd;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}
.map-list-fav.map-nearby-grid-card-fav--active { color: #FF3B00; }

/* Grid wrapper: always scrollable so user can scroll in any state */
.map-nearby-grid-wrapper {
  overflow-y: auto;
  overflow-x: hidden;

  touch-action: pan-y; /* override sheet's touch-action:none so grid scrolls */
  max-height: 330px; /* 3 list rows × ~110px */
}
.map-nearby.sheet--expanded .map-nearby-grid-wrapper {
  max-height: 520px;
}

/* Map toolbar: search + open toggle */
.map-nearby-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0 8px;
  touch-action: manipulation;
}
.map-search-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.map-search-icon {
  position: absolute;
  left: 9px;
  color: #999;
  pointer-events: none;
  flex-shrink: 0;
}
.map-search-input {
  width: 100%;
  padding: 6px 10px 6px 28px;
  font-size: 12px;
  font-family: inherit;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  background: #fff;
  outline: none;
  color: var(--black);
  -webkit-appearance: none;
}
.map-search-input:focus {
  border-color: var(--black);
}
.map-search-input::placeholder {
  color: #bbb;
}
.map-filter-dropdown {
  position: relative;
  flex-shrink: 0;
}
.map-filter-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  background: #fff;
  color: #444;
  cursor: pointer;
  white-space: nowrap;
}
.map-filter-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  overflow: hidden;
  z-index: 9999;
  min-width: 120px;
}
.map-filter-dropdown-menu.open {
  display: block;
}
.map-filter-option {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  background: none;
  border: none;
  color: #444;
  cursor: pointer;
}
.map-filter-option:hover,
.map-filter-option.active {
  background: #f4f4f4;
  color: #000;
}
.map-open-toggle {
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  background: #fff;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.map-open-toggle--active {
  background: #1a8a3a;
  color: #fff;
  border-color: #1a8a3a;
}

/* ---- Bottom Sheet (app map page — all viewports) ---- */
.app-page[data-page="map"] .map-nearby {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -3px 24px rgba(0,0,0,0.12);
  padding: 0 12px 10px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
  touch-action: none;
  overflow: hidden;
}

.app-page[data-page="map"] .map-nearby-handle {
  display: flex;
}

.app-page[data-page="map"] .map-nearby-label {
  padding: 0 0 10px;
  margin: 0;
}

/* Custom Zoom Buttons (outside Leaflet container to avoid z-index stacking issues) */
.map-zoom-btns {
  position: absolute;
  bottom: 32px;
  right: 12px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: auto;
  transition: bottom 0.25s ease;
}


.map-zoom-btn {
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  transition: background 0.15s;
}

.map-zoom-btn:hover {
  background: rgba(0,0,0,0.7);
  color: #fff;
}

/* Map Spot Overlay */
.map-spot-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(3, 5, 20, 0.60);
  background-image:
    radial-gradient(circle 1px at  5% 10%, rgba(255,255,255,0.85) 0, transparent 1px),
    radial-gradient(circle 1px at 22%  8%, rgba(255,255,255,0.70) 0, transparent 1px),
    radial-gradient(circle 1px at 48%  4%, rgba(255,255,255,0.90) 0, transparent 1px),
    radial-gradient(circle 1px at 68% 14%, rgba(255,255,255,0.65) 0, transparent 1px),
    radial-gradient(circle 1px at 85%  6%, rgba(255,255,255,0.80) 0, transparent 1px),
    radial-gradient(circle 1px at 92% 22%, rgba(255,255,255,0.60) 0, transparent 1px),
    radial-gradient(circle 1px at 12% 30%, rgba(255,255,255,0.75) 0, transparent 1px),
    radial-gradient(circle 1px at 38% 25%, rgba(255,255,255,0.55) 0, transparent 1px),
    radial-gradient(circle 1px at 75% 32%, rgba(255,255,255,0.70) 0, transparent 1px),
    radial-gradient(circle 1px at  3% 55%, rgba(255,255,255,0.65) 0, transparent 1px),
    radial-gradient(circle 1px at 18% 68%, rgba(255,255,255,0.80) 0, transparent 1px),
    radial-gradient(circle 1px at 88% 48%, rgba(255,255,255,0.70) 0, transparent 1px),
    radial-gradient(circle 1px at 96% 62%, rgba(255,255,255,0.55) 0, transparent 1px),
    radial-gradient(circle 1px at 10% 82%, rgba(255,255,255,0.75) 0, transparent 1px),
    radial-gradient(circle 1px at 32% 90%, rgba(255,255,255,0.60) 0, transparent 1px),
    radial-gradient(circle 1px at 58% 85%, rgba(255,255,255,0.85) 0, transparent 1px),
    radial-gradient(circle 1px at 78% 78%, rgba(255,255,255,0.65) 0, transparent 1px),
    radial-gradient(circle 1px at 93% 88%, rgba(255,255,255,0.70) 0, transparent 1px),
    radial-gradient(circle 2px at 55% 50%, rgba(255,255,255,0.15) 0, transparent 2px),
    radial-gradient(circle 2px at 28% 48%, rgba(255,255,255,0.10) 0, transparent 2px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.map-spot-overlay.active {
  display: flex;
}



.map-spot-card {
  position: relative;
  background: #ffffff;
  border: none;
  width: 100%;
  max-width: 320px;
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
  animation: popIn 0.25s var(--ease);
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
}

@keyframes popIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.map-spot-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.map-spot-close svg {
  stroke: rgba(255,255,255,0.9);
  width: 14px;
  height: 14px;
}

.map-spot-content {
  font-family: var(--font);
}

.map-spot-img-wrap {
  position: relative;
}

.map-spot-photo {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.map-spot-district-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.92);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--font);
}

.map-spot-body {
  padding: 14px 16px 16px;
}

.map-spot-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.map-spot-type-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: #777;
  background: #f2f2f2;
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--font);
  letter-spacing: 0.02em;
}

.map-spot-price-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #111;
  background: #e8e8e8;
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--font);
  letter-spacing: 0.04em;
}
.map-spot-status-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--font);
  letter-spacing: 0.04em;
}
.map-spot-status-badge--open {
  color: #1a8a3a;
  background: rgba(26,138,58,0.12);
}
.map-spot-status-badge--closed {
  color: #c0392b;
  background: rgba(192,57,43,0.10);
}

.map-spot-btn-row {
  display: flex;
  gap: 8px;
}

.map-spot-name {
  font-size: 18px;
  font-weight: 900;
  color: #111;
  margin-bottom: 6px;
  line-height: 1.2;
}

.map-spot-musteat {
  font-size: 13px;
  color: #333;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: #f5f5f5;
  border-left: 3px solid #ddd;
  border-radius: 0 6px 6px 0;
}

.map-spot-label {
  font-weight: 700;
  color: #888;
}

.map-spot-address {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 14px;
  line-height: 1.4;
}

.map-spot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1;
  padding: 12px 16px;
  background: #111;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.18s, transform 0.15s;
}

.map-spot-btn:hover {
  background: #333;
  transform: translateY(-1px);
}

.map-spot-btn:active {
  transform: translateY(0);
}

.map-spot-btn--secondary {
  background: #f2f2f2;
  color: #111;
}

.map-spot-btn--secondary:hover {
  background: #e0e0e0;
}

.map-spot-btn--reservation {
  background: #FF3B00;
  color: #fff;
}

.map-spot-btn--reservation:hover {
  background: #e03400;
}

.map-spot-fav-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: #aaa;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: color 0.2s, transform 0.15s;
}

.map-spot-fav-btn:hover {
  color: #FF3B00;
  transform: scale(1.1);
}

.map-spot-fav-btn--active {
  color: #FF3B00;
}

.map-spot-tip {
  font-size: 12px;
  color: #FF3B00;
  font-weight: 600;
  margin: 8px 0 4px;
  letter-spacing: 0.2px;
}

.map-spot-hours {
  font-size: 12px;
  color: #666;
  margin: 8px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.map-spot-hours-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  font-variant-numeric: tabular-nums;
}

.map-spot-hours-row b {
  min-width: 80px;
  color: #333;
}

/* User Location Marker */
.user-location-marker {
  background: transparent;
  border: none;
}

.user-location-dot {
  width: 20px;
  height: 20px;
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.user-location-popup {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 0;
}

/* ── Map Filter Tabs (underline) ── */
.map-filter-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;

  border-bottom: 1px solid var(--gray-100);
  margin-top: 8px;
  touch-action: pan-x;
  overscroll-behavior: none;
}
.map-filter-tabs::-webkit-scrollbar { display: none; }

.map-filter-tab {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px 10px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #aaa;
  cursor: pointer;
  font-family: var(--font);
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  margin-bottom: -1px;
}
.map-filter-tab:first-child { padding-left: 0; }

.map-filter-tab:hover { color: #555; }

.map-filter-tab.active {
  color: var(--black);
  border-bottom-color: var(--black);
}

.map-filter-tab-count {
  font-size: 9px;
  font-weight: 500;
  opacity: 0.45;
}

.map-location-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.map-location-btn-fixed {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.18s;
}

.map-location-btn-fixed svg {
  stroke: rgba(255,255,255,0.9);
}

.map-location-btn-fixed:active {
  transform: scale(0.93);
  background: rgba(0,0,0,0.65);
}

.map-location-btn-fixed:hover {
  background: rgba(0,0,0,0.65);
}

.map-location-btn-fixed.loading svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.map-location-btn:active {
  background: var(--gray-200);
}

@media (max-width: 767px) {
  .map-filters {
    padding: 10px 12px;
  }
  
  .map-filter-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
  
  .map-container {
    height: calc(100vh - 260px);
    min-height: 300px;
  }
  
}

/* Leaflet Overrides */
#foodMap {
  width: 100% !important;
  height: 50vh !important;
  min-height: 350px !important;
}
.leaflet-container {
  width: 100% !important;
  height: 100% !important;
}

/* Custom Marker with Logo */
.leaflet-marker-icon {
  background: transparent !important;
  border: none !important;
}
.leaflet-marker-icon img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.4));
  transition: transform 0.2s, filter 0.2s;
}
.leaflet-marker-icon:hover img {
  transform: scale(1.2);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}


@media (min-width: 768px) {
  .map-section { padding: 140px 0 100px; }
  .map-header { padding: 0 48px 48px; }
  .map-container { height: 600px; }
  #foodMap { height: 60vh !important; min-height: 400px !important; }
  .map-title { font-size: clamp(2rem, 4vw, 3rem); }
}

/* ============================================
   NEWS SECTION
   ============================================ */
.news-section {
  padding: 60px 0 40px;
}
.news-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 24px;
}
.news-header-top {
  margin-bottom: 0;
}
.news-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}
.news-all-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--darkred);
  transition: color 0.2s;
  white-space: nowrap;
}
.news-all-link:hover {
  color: var(--black);
}
.news-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* News Ticker */
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.news-ticker {
  display: none;
  background: var(--darkred);
  padding: 7px 0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
}
.news-ticker-track {
  display: inline-flex;
  gap: 0;
  animation: ticker-scroll 28s linear infinite;
  width: max-content;
}
.news-ticker-track span {
  padding: 0 28px;
}
.news-ticker-track span::before { content: "— "; }

/* News Grid */
.news-grid {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.02em;
}

/* News Grid */
.news-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.news-card {
  overflow: hidden;
  transition: opacity 0.3s, transform 0.3s;
}
.news-card.hidden {
  display: none;
}
.news-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.news-card-body {
  padding: 24px 0 0;
}
.news-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.news-card-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--darkred);
}
.news-card-date {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 400;
}
.news-card-headline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-excerpt {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .news-section { padding: 180px 0 140px; }
  .news-header { padding: 0 48px 64px; }
  .news-featured-body { padding: 56px 48px 0; }
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 48px;
  }
  .news-card-headline { font-size: clamp(1.2rem, 2vw, 1.6rem); }
}
@media (min-width: 1024px) {
  .news-grid { gap: 32px; padding: 0 48px; max-width: 1400px; }
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  display: none;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  text-align: center;
}
.footer-bottom-left {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
}
.footer-bottom-right {
  display: flex;
  gap: 24px;
}
.footer-bottom-right a {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
  transition: color 0.2s;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}
.footer-bottom-right a:hover {
  color: var(--black);
}


/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--black);
  color: var(--white);
  padding: 20px 24px;
  z-index: 10002;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
}
.cookie-consent.show {
  transform: translateY(0);
}
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-text {
  font-size: 14px;
  line-height: 1.5;
}
.cookie-text a {
  text-decoration: underline;
  color: var(--white);
}
.cookie-buttons {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.cookie-btn-accept {
  background: var(--white);
  color: var(--black);
}
.cookie-btn-accept:hover {
  background: var(--gray-200);
}
.cookie-btn-decline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}
.cookie-btn-decline:hover {
  background: rgba(255,255,255,0.1);
}


/* ============================================
   MUST EAT MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), background 0.4s var(--ease);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  background: rgba(0,0,0,0.5);
}
.modal {
  background: var(--white);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 10003;
}
.modal-overlay.active .modal {
  transform: translateY(0);
  opacity: 1;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.5);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.modal-close:hover {
  background: var(--orange);
  transform: scale(1.1);
}
.modal-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  border-radius: 20px 20px 0 0;
}
.modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-body {
  padding: 24px 24px max(48px, calc(env(safe-area-inset-bottom) + 32px));
}
.modal-district {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--white);
  padding: 4px 8px;
  margin-bottom: 8px;
}
.modal-dish {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 4px;
}
.modal-restaurant {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 6px;
  font-weight: 600;
}
.modal-address {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 10px;
  font-weight: 400;
}
.modal-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--gray-600);
  margin-bottom: 20px;
}
.modal-maps-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  background: var(--black);
  padding: 16px 20px;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: background 0.2s, transform 0.15s;
}
.modal-maps-btn:hover {
  background: var(--orange);
  transform: translateY(-1px);
}
.modal-maps-btn:active {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .modal-overlay { align-items: center; }
  .modal {
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    border-radius: 20px;
    transform: scale(0.95) translateY(0);
  }
  .modal-overlay.active .modal { transform: scale(1) translateY(0); }
  .modal-img { height: 220px; border-radius: 20px 20px 0 0; }
  .modal-body { padding: 24px 28px 32px; }
}

/* ============================================
   NEWS ARTICLE MODAL
   ============================================ */
/* ── FULL-PAGE ARTICLE ───────────────────────── */
/* Back button */
.news-article-back {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px 8px 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: -0.01em;
}
.news-article-back:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Article layout */
.news-article {
  min-height: 100vh;
}

/* Prevent browser scroll-anchoring from holding position when content swaps */
.app-page[data-page="news-article"] {
  overflow-anchor: none;
}

@keyframes newsArticleFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.news-article--entering {
  animation: newsArticleFadeIn 0.25s ease forwards;
}
.news-article--leaving {
  opacity: 0;
  transition: opacity 0.15s ease;
}
.news-article-hero {
  width: 100%;
  height: 55vw;
  max-height: 520px;
  min-height: 260px;
  overflow: hidden;
  position: relative;
  background: #000;
}
.news-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-article-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 24px 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
}
.news-article-hero-overlay .news-article-meta {
  margin-bottom: 12px;
}
.news-article-hero-overlay .news-modal-category {
  color: rgba(255,255,255,0.7);
}
.news-article-hero-overlay .news-modal-date {
  color: rgba(255,255,255,0.5);
}
.news-article-hero-overlay .news-modal-title {
  color: #fff;
  margin-bottom: 0;
}
.news-article-hero-no-img {
  padding: 40px 24px 28px;
  background: var(--white);
}
.news-article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}
.news-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.news-modal-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--darkred);
}
.news-modal-date {
  font-size: 12px;
  color: var(--gray-400);
}
.news-modal-title {
  font-size: clamp(1.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.92;
  margin-bottom: 28px;
  color: var(--black);
  text-transform: uppercase;
}
.news-modal-share {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--gray-100);
}
.share-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-100);
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: all 0.18s;
}
.share-btn:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.share-whatsapp:hover { background: #25D366; border-color: #25D366; }
.share-native:hover { background: var(--orange); border-color: var(--orange); }

/* Standalone article share buttons */
.news-article-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-100);
  flex-wrap: wrap;
}
.news-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--black);
  border-radius: 2px;
  background: var(--white);
  color: var(--black);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: var(--font);
}
.news-share-btn:hover {
  background: var(--black);
  color: var(--white);
}

/* Standalone article body content */
.news-article-content {
  font-size: 17px;
  line-height: 1.85;
  color: #1a1a1a;
}
.news-article-content p { margin-bottom: 24px; }
.news-article-content h2,
.news-article-content h3,
.news-article-content h4 {
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--black);
  margin: 40px 0 14px;
}
.news-article-content h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.news-article-content h3 { font-size: 1.2rem; }
.news-article-content h4 { font-size: 1.05rem; }
.news-article-content blockquote {
  border-left: 4px solid var(--darkred);
  padding: 4px 0 4px 20px;
  margin: 32px 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.65;
}
.news-article-content strong { font-weight: 800; }

.news-modal-content {
  font-size: 17px;
  line-height: 1.85;
  color: #1a1a1a;
}
.news-modal-content p { margin-bottom: 24px; }
.news-modal-content h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--black);
  margin: 48px 0 16px;
}
.news-modal-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin: 32px 0 12px;
}
.news-modal-content blockquote {
  border-left: 4px solid var(--darkred);
  padding: 4px 0 4px 20px;
  margin: 32px 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.65;
}
.news-modal-content strong { font-weight: 800; }

/* Recommendations */
.news-article-more {
  border-top: 2px solid var(--black);
  background: var(--gray-50);
}
.news-article-more-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}
.news-article-more-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 28px;
}
.news-article-more-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  background: var(--white);
  border: none;
}
@media (min-width: 600px) {
  .news-article-more-grid { grid-template-columns: repeat(3, 1fr); }
}
.news-rec-card {
  background: #000;
  overflow: hidden;
  position: relative;
}
.news-rec-card a {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.news-rec-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.news-rec-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.news-rec-card:hover .news-rec-img img { transform: scale(1.04); }
.news-rec-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px 16px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.4) 55%, transparent 100%);
}
.news-rec-category {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 5px;
}
.news-rec-headline {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
}

/* ============================================
   UTILITY
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 48px; }
}

/* Safe area for notch */
@supports (padding-top: env(safe-area-inset-top)) {
  .navbar { padding-top: calc(10px + env(safe-area-inset-top)); }
  .hero { padding-top: calc(120px + env(safe-area-inset-top)); }
}

/* ============================================
   SEARCH
   ============================================ */
.search-trigger {
  display: none;
}
@media (max-width: 767px) {
  .search-trigger {
    display: flex;
    align-items: center;
    padding: 0;
    color: var(--black);
  }
}
.search-trigger::after {
  display: none;
}
.search-trigger svg {
  width: 18px;
  height: 18px;
}

/* Search Modal */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999 !important;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  padding-top: 80px;
}
.search-overlay.active {
  opacity: 1;
  pointer-events: auto;
  background: rgba(0,0,0,0.8);
}
.search-container {
  background: var(--white);
  width: 90%;
  max-width: 640px;
  border-radius: 12px;
  overflow: hidden;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.search-overlay.active .search-container {
  transform: translateY(0);
  opacity: 1;
}
.search-input-wrapper {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 2px solid var(--black);
}
.search-input-wrapper svg {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 18px;
  font-family: var(--font);
  background: transparent;
}
.search-input::placeholder {
  color: var(--gray-400);
}
.search-close {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--gray-400);
  transition: color 0.2s;
}
.search-close:hover {
  color: var(--black);
}
.search-results {
  max-height: 60vh;
  overflow-y: auto;
  padding: 16px 0;
}
.search-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  padding: 8px 20px;
  margin-bottom: 4px;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.search-result-item:hover {
  background: var(--gray-50);
}
.search-result-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.search-result-content {
  flex: 1;
  min-width: 0;
}
.search-result-dish,
.search-result-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-restaurant,
.search-result-meta {
  font-size: 12px;
  color: var(--gray-400);
}
.search-result-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.search-no-results {
  padding: 40px 20px;
  text-align: center;
  color: var(--gray-400);
}
.search-no-results p {
  font-size: 15px;
  margin-bottom: 8px;
}
.search-no-results span {
  font-size: 13px;
}
.search-hint {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-100);
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
}

@media (max-width: 767px) {
  .search-overlay {
    padding-top: 0;
    align-items: flex-end;
  }
  .search-container {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    transform: translateY(100%);
    opacity: 1;
  }
  .search-overlay.active .search-container {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================================
   APP PAGES CONTAINER
   ============================================ */
.app-pages {
  display: block;
  height: 100%;
}

.app-page {
  display: none !important;
  width: 100%;
  height: calc(100vh - 60px);
  overflow-y: auto;
  overflow-x: hidden;
/*  padding-bottom: max(80px, calc(61px + env(safe-area-inset-bottom)));*/
}

.app-page.active {
  display: block !important;
}

.app-page .must-eats-section,
.app-page .map-section {
  min-height: 100%;
}

.app-page:not([data-page="start"]) .hero,
.app-page:not([data-page="start"]) .hero-bg,
.app-page:not([data-page="start"]) .hero-overlay,
.app-page:not([data-page="start"]) .hero-content {
  display: none !important;
}

.app-page[data-page="start"] .hero {
  position: relative;
  z-index: 1;
}

.app-page[data-page="start"] {
  min-height: calc(100vh - 60px);
}

/* ============================================
   APP FOOTER NAVIGATION (Mobile)
   ============================================ */
.app-footer {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  /* Liquid Glass effect — semi-transparent with blur so content
     shows through like iOS native chrome */
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-top: none;
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

[data-theme="light"] .app-footer {
  background: rgba(255, 255, 255, 0.7);
}

.app-footer-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.app-footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s var(--ease);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border: none;
  background: none;
  min-width: 48px;
}

.app-footer-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s var(--ease);
  stroke: rgba(255,255,255,0.6);
}

.app-footer-item span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.6);
}

.app-footer-item.active {
  color: var(--orange);
}

.app-footer-item.active svg {
  stroke: var(--orange);
}

.app-footer-item:active svg {
  transform: scale(0.9);
}

@media (max-width: 767px) {
  /* Match kino.de/familie.de: html+body need zero CSS constraints for
     Safari to use window scroll and auto-hide the URL bar on scroll. */
  html {
    overflow-x: unset;
    position: static;
    overscroll-behavior: contain;
  }

  body {
    overflow-x: unset;
    overscroll-behavior: contain;
  }

  /* Natural window scroll so Safari URL bar auto-hides on scroll.
     Use !important — the global rule has overflow-y:auto which the browser
     keeps even when we set overflow-x:clip (clip not reliably supported). */
  .app-pages {
    /* 60px navbar + safe-area-inset-top (notch/Dynamic Island ~47px) */
    margin-top: calc(60px + env(safe-area-inset-top, 0px));
    height: auto !important;
    overflow: visible !important;
  }

  .navbar,
  .navbar.scrolled {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    /* Fixed height including safe-area so content-margin matches exactly */
    height: calc(60px + env(safe-area-inset-top, 0px));
    min-height: calc(60px + env(safe-area-inset-top, 0px));
    box-sizing: border-box;
  }

  .app-footer {
    box-shadow: none;
  }

  .app-footer-item span {
    font-size: 10px;
  }
  
  .app-page {
    position: relative;
    height: auto !important;
    /* Fill viewport at minimum so short pages don't show body bg below */
    min-height: calc(100dvh - 60px);
    /* Pad for fixed app-footer + safe-area-inset-bottom so last content is reachable */
    padding-bottom: max(80px, calc(60px + env(safe-area-inset-bottom, 0px)));
    overflow: visible !important;
    background: var(--white);
    overscroll-behavior: none;
  }

  /* Pages ending with site-footer: let the footer own the bottom clearance so
     its black bg covers the tab-bar gap. Remove app-page padding-bottom here. */
  .app-page:has(.site-footer) {
    padding-bottom: 0;
  }

  .app-page.active {
    z-index: auto;
  }

  /* Map page MUST be fixed — natural flow causes map pan to move the
     restaurant list. Accept URL bar won't auto-hide here. */
  .app-page[data-page="map"] {
    position: fixed !important;
    top: calc(60px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    height: auto !important;
    min-height: 0;
    z-index: 9990;
    overflow: hidden !important;
  }

  .app-page[data-page="map"].active {
    z-index: 9995;
  }

  /* Disable window scroll when map is active so map can own the gestures */
  body:has(.app-page[data-page="map"].active) {
    overflow: hidden;
  }
  
  .app-page[data-page="start"] {
    background: var(--white);
  }

  .app-page[data-page="start"] .hero {
    position: relative;
    width: 100%;
    height: calc(100dvh - 60px);
    min-height: 400px;
  }
  
  .app-page[data-page="start"] .hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
  }
  
  .app-page[data-page="start"] .hero-slide {
    width: 100%;
    height: 100%;
  }
  
  .app-page[data-page="start"] .hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    padding: 10dvh 20px clamp(80px, 18dvh, 140px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
  }
  
  .app-page[data-page="start"] .hero-logo {
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
  }
  
  .app-page[data-page="start"] .hero-tagline {
    font-size: 0.75rem;
    display: block;
    font-weight: 600;
    letter-spacing: 0.2em;
  }
  
  /* Common header styles for all app pages */
  .app-page[data-page="musts"] .must-eats-header {
    padding: 16px 16px 24px;
    background: var(--white);
    text-align: center;
    border: none;
    margin: 0;
    display: block;
  }

  .app-page[data-page="news"] .news-header {
    padding: 16px 16px 24px;
    background: var(--white);
    text-align: left;
    border: none;
    margin: 0;
    display: block;
  }

  .app-page[data-page="map"] .map-header {
    padding: 18px 16px 14px;
    background: var(--white);
    text-align: left;
    border: none;
    margin: 0;
    display: block;
  }
  .app-page[data-page="map"] .map-title {
    font-size: clamp(1.2rem, 5.5vw, 1.7rem);
    letter-spacing: -0.05em;
    line-height: 0.88;
    text-align: left;
    margin-top: 2px;
  }
  .app-page[data-page="map"] .section-label {
    text-align: left;
    margin-bottom: 2px;
  }

  .app-page[data-page="map"] .map-title,
  .app-page[data-page="news"] .news-title {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0;
    display: block;
    text-transform: uppercase;
  }

  .app-page[data-page="musts"] .section-label {
    color: var(--orange);
    margin-bottom: 6px;
    margin-top: 0;
    display: block;
    font-size: 10px;
  }

  .app-page[data-page="musts"] .must-eats-section {
    padding: 0;
    min-height: 0;
  }

  .app-page[data-page="musts"] .must-eats-logo-img {
    max-width: 180px;
    display: block;
    margin: 0 auto;
  }

  .app-page[data-page="musts"] .must-eats-subtitle,
  .app-page[data-page="map"] .map-subtitle,
  .app-page[data-page="news"] .news-subtitle {
    display: none;
  }

  .app-page.hidden {
    display: none;
  }

  /* Must-eats grid — mobile */
  .app-page[data-page="musts"] .must-eats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px 8px max(40px, calc(env(safe-area-inset-bottom) + 24px));
    max-width: none;
    margin: 0;
  }
  .app-page[data-page="musts"] .must-eats-grid .must-card:nth-child(odd):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 4px);
  }

  /* Map page mobile */
  .app-page[data-page="map"] {
    overflow: hidden;
  }

  .app-page[data-page="map"] .map-section {
    position: absolute;
    inset: 0;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
  }

  .app-page[data-page="map"] .map-filters {
    flex-shrink: 0;
  }

  .app-page[data-page="map"] .map-container {
    flex: 1;
    min-height: 0;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }


  .app-page[data-page="map"] #foodMap {
    height: 100% !important;
    width: 100% !important;
    min-height: 0 !important;
  }

  .app-page[data-page="map"] .leaflet-container {
    height: 100% !important;
    width: 100%;
  }
  
  .app-page[data-page="map"] .map-location-btn-fixed {
    top: 10px;
    left: 10px;
    right: auto;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.18);
  }

  .app-page[data-page="map"] .map-location-btn-fixed svg {
    stroke: rgba(255,255,255,0.9);
  }
  
  /* ── News page — Mobile Magazine ── */
  .app-page[data-page="news"] .news-section {
    /* Clear the fixed navbar + iOS safe area so "Berlin / Food News" isn't hidden */
    padding: calc(60px + env(safe-area-inset-top, 0px)) 0 0;
    min-height: 0;
    background: var(--white);
  }

  .app-page[data-page="news"] .news-ticker {
    display: block;
  }

  .app-page[data-page="news"] .news-header {
    padding: 20px 16px 8px;
    background: var(--white);
    border-bottom: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 0;
    text-align: left;
  }

  .app-page[data-page="news"] .news-header-top {
    margin-bottom: 0;
  }

  .app-page[data-page="news"] .section-label {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--darkred);
    margin: 0 0 2px 0;
    padding: 0;
    display: block;
  }

  .app-page[data-page="news"] .news-subtitle { display: none; }

  .app-page[data-page="news"] .news-title {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 0.85;
    margin: 0;
    text-transform: uppercase;
    color: var(--black);
    font-family: var(--font);
  }

  .app-page[data-page="news"] .news-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #000;
    padding: 0;
  }

  /* All mobile cards: image fills card, headline overlaid */
  .app-page[data-page="news"] .news-card {
    background: #000;
    display: block;
    overflow: hidden;
    position: relative;
  }
  .app-page[data-page="news"] .news-card > a {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
  }
  .app-page[data-page="news"] .news-card-date { display: none; }
  .app-page[data-page="news"] .news-card-excerpt { display: none; }
  .app-page[data-page="news"] .news-card-top { margin-bottom: 4px; }

  .app-page[data-page="news"] .news-card .news-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
  }
  .app-page[data-page="news"] .news-card .news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
  }
  .app-page[data-page="news"] .news-card:hover .news-card-img img {
    transform: scale(1.04);
  }
  .app-page[data-page="news"] .news-card .news-card-body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px 16px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.45) 55%, transparent 100%);
  }
  .app-page[data-page="news"] .news-card .news-card-category {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    display: block;
    margin-bottom: 5px;
  }
  .app-page[data-page="news"] .news-card .news-card-headline {
    font-size: clamp(1.15rem, 4.5vw, 1.6rem);
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-transform: uppercase;
    color: #fff;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

}

/* ============================================
   LOGIN MODAL
   ============================================ */
/* Cookie Info Trigger Button */
.cookie-info-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10002;
  align-items: center;
  justify-content: center;
}

.login-modal.active {
  display: flex;
}

.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.login-modal-content {
  position: relative;
  width: 90%;
  max-width: 380px;
  max-height: min(90dvh, 90vh);
  overflow-y: auto;
  background: var(--white);
  border-radius: 20px;
  padding: 24px 22px;
  text-align: center;
}

.login-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.login-modal-close svg {
  width: 16px;
  height: 16px;
  stroke: var(--black);
}

.login-modal-close:hover {
  background: var(--gray-200);
}

.login-logo {
  margin-bottom: 10px;
}

.login-logo img {
  width: 72px;
  height: auto;
  margin: 0 auto;
}

.login-title {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 16px;
  line-height: 1.4;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--font);
  background: var(--white);
  transition: border-color 0.2s;
}

.login-field input:focus {
  outline: none;
  border-color: var(--orange);
}

.login-field input::placeholder {
  color: var(--gray-400);
}

.login-btn {
  width: 100%;
  padding: 11px 18px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}

.login-btn-primary {
  background: var(--black);
  color: var(--white);
  transition: transform 0.1s;
}

.login-btn-primary:active {
  transform: scale(0.97);
}

.login-btn-primary svg {
  transition: transform 0.2s;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 14px 0;
  color: var(--gray-400);
  font-size: 0.85rem;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.login-btn-google {
  background: var(--white);
  color: var(--black);
  border: 1.5px solid var(--gray-200);
  margin-bottom: 8px;
}

.login-btn-google:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}


.login-terms {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--gray-400);
  line-height: 1.5;
}

.login-terms a, .login-terms-link {
  color: var(--black);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
}

@media (max-width: 767px) {
  .login-modal {
    align-items: center;
    justify-content: center;
  }
  .login-modal-content {
    width: 92%;
    max-width: 360px;
    max-height: min(82dvh, 82vh);
    overflow-y: auto;
  
    padding: 20px 18px 18px;
    border-radius: 20px;
  }
  /* Logo komplett verstecken auf Mobile — spart ~70px */
  .login-logo {
    display: none;
  }
  .login-title {
    font-size: 1.2rem;
    margin-bottom: 4px;
  }
  .login-subtitle {
    font-size: 0.82rem;
    margin-bottom: 16px;
    line-height: 1.4;
  }
  .login-form {
    gap: 8px;
    margin-bottom: 0;
  }
  .login-field input {
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 10px;
  }
  .login-btn {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 10px;
  }
  .login-mode-toggle {
    margin: 10px 0 0;
    font-size: 0.82rem;
  }
  .login-divider {
    margin: 14px 0;
  }
  .login-btn-google {
    margin-bottom: 8px;
  }
  .login-terms {
    margin-top: 14px;
    font-size: 0.72rem;
  }
  /* About / Impressum / AGB / Datenschutz / Kontakt Modals */
  .cookie-info-modal-content {
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
  
  }
}

/* ============================================
   DARK MODE — [data-theme="dark"] overrides
   ============================================ */

/* Body */
[data-theme="dark"] body {
  background: #000000;
  color: #ffffff;
}
[data-theme="dark"] html {
  background: #000000;
}

/* Start sections (about / contact / press / impressum pages) */
[data-theme="dark"] .start-scroll-content {
  background: #0d0d0d;
}
[data-theme="dark"] .start-section {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .start-section--alt {
  background: #161616;
}
[data-theme="dark"] .start-section-title {
  color: #ffffff;
}
[data-theme="dark"] .start-section-body {
  color: rgba(255, 255, 255, 0.6);
}
[data-theme="dark"] .start-join-section {
  background: #1a1a1a !important;
}
[data-theme="dark"] .start-join-section .start-section-title {
  color: #ffffff;
}
[data-theme="dark"] .start-join-section .start-section-body {
  color: rgba(255, 255, 255, 0.6);
}

/* Navbar */
[data-theme="dark"] .navbar {
  background: #0d0d0d;
}
[data-theme="dark"] .navbar.scrolled {
  background: #0d0d0d;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
/* Mobile dark navbar must be fully opaque — user wants it solid,
   not a frosted layer that lets page headlines peek through. */
@media (max-width: 767px) {
  [data-theme="dark"] .navbar,
  [data-theme="dark"] .navbar.scrolled {
    background: #000000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
[data-theme="dark"] .navbar-icon-btn {
  color: rgba(255, 255, 255, 0.85);
}
[data-theme="dark"] .burger-btn span {
  background: rgba(255, 255, 255, 0.85);
}

/* Language switcher */
[data-theme="dark"] .lang-switcher,
[data-theme="dark"] .burger-lang-row .lang-switcher {
  background: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .lang-btn {
  color: rgba(255, 255, 255, 0.6);
}
[data-theme="dark"] .lang-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
[data-theme="dark"] .lang-btn:hover:not(.active) {
  color: rgba(255, 255, 255, 0.8);
}

/* Burger Drawer */
[data-theme="dark"] .burger-drawer-panel {
  background: #141414;
}
[data-theme="dark"] .burger-drawer-close {
  color: rgba(255, 255, 255, 0.7);
}
[data-theme="dark"] .burger-nav-item {
  color: rgba(255, 255, 255, 0.9);
}
[data-theme="dark"] .burger-nav-item--sm {
  color: rgba(255, 255, 255, 0.4);
}
[data-theme="dark"] .burger-nav-divider {
  background: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .burger-utils {
  border-top-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .burger-util-btn {
  color: rgba(255, 255, 255, 0.5);
}
[data-theme="dark"] .burger-util-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}
[data-theme="dark"] .burger-drawer-footer {
  color: rgba(255, 255, 255, 0.25);
}
[data-theme="dark"] .burger-drawer-footer a,
[data-theme="dark"] .burger-drawer-footer-btn,
[data-theme="dark"] .burger-drawer-footer span {
  color: rgba(255, 255, 255, 0.25);
}

/* News section */
[data-theme="dark"] .news-card-headline {
  color: #ffffff;
}
[data-theme="dark"] .news-card-excerpt {
  color: rgba(255, 255, 255, 0.5);
}
[data-theme="dark"] .news-card-date {
  color: rgba(255, 255, 255, 0.35);
}
[data-theme="dark"] .news-title {
  color: #ffffff;
}
[data-theme="dark"] .news-article-more {
  background: #111111;
  border-top-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .news-article-more-label {
  color: rgba(255, 255, 255, 0.5);
}

/* Article body */
[data-theme="dark"] .news-article-content {
  color: rgba(255, 255, 255, 0.85);
}
[data-theme="dark"] .news-article-content h2,
[data-theme="dark"] .news-article-content h3,
[data-theme="dark"] .news-article-content h4 {
  color: #ffffff;
}
[data-theme="dark"] .news-article-content blockquote {
  color: rgba(255, 255, 255, 0.5);
}
[data-theme="dark"] .news-modal-content {
  color: rgba(255, 255, 255, 0.85);
}
[data-theme="dark"] .news-modal-content h2,
[data-theme="dark"] .news-modal-content h3 {
  color: #ffffff;
}
[data-theme="dark"] .news-article-hero-no-img {
  background: #111111;
}
[data-theme="dark"] .news-modal-title {
  color: #ffffff;
}
[data-theme="dark"] .news-modal-share {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .news-article-share {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .news-share-btn {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}
[data-theme="dark"] .news-share-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
[data-theme="dark"] .share-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}

/* Must Eat modal */
[data-theme="dark"] .modal {
  background: #1a1a1a;
}
[data-theme="dark"] .modal-dish {
  color: #ffffff;
}
[data-theme="dark"] .modal-restaurant,
[data-theme="dark"] .modal-address {
  color: rgba(255, 255, 255, 0.4);
}
[data-theme="dark"] .modal-desc {
  color: rgba(255, 255, 255, 0.6);
}
[data-theme="dark"] .modal-maps-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
[data-theme="dark"] .modal-maps-btn:hover {
  background: var(--orange);
}

/* Login modal */
[data-theme="dark"] .login-modal-content {
  background: #1a1a1a;
}
[data-theme="dark"] .login-title {
  color: #ffffff;
}
[data-theme="dark"] .login-subtitle {
  color: rgba(255, 255, 255, 0.5);
}
[data-theme="dark"] .login-modal-close {
  background: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .login-modal-close svg {
  stroke: rgba(255, 255, 255, 0.8);
}
[data-theme="dark"] .login-modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
}
[data-theme="dark"] .login-field input {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
[data-theme="dark"] .login-field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
[data-theme="dark"] .login-field input:focus {
  border-color: var(--orange);
}
[data-theme="dark"] .login-btn-primary {
  background: #ffffff;
  color: #000000;
}
[data-theme="dark"] .login-divider {
  color: rgba(255, 255, 255, 0.35);
}
[data-theme="dark"] .login-divider::before,
[data-theme="dark"] .login-divider::after {
  background: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .login-btn-google {
  background: #2a2a2a;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}
[data-theme="dark"] .login-btn-google:hover {
  background: #333333;
}
[data-theme="dark"] .login-terms {
  color: rgba(255, 255, 255, 0.4);
}
[data-theme="dark"] .login-terms a,
[data-theme="dark"] .login-terms-link {
  color: rgba(255, 255, 255, 0.75);
}
[data-theme="dark"] .login-mode-link {
  color: rgba(255, 255, 255, 0.75);
}

/* Profile page */
[data-theme="dark"] .profile-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .profile-name {
  color: #ffffff;
}
[data-theme="dark"] .profile-email {
  color: rgba(255, 255, 255, 0.45);
}
[data-theme="dark"] .profile-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .profile-tab {
  color: rgba(255, 255, 255, 0.4);
}
[data-theme="dark"] .profile-tab.active {
  color: var(--orange);
}
[data-theme="dark"] .profile-pack-title,
[data-theme="dark"] .profile-pack-count,
[data-theme="dark"] .profile-booster-section-title {
  color: rgba(255, 255, 255, 0.45);
}
[data-theme="dark"] .profile-booster-section {
  border-top-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .profile-booster-pack {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .profile-booster-pack-cover {
  background: #2a2a2a;
}
[data-theme="dark"] .profile-booster-pack-name {
  color: #ffffff;
}
[data-theme="dark"] .profile-booster-pack-price {
  color: rgba(255, 255, 255, 0.45);
}
[data-theme="dark"] .profile-fav-card {
  background: #2a2a2a;
}

/* Static pages (About, Contact, Press, Impressum) */
[data-theme="dark"] .static-page {
  background: #0d0d0d;
}
[data-theme="dark"] .static-page-back {
  color: rgba(255, 255, 255, 0.55);
}
[data-theme="dark"] .static-page-back:hover {
  color: #ffffff;
}
[data-theme="dark"] .static-page-title {
  color: #ffffff;
}
[data-theme="dark"] .static-page-body {
  color: rgba(255, 255, 255, 0.75);
}
[data-theme="dark"] .static-page-body h2,
[data-theme="dark"] .static-page-body h3,
[data-theme="dark"] .static-page-body h4 {
  color: #ffffff;
}
[data-theme="dark"] .static-page-body p,
[data-theme="dark"] .static-page-body ul,
[data-theme="dark"] .static-page-body ol,
[data-theme="dark"] .static-page-body li {
  color: rgba(255, 255, 255, 0.65);
}
[data-theme="dark"] .static-page-body strong {
  color: #ffffff;
}

/* Navbar logo: eat.webp is a black circle — visible on both light and dark backgrounds */
[data-theme="dark"] .navbar:not(.scrolled) {
  background: #0d0d0d;
}
[data-theme="dark"] .navbar.scrolled {
  background: #0d0d0d;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .navbar-icon-btn {
  color: rgba(255, 255, 255, 0.75);
}
[data-theme="dark"] .navbar-icon-btn:hover,
[data-theme="dark"] .navbar-icon-btn.active {
  color: #ffffff;
}
[data-theme="dark"] .burger-btn {
  color: rgba(255, 255, 255, 0.75);
}

/* Profile settings dark mode */
[data-theme="dark"] .profile-settings-section-title {
  color: rgba(255, 255, 255, 0.35);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .profile-settings-section--danger .profile-settings-section-title {
  color: rgba(192, 57, 43, 0.75);
  border-bottom-color: rgba(192, 57, 43, 0.15);
}
[data-theme="dark"] .profile-settings-label {
  color: rgba(255, 255, 255, 0.55);
}
[data-theme="dark"] .profile-settings-value {
  color: rgba(255, 255, 255, 0.4);
}
[data-theme="dark"] .profile-settings-input {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
[data-theme="dark"] .profile-settings-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
[data-theme="dark"] .profile-settings-input:focus {
  border-color: var(--orange);
}
[data-theme="dark"] .profile-settings-save-btn {
  background: #ffffff;
  color: #000000;
}
[data-theme="dark"] .profile-settings-save-btn:hover {
  background: rgba(255, 255, 255, 0.85);
}
[data-theme="dark"] .profile-settings-feedback {
  color: rgba(255, 255, 255, 0.4);
}
[data-theme="dark"] .profile-settings-action-btn {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.15);
}
[data-theme="dark"] .profile-settings-action-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
}
[data-theme="dark"] .profile-settings-signout-btn {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.15);
}
[data-theme="dark"] .profile-settings-signout-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Search modal */
[data-theme="dark"] .search-container {
  background: #1a1a1a;
}
[data-theme="dark"] .search-input-wrapper {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}
[data-theme="dark"] .search-input {
  background: transparent;
  color: #ffffff;
}
[data-theme="dark"] .search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Map dark tiles */
[data-theme="dark"] #foodMap {
  background: #1a1a1a;
}

/* Map sidebar borders */
[data-theme="dark"] .map-nearby {
  border-top-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .app-page[data-page="map"] .map-nearby {
  border-left-color: rgba(255, 255, 255, 0.07);
  box-shadow: -2px 0 16px rgba(0, 0, 0, 0.5);
}

/* Map section border */
[data-theme="dark"] .map-section {
  border-top-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Map bottom sheet — dark mode */
[data-theme="dark"] .app-page[data-page="map"] .map-nearby {
  background: #111111;
  box-shadow: 0 -3px 24px rgba(0, 0, 0, 0.40);
}
[data-theme="dark"] .app-page[data-page="map"] .map-nearby-handle-bar {
  background: rgba(255, 255, 255, 0.22);
}
[data-theme="dark"] .app-page[data-page="map"] .map-search-input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
[data-theme="dark"] .app-page[data-page="map"] .map-search-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
}
[data-theme="dark"] .app-page[data-page="map"] .map-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
[data-theme="dark"] .app-page[data-page="map"] .map-search-icon {
  color: rgba(255, 255, 255, 0.45);
}
[data-theme="dark"] .app-page[data-page="map"] .map-filter-dropdown-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
}
[data-theme="dark"] .app-page[data-page="map"] .map-open-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
}
[data-theme="dark"] .app-page[data-page="map"] .map-open-toggle--active {
  background: #1a8a3a;
  border-color: #1a8a3a;
  color: #ffffff;
}
[data-theme="dark"] .app-page[data-page="map"] .map-nearby-list-row {
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .app-page[data-page="map"] .map-nearby-list-row:active {
  background: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .app-page[data-page="map"] .map-list-thumb {
  background: #2a2a2a;
}
[data-theme="dark"] .app-page[data-page="map"] .map-list-name {
  color: #ffffff;
}
[data-theme="dark"] .app-page[data-page="map"] .map-list-meta {
  color: rgba(255, 255, 255, 0.45);
}
[data-theme="dark"] .app-page[data-page="map"] .map-list-fav {
  color: rgba(255, 255, 255, 0.25);
}
[data-theme="dark"] .app-page[data-page="map"] .map-list-status--open {
  color: #4cd97b;
  background: rgba(76, 217, 123, 0.15);
}
[data-theme="dark"] .app-page[data-page="map"] .map-list-status--closed {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.15);
}

/* Restaurant grid cards — dark mode */
[data-theme="dark"] .map-nearby-grid-card {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .map-nearby-grid-card-img {
  background: #2a2a2a;
}
[data-theme="dark"] .map-nearby-grid-card-name {
  color: #ffffff;
}
[data-theme="dark"] .map-nearby-grid-card-meta {
  color: rgba(255, 255, 255, 0.45);
}
[data-theme="dark"] .map-nearby-grid-card-hours {
  color: rgba(255, 255, 255, 0.35);
}
[data-theme="dark"] .map-nearby-grid-card-hours-label {
  color: rgba(255, 255, 255, 0.5);
}
[data-theme="dark"] .map-nearby-grid-card-fav {
  color: rgba(255, 255, 255, 0.25);
}
[data-theme="dark"] .map-nearby-grid-card-status--open {
  color: #4cd97b;
  background: rgba(76, 217, 123, 0.15);
}
[data-theme="dark"] .map-nearby-grid-card-status--closed {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.15);
}

/* Map filter dropdown — dark mode */
[data-theme="dark"] .map-filter-dropdown-menu {
  background: #1c1c1c;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}
[data-theme="dark"] .map-filter-option {
  color: rgba(255, 255, 255, 0.75);
}
[data-theme="dark"] .map-filter-option:hover,
[data-theme="dark"] .map-filter-option.active {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

/* ── Theme Toggle (iOS-style) ── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.theme-toggle-track {
  position: relative;
  width: 40px;
  height: 24px;
  background: #cccccc;
  border-radius: 999px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  transition: left 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}
.theme-toggle-thumb::after {
  content: '☀️';
}
.theme-toggle-label {
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--gray-400);
}

/* Dark active state */
[data-theme="dark"] .theme-toggle-track {
  background: var(--orange);
}
[data-theme="dark"] .theme-toggle-thumb {
  left: 19px;
}
[data-theme="dark"] .theme-toggle-thumb::after {
  content: '🌙';
}
[data-theme="dark"] .theme-toggle-label {
  color: rgba(255, 255, 255, 0.5);
}

/* Footer toggle — dark bg */
.site-footer .theme-toggle-track {
  background: rgba(255, 255, 255, 0.2);
}
.site-footer .theme-toggle-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
[data-theme="dark"] .site-footer .theme-toggle-track {
  background: var(--orange);
}
/* Footer toggle — light bg */
html:not([data-theme="dark"]) .site-footer .theme-toggle-track {
  background: #cccccc;
}
html:not([data-theme="dark"]) .site-footer .theme-toggle-label {
  color: rgba(0, 0, 0, 0.45);
}

/* Burger theme row */
.burger-theme-row {
  padding: 12px 32px 8px;
  border-top: 1px solid var(--gray-100);
  margin-top: 8px;
}
[data-theme="dark"] .burger-theme-row {
  border-top-color: rgba(255, 255, 255, 0.07);
}

/* App page backgrounds — override all media-query white backgrounds */
[data-theme="dark"] .app-page {
  background: #0d0d0d;
}
[data-theme="dark"] .app-page[data-page="start"] {
  background: #0d0d0d;
}
[data-theme="dark"] .app-page .must-eats-header {
  background: #0d0d0d;
}
[data-theme="dark"] .app-page .news-header {
  background: #0d0d0d;
}
[data-theme="dark"] .app-page .map-header {
  background: #0d0d0d;
}
[data-theme="dark"] .app-page[data-page="musts"] .must-eats-header {
  background: #0d0d0d;
}
[data-theme="dark"] .app-page[data-page="news"] .news-header {
  background: #0d0d0d;
}
[data-theme="dark"] .app-page[data-page="news"] .news-section {
  background: #0d0d0d;
}
[data-theme="dark"] .app-page[data-page="map"] .map-header {
  background: #0d0d0d;
}
[data-theme="dark"] .must-eats-subtitle,
[data-theme="dark"] .news-subtitle {
  color: rgba(255, 255, 255, 0.5);
}
[data-theme="dark"] .must-eats-title,
[data-theme="dark"] .news-title {
  color: #ffffff;
}
[data-theme="dark"] .must-eats-logo-img {
  filter: brightness(0) invert(1);
}

/* High-specificity overrides — beat app-page media-query rules (0,3,0) */
[data-theme="dark"] .app-page[data-page="news"] .news-title {
  color: #ffffff;
}
/* BERLIN label always red, both themes */
.app-page[data-page="news"] .section-label {
  color: var(--darkred) !important;
  text-align: left;
}
[data-theme="dark"] .news-grid {
  color: rgba(255, 255, 255, 0.85);
}

/* Map spot detail overlay — dark mode */
[data-theme="dark"] .map-spot-card {
  background: #1a1a1a;
}
[data-theme="dark"] .map-spot-name {
  color: #ffffff;
}
[data-theme="dark"] .map-spot-address {
  color: rgba(255, 255, 255, 0.45);
}
[data-theme="dark"] .map-spot-label {
  color: rgba(255, 255, 255, 0.5);
}
[data-theme="dark"] .map-spot-musteat {
  background: #2a2a2a;
  color: rgba(255, 255, 255, 0.75);
  border-left-color: rgba(255, 255, 255, 0.15);
}
[data-theme="dark"] .map-spot-type-badge {
  background: #2a2a2a;
  color: rgba(255, 255, 255, 0.6);
}
[data-theme="dark"] .map-spot-price-badge {
  background: #2a2a2a;
  color: rgba(255, 255, 255, 0.85);
}
[data-theme="dark"] .map-spot-status-badge--open {
  color: #4cd97b;
  background: rgba(76, 217, 123, 0.15);
}
[data-theme="dark"] .map-spot-status-badge--closed {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.15);
}
[data-theme="dark"] .map-spot-btn--secondary {
  background: #2a2a2a;
  color: #ffffff;
}
[data-theme="dark"] .map-spot-btn--secondary:hover {
  background: #333333;
}

/* News article internals */
[data-theme="dark"] .news-article-back {
  background: rgba(20, 20, 20, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}
[data-theme="dark"] .news-article-back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}
[data-theme="dark"] .news-article-more-grid {
  background: #111111;
}

/* Food card front face (fallback bg) */
[data-theme="dark"] .cf {
  background: #1a1a1a;
}

/* ============================================
   DESKTOP APP FRAME (≥ 768px)
   ============================================ */
@media (min-width: 768px) {
  body { background: #000; }

  .navbar {
    left: 0; right: 0; transform: none;
    width: 100%; max-width: none;
    height: 60px; padding: 0 32px;
    display: flex; align-items: center; justify-content: space-between;
    background: #fff;
  }

  .app-pages {
    max-width: none; margin: 60px 0 0; box-shadow: none;
    height: calc(100dvh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .app-footer { display: none; } /* replaced by new site-footer */

  /* App pages: natural height so footer follows content */
  .app-page {
    height: auto;
    min-height: calc(100dvh - 60px);
    padding-bottom: 0;
    background: var(--white);
    overflow-y: visible;
    overflow-x: hidden;
  }

  /* Map page fills viewport exactly — no external scroll, no footer */
  .app-page[data-page="map"] {
    height: calc(100dvh - 60px);
    min-height: 0;
    overflow: hidden;
  }

  /* Hide footer when map page is active */
  .app-pages:has(.app-page[data-page="map"].active) .site-footer {
    display: none !important;
  }

  .app-page[data-page="start"] {
    background: var(--white);
  }

  .app-page[data-page="start"] .hero {
    height: calc(100dvh - 60px);
  }

  .app-page[data-page="start"] .hero-content {
    height: 100%;
    padding-bottom: 8vh;
  }

  /* ---- Compact section headers (no large padding) ---- */
  .app-page .must-eats-section,
  .app-page .news-section {
    padding: 0;
  }

  .app-page .must-eats-header {
    padding: 16px 16px 24px;
    background: var(--white);
    text-align: center;
    margin: 0 auto;
    border: none;
  }

  .app-page .map-header {
    padding: 16px 16px 24px;
    background: var(--white);
    text-align: left;
    margin: 0;
    border: none;
  }

  .app-page .news-header {
    padding: 14px 16px 12px;
    background: var(--white);
    text-align: left;
    margin: 0;
    border-bottom: none;
  }

  .app-page .news-title {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
    display: block;
    text-transform: uppercase;
  }

  .app-page[data-page="musts"] .section-label {
    text-align: center;
  }

  .app-page[data-page="musts"] .must-eats-logo-img {
    max-width: 180px;
    display: block;
    margin: 0 auto;
  }

  .app-page:not([data-page="news"]) .section-label {
    font-size: 10px;
    color: var(--orange);
    margin-bottom: 4px;
    margin-top: 0;
    display: block;
    text-align: left;
  }

  .app-page[data-page="musts"] .section-label {
    text-align: center;
  }

  .app-page[data-page="map"] .section-label,
  .app-page[data-page="news"] .section-label {
    text-align: left;
    margin-bottom: 4px;
  }

  .app-page .must-eats-subtitle,
  .app-page .news-subtitle,
  .app-page .map-subtitle {
    display: none;
  }

  /* Must-eats grid — desktop app */
  .app-page[data-page="musts"] .must-eats-section {
    padding: 0;
  }

  .app-page[data-page="musts"] .must-eats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px 10px max(40px, calc(env(safe-area-inset-bottom) + 24px));
    max-width: none;
    margin: 0 auto;
  }
  .app-page[data-page="musts"] .must-eats-grid .must-card:nth-child(odd):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 5px);
  }

  @media (min-width: 480px) {
    .app-page[data-page="musts"] .must-eats-grid {
      gap: 12px;
      padding: 12px 14px max(40px, calc(env(safe-area-inset-bottom) + 24px));
      max-width: 800px;
    }
    .app-page[data-page="musts"] .must-eats-grid .must-card:nth-child(odd):last-child {
      width: calc(50% - 6px);
    }
  }

  /* ---- Must Eats: desktop 5-column grid ---- */
  .app-page[data-page="musts"] .must-eats-section {
    padding: 0 32px 40px;
  }

  .app-page[data-page="musts"] .must-eats-header {
    padding: 32px 0 20px;
    text-align: center;
    margin: 0 auto 24px;
  }

  .app-page[data-page="musts"] .must-eats-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 0;
    max-width: none;
  }

  /* Remove the odd-last-child centering hack (not needed at 5 cols) */
  .app-page[data-page="musts"] .must-eats-grid .must-card:nth-child(odd):last-child {
    grid-column: auto;
    justify-self: auto;
    width: auto;
  }

  /* ---- Map: fill available space, no scroll ---- */
  .app-page[data-page="map"] {
    overflow: hidden;
    position: relative;
  }

  .app-page[data-page="map"] .map-section {
    position: absolute;
    inset: 0;
    min-height: 0;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
  }

  .app-page[data-page="map"] .map-header {
    padding: 10px 24px 16px;
    text-align: left;
  }

  .app-page[data-page="map"] .section-label {
    margin-top: 0;
    margin-bottom: 2px;
    text-align: left;
  }

  .app-page[data-page="map"] .map-subtitle {
    display: none;
  }

  .app-page[data-page="map"] .map-title {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
    display: block;
    text-transform: uppercase;
  }

  .app-page[data-page="map"] .map-filters {
    flex-shrink: 0;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .app-page[data-page="map"] .map-container {
    flex: 1;
    min-height: 0;
    margin-top: 0;
  }


  .app-page[data-page="map"] .leaflet-container {
    height: 100% !important;
    width: 100%;
  }

  /* ---- Map: desktop nearby carousel — 6 cards + right-fade ---- */

  /* Always visible at bottom on desktop — no slide-up sheet */
  .app-page[data-page="map"] .map-nearby {
    transform: translateY(0);
    transition: none;
    border-radius: 16px 16px 0 0;
    padding: 16px 24px 20px;
  }

  /* ── Desktop: sidebar layout ── */
  /* ── Desktop sidebar: position-based (avoids grid conflicts) ── */

  /* Sidebar: absolutely fills right edge, full height */
  .app-page[data-page="map"] .map-nearby {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto; /* clear base rule's left:0 so sidebar anchors to right */
    width: 360px;
    height: auto;
    transform: none !important;
    border-radius: 0;
    box-shadow: -2px 0 12px rgba(0,0,0,0.08);
    border-left: 1px solid #eee;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  /* Map fills left side: flex:1 already set, just add right margin for sidebar */
  .app-page[data-page="map"] .map-container {
    margin-right: 360px;
    flex: 1;
    min-height: 0;
    display: block;
  }
  /* Map header also shifts left to not overlap sidebar */
  .app-page[data-page="map"] .map-header {
    margin-right: 360px;
  }
  /* Zoom buttons inside the map area */
  .app-page[data-page="map"] .map-zoom-btns {
    right: 376px;
    bottom: 32px;
  }
  /* Spot detail overlay covers only the map area */
  .app-page[data-page="map"] .map-spot-overlay {
    right: 360px;
  }
  /* No drag handle in sidebar */
  .app-page[data-page="map"] .map-nearby-handle {
    display: none;
  }
  /* Sidebar grid: scrollable, 2 columns */
  .app-page[data-page="map"] .map-nearby-grid-wrapper {
    flex: 1;
    overflow-y: auto;
    max-height: none;
  }
  .app-page[data-page="map"] .map-nearby-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-page[data-page="map"] .map-nearby-grid-card-img { height: 110px; }
  .app-page[data-page="map"] .map-nearby-grid-card-name { font-size: 12px; }
  .app-page[data-page="map"] .map-nearby-grid-card-meta { font-size: 10px; }
  .app-page[data-page="map"] .map-nearby-label {
    font-size: 12px;
    padding: 12px 12px 10px;
  }
  /* Bigger filter tabs on desktop */
  .app-page[data-page="map"] .map-filter-tab {
    font-size: 13px;
    padding: 10px 18px 12px;
  }
  .app-page[data-page="map"] .map-filter-tab-count { font-size: 11px; }

  /* ── News: Editorial Magazine Desktop ── */
  .app-page[data-page="news"] .news-section {
    padding: 0;
    background: var(--white);
  }

  .app-page[data-page="news"] .news-ticker {
    display: block;
  }

  .app-page[data-page="news"] .news-header {
    padding: 16px 24px 12px;
    margin-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
  }

  .app-page[data-page="news"] .news-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 0.95;
    text-transform: uppercase;
    margin: 0;
    color: var(--black);
    font-family: var(--font);
    text-align: left;
  }

  .app-page[data-page="news"] .section-label {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--darkred);
    margin: 0 0 4px 0;
    padding: 0;
    text-align: left;
    display: block;
  }

  /* Magazine grid: 4 equal columns, 2 rows */
  .app-page[data-page="news"] .news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 1px;
    background: var(--gray-100);
    padding: 0;
    max-width: none;
    margin: 0;
  }

  /* Magazine grid: fixed row heights so images fill cells */
  .app-page[data-page="news"] .news-grid {
    grid-template-rows: 460px 300px;
  }

  /* All cards: overlay style — image fills, body sits on top */
  .app-page[data-page="news"] .news-card {
    background: #000;
    overflow: hidden;
    display: block;
    position: relative;
    transition: none;
    opacity: 1;
    transform: none;
  }
  .app-page[data-page="news"] .news-card > a {
    display: block;
    position: relative;
    height: 100%;
    text-decoration: none;
    color: inherit;
  }
  .app-page[data-page="news"] .news-card-img {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  .app-page[data-page="news"] .news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
  }
  .app-page[data-page="news"] .news-card:hover .news-card-img img {
    transform: scale(1.04);
  }
  .app-page[data-page="news"] .news-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 22px 22px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.45) 55%, transparent 100%);
    border-top: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .app-page[data-page="news"] .news-card-date { display: none; }
  .app-page[data-page="news"] .news-card-excerpt { display: none; }
  .app-page[data-page="news"] .news-card-top { margin-bottom: 0; gap: 0; }
  .app-page[data-page="news"] .news-card-category {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
  }
  .app-page[data-page="news"] .news-card-headline {
    font-size: clamp(1.0rem, 1.3vw, 1.45rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.07;
    color: #fff;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    text-transform: uppercase;
  }

  /* Row 1: Hero spans 2 cols */
  .app-page[data-page="news"] .news-card:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  .app-page[data-page="news"] .news-card:nth-child(1) .news-card-body {
    padding: 80px 28px 28px;
  }
  .app-page[data-page="news"] .news-card:nth-child(1) .news-card-headline {
    font-size: clamp(1.6rem, 2.4vw, 2.6rem);
    letter-spacing: -0.03em;
    line-height: 1.0;
  }
  .app-page[data-page="news"] .news-card:nth-child(2) { grid-column: 3; grid-row: 1; }
  .app-page[data-page="news"] .news-card:nth-child(3) { grid-column: 4; grid-row: 1; }

  /* Row 2: 4 equal cards */
  .app-page[data-page="news"] .news-card:nth-child(4) { grid-column: 1; grid-row: 2; }
  .app-page[data-page="news"] .news-card:nth-child(5) { grid-column: 2; grid-row: 2; }
  .app-page[data-page="news"] .news-card:nth-child(6) { grid-column: 3; grid-row: 2; }
  .app-page[data-page="news"] .news-card:nth-child(7) { grid-column: 4; grid-row: 2; }

  /* Cards 8+ overflow: full-width image rows */
  .app-page[data-page="news"] .news-card:nth-child(n+8) {
    grid-column: 1 / -1;
    height: 220px;
  }
  .app-page[data-page="news"] .news-card:nth-child(n+8) .news-card-headline {
    font-size: clamp(1.2rem, 1.5vw, 1.7rem);
    letter-spacing: -0.03em;
  }
}

/* Cookie Info Modal Content */
.cookie-info-modal-content {
  text-align: left;
  max-width: 480px;
}
.cookie-info-title {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  padding-right: 32px;
}
.cookie-info-body h3 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 20px 0 6px;
  color: var(--black);
}
.cookie-info-body h3:first-child {
  margin-top: 0;
}
.cookie-info-body p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--gray-600);
  margin: 0;
}
.cookie-info-body ul {
  margin: 8px 0 0 16px;
  padding: 0;
}
.cookie-info-body ul li {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--gray-600);
  margin-bottom: 4px;
}
.cookie-info-body a {
  color: var(--black);
  font-weight: 600;
}

/* ── BURGER MENU ─────────────────────────────────── */
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: 0.2s;
}

/* Drawer */
.burger-drawer {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.burger-drawer.active {
  opacity: 1;
  pointer-events: all;
}
.burger-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.burger-drawer-panel {
  position: relative;
  width: 320px;
  max-width: 88vw;
  /* Full height — safe area handled via padding inside */
  height: 100%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: max(24px, env(safe-area-inset-top, 0px)) 0 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.burger-drawer.active .burger-drawer-panel {
  transform: translateX(0);
}
.burger-drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--black);
}
.burger-nav {
  display: flex;
  flex-direction: column;
  margin-top: 60px;
  padding: 0 32px;
  gap: 4px;
}
.burger-nav-item {
  background: none;
  border: none;
  text-align: left;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--black);
  cursor: pointer;
  padding: 10px 0;
  letter-spacing: -0.02em;
  transition: opacity 0.15s;
}
.burger-nav-item:hover {
  opacity: 0.5;
}
.burger-nav-item--sm {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-400);
  padding: 6px 0;
}
.burger-nav-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 8px 0;
}
.burger-drawer-footer {
  margin-top: auto;
  padding: 24px 32px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--gray-400);
}
.burger-drawer-footer a, .burger-drawer-footer-btn {
  color: var(--gray-400);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
}
.burger-drawer-footer span {
  color: var(--gray-400);
}
.burger-utils {
  display: flex;
  flex-direction: column;
  padding: 8px 32px 0;
  gap: 2px;
  border-top: 1px solid var(--gray-100);
  margin-top: 16px;
}
.burger-util-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--gray-400);
  cursor: pointer;
  padding: 10px 0;
  text-decoration: none;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.burger-util-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  flex-shrink: 0;
}
.burger-util-btn:hover {
  color: var(--black);
}
.burger-lang-row {
  padding: 16px 32px 0;
}
.burger-lang-row .lang-switcher {
  background: var(--gray-100);
  display: inline-flex;
}

/* ============================================
   AUTH — Neue Elemente
   ============================================ */

/* Fehlermeldung im Login-Formular */
.login-error {
  display: none;
  font-size: 0.82rem;
  color: #e53e3e;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  line-height: 1.4;
}

.login-success {
  display: none;
  font-size: 0.82rem;
  color: #276749;
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  line-height: 1.4;
}

/* Modus-Toggle-Link (Registrierung ↔ Anmeldung) */
.login-forgot {
  margin: 2px 0 0;
  text-align: right;
}

.login-forgot-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  font-family: var(--font);
  color: var(--gray-400);
  cursor: pointer;
  text-decoration: underline;
}

.login-forgot-btn:hover {
  color: var(--black);
}

.login-mode-toggle {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--gray-400);
}

.login-mode-link {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-family: var(--font);
  color: var(--black);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.login-mode-link:hover {
  color: var(--orange);
}

/* Profil-Avatar (Initialen-Kreis) */
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  letter-spacing: -0.02em;
}

/* Profil-Header (kompakt, horizontal) */
.profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.profile-header .profile-avatar {
  width: 52px;
  height: 52px;
  font-size: 1.1rem;
  margin: 0;
  flex-shrink: 0;
}

.profile-info {
  min-width: 0;
}

.profile-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-email {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Gespeicherte Orte — styles live in the desktop block below */

/* Footer-Button eingeloggter Zustand */
.app-footer-item.logged-in span {
  color: var(--orange);
  font-weight: 700;
}

.app-footer-item.logged-in svg {
  stroke: var(--orange);
}

@media (max-width: 767px) {
  .login-error {
    font-size: 0.78rem;
    padding: 8px 10px;
  }
}

/* ============================================
   START PAGE – SCROLL SECTIONS
   ============================================ */

/* Scroll hint */
.start-scroll-hint {
  display: none;
  text-align: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}
.start-scroll-hint-line {
  width: 1px;
  height: 28px;
  background: #ccc;
  margin: 0 auto 8px;
}
.start-scroll-hint-text {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aaa;
}
@media (min-width: 768px) {
  .start-scroll-hint { display: none; }
}

/* Section wrapper */
.start-scroll-content { background: var(--white); padding-bottom: 0; }

.start-section {
  padding: 52px 24px;
  border-bottom: 1px solid var(--gray-100);
}
.start-section:last-child { border-bottom: none; }
.start-section--alt { background: var(--gray-50); }

@media (min-width: 768px) {
  .start-section {
    padding: 72px 48px;
    max-width: 900px;
    margin: 0 auto;
  }
}

/* Section label (black pill) */
.start-section-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white);
  background: var(--black);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

/* Heading */
.start-section-title {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
}

/* Body text */
.start-section-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-600);
}
.start-section-body p + p {
  margin-top: 1em;
}

/* Join CTA section */
.start-join-section {
  text-align: center;
  border-top: 3px solid var(--orange) !important;
  background: var(--white) !important;
}
.start-join-section .start-section-label {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}
.start-join-section .start-section-title {
  margin-top: 4px;
  color: var(--black);
}
.start-join-section .start-section-body {
  max-width: 340px;
  margin: 0 auto 32px;
  color: var(--gray-600);
}
.start-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 14px 32px;
  font-size: 0.7rem;
  font-weight: 800;
  font-family: var(--font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s;
}
.start-join-btn:hover {
  filter: brightness(0.88);
}
.start-join-btn svg {
  transition: transform 0.2s;
  flex-shrink: 0;
}
.start-join-btn:hover svg {
  transform: translateX(4px);
}

/* Editorial row – single column on all screen sizes */
.start-editorial-row {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.start-editorial-text { flex: 1; }

/* Images */
.start-img {
  width: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
.start-img.tall   { height: 320px; }
.start-img.medium { height: 240px; }
.start-img.wide   { height: 280px; }

@media (min-width: 768px) {
  .start-img.tall   { height: 480px; }
  .start-img.medium { height: 360px; }
  .start-img.wide   { height: 420px; }
}

/* Philosophie numbered list */
.start-philo-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .start-philo-list {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}
.start-philo-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.start-philo-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  flex-shrink: 0;
  min-width: 24px;
  padding-top: 3px;
}
.start-philo-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.start-philo-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--gray-600);
}

/* What's next – city line */
.start-cities {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin-top: 20px;
  margin-bottom: 8px;
}

/* Hero scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.45);
  animation: heroScrollBounce 2s ease-in-out infinite;
}
@keyframes heroScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(5px); }
}

/* ══════════════════════════════════════════════
   SITE FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
  background: var(--black);
  /* Bottom padding: just enough to clear the fixed tab-bar (~56px) + safe area */
  padding: 48px 24px max(60px, calc(44px + env(safe-area-inset-bottom, 0px)));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Logo */
.site-footer-logo-link {
  display: inline-block;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.15s;
}
.site-footer-logo-link:hover { opacity: 1; }
.site-footer-logo-img {
  width: 90px;
  height: auto;
  display: block;
  filter: invert(1);
}

/* Nav links */
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 0;
}
.site-footer-link {
  background: none;
  border: none;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s;
  text-transform: uppercase;
}
.site-footer-link:hover { color: var(--white); }
.site-footer-divider {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.15);
  margin: 0 4px;
  vertical-align: middle;
}

/* Instagram + Language row */
.site-footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.site-footer-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.site-footer-ig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer-ig:hover { color: var(--white); }

.site-footer-lang {
  display: flex;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  overflow: hidden;
}
.site-footer-lang-btn {
  background: none;
  border: none;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.site-footer-lang-btn.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
.site-footer-lang-btn:hover:not(.active) { color: rgba(255,255,255,0.7); }

/* Copyright */
.site-footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.03em;
  margin: 0;
}

/* ── Light mode footer ── */
html:not([data-theme="dark"]) .site-footer {
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.08);
}
html:not([data-theme="dark"]) .site-footer-logo-img {
  filter: none;
}
html:not([data-theme="dark"]) .site-footer-link {
  color: rgba(0,0,0,0.4);
}
html:not([data-theme="dark"]) .site-footer-link:hover {
  color: var(--black);
}
html:not([data-theme="dark"]) .site-footer-divider {
  background: rgba(0,0,0,0.12);
}
html:not([data-theme="dark"]) .site-footer-ig {
  color: rgba(0,0,0,0.4);
}
html:not([data-theme="dark"]) .site-footer-ig:hover {
  color: var(--black);
}
html:not([data-theme="dark"]) .site-footer-lang {
  border-color: rgba(0,0,0,0.12);
}
html:not([data-theme="dark"]) .site-footer-lang-btn {
  color: rgba(0,0,0,0.35);
}
html:not([data-theme="dark"]) .site-footer-lang-btn.active {
  background: rgba(0,0,0,0.06);
  color: var(--black);
}
html:not([data-theme="dark"]) .site-footer-lang-btn:hover:not(.active) {
  color: rgba(0,0,0,0.6);
}
html:not([data-theme="dark"]) .site-footer-copy {
  color: rgba(0,0,0,0.25);
}

@media (min-width: 768px) {
  /* Static pages: let app-pages container scroll, no internal scroll */
  .static-page {
    height: auto;
    overflow-y: visible;
  }

  .site-footer {
    padding: 56px 48px 36px;
    gap: 32px;
  }
  .site-footer-logo-img { width: 100px; }
  .site-footer-link { font-size: 11px; padding: 4px 14px; }

  .site-footer-bottom {
    border-top: none;
    padding-top: 0;
    display: block;
  }
}

/* ══════════════════════════════════════════════
   PROFILE PAGE
   ══════════════════════════════════════════════ */

/* Auth prompt (logged-out state) */
.profile-auth-prompt {
  display: flex; align-items: center; justify-content: center;
  height: calc(100dvh - 60px); padding: 32px; text-align: center;
}
.profile-auth-prompt-inner { max-width: 340px; }
.profile-auth-icon { font-size: 48px; margin-bottom: 16px; }
.profile-auth-title {
  font-size: 20px; font-weight: 800;
  margin-bottom: 10px; letter-spacing: -0.02em;
}
.profile-auth-sub {
  font-size: 14px; color: var(--gray-600);
  line-height: 1.6; margin-bottom: 24px;
}

/* Profile content (logged-in state) */
.profile-content { min-height: calc(100dvh - 180px); }

/* Profile header */
.profile-header {
  display: flex; align-items: center; gap: 16px;
  padding: 28px 20px 20px; border-bottom: 1px solid var(--gray-100);
}
.profile-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; flex-shrink: 0;
}
.profile-name { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 2px; }
.profile-email { font-size: 13px; color: var(--gray-600); }

/* Tab navigation */
.profile-tabs {
  display: flex; border-bottom: 1px solid var(--gray-100);
  padding: 0 20px; overflow-x: auto; scrollbar-width: none;
}
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tab {
  flex-shrink: 0; background: none;
  border: none; border-bottom: 2px solid transparent;
  padding: 14px 16px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gray-400); cursor: pointer; font-family: inherit;
  transition: color 0.15s, border-color 0.15s; white-space: nowrap;
}
.profile-tab.active { color: var(--orange); border-bottom-color: var(--orange); }

/* Tab panels */
.profile-tab-panel { padding: 24px 20px; }
.profile-tab-panel[hidden] { display: none; }

/* ── Profile Deck: Pack Sections ───────────────────────────────────────── */
#profilePackList {
  display: flex; flex-direction: column; gap: 32px;
}
.profile-pack-section {
  display: flex; flex-direction: column; gap: 12px;
}
.profile-pack-header {
  display: flex; align-items: center; padding: 0 2px;
}
.profile-pack-title {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray-400); margin: 0; flex: 1;
}
.profile-pack-count {
  font-size: 10px; color: var(--gray-400); opacity: 0.5;
}
.profile-pack-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.profile-pack-card {
  border-radius: 4px; overflow: hidden; cursor: pointer;
  background: transparent; transition: transform 0.15s, box-shadow 0.15s;
}
.profile-pack-card:hover {
  transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}
.profile-pack-card .must-card-img {
  width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; border-radius: 4px;
}
@media (min-width: 480px) {
  .profile-pack-row { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 768px) {
  .profile-pack-row { grid-template-columns: repeat(8, 1fr); gap: 5px; }
}

/* ── Booster Packs Section ──────────────────────────────────────────────── */
.profile-booster-section {
  margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--gray-100);
}
.profile-booster-section-title {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray-400); margin: 0 0 16px;
}
.profile-booster-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 768px) {
  .profile-booster-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.profile-booster-pack {
  border-radius: 12px; overflow: hidden; background: var(--gray-50);
  border: 1px solid var(--gray-100); display: flex; flex-direction: column;
}
.profile-booster-pack-cover {
  width: 100%; aspect-ratio: 3/4; background: var(--gray-100); overflow: hidden;
}
.profile-booster-pack-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: blur(6px) brightness(0.7); transform: scale(1.05);
}
.profile-booster-pack-name {
  font-size: 12px; font-weight: 700; color: var(--black); padding: 10px 12px 4px; line-height: 1.3;
}
.profile-booster-pack-price {
  font-size: 11px; color: var(--gray-400); padding: 0 12px 6px;
}
.profile-booster-pack-btn {
  margin: 8px 12px 12px; padding: 8px 0; width: calc(100% - 24px);
  background: var(--black); color: #fff; border: none; border-radius: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: not-allowed; opacity: 0.35; font-family: inherit;
}

/* Saved/Favs tab — photo card layout */
/* Gespeicherte Orte */
.profile-favs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 12px 16px 24px;
}
@media (min-width: 480px) {
  .profile-favs-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  .profile-favs-grid { grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 16px 24px 32px; }
}
.profile-fav-card {
  position: relative; border-radius: 8px; overflow: hidden;
  aspect-ratio: 1/1; cursor: pointer; background: var(--gray-100);
  border: none; padding: 0; width: 100%;
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.profile-fav-card:active { transform: scale(0.97); }
.profile-fav-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.18); }
.profile-fav-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-fav-card-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: 22px; color: var(--gray-300);
}
.profile-fav-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 8px 7px;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 100%);
}
.profile-fav-name {
  font-size: 12px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
}
.profile-fav-district { font-size: 10px; color: rgba(255,255,255,0.70); display: block; }
@media (min-width: 768px) {
  .profile-fav-name { font-size: 13px; }
  .profile-fav-district { font-size: 11px; }
  .profile-fav-card-overlay { padding: 24px 10px 9px; }
}
.profile-saved-empty {
  font-size: 14px; color: var(--gray-400);
  text-align: center; padding: 48px 0; line-height: 1.6;
}

/* Settings tab */
.profile-settings { display: flex; flex-direction: column; gap: 32px; max-width: 480px; }
.profile-settings-section { display: flex; flex-direction: column; gap: 14px; }
.profile-settings-section-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray-400);
  padding-bottom: 10px; border-bottom: 1px solid var(--gray-100);
}
.profile-settings-field { display: flex; flex-direction: column; gap: 6px; }
.profile-settings-label { font-size: 12px; font-weight: 600; color: var(--gray-600); }
.profile-settings-value { font-size: 14px; color: var(--gray-400); }
.profile-settings-row { display: flex; gap: 8px; }
.profile-settings-input {
  flex: 1; padding: 10px 12px; border: 1px solid var(--gray-200);
  border-radius: 6px; font-size: 14px; font-family: inherit;
  color: var(--black); background: var(--white); outline: none;
  transition: border-color 0.15s;
}
.profile-settings-input:focus { border-color: var(--orange); }
.profile-settings-save-btn {
  padding: 10px 16px; background: var(--black); color: var(--white);
  border: none; border-radius: 6px; font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: background 0.15s;
}
.profile-settings-save-btn:hover { background: #333; }
.profile-settings-feedback { font-size: 12px; color: var(--gray-600); }
.profile-settings-action-btn {
  background: none; border: 1px solid var(--gray-200);
  border-radius: 6px; padding: 10px 16px; font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; color: var(--black); width: fit-content;
  transition: border-color 0.15s;
}
.profile-settings-action-btn:hover { border-color: var(--black); }
.profile-settings-section--danger .profile-settings-section-title {
  color: #c0392b; border-bottom-color: rgba(192,57,43,0.15);
}
.profile-settings-signout-btn,
.profile-settings-delete-btn {
  background: none; border: 1px solid var(--gray-200);
  border-radius: 6px; padding: 10px 16px; font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; width: fit-content;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.profile-settings-signout-btn { color: var(--black); }
.profile-settings-signout-btn:hover { background: var(--gray-50); border-color: var(--black); }
.profile-settings-delete-btn { color: #c0392b; border-color: rgba(192,57,43,0.3); }
.profile-settings-delete-btn:hover { background: rgba(192,57,43,0.06); border-color: #c0392b; }

@media (min-width: 768px) {
  /* ── Hero: constrain start-page content sections to readable width ── */
  .app-page[data-page="start"] .start-section {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
  }
}

/* ═══════════════════════════════════════════
   STATIC PAGES (About, Contact, Press, etc.)
   ═══════════════════════════════════════════ */
.static-page { overflow-y: auto; height: calc(100dvh - 60px); background: var(--white); }
.static-page-inner { max-width: 760px; margin: 0 auto; padding: 32px 20px 80px; }

@media (min-width: 768px) {
  .static-page-inner { padding: 48px 32px 80px; }
}

.static-page-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; margin-bottom: 28px;
  font-size: 13px; font-weight: 600; color: var(--gray-400);
  cursor: pointer; font-family: inherit; transition: color 0.15s;
}
.static-page-back:hover { color: var(--black); }

.static-page-title {
  font-size: 28px; font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 32px; text-transform: uppercase;
}
@media (min-width: 768px) { .static-page-title { font-size: 40px; } }

.static-page-body { font-size: 15px; line-height: 1.8; color: var(--black); }
.static-page-body h2 { font-size: 20px; font-weight: 800; margin: 32px 0 12px; letter-spacing: -0.02em; }
.static-page-body h3 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; }
.static-page-body p  { margin-bottom: 16px; color: var(--gray-600); }
.static-page-body ul, .static-page-body ol { margin: 0 0 16px 20px; color: var(--gray-600); }
.static-page-body li { margin-bottom: 6px; }
.static-page-body a  { color: var(--orange); text-decoration: underline; }
.static-page-body strong { color: var(--black); font-weight: 700; }
.static-page-loading { color: var(--gray-400); font-size: 14px; padding: 20px 0; display: block; }

/* ============================================
   STANDALONE ARTICLE PAGE
   ============================================ */

/* ── Desktop overrides — article hero typography ── */
@media (min-width: 768px) {
  .news-article-hero-overlay {
    padding: 120px 48px 36px;
  }

  .news-article-hero-no-img {
    padding: 40px 48px 28px;
  }

  .news-modal-title {
    font-size: clamp(1.4rem, 3.2vw, 2.6rem);
  }
}

/* ── Notifications (moved from JS to avoid CSP unsafe-inline) ── */
.notification {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--black);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
.notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Globe intro meteor animations ── */
@keyframes globeMeteor1 {
  0%   { transform: translate(0, 0) rotate(-42deg); opacity: 0; }
  4%   { opacity: 1; }
  20%  { opacity: 0.85; }
  28%  { opacity: 0; }
  100% { transform: translate(-520px, 380px) rotate(-42deg); opacity: 0; }
}
@keyframes globeMeteor2 {
  0%   { transform: translate(0, 0) rotate(-38deg); opacity: 0; }
  5%   { opacity: 0.8; }
  24%  { opacity: 0.7; }
  32%  { opacity: 0; }
  100% { transform: translate(-380px, 280px) rotate(-38deg); opacity: 0; }
}
@keyframes globeMeteor3 {
  0%   { transform: translate(0, 0) rotate(-45deg); opacity: 0; }
  3%   { opacity: 0.9; }
  16%  { opacity: 0.8; }
  22%  { opacity: 0; }
  100% { transform: translate(-300px, 220px) rotate(-45deg); opacity: 0; }
}
