/* load font*/

@font-face {
  font-family: Avenir;
  src: url("AvenirLTStd-Roman.otf") format("opentype");
}

body {
  margin: 0;
  padding: 0;
  font-family: "Avenir", sans-serif;
  color: #21333f;
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
}

.marker-icon,
.marker-text {
  vertical-align: middle;
  display: inline-block;
  margin-left: 2px;
}

.marker-text {
  font-size: 20px;
  font-weight: bold;
  margin-right: 8px;
}

/* .mapboxgl-marker {
    cursor: pointer;
} */

.marker {
  /* background-image: url('marker.svg'); */
  /* background-size: cover; */
  /* border: 1px solid #ff1493; */
  /* background-color: #ffffff; */
  /* opacity: 0.5; */
  width: 32px;
  height: 32px;
  /* border-radius: 50%; */
  opacity: 1;
  cursor: pointer;
  background-repeat: round;
}

.marker:hover {
  background-color: #ffffff;
}

.selectedMarker {
  /* background-image: url('marker.svg'); */
  background-size: cover;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  opacity: 0.8;
  cursor: pointer;
}

p,
h3 {
  margin: 5px;
}

p {
  font-size: 15px;
}

/*popup styling*/

.mapboxgl-popup-close-button {
  float: right;
  right: 13px;
  border-radius: 21px;
  border: 1px solid #0f78e0;
  background-color: #ffffff;
  width: 20px;
  height: 20px;
  font-size: 14px;
  color: #21333f;
  cursor: pointer;
  margin-top: 10px;
  padding: 0;
}

.mapboxgl-popup-close-button:hover {
  background-color: #0f78e0;
  color: #ffffff;
  border: 1px solid #0f78e0;
}

.mapboxgl-popup-tip {
  margin-left: 1%;
}

.mapboxgl-popup-content {
  max-width: 500px;
  width: 450px;
  font: 16px/14px "Nunito", sans-serif;
  min-width: 120px;
  border: none;
  border-radius: 5px;
  background-color: #ffffff;
  color: #21333f;
  text-align: left;
}

div.location-image,
div.location-destination-address-group {
  display: inline-block;
}

div.location-image{
  width: 40%;
}

div.location-destination-address-group{
  margin-left: 10px;
  width: 50%;
}

div.location-destination{
  text-align: justify;
  font: 20px/14px "GillSans", "Source Sans Pro", Helvetica, Arial;
  color: #21333f;
  text-align: center;
  font-weight: bold;
  line-height: 21px;
}

div.location-image img {
  width: 100%;
  position: relative;
  margin-top: -26px;
}

div.location-summary{
  width: 100%;
  margin-top: 10px;
  text-align: justify;
}


.mapboxgl-popup-content div.content {
  height: 33px;
  width: 98%;
  border-radius: 8px;
  background-color: #ffffff;
  /* color: #000000; */
  text-align: left;
  margin-top: 10px;
}

div.explore-button {
  border-color: #21333f;
}

.mapboxgl-popup-content a {
  display: block;
  text-align: center;
  padding-top: 11px;
  padding-bottom: 8px;
  border-radius: 6px;
  height: 40px;
  text-decoration: none;
  font-size: larger;
  font-weight: bolder;
  margin-bottom: 4px;
  margin-top: 23px;
  margin-left: -2px;
  background-color: #ffffff;
  color: #0f78e0;
  border: 1px solid #0f78e0;
}

.mapboxgl-popup-content a.link-button {
  text-align: center;
}

.mapboxgl-popup-content a:hover {
  background-color: #0f78e0;
  border-color: #0f78e0;
  color: #ffffff;
}

i.fa {
  margin-left: 10px;
}

/* div#contact-button a{
  background-color: #0f78e0;
  color: #ffffff;
  border: 1px solid #0f78e0;
}

div#contact-button a:hover{
  color: #0f78e0;
  font-weight: bold;
  background-color: #ffffff;
  border: 1px solid #0f78e0;
} */

.mapboxgl-popup-anchor-top .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip {
  border-bottom-color: #21333f;
}

.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip {
  border-top-color: #21333f;
}

.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
  border-right-color: #21333f;
}

.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
  border-left-color: #21333f;
}

p.type {
  margin-left: 5px;
}

/*end popup styling*/

/*print*/

/* @media print {
    div#map {
        width: 100%;
    }
    .div2.menu-area {
        width: 0;
    }
} */

/* layers list */
#menu {
  height: 267px;
  display: grid;
  background: #fff;
  position: absolute;
  z-index: 1;
  top: 87px;
  border-radius: 3px;
  border: 1px solid #e7e7e7;
  left: 10px;
  width: 225px;
}

