/* World Choir — Map Tab */

body.map-page {
  overflow: hidden;
  background: var(--bg-primary);
  height: 100dvh;
  height: 100vh; /* fallback */
  width: 100%;
  position: fixed;
  inset: 0;
}

.map-page__stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg-primary);
}

.map-shell {
  position: relative;
  /* Nav is fixed at bottom with height --nav-height (safe-area is padding inside
     the bar via border-box). Do not also subtract safe-area here — that leaves
     a black gap between the map and the tab bar. */
  height: calc(100dvh - var(--nav-height));
  height: calc(100vh - var(--nav-height)); /* fallback */
  z-index: 1;
  --map-stat-block-height: 58px;
}

.map-boot-skel {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 28%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, transparent 22%);
  opacity: 1;
  transition: opacity 0.18s ease;
}

.map-boot-skel.is-done {
  opacity: 0;
  visibility: hidden;
}

.map-boot-skel::before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  top: 18px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    var(--surface-lift) 0%,
    var(--border-mid) 50%,
    var(--surface-lift) 100%
  );
  background-size: 200% 100%;
  animation: wcSkelShimmer 0.9s ease-in-out infinite;
}

.map-boot-skel::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(320px, calc(100% - 32px));
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    var(--surface-lift) 0%,
    var(--border-mid) 50%,
    var(--surface-lift) 100%
  );
  background-size: 200% 100%;
  animation: wcSkelShimmer 0.9s ease-in-out infinite;
}

#world-map {
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  touch-action: none;
}

.leaflet-container {
  background: var(--bg-primary) !important;
  font-family: var(--font-sans);
}

.leaflet-container .maplibregl-map,
.leaflet-container .maplibregl-canvas {
  background: var(--bg-primary);
  outline: none;
}

.leaflet-tile-pane .map-tile-layer .leaflet-tile {
  filter: brightness(1.08) contrast(1.04) saturate(0.9);
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4) !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
}

.leaflet-bottom.leaflet-left {
  bottom: 16px;
  left: 12px;
}

.leaflet-control-zoom a {
  background: rgba(8, 10, 18, 0.85) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle) !important;
  backdrop-filter: blur(12px);
  width: 26px !important;
  height: calc(var(--map-stat-block-height) / 2) !important;
  line-height: calc(var(--map-stat-block-height) / 2) !important;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
  font-size: 17px !important;
}

.leaflet-touch .leaflet-control-zoom a {
  width: 26px !important;
  height: calc(var(--map-stat-block-height) / 2) !important;
  line-height: calc(var(--map-stat-block-height) / 2) !important;
}

.leaflet-touch .leaflet-control-zoom-in,
.leaflet-touch .leaflet-control-zoom-out {
  font-size: 17px !important;
}

.leaflet-control-zoom a:hover {
  background: rgba(16, 18, 28, 0.95) !important;
}

.map-lights-canvas {
  pointer-events: none;
}

/* Leaflet geo-anchored city lights (positioned by map library, not screen CSS) */
.city-light-icon,
.gathering-icon {
  background: transparent !important;
  border: none !important;
}

.city-light {
  position: relative;
  width: var(--glow, 24px);
  height: var(--glow, 24px);
}

.city-light__glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(200, 230, 255, 0.9) 0%,
    rgba(126, 184, 255, 0.55) 25%,
    rgba(61, 124, 255, 0.2) 50%,
    transparent 70%
  );
  animation: cityLightBreathe 3s ease-in-out infinite;
}

.city-light__core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32%;
  height: 32%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(240, 248, 255, 0.95);
  box-shadow: 0 0 8px rgba(200, 230, 255, 0.9);
}

.city-light--pulse .city-light__glow {
  animation: cityLightPulse 1.1s ease-in-out infinite;
}

