/* ================================================
   NAVARCHOS LEAFLET/MAP STYLES
   All Leaflet map and marker styles
   ================================================ */

/* ===== LEAFLET CLUSTER ANIMATIONS ===== */
.leaflet-cluster-anim .leaflet-marker-icon,
.leaflet-cluster-anim .leaflet-marker-shadow {
  -webkit-transition:
    -webkit-transform 0.3s ease-out,
    opacity 0.3s ease-in;
  -moz-transition:
    -moz-transform 0.3s ease-out,
    opacity 0.3s ease-in;
  -o-transition:
    -o-transform 0.3s ease-out,
    opacity 0.3s ease-in;
  transition:
    transform 0.3s ease-out,
    opacity 0.3s ease-in;
}

.leaflet-cluster-spider-leg {
  /* stroke-dashoffset (duration and function) should match with leaflet-marker-icon transform in order to track it exactly */
  -webkit-transition:
    -webkit-stroke-dashoffset 0.3s ease-out,
    -webkit-stroke-opacity 0.3s ease-in;
  -moz-transition:
    -moz-stroke-dashoffset 0.3s ease-out,
    -moz-stroke-opacity 0.3s ease-in;
  -o-transition:
    -o-stroke-dashoffset 0.3s ease-out,
    -o-stroke-opacity 0.3s ease-in;
  transition:
    stroke-dashoffset 0.3s ease-out,
    stroke-opacity 0.3s ease-in;
}

/* ===== MARKER CLUSTERS ===== */
.marker-cluster-small {
  background-color: rgba(181, 226, 140, 0.6);
}

.marker-cluster-small div {
  background-color: rgba(110, 204, 57, 0.6);
}

.marker-cluster-medium {
  background-color: rgba(241, 211, 87, 0.6);
}

.marker-cluster-medium div {
  background-color: rgba(240, 194, 12, 0.6);
}

.marker-cluster-large {
  background-color: rgba(253, 156, 115, 0.6);
}

.marker-cluster-large div {
  background-color: rgba(241, 128, 23, 0.6);
}

/* IE 6-8 fallback colors */
.leaflet-oldie .marker-cluster-small {
  background-color: rgb(181, 226, 140);
}

.leaflet-oldie .marker-cluster-small div {
  background-color: rgb(110, 204, 57);
}

.leaflet-oldie .marker-cluster-medium {
  background-color: rgb(241, 211, 87);
}

.leaflet-oldie .marker-cluster-medium div {
  background-color: rgb(240, 194, 12);
}

.leaflet-oldie .marker-cluster-large {
  background-color: rgb(253, 156, 115);
}

.leaflet-oldie .marker-cluster-large div {
  background-color: rgb(241, 128, 23);
}

.marker-cluster {
  background-clip: padding-box;
  border-radius: 20px;
}

.marker-cluster div {
  width: 30px;
  height: 30px;
  margin-left: 5px;
  margin-top: 5px;
  text-align: center;
  border-radius: 15px;
  font:
    12px "Helvetica Neue",
    Arial,
    Helvetica,
    sans-serif;
}

.marker-cluster span {
  line-height: 30px;
}

/* ===== LEAFLET POPUP ===== */
.leaflet-popup-content-wrapper {
  border-radius: 3px;
}

.leaflet-popup-content {
  min-width: 380px;
  margin: 0;
}

.leaflet-container a.leaflet-popup-close-button {
  top: 10px;
  right: 10px;
  padding: 0px;
  width: 25px;
  height: 25px;
  z-index: 1000000000;
  font-size: 20px;
  line-height: 33px;
  background-color: #f3f4f5;
  cursor: pointer;
}

/* ===== HISTORY MAP ===== */
.history {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  top: 45px;
  position: absolute;
  right: 0px;
  bottom: 0px;
  left: 0px;
  background-color: #fff;
}

.history .timeline {
  flex-grow: 1;
  flex-shrink: 1;
}

#history-map {
  flex-grow: 1;
  flex-shrink: 1;
  position: absolute;
  top: 165px;
  bottom: 0px;
  left: 290px;
  right: 0px;
  outline: none;
}

#the-history-map {
  position: absolute;
  top: 0px;
  bottom: 0;
  left: 0px;
  right: 0;
}

.history .sidebar {
  flex-grow: 1;
}

#history-events {
  right: 0px;
  width: 265px;
  bottom: 0px;
  top: 165px;
  overflow: hidden;
  position: absolute;
  z-index: 1002;
  display: none;
}

#table-area {
  flex-grow: 1;
  flex-shrink: 1;
  position: absolute;
  top: 120px;
  bottom: 0px;
  left: 265px;
  right: 7px;
  outline: none;
}

#history-event {
  max-width: 600px;
  min-width: 220px;
  min-height: 300px;
}

/* ===== RESPONSIVE MAP STYLES ===== */
@media (max-width: 768px) {
  #history-map {
    flex-grow: 1;
    flex-shrink: 1;
    position: absolute;
    top: 39px;
    bottom: 0px;
    left: 290px;
    right: 0px;
    outline: none;
  }

  #history-events {
    flex-grow: 1;
    top: 44px;
    right: 0px;
    width: 265px;
    bottom: 0px;
    position: absolute;
    z-index: 1002;
    display: none;
  }
}

@media (max-width: 1220px) {
  #history-map {
    flex-grow: 1;
    flex-shrink: 1;
    position: absolute;
    top: 55;
    bottom: 0px;
    left: 0px;
    right: 0px;
    outline: none;
  }
}
