/* Shared controls for the explorer and embedded mountain maps. */
.map-actions {
  --map-control-size: 30px;
  --map-group-button-height: 30px;
  --map-control-icon-size: 16px;
}
.map-actions .icon { fill: currentColor; stroke: none; }
.map-actions :is(.icon, .ph-bold) {
  width: var(--map-control-icon-size);
  height: var(--map-control-icon-size);
  font-size: var(--map-control-icon-size);
}
.map-actions .action-button {
  display: grid;
  place-items: center;
  width: var(--map-control-size);
  height: var(--map-control-size);
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  box-shadow: 0 6px 30px color-mix(in srgb, var(--bg-sunken) 15%, transparent);
  font: var(--font-semibold) var(--text-sm)/1 var(--font-system);
  cursor: pointer;
}
.map-actions :is(.zoom-buttons, .rotation-buttons) {
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 30px color-mix(in srgb, var(--bg-sunken) 15%, transparent);
}
.map-actions :is(.zoom-buttons, .rotation-buttons) button {
  display: grid;
  place-items: center;
  width: var(--map-control-size);
  height: var(--map-group-button-height);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font: inherit;
  cursor: pointer;
}
.map-actions .rotation-buttons button {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.map-actions button:focus-visible { outline: 2px solid var(--text-secondary); outline-offset: -2px; }
.maplibregl-ctrl-attrib { opacity: .3; transition: opacity .15s ease; }
.maplibregl-ctrl-attrib:hover, .maplibregl-ctrl-attrib:focus-within { opacity: .8; }
@media (max-width: 760px) {
  .map-actions {
    --map-control-size: 37px;
    --map-group-button-height: 32px;
    --map-control-icon-size: 17px;
  }
  .map-actions .action-button { border-radius: var(--radius-md); font-size: var(--text-xs); }
}
