/** Bouton flottant « ma position » — partagé passager / chauffeur.
 *  Placé en haut à droite de la carte, aligné avec le bouton menu. */
.moto-locate-fab {
  position: absolute;
  z-index: 21;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--white, #ffffff);
  color: var(--moto-forest, #2a1810);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.moto-locate-fab:active {
  transform: scale(0.94);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}

.moto-locate-fab__icon {
  position: relative;
  width: 22px;
  height: 22px;
  display: block;
  pointer-events: none;
}

.moto-locate-fab__icon::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--white, #ffffff);
  background:
    linear-gradient(currentColor, currentColor) center / 8px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 8px no-repeat;
}

.moto-locate-fab__icon::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: currentColor;
}

.moto-locate-fab.is-active {
  color: var(--moto-olive, #ff5f4d);
}

.moto-locate-fab.is-busy .moto-locate-fab__icon {
  animation: moto-locate-fab-spin 1s linear infinite;
  transform-origin: center;
}

@keyframes moto-locate-fab-spin {
  to {
    transform: rotate(360deg);
  }
}
