#map {
  width: 100%;
  height: 100%;
}

.leaflet-marker-icon {
  transition: transform 0.15s ease;
  transform-origin: bottom center;
}

.leaflet-marker-icon:hover {
  transform: scale(1.2);
  z-index: 10000 !important;
}

.custom-pin-wrapper {
  background: none;
  border: none;
}

.custom-pin {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--color-forest-dark);
  border: 2px solid var(--color-parchment);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-pin--current {
  background: var(--color-rust);
}

.custom-pin--past {
  background: var(--color-rust-light);
}

.custom-pin__emoji {
  transform: rotate(45deg);
  font-size: 15px;
  line-height: 1;
}

.custom-pin__emoji--flip {
  transform: rotate(45deg) scaleX(-1);
}

.pin-popup {
  font-family: var(--font-body);
  width: 200px;
}

.pin-popup__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-forest-dark);
  margin-bottom: 2px;
}

.pin-popup__date {
  font-size: 0.75rem;
  color: var(--color-slate);
  margin-bottom: 8px;
}

.pin-popup__photo-link {
  display: block;
}

.pin-popup__photo {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
}

.pin-popup__photo-link .photo-fallback {
  height: 110px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.pin-popup__photo-link .photo-fallback__icon {
  font-size: 1.4rem;
}

.pin-popup__photo-link .photo-fallback__caption {
  font-size: 0.7rem;
}

.pin-popup__link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-rust);
  text-decoration: none;
}

.pin-popup__link:hover {
  text-decoration: underline;
}
