/* Leaflet map: yellow wash and the place markers (components/map.js). */


.leaflet-container .leaflet-control-attribution {
  background: transparent;
  color: #e4d64a;
  font-family: var(--font-body);
  font-size: 0.4rem;
}

.leaflet-container .leaflet-control-attribution a {
  color: inherit;
}

/* Shown before the tiles load (instead of Leaflet's grey default). */
.leaflet-container {
  background: var(--color-bg-level-0);
}

.yellow-wash {
  position: absolute;
  top: -500vh;
  left: -500vw;
  width: 1000vw;
  height: 1000vh;
  background: #faea39;
  mix-blend-mode: color;
  opacity: 0.82;
  pointer-events: none;
}

.leaflet-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text-primary);
  background: #fff;
  padding: 0px 10px;
  border: 1px solid var(--color-text-primary);
  white-space: nowrap;
  text-transform: uppercase;
  position: absolute;
  transition: background 0.2s ease;
}

/* Phones: smaller, so neighbouring labels overlap less. */
@media (max-width: 639px) {
  .leaflet-label {
    font-size: 0.75rem;
    padding: 0 8px;
  }
}

.custom-marker:hover .leaflet-label,
.custom-marker:focus-visible .leaflet-label {
  background: var(--color-text-primary);
  color: #fff;
}

/* Keyboard focus on a place marker: the ring goes around its label (the
   marker element itself is only the 18px dot box), and the marker comes
   to the front so neighbouring labels can't cover it. */
.custom-marker:focus-visible {
  outline: none;
  z-index: 10000 !important; /* beats Leaflet's inline z-index */
}

.custom-marker:focus-visible .leaflet-label {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}

.leaflet-dot {
  width: 18px;
  height: 18px;
  background: var(--color-text-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--color-text-primary);
  position: absolute;
}
