/*! CubifyIt Roads. Copyright (c) 2026 Cubify It Studio. All rights reserved.
No permission is granted to copy, modify or redistribute this code. See LICENSE. */
/* ---------- The "Drag me" hint on the mark, in both views, until it is first grabbed (js/hint.js). On the map it is
   drawn on the marker itself; on the model it is an overlay (.model-hint) that follows the mark ---------- */

/* The model's overlay: a point at the mark's center that the ring and the label hang from */
.model-hint { position: absolute; z-index: 2; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.model-hint[hidden] { display: none; }

/* A ring that grows and fades around the mark */
.mark-hint .map-mark::after, .model-hint .ring {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 2px solid #fff; /* white with a dark edge: shows on the light map and on a dark model alike */
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.45);
  pointer-events: none;
  animation: hint-ring 1.8s ease-out infinite;
}
/* The label above it */
.mark-hint .map-mark::before, .model-hint .label {
  content: 'Drag me';
  position: absolute;
  left: 50%;
  bottom: calc(50% + 22px);
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 500 11px/1.3 var(--font);
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
  animation: hint-bob 1.8s ease-in-out infinite;
}
@keyframes hint-ring {
  from { transform: scale(.45); opacity: .9; }
  to { transform: scale(1.25); opacity: 0; }
}
@keyframes hint-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -3px); }
}
@media (prefers-reduced-motion: reduce) {
  .mark-hint .map-mark::after, .model-hint .ring { animation: none; opacity: .5; }
  .mark-hint .map-mark::before, .model-hint .label { animation: none; }
}