.city-light--appear {
  animation: cityLightAppear 0.28s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.city-light--appear .city-light__glow {
  animation:
    cityLightAppearGlow 0.32s cubic-bezier(0.2, 0.9, 0.2, 1) both,
    cityLightPulse 1.1s ease-in-out 0.28s infinite;
}

.city-light--appear .city-light__core {
  animation: cityLightAppearCore 0.28s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes cityLightAppear {
  0% {
    transform: scale(0.15);
    opacity: 0;
  }
  70% {
    transform: scale(1.18);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes cityLightAppearGlow {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes cityLightAppearCore {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes cityLightBreathe {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes cityLightPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.88;
  }
  50% {
    transform: scale(1.4);
    opacity: 1;
  }
}

.gathering-marker {
  position: relative;
  width: 28px;
  height: 28px;
}

.gathering-marker__glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 169, 98, 0.85) 0%,
    rgba(201, 169, 98, 0.3) 45%,
    transparent 70%
  );
}

.gathering-marker__core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #c9a962;
  box-shadow: 0 0 10px rgba(201, 169, 98, 0.7);
}

/* Header — tap to minimize to a dot (top-right), state persisted per device */
.map-header {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0;
  box-sizing: border-box;
  min-height: 82px;
  height: 82px;
  background: rgba(8, 10, 18, 0.78);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  backdrop-filter: blur(20px);
  text-align: center;
  cursor: pointer;
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  transition:
    top 0.3s ease,
    right 0.3s ease,
    left 0.3s ease,
    width 0.3s ease,
    height 0.3s ease,
    padding 0.3s ease,
    border-radius 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.map-header:focus-visible {
  outline: 2px solid var(--accent-aurora);
  outline-offset: 2px;
}

.map-header__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  transition: opacity 0.2s ease;
}

.map-header__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(200, 230, 255, 0.95) 0%,
    rgba(126, 184, 255, 0.75) 45%,
    rgba(61, 124, 255, 0.35) 70%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(126, 184, 255, 0.85), 0 0 24px rgba(61, 124, 255, 0.45);
  transition: opacity 0.25s ease;
}

.map-header--minimized {
  top: 12px;
  right: 12px;
  left: auto;
  width: 14px;
  height: 14px;
  min-height: 14px;
  padding: 0;
  border-radius: 50%;
  background: rgba(8, 10, 18, 0.55);
  border-color: rgba(126, 184, 255, 0.35);
  box-shadow: 0 0 16px rgba(61, 124, 255, 0.35);
}

.map-header--minimized .map-header__content {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.map-header--minimized .map-header__dot {
  opacity: 1;
}

.map-header__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.map-header__subtitle {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.4;
}

.map-header__countdown {
  display: block;
  font-size: 0.68rem;
  color: var(--accent-aurora);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.map-header__default,
.map-header__sponsor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
}

.map-header__default[hidden],
.map-header__sponsor[hidden] {
  display: none !important;
}

.map-header__title--aurora {
  color: var(--accent-aurora);
  font-size: 10px;
  line-height: 0.95rem;
  min-height: 0.95rem;
  margin-bottom: 12px;
}

/* Sponsor mode: title sits 14px from top of bar (1px border + 13px padding) */
.map-header:has(#map-header-sponsor:not([hidden])) {
  align-items: flex-start;
  padding-top: 13px;
  cursor: default;
}

.map-header:has(#map-header-sponsor:not([hidden])) .map-header__content,
.map-header:has(#map-header-sponsor:not([hidden])) .map-header__sponsor {
  justify-content: flex-start;
  min-height: auto;
}

/* Sponsor bar — compact belt within the original header footprint */
.map-sponsor {
  width: 100%;
  --map-sponsor-logo-height: 16px;
  --map-sponsor-gap: 24px;
  --map-sponsor-slot-min-width: 40px;
  --map-sponsor-slot-padding-x: 2px;
  --map-sponsor-belt-duration: 30s;
}

.map-sponsor__viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: var(--map-sponsor-logo-height);
}

.map-sponsor__track {
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--map-sponsor-logo-height);
}

.map-sponsor__track--static {
  gap: var(--map-sponsor-gap);
}

.map-sponsor__track--animated {
  width: max-content;
  gap: 0;
  will-change: transform;
  animation: mapSponsorBelt var(--map-sponsor-belt-duration, 30s) linear infinite;
}

.map-sponsor__track--animated .map-sponsor__sequence {
  padding-right: var(--map-sponsor-gap);
}

.map-sponsor__sequence {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: var(--map-sponsor-gap);
  height: var(--map-sponsor-logo-height);
}

.map-sponsor__slot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: var(--map-sponsor-logo-height);
  min-width: var(--map-sponsor-slot-min-width);
  padding-inline: var(--map-sponsor-slot-padding-x);
}

.map-sponsor__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--map-sponsor-logo-height);
  min-width: var(--map-sponsor-slot-min-width);
  padding: 0 var(--map-sponsor-slot-padding-x);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.map-sponsor__logo--linked::before {
  content: '';
  position: absolute;
  inset: -6px -4px;
}

.map-sponsor__logo--linked {
  cursor: pointer;
}

