/* #VIZ
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz {
  box-sizing: border-box;
  margin: 0;
  margin-bottom: 20px;
  padding: 0;
}

#viz p {
  line-height: 1.45;
  margin: 0 0 10px 0;
}

/* MAPS
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz .map .leaflet-bar {
  border-radius: 0;
  border-color: #000;
}

#viz .map .leaflet-control-attribution.leaflet-control {
  background-color: rgba(255,255,255,0.75);
  color: #000;
  font-family: "epocapro", sans-serif;
  font-style:  italic;
}

#viz .map .leaflet-control-attribution.leaflet-control a {
  font-style:  normal;
  color: blue;
}

/* FILTERS
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz #filtres {
  margin-bottom: 5px;
}

#viz #filtres label {
  font-family: "DharmaGothicE", sans-serif;
  font-size: 1.1rem;
  position: relative;
  top: -1px;
}

@media screen and (min-width:40rem){
  #viz #filtres label {
    font-size: 1.2rem;
    top: 1px;
  }
}


/* LEGENDS
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz .legend {
  font-family: "epocapro", sans-serif;
  font-size: 0.75rem;
}

#viz .legend .stronger {
  font-weight: 600!important;
}

#viz .legend img {
  height: 1.4rem;
  vertical-align: bottom;
}

#viz .legend .label {
  font-size: 0.7rem;
  padding: 0px 3px;
  border-radius: 1px;
  margin-right: 1px;
  color: #FFF;
  background: #000;
}


/* #VIZ #MAP
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz .map {
  height: 71vh;
  background-color: #FAFAFC;
  display: block;
  width: 95%;
  margin-bottom: 5px;
  border: 1px solid #000;
}

#viz .legend .label.introduction-effraction {
  background-color: #0074D9;
}
#viz .legend .label.mefait {
  background-color: #E5454D;
}
#viz .legend .label.voiture {
  background-color: #3CC251;
}

#viz .map .leaflet-marker-icon.cluster {
  background-color: hsla(357,83%,49%,0.25);
  color: rgba(0,0,0,0.9);
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  font-family: "epocapro", sans-serif;
  font-size: 1rem;
  font-weight: 500;
}

#viz .marker-cluster {
  color: #000;
}
#viz .marker-cluster.marker-cluster-large,
#viz .marker-cluster.marker-cluster-medium,
#viz .marker-cluster.marker-cluster-small {
  background: #444;
}

#viz .marker-cluster div,
#viz .marker-cluster div,
#viz .marker-cluster div,
{
  background: inherit;
}

#viz .marker-cluster.marker-cluster-large div,
#viz .marker-cluster.marker-cluster-medium div,
#viz .marker-cluster.marker-cluster-small div {
  background: #FFF;
}

#viz .marker-cluster span {
  font-family: "DharmaGothicE", sans-serif;
  0font-family: "epocapro", sans-serif;
  font-size: 1.2rem;
}



/* MAP POPUP */
#viz .map .info {
  margin-top: 5px;
  border-radius: 1px;
  text-align: center;
}

#viz .map .info > * {
  padding: 10px;
}

#viz .map .info.cat-1 {
  background: #0074D9;
}

#viz .map .info.cat-2 {
  background: #E5454D;
}

#viz .map .info.cat-3,
#viz .map .info.cat-4 {
  background: #3CC251;
}

#viz .map .info p {
  font-family: "dharmaGothicE", sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  margin: 0;
  color: #FFF;
}

#viz .map .info .what {
}

#viz .map .info .when.q-1 {
  background: rgba(0,0,0,0.1);
}
#viz .map .info .when.q-2 {
  background: rgba(0,0,0,0.3);
}
#viz .map .info .when.q-3 {
  background: rgba(0,0,0,0.8);
}


/* IN-MAP LEGEND */
#viz .in-map-legend {
  max-width: 120px;
}
#viz .in-map-legend p {
  font-family: "DharmaGothicE", sans-serif;
  font-size: 1.1rem;
  color: #000;
  line-height: 1.1;
  margin: 0 0 5px 0;
  text-transform: uppercase;
}
#viz .in-map-legend span {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 3px;
  position: relative;
  top: 3px;
  border: 3px solid rgba(0,0,0,0.2);
}
#viz .in-map-legend label {
  font-family: "epocapro", sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color:#000;
}


/* LARGER (THAN MOBILE) SCREENS
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media screen and (min-width:400px) {
}

@media screen and (min-width:551px) {
  #viz .legend {
    font-family: "epocapro", sans-serif;
    font-size: 0.9rem;
  }
  #viz .map {
    width: 100%;
    height: 75vh;
  }

  #viz .leaflet-popup-content-wrapper {
    /*! width: 380px; */
    max-height: 500px;
    overflow: auto;
  }
}

@media screen and (min-width:750px) {
  #viz .leaflet-popup-content-wrapper {
    max-height: 550px;
  }
}