#menu a {
  color: #21333f;
  margin: 0;
  padding: 0;
  text-decoration: none;
  background-color: #ffffff;
  border-bottom: 1px solid #e7e7e7;
  padding-top: 5px;
  text-transform: capitalize;
  font-weight: bold;
  font-size: 16px;
  text-align: left;
}

#menu img {
  position: relative;
  width: 22px;
  height: 32px;
  margin-left: 10px;
  margin-top: 3px;
}

#menu a span.text {
  margin-top: -26px;
  display: block;
  margin-left: 50px;
}

#menu a:last-child {
  border: none;
}

/* #menu a:hover {
  background-color: #FFFFFF;
  color: #FFFFFF;
} */

#menu a.active {
  background-color: #ffffff;
  color: #ffffff;
}

/* #menu a.active:hover {
  background: #FFFFFF;
} */
.map-overlay {
  position: absolute;
  bottom: 0;
  right: -9px;
  background: rgba(255, 255, 255);
  margin-right: 20px;
  font-family: Arial, sans-serif;
  overflow: auto;
  border-radius: 3px;
}
div#layers-custom-control {
  display: block;
  border: 2px solid #ddd8d4;
  background-color: #ffffff;
  padding-left: 1px;
  width: 28px;
  height: 28px;
  padding-top: 1px;
  border-radius: 5px;
  cursor: pointer;
}

/* magnifier styling only for the grid search */
.grids-search-mapbox-style-magnifier {
  position: absolute;
  left: 20px;
  z-index: 100;
  width: 20px;
  height: 20px;
  top: 127px;
  display: inline-block;
  vertical-align: middle;
  fill: #757575;
}
/* end magnifier styling only for the grid search */

/* start styling circle selection */
span.circle-selection {
  content: "";
  position: absolute;
  right: 19px;
  width: 14px;
  height: 14px;
  border: 2px solid #0f78e0;
  border-radius: 25px;
  margin-top: -17px;
  background-color: #0f78e0;
}

/* end styling circle selection */

/* start styling filter button */
span.filter-button {
  height: 50px;
  display: grid;
  position: absolute;
  z-index: 1;
  top: 6px;
  left: 4px;
  width: 195px;
}
span.filter-button:hover {
  cursor: pointer;
}
/* end styling filter button */

@media screen and (max-width: 1039px) and (min-width: 814px) {
  #menu {
    overflow-y: auto;
  }
  #menu a {
    font-size: 14px;
  }

  #menu img {
    width: 22px;
  }
}

@media screen and (max-width: 813px) and (min-width: 666px) {
  #menu {
    max-width: 28%;
    height: 250px;
    overflow-y: auto;
  }

  #menu a {
    font-size: 1.7vw;
  }

  #menu a span.text{
    margin-top: -18px;
  }

  #menu img {
    position: relative;
    width: 17px;
    height: 21px;
    margin-left: 10px;
    margin-top: 4px;
  }
}

@media screen and (max-width: 665px) and (min-width: 456px) {
  #menu {
    max-width: 35%;
    height: 300px;
    overflow-y: auto;
  }

  #menu a {
    font-size: 2vw;
  }

  #menu img {
    width: 30px;
    margin-top: 5px;
  }
}
@media screen and (max-width: 455px) and (min-width: 400px) {
  /* #map {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
  }

  canvas.mapboxgl-canvas {
    height: 100%;
  } */

  /* #menu {
    display: flex;
    position: absolute;
    width: 100%;
    height: 8%;
    top: 92%;
    left: -2px;
  } */

  /* #menu a {
    margin-top: -10px;
    font-size: 5vw;
    height: 31px;
    width: 33%;
  }

  #menu a span {
    display: none;
    margin-top: 2px;
    text-align: center;
    margin-left: 0;
  }

  #menu img {
    display: block;
    width: 30px;
    margin-top: -15px;
    margin-left: 25px;
  } */

  .mapboxgl-ctrl-geocoder mapboxgl-ctrl {
    width: 30%;
  }

  .mapboxgl-ctrl-geocoder {
    width: 25%;
    min-width: 175px;
  }

  #legend {
    margin-bottom: 110px;
  }
}

@media screen and (max-width: 399px) {
  /* #map {
    position: absolute;
    left: 0;
    width: 100%;
    height: 90%;
  } */

  /* canvas.mapboxgl-canvas {
    height: 100%;
  } */

  #menu {
    /* display: flex; */
    position: absolute;
    width: 100%;
    height: 54%;
    top: 39%;
    left: -2px;
    overflow-y: scroll;
  }

  .mapboxgl-ctrl-geocoder mapboxgl-ctrl {
    width: 30%;
  }

  .mapboxgl-ctrl-geocoder {
    width: 25%;
    min-width: 175px;
  }
}
