/*
 * Map language picker dropdown. Visual language mirrors
 * app.styleswitcher.css (rgba(28,28,30,0.94) surface, #3388ff
 * accent, 12px radius, soft shadow) so the right-side stack
 * reads as one widget family.
 *
 * The menu lives on document.body so its position:fixed escapes
 * MapLibre's .maplibregl-map containing block — see
 * app.styleswitcher.css for the rationale.
 */

.maplibregl-ctrl-group.map-language-ctrl > button {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.map-language-menu {
  position: fixed;
  top: 12px;
  right: 60px;
  min-width: 200px;
  padding: 4px;
  background: rgba(28, 28, 30, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  color: #e5e5e5;
  font: 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
  display: none;
  z-index: 800;
}

.map-language-menu.open {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.map-language-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 12px;
  font: 500 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.2px;
  color: #e5e5e5;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.map-language-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.map-language-menu button.active {
  background: #3388ff;
  color: #fff;
  font-weight: 600;
}

.map-language-menu button.active:hover {
  background: #2c79e6;
  color: #fff;
}
