/*
 * Style switcher dropdown — matches the AWDS dark-glass visual language
 * (rgba(28,28,30,0.94) surface, #3388ff accent, 12px radius, soft shadow).
 *
 * DOM structure (built by app.styleswitcher.js):
 *
 *   <div class="maplibregl-ctrl maplibregl-ctrl-group style-switcher">
 *     <button> <i class="fa-solid fa-layer-group"></i> </button>
 *     <div class="menu">
 *       <button data-style="liberty" class="active">Liberty</button>
 *       <button data-style="positron">Positron</button>
 *       …
 *     </div>
 *   </div>
 *
 * The control sits in the top-right control stack, so the panel pops out
 * to the LEFT of the trigger button (right: calc(100% + 6px)).
 */

.maplibregl-ctrl-group.style-switcher {
  position: relative;
}

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

.maplibregl-ctrl-group.style-switcher .menu {
  position: absolute;
  top: 0;
  right: calc(100% + 6px);
  min-width: 156px;
  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;
}

.maplibregl-ctrl-group.style-switcher .menu.open {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.maplibregl-ctrl-group.style-switcher .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;
}

.maplibregl-ctrl-group.style-switcher .menu button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.maplibregl-ctrl-group.style-switcher .menu button.active {
  background: #3388ff;
  color: #fff;
  font-weight: 600;
}

.maplibregl-ctrl-group.style-switcher .menu button.active:hover {
  background: #2c79e6;
  color: #fff;
}
