/*
  Leaflet "lite" CSS subset.
  Enough to make map tiles + panes + controls visible.
  Bundled to avoid common CDN CSS blocking issues (white map).
*/
/* Fix for Leaflet tiles in WP themes */
.leaflet-container img {
    max-width: none !important;
    max-height: none !important;
}

.leaflet-container {
    line-height: 1;
}

.leaflet-container {
  position: relative;
  overflow: hidden;
  background: #ddd;
  outline: 0;
}

/* Prevent theme styles from breaking tiles */
.leaflet-container img {
  max-width: none !important;
  max-height: none !important;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-map-pane svg,
.leaflet-map-pane canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-map-pane { z-index: 400; }
.leaflet-tile-pane { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane { z-index: 500; }
.leaflet-marker-pane { z-index: 600; }
.leaflet-tooltip-pane { z-index: 650; }
.leaflet-popup-pane { z-index: 700; }

.leaflet-tile {
  visibility: hidden;
}
.leaflet-tile-loaded {
  visibility: inherit;
}

.leaflet-layer {
  will-change: transform;
}

/* Control container */
.leaflet-control-container {
  position: absolute;
  z-index: 800;
  pointer-events: none;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}
.leaflet-top { top: 0; }
.leaflet-bottom { bottom: 0; }
.leaflet-left { left: 0; }
.leaflet-right { right: 0; }

.leaflet-control {
  pointer-events: auto;
  margin: 10px;
}

.leaflet-control-zoom a {
  display: block;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(0,0,0,.2);
  color: #000;
  font: bold 18px/34px Arial, sans-serif;
}
.leaflet-control-zoom a + a {
  border-top: 0;
}

/* Attribution */
.leaflet-control-attribution {
  background: rgba(255,255,255,.8);
  padding: 2px 6px;
  font: 11px/1.2 Arial, sans-serif;
  color: #333;
}

/* Popups */
.leaflet-popup {
  position: absolute;
  text-align: center;
  margin-bottom: 20px;
}
.leaflet-popup-content-wrapper {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(0,0,0,.4);
  padding: 1px;
  text-align: left;
}
.leaflet-popup-content {
  margin: 10px 12px;
}
.leaflet-popup-tip {
  width: 16px;
  height: 16px;
  padding: 1px;
  margin: -8px auto 0;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 0 3px 14px rgba(0,0,0,.2);
}

/* Basic cursor */
.leaflet-grab { cursor: grab; }
.leaflet-grabbing { cursor: grabbing; }