.map-sponsor__logo--linked:focus-visible {
  outline: 2px solid var(--accent-aurora);
  outline-offset: 2px;
}

.map-sponsor__logo-image {
  display: block;
  height: var(--map-sponsor-logo-height);
  width: auto;
  max-width: 120px;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.map-sponsor__logo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  height: var(--map-sponsor-logo-height);
  min-width: var(--map-sponsor-logo-height);
  padding-inline: 6px;
  border-radius: 4px;
  background: rgba(78, 197, 232, 0.12);
  color: var(--accent-aurora);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.map-sponsor__logo--broken .map-sponsor__logo-image {
  display: none;
}

.map-sponsor__logo--broken .map-sponsor__logo-fallback {
  display: inline-flex;
}

@keyframes mapSponsorBelt {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-sponsor__track--animated {
    animation: none;
    transform: none;
  }
}

/* Stats panel */
.map-stats {
  position: absolute;
  bottom: 16px;
  right: 12px;
  z-index: 500;
}

.map-stats__loading,
.map-stats__values {
  gap: 8px;
}

/* Soft-tab safe: must live in map.css — map.html inline styles are not adopted
   when Map is soft-loaded into another tab host. */
.map-stats__values {
  display: none !important;
}

.map-stats__loading {
  display: flex !important;
}

.map-stats--loaded .map-stats__values {
  display: flex !important;
}

.map-stats--loaded .map-stats__loading {
  display: none !important;
}

.map-stats--loaded .map-stats__values,
.map-stats--loading .map-stats__loading {
  width: 100%;
}

.map-stat {
  background: rgba(8, 10, 18, 0.82);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-width: 72px;
  min-height: var(--map-stat-block-height);
  text-align: center;
  backdrop-filter: blur(20px);
}

.map-stat__num {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1;
}

.map-stat__lbl {
  display: block;
  margin-top: 4px;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.map-stat--shimmer {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.map-stat__shimmer {
  display: block;
  width: 42px;
  height: 18px;
  margin-bottom: 4px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--surface-lift) 0%,
    var(--border-soft) 50%,
    var(--surface-lift) 100%
  );
  background-size: 200% 100%;
  animation: mapStatSkeleton 1.4s ease-in-out infinite;
}

.map-stats--error .map-stat__shimmer {
  opacity: 0.35;
  animation: none;
}

@keyframes mapStatSkeleton {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Map data loading */
.map-data-loading {
  position: absolute;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  max-width: 280px;
  padding: 12px 18px;
  text-align: center;
  background: rgba(8, 10, 18, 0.78);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
}

.map-data-loading__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* Empty state */
.map-empty {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  text-align: center;
  max-width: 300px;
  padding: 20px 24px;
  background: rgba(8, 10, 18, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px);
}

.map-empty.hidden {
  display: none;
}

/* Soft-tab safe empty CTA toggles (also defined inline on map.html for cold loads). */
#map-empty {
  display: none !important;
}

#map-empty:not(.hidden) {
  display: block !important;
}

#map-empty-btn {
  display: none !important;
}

#map-empty-btn:not([hidden]) {
  display: inline-flex !important;
}

#map-empty-btn-skeleton {
  display: none;
}

#map-empty-btn-skeleton.visible {
  display: block;
}

.map-empty__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.map-empty__copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.map-empty__cta {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-empty__btn-skeleton {
  display: none;
  width: 132px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    90deg,
    var(--surface-lift) 0%,
    var(--border-mid) 50%,
    var(--surface-lift) 100%
  );
  background-size: 200% 100%;
  animation: map-empty-skeleton 1.4s ease-in-out infinite;
}

.map-empty__btn-skeleton.visible {
  display: block;
}

.map-empty--resolving .map-empty__copy {
  margin-bottom: 16px;
}

