/* Location picker (js/pick-map.js): the map moves under a fixed pin. */

.pick-map {
  position: relative;
  height: 280px;
  overflow: hidden;
  border: 1px solid var(--line, #e5e7e5);
  border-radius: 14px;
  background: var(--map-bg, #e9eae6);
  isolation: isolate;
}

.pick-map__canvas {
  position: absolute;
  inset: 0;
}

.pick-map__pin {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  margin: -30px 0 0 -13px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #039952;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transform: rotate(-45deg);
  transition: margin-top 0.15s ease;
  pointer-events: none;
}

.pick-map__pin i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #fff;
}

.pick-map__pin::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: -9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
}

.pick-map.is-moving .pick-map__pin {
  margin-top: -36px;
}

.pick-map__locate {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--surface, #fff);
  color: var(--text, #18191b);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.pick-map__locate svg {
  width: 21px;
  height: 21px;
}

.pick-map.is-locating .pick-map__locate {
  color: #039952;
}

.pick-map__hint {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  left: 10px;
  margin: 0 auto;
  width: max-content;
  max-width: calc(100% - 20px);
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(24, 25, 27, 0.72);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}

.pick-map__fail {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 16px;
  font-size: 13px;
  text-align: center;
  color: var(--muted, #707070);
}
