/* ============================================================================
 * Beshine Self-Hosted Web Mercator Slippy Map Styles (Zero External CDN)
 * ============================================================================ */
.bsh-slippy-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  overflow: hidden;
  background-color: #E6EFF3;
  background-image:
    linear-gradient(to right, rgba(34, 101, 120, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 101, 120, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
}
.bsh-slippy-viewport.is-dragging {
  cursor: grabbing;
}
.bsh-slippy-tile-pane,
.bsh-slippy-marker-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.bsh-slippy-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none !important;
  border: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.16s ease-out;
}
.bsh-slippy-tile.is-loaded {
  opacity: 1;
}
.bsh-slippy-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.32));
}
.bsh-slippy-popup {
  position: absolute;
  transform: translate(-50%, calc(-100% - 16px));
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
  pointer-events: auto;
  z-index: 6;
}
.bsh-slippy-controls {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  z-index: 5;
}
.bsh-slippy-zoom-btn {
  width: 30px;
  height: 30px;
  border: 0;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bsh-slippy-zoom-btn + .bsh-slippy-zoom-btn {
  border-top: 1px solid #E2E8F0;
}
.bsh-slippy-zoom-btn:hover {
  background: #F3F7F9;
}
.bsh-slippy-attrib {
  position: absolute;
  right: 6px;
  bottom: 4px;
  background: rgba(255, 255, 255, 0.86);
  color: #334155;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  line-height: 1.3;
  z-index: 5;
}