@keyframes map-empty-skeleton {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.map-empty__btn {
  display: inline-flex;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 32px var(--glow-blue);
}

/* City summary card */
.city-card {
  position: absolute;
  z-index: 600;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  pointer-events: none;
  padding: 16px 20px;
  min-width: 200px;
  background: rgba(8, 10, 18, 0.92);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  backdrop-filter: blur(24px);
  text-align: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.city-card.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.city-card__place {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.city-card__voices {
  font-size: 0.85rem;
  color: var(--accent-aurora);
  margin-bottom: 4px;
}

.city-card__gathering {
  font-size: 0.75rem;
  color: var(--accent-gold);
  margin-top: 6px;
}

/* Voice joined overlay */
.voice-joined {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 2, 4, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.voice-joined.active {
  opacity: 1;
}

.voice-joined__text {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  padding: 0 32px;
  background: linear-gradient(180deg, #fff 0%, rgba(180, 210, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: voiceJoinedPulse 2s ease-in-out;
}

@keyframes voiceJoinedPulse {
  0% { opacity: 0; transform: scale(0.96); }
  12%, 100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 480px) {
  .map-shell {
    /* Website mobile: original clearance above the tab bar */
    --map-overlay-bottom: 50px;
    --map-stat-block-height: 54px;
  }

  /* Native Expo shell only — tighter 15px clearance agreed for the app */
  html.wc-native-app .map-shell {
    --map-overlay-bottom: 15px;
  }

  .map-header {
    top: max(8px, env(safe-area-inset-top, 0px));
    left: 10px;
    right: 10px;
    padding: 10px 12px;
    min-height: 65px;
    height: 65px;
  }

  /* Sponsor mode: title sits 10px from top of bar (1px border + 9px padding) */
  .map-header:has(#map-header-sponsor:not([hidden])) {
    padding-top: 9px;
  }

  .map-header--minimized {
    top: max(8px, env(safe-area-inset-top, 0px));
    right: 10px;
    left: auto;
    width: 14px;
    height: 14px;
    min-height: 14px;
    padding: 0;
  }

  .map-header__content,
  .map-header__default,
  .map-header__sponsor {
    min-height: 45px;
  }

  .map-header__title {
    font-size: 0.88rem;
  }

  .map-header__title--aurora {
    font-size: 9px;
    line-height: 0.88rem;
    min-height: 0.88rem;
  }

  .map-header__subtitle {
    font-size: 0.68rem;
    margin-bottom: 4px;
  }

  .map-header__countdown {
    font-size: 0.64rem;
  }

  .map-sponsor {
    --map-sponsor-gap: 18px;
    --map-sponsor-logo-height: 14px;
  }

  /* Float above nav — balanced clearance without sitting too high */
  .map-stats {
    position: absolute;
    left: 58px;
    right: 10px;
    bottom: var(--map-overlay-bottom);
    z-index: 500;
  }

  .map-stats__loading,
  .map-stats__values {
    justify-content: center;
    gap: 6px;
  }

  .map-stat {
    flex: 1;
    min-width: 0;
    min-height: var(--map-stat-block-height);
    padding: 10px 6px 11px;
    border-radius: 10px;
  }

  .map-stat__num {
    font-size: 1.05rem;
  }

  .map-stat__lbl {
    font-size: 0.48rem;
    margin-top: 3px;
    letter-spacing: 0.1em;
  }

  .leaflet-bottom.leaflet-left {
    bottom: var(--map-overlay-bottom);
    left: 10px;
  }

  .leaflet-control-zoom {
    margin: 0 !important;
  }

  .leaflet-control-zoom a,
  .leaflet-touch .leaflet-control-zoom a {
    width: 30px !important;
    height: calc(var(--map-stat-block-height) / 2) !important;
    line-height: calc(var(--map-stat-block-height) / 2) !important;
  }

  .leaflet-control-zoom-in,
  .leaflet-control-zoom-out,
  .leaflet-touch .leaflet-control-zoom-in,
  .leaflet-touch .leaflet-control-zoom-out {
    font-size: 16px !important;
  }

  .map-empty {
    bottom: calc(var(--map-overlay-bottom) + 64px);
    max-width: calc(100% - 32px);
    padding: 16px 18px;
  }

  .city-card {
    bottom: calc(var(--map-overlay-bottom) + 64px);
    max-width: calc(100% - 32px);
  }
}

/* Light Mode only — Partners header, zoom +/- , Voices/Cities/Countries → clear grey.
   Dark Mode overlay surfaces above stay untouched. */
html[data-theme="light"] .map-header {
  background: #e8e8ec;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: none;
  backdrop-filter: none;
}

html[data-theme="light"] .map-header--minimized {
  background: #e8e8ec;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .leaflet-control-zoom {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

html[data-theme="light"] .leaflet-control-zoom a {
  background: #e8e8ec !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #0c0c0e !important;
  backdrop-filter: none;
}

html[data-theme="light"] .leaflet-control-zoom a:hover {
  background: #dedee2 !important;
}

html[data-theme="light"] .map-stat {
  background: #e8e8ec;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: none;
  backdrop-filter: none;
}

html[data-theme="light"] .city-card {
  background: #e8e8ec;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  backdrop-filter: none;
}
