/* Essentiële Leaflet-opmaak staat lokaal, zodat de hosting geen losse
   kaarttegels toont wanneer het externe Leaflet-stijlbestand niet laadt. */
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  top: 0;
  left: 0;
}

.leaflet-container {
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  outline-offset: 1px;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

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

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

.leaflet-zoom-box {
  z-index: 800;
}

.leaflet-map-pane canvas {
  z-index: 100;
}

.leaflet-map-pane svg {
  z-index: 200;
}

.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-pane:not(.leaflet-marker-pane),
.leaflet-pane:not(.leaflet-tooltip-pane),
.leaflet-pane:not(.leaflet-popup-pane) {
  pointer-events: none;
}

.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
  pointer-events: auto;
}

.leaflet-zoom-animated {
  transform-origin: 0 0;
}

svg.leaflet-zoom-animated {
  will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
  transition: transform 250ms cubic-bezier(0, 0, .25, 1);
}

.leaflet-zoom-anim .leaflet-zoom-hide {
  visibility: hidden;
}

.leaflet-control {
  position: relative;
  z-index: 800;
  float: left;
  clear: both;
  pointer-events: auto;
}

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

.leaflet-top { top: 0; }
.leaflet-right { right: 0; }
.leaflet-bottom { bottom: 0; }
.leaflet-left { left: 0; }
.leaflet-right .leaflet-control { float: right; }
.leaflet-top .leaflet-control { margin-top: 10px; }
.leaflet-bottom .leaflet-control { margin-bottom: 10px; }
.leaflet-left .leaflet-control { margin-left: 10px; }
.leaflet-right .leaflet-control { margin-right: 10px; }

.leaflet-bar {
  border-radius: 4px;
  box-shadow: 0 1px 5px #000000a6;
}

.leaflet-bar a {
  display: block;
  width: 30px;
  height: 30px;
  border-bottom: 1px solid #ccc;
  background: #fff;
  color: #000;
  text-align: center;
  text-decoration: none;
  line-height: 30px;
}

.leaflet-bar a:first-child {
  border-radius: 4px 4px 0 0;
}

.leaflet-bar a:last-child {
  border-bottom: 0;
  border-radius: 0 0 4px 4px;
}

.leaflet-bar a:hover,
.leaflet-bar a:focus {
  background: #f4f4f4;
}

.leaflet-bar a.leaflet-disabled {
  cursor: default;
  background: #f4f4f4;
  color: #bbb;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
  font: bold 18px 'Lucida Console', Monaco, monospace;
  text-indent: 1px;
}

.leaflet-control-scale-line {
  box-sizing: border-box;
  width: auto;
  padding: 2px 5px 1px;
  border: 2px solid #777;
  border-top: none;
  background: #ffffff80;
  white-space: nowrap;
  line-height: 1.1;
}

.leaflet-popup {
  position: absolute;
  margin-bottom: 20px;
  text-align: center;
}

.leaflet-popup-content-wrapper {
  padding: 1px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 14px #0006;
  text-align: left;
}

.leaflet-popup-tip-container {
  position: absolute;
  left: 50%;
  width: 40px;
  height: 20px;
  margin-left: -20px;
  overflow: hidden;
  pointer-events: none;
}

.leaflet-popup-tip {
  width: 17px;
  height: 17px;
  margin: -10px auto 0;
  padding: 1px;
  transform: rotate(45deg);
  background: #fff;
  box-shadow: 3px 3px 15px #0003;
}

.leaflet-popup-close-button {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #757575;
  font: 20px/24px Tahoma, Verdana, sans-serif;
  text-align: center;
  text-decoration: none;
}

.leaflet-tooltip {
  position: absolute;
  padding: 6px;
  border: 1px solid #fff;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 3px #0006;
  color: #222;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.real-map-wrap {
  position: relative;
  width: 100%;
  height: 530px !important;
  min-height: 530px !important;
  overflow: hidden;
  background: #dbeaf0;
}

.real-map-wrap #earthquakeMap,
#earthquakeMap.leaflet-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  background: #dbeaf0;
  cursor: grab;
}

#earthquakeMap.leaflet-grab:active,
#earthquakeMap.leaflet-dragging {
  cursor: grabbing;
}

#earthquakeMap .leaflet-tile {
  width: 256px !important;
  height: 256px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: fill;
}

#earthquakeMap .leaflet-tile-container {
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}

#earthquakeMap .leaflet-control-zoom {
  margin-top: 14px;
  margin-left: 14px;
  border: 0;
  box-shadow: 0 4px 18px #0b284533;
}

#earthquakeMap .leaflet-control-zoom a {
  width: 38px;
  height: 38px;
  color: #0b2845;
  font-size: 25px;
  line-height: 36px;
}

#earthquakeMap .leaflet-control-scale {
  margin-left: 12px !important;
  margin-bottom: 34px !important;
}

#earthquakeMap .leaflet-control-scale-line {
  border-color: #0b2845;
  border-top: 0;
  background: #fffffff0;
  color: #0b2845;
  font-size: 11px;
  font-weight: 700;
}

#earthquakeMap .leaflet-control-attribution {
  display: none;
}

#earthquakeMap .leaflet-popup-content-wrapper {
  border-radius: 9px;
}

.map-load-error {
  margin: 28px;
  padding: 14px 16px;
  border-radius: 7px;
  background: #fff;
  color: #9a382d;
  font-size: 16px;
}

#earthquakeMap .leaflet-popup-content {
  min-width: 190px;
  margin: 14px 16px;
}

#earthquakeMap .quake-popup h3 {
  margin: 0 0 8px;
  color: #0b2845;
  font: 22px Georgia, serif;
}

#earthquakeMap .quake-popup p {
  margin: 3px 0;
  color: #526b77;
  font-size: 12px;
  line-height: 1.55;
}

#earthquakeMap .quake-popup strong {
  color: #0b2845;
}

@media (max-width: 780px) {
  .real-map-wrap {
    height: 450px !important;
    min-height: 450px !important;
  }

  #earthquakeMap .leaflet-control-zoom {
    margin-top: 10px;
    margin-left: 10px;
  }

  #earthquakeMap .leaflet-control-scale {
    margin-left: 8px !important;
  }
}
