.preseed-map-marker,
.preseed-map-cluster {
  background: transparent;
  border: 0;
}

.preseed-map-marker__pulse {
  align-items: center;
  background: color-mix(in srgb, var(--preseed-pin) 18%, white);
  border: 2px solid white;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgb(15 23 42 / 28%);
  display: flex;
  height: 30px;
  justify-content: center;
  transition: transform 160ms ease, box-shadow 160ms ease;
  width: 30px;
}

.preseed-map-marker__pulse::after {
  border: 2px solid var(--preseed-pin);
  border-radius: inherit;
  content: '';
  inset: 2px;
  position: absolute;
}

.preseed-map-marker__pulse.is-selected {
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--preseed-pin) 25%, transparent), 0 3px 12px rgb(15 23 42 / 32%);
  transform: scale(1.12);
}

.preseed-map-marker__dot {
  background: var(--preseed-pin);
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

.preseed-map-cluster__bubble {
  align-items: center;
  background: #334155;
  border: 3px solid rgb(255 255 255 / 92%);
  border-radius: 999px;
  box-shadow: 0 3px 12px rgb(15 23 42 / 28%);
  color: white;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.preseed-map-cluster__bubble--first_contact { background: #2563eb; }
.preseed-map-cluster__bubble--offer_sent { background: #f59e0b; }
.preseed-map-cluster__bubble--discussion { background: #8b5cf6; }
.preseed-map-cluster__bubble--meeting_done { background: #059669; }

.preseed-map-marker:hover .preseed-map-marker__pulse {
  transform: scale(1.1);
}

.preseed-opportunity-map .leaflet-popup-content .text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

.preseed-map-popup .leaflet-popup-content {
  margin: 14px;
  max-height: min(440px, calc(100dvh - 190px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  width: min(340px, calc(100vw - 100px)) !important;
}

.preseed-map-popup__card { color: #0f172a; display: grid; font-size: 12px; gap: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.preseed-map-popup .preseed-map-popup__card p { margin: 0; }
.preseed-map-popup__card h3 { font-size: 15px; font-weight: 650; line-height: 1.35; margin: 0; }
.preseed-map-popup__card h4 { color: #64748b; font-size: 10px; font-weight: 650; letter-spacing: .035em; margin: 0 0 4px; text-transform: uppercase; }
.preseed-map-popup__photo { aspect-ratio: 3 / 1; border-radius: 10px; object-fit: cover; width: 100%; }
.preseed-map-popup__owner { font-weight: 500; margin-top: 3px !important; }
.preseed-map-popup__address, .preseed-map-popup__assigned, .preseed-map-popup__facts { color: #64748b; }
.preseed-map-popup__statuses { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.preseed-map-popup__status { align-items: center; border: 1px solid; border-radius: 999px; display: inline-flex; font-size: 11px; font-weight: 600; gap: 6px; padding: 3px 8px; }
.preseed-map-popup__status > span { border-radius: 50%; height: 6px; width: 6px; }
.preseed-map-popup__interest { color: #64748b; font-size: 11px; }
.preseed-map-popup__recap, .preseed-map-popup__next { background: #f8fafc; border-radius: 10px; padding: 10px; }
.preseed-map-popup__description { color: #64748b; }
.preseed-map-popup__times { border-top: 1px solid #e2e8f0; padding-top: 9px; }
.preseed-map-popup__contact { align-items: baseline; display: flex; flex-wrap: wrap; font-size: 11px; gap: 3px 10px; justify-content: space-between; }
.preseed-map-popup__contact dt { align-items: center; color: #64748b; display: inline-flex; gap: 4px; }
.preseed-map-popup__contact dd { margin: 0; }
.preseed-map-popup__actions { align-items: center; display: flex; gap: 8px; padding: 2px 0; }
.preseed-map-popup__actions a { color: inherit; }
.preseed-map-popup__actions a:first-child { color: hsl(var(--primary-foreground)); }

@media (max-width: 639px) {
  .preseed-map-popup .leaflet-popup-content { max-height: min(345px, calc(100dvh - 190px)); }
  .preseed-map-marker__pulse {
    height: 34px;
    width: 34px;
  }
}
