.leaflet-div-icon.atlas-landmark {
  background: none;
  border: 0;
  outline: 0;
  pointer-events: none;
}

.atlas-landmark-content {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  translate: var(--landmark-offset, 0 0);
  pointer-events: auto;
}

.atlas-landmark-leader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--landmark-leader-length, 0);
  height: 2px;
  transform: rotate(var(--landmark-leader-angle, 0deg));
  transform-origin: left center;
  background: #536673aa;
  pointer-events: none;
}

.atlas-landmark-emblem {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  box-sizing: border-box;
  overflow: hidden;
  border: 2px solid white;
  border-radius: 50%;
  background: linear-gradient(#507c9a, #31556f);
  box-shadow: 0 2px 5px #193d5533;
  transition: box-shadow .15s;
}

.atlas-landmark-emblem > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.atlas-landmark-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  display: -webkit-box;
  width: max-content;
  max-width: var(--landmark-label-width, 200px);
  overflow: hidden;
  transform: translateX(-50%);
  color: #332f28;
  font: var(--map-label-weight, 550) var(--map-label-size, 12px)/1.15 var(--font-ui, -apple-system, BlinkMacSystemFont, sans-serif);
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
  -webkit-line-clamp: unset;
  -webkit-box-orient: vertical;
  -webkit-text-stroke: 2.4px #faf9f0;
  paint-order: stroke fill;
  pointer-events: auto;
}

.atlas-landmark.is-label-compact .atlas-landmark-label { -webkit-line-clamp: 2; }

.atlas-park-marker .atlas-landmark-emblem {
  background: linear-gradient(var(--map-category-green-top, #50bb74), var(--map-category-green-bottom, #238c48));
  box-shadow: var(--map-context-shadow, 0 2px 5px rgb(30 71 49 / 24%));
}

.atlas-park-marker .atlas-landmark-label {
  top: 50%;
  right: auto;
  left: calc(100% + 5px);
  max-width: var(--landmark-label-width, 200px);
  transform: translateY(-50%);
  font-size: var(--map-label-size, 12px);
  text-align: start;
}

.atlas-park-marker.is-label-left .atlas-landmark-label {
  right: calc(100% + 5px);
  left: auto;
  text-align: end;
}

.atlas-landmark:hover .atlas-landmark-emblem,
.atlas-landmark:focus-visible .atlas-landmark-emblem {
  box-shadow: 0 0 0 2px #146eb3, 0 2px 5px #193d5533;
}

.atlas-landmark.is-selected .atlas-landmark-emblem {
  border-width: calc(var(--map-icon-border, 2px) * var(--map-selection-scale, 1.4));
  box-shadow: var(--map-selection-ring), 0 3px 8px #193d5540;
}

.atlas-park-marker.is-selected .atlas-landmark-emblem {
  box-shadow: var(--map-selection-ring), var(--map-context-shadow, 0 2px 5px rgb(30 71 49 / 24%));
}

.is-picking-stay .atlas-landmark-content,
.is-picking-stay .atlas-landmark-label {
  pointer-events: none;
}

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

#map .atlas-landmark-label { opacity: 1; margin: 0; }
#map .atlas-landmark:not(.is-selected)[data-landmark-context="water"] .atlas-landmark-label {
  color: var(--map-water-label-color, #236d91);
}
