/* ==========================================================================
 *  markers.css - the cat markers, their labels and popups.
 * ========================================================================== */

.pin { background: none; border: 0; }

.pin__wrap {
  position: relative;
  width: 44px;
  height: 38px;
  transition: transform .14s ease;
  transform-origin: 50% 85%;
}

.pin__img {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45));
}

/* The number sits centred above the head, clear of the ears. */
.pin__num {
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 11px;
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, var(--pink), var(--violet));
  border: 2px solid rgba(255, 255, 255, .92);
  box-shadow: 0 2px 7px rgba(90, 40, 120, .5);
  white-space: nowrap;
}

.leaflet-marker-icon:hover .pin__wrap,
.pin-hot .pin__wrap { transform: scale(1.22) translateY(-2px); }

.pin-hot .pin__num {
  background: linear-gradient(140deg, var(--pink-deep), #8f6ae0);
  box-shadow: 0 2px 12px rgba(150, 90, 220, .9);
}

.leaflet-tooltip.pin-label {
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  color: #3a2140;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 3px 12px rgba(60, 20, 72, .25);
  white-space: nowrap;
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
}

.leaflet-tooltip.pin-label::before { display: none; }   /* no callout arrow */

.popup-name   { display: block; font-weight: 800; margin-bottom: 3px; }
.popup-coords { display: block; font: 12px/1.4 ui-monospace, Consolas, monospace; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .pin__wrap { transition: none; }
}
