/* ==========================================================================
 *  location.css - the visitor's own position: panel status row and blue dot.
 * ========================================================================== */

.me-row { display: flex; align-items: center; gap: 10px; }

.me-dot {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #c3b8cc;
  box-shadow: 0 0 0 3px rgba(195, 184, 204, .28);
}

.me-row.is-ok .me-dot {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 124, 246, .25), 0 0 10px rgba(47, 124, 246, .8);
}

.me-row.is-error .me-dot {
  background: #e0655f;
  box-shadow: 0 0 0 3px rgba(224, 101, 95, .25);
}

.me-row.is-waiting .me-dot { animation: blink 1.1s ease-in-out infinite; }

@keyframes blink { 50% { opacity: .25; } }

.me-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #5b4a67;
}

.me-text { font-size: 12px; color: var(--muted); margin-top: 2px; }

.me-retry {
  margin-top: 8px;
  padding: 6px 12px;
  font: 700 11.5px/1 inherit;
  color: #4d2a5e;
  cursor: pointer;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .8);
  background: linear-gradient(135deg,
                rgba(255, 214, 229, .85),
                rgba(226, 214, 255, .8));
  box-shadow: 0 2px 10px rgba(150, 90, 200, .25);
  transition: box-shadow .16s, transform .16s;
}

.me-retry:hover {
  box-shadow: 0 4px 16px rgba(150, 90, 200, .45);
  transform: translateY(-1px);
}

.me-retry[hidden] { display: none; }

/* ---- the blue dot on the map ---- */

.me-marker { background: none; border: 0; }

.me-marker__dot {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .45), 0 0 14px rgba(47, 124, 246, .8);
}

.me-marker__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(47, 124, 246, .38);
  animation: mePulse 2.1s ease-out infinite;
}

@keyframes mePulse {
  0%   { transform: scale(.45); opacity: .9; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .me-marker__pulse,
  .me-row.is-waiting .me-dot { animation: none; }
  .me-retry { transition: none; }
}
