.geolocation {
  top: 85px;
  left: 0.5em;
}
.geolocation button {
  background: var(--primary);
  color: var(--on-primary);
}
.geolocation button > svg {
  fill: var(--on-primary);
  min-inline-size: 1.25rem !important;
  max-inline-size: 1.25rem !important;
  min-block-size: 1.25rem !important;
  max-block-size: 1.25rem !important;
}
.ol-touch.geolocation {
  top: 100px;
}

.loading-indicator {
  position: absolute;
  pointer-events: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0);
}

.loading-indicator.small {
  bottom: 0.5em;
  left: 0.5em;
  width: 30px;
  height: 30px;
}

.loading-indicator.fullscreen {
  width: 100%;
  height: 100%;
}

.disabled {
  filter: brightness(1.7);
  pointer-events: none;
}

.ol-unselectable {
  pointer-events: none;
}
.ol-control {
  background: none;
  z-index: 1;
}
.ol-control button,
.ol-control button:hover,
.ol-control button:focus {
  --_round: 32px;
  border-radius: var(--_round);
  background: var(--primary);
  color: var(--on-primary);
  width: 32px;
  height: 32px;
  cursor: pointer;
  border: none;
  outline: none;
  pointer-events: all;
  position: relative;
  font-size: 1rem;
}
.ol-control button:hover:after {
  background-size: 15000%;
  opacity: 0.1;
  transition: background-size var(--speed2) linear;
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  border-radius: inherit;
  inline-size: 100%;
  block-size: 100%;
  background-position: center;
  background-image: radial-gradient(circle, currentColor 1%, transparent 1%);
}
.ol-control button.ol-zoom-in,
.ol-control button.ol-zoom-in:hover {
  border-top-left-radius: var(--_round);
  border-top-right-radius: var(--_round);
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  margin-bottom: 0.125rem;
}
.ol-control button.ol-zoom-out,
.ol-control button.ol-zoom-out:hover {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  border-bottom-left-radius: var(--_round);
  border-bottom-right-radius: var(--_round);
}

.globe-switcher-container {
  --fs-offset: 0em;
  --rotate-offset: 0em;
  top: calc(0.5em + var(--fs-offset) + var(--rotate-offset));
  right: 0.5em;
}
.ol-rotate {
  --fullscreen-offset: 0em;
  top: calc(0.5em + var(--fullscreen-offset));
}
:has(.ol-full-screen) .ol-rotate {
  --fullscreen-offset: 2.5em;
}

:has(.ol-full-screen) .globe-switcher-container {
  --fs-offset: 2.5em;
}

/* 3. If Rotate exists, add 2em to the stack */
:has(.ol-rotate) .globe-switcher-container {
  --rotate-offset: 2.5em;
}

:has(.ol-hidden) .globe-switcher-container {
  --rotate-offset: 0em;
}
