/* Local lightweight Leaflet-compatible styles for mini CRM map module. */
.leaflet-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: #dbeafe;
  touch-action: none;
  user-select: none;
  font: 14px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.leaflet-tile-pane,
.leaflet-marker-pane,
.leaflet-popup-pane {
  position: absolute;
  inset: 0;
}
.leaflet-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  image-rendering: auto;
}
.leaflet-marker-icon {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 400;
}
.leaflet-popup {
  position: absolute;
  z-index: 700;
  transform: translate(-50%, calc(-100% - 18px));
}
.leaflet-popup-content-wrapper {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .22);
  min-width: 220px;
  max-width: 320px;
}
.leaflet-popup-content {
  padding: 12px 14px;
  color: #0f172a;
}
.leaflet-popup-tip {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-right: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  transform: translateX(-50%) rotate(45deg);
}
.leaflet-control-zoom {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .18);
}
.leaflet-control-zoom button {
  width: 34px;
  height: 34px;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.leaflet-control-zoom button:last-child { border-bottom: 0; }
.leaflet-control-zoom button:hover { background: #f8fafc; }
.leaflet-attribution {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 800;
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(255,255,255,.86);
  color: #475569;
  font-size: 11px;
}
.leaflet-attribution a { color: inherit; }
