/* ─── Bottom-left bar (scale + cursor) ─── */
.maplibregl-ctrl-bottom-left {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 0 10px 10px !important;
}
.maplibregl-ctrl-bottom-left .maplibregl-ctrl {
  margin: 0 !important;
}
.maplibregl-ctrl-bottom-left .maplibregl-ctrl-scale { order: 1; }
.maplibregl-ctrl-bottom-left .cursor-ctrl { order: 2; }

/* ─── Cursor & Canvas badge ─── */
.cursor-ctrl,
.canvas-badge {
  background: rgba(30,30,30,0.8);
  color: #4ade80;
  font: 11px/1.4 monospace;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  order: 3;
}

/* ─── Style Switcher ─── */
.style-switcher { position: relative; }
.style-switcher .menu {
  position: absolute; right: 50px; top: 0; width: 200px;
  max-height: 320px; overflow: auto; background: #fff;
  border: 1px solid #ddd; border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 6px; display: none; z-index: 1000;
}
.style-switcher .menu.open { display: block; }
.style-switcher .menu button {
  width: 100%; text-align: left; padding: 7px 10px;
  border: 1px solid #eee; border-radius: 6px;
  background: #fafafa; margin-bottom: 4px;
  cursor: pointer; font-size: 13px;
}
.style-switcher .menu button:hover { background: #f0f0f0; }
.style-switcher .menu button.active { background: #eaf3ff; border-color: #cfe3ff; }

/* ─── Active toggle buttons ─── */
.maplibregl-ctrl-group button.active {
  background: #3b82f6 !important;
  color: #fff !important;
}
.maplibregl-ctrl-group button.active i {
  color: #fff !important;
}
