html,
body {
  box-sizing: border-box;
  /* height: 100vh; */
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#map {
  /* max-height: calc(100vh - 85px); */
  height: 100%;
  max-width: 1200px;
  border: .1rem solid grey;
  border-radius: .3rem;
  width: 90vw;
}

#map-info {
  box-sizing: border-box;
  padding: 10px;
  margin: 0px;
  max-width: 1200px !important;
  max-height: 50vh !important;
  overflow-y: auto;
  border: .1rem solid grey;
  border-radius: .3rem;
  background-color: rgba(241, 241, 241, 0.05);
  margin-bottom: .5em;
}

#map-info p {
  margin-bottom: 0;
}

#map.loading {
  opacity: 0;
}

#map:not(.loading) {
  transition-property: opacity;
  transition-duration: .2s;
  transition-timing-function: linear;
  transition-delay: .2s;
}

.legend-static {
  font-size: inherit;
}

.legend-layer {
  font-size: inherit;
}

#map path.leaflet-interactive[stroke="#1e87f0"] {
  display: none !important;
}

/* #map .leaflet-control-search, */
/* #map ul.search-tooltip {
  margin: 0;
  margin-top: 0.5rem;
  min-width: 30vw;
  /* width: 40vw;
  max-width: 50vw;
} */

*/ #map .leaflet-control-search.search-exp {
  min-width: 30vw;
  /* max-width: 50vw; */
}

#map .leaflet-control-search.search-exp .search-input {
  min-width: 25vw;
  max-width: 45vw;
}

#map .leaflet-popup {
  margin-bottom: 50px;
}

.leaflet-popup-content {
  max-height: 70vh;
  max-width: 80vw;
  overflow-y: auto;
}

.leaflet-popup-content.leaflet-popup-scrolled {
  padding: 5px;
}

.leaflet-popup-content img {
  width: 100%;
  height: auto;
  max-width: 998px
}

.leaflet-popup-content img.right {
  height: 30vh;
  width: auto;
  float: right;
  max-width: 998px
}

.reset-container {
  background-color: white;
  padding: .2rem;
  cursor: pointer;
}

.reset-container:hover {
  background-color: #f4f4f4;
}

.reset-button {
  background-size: contain;
  background-image: url('../images/i.png');
}

h3.leaflet-legend-title {
  /* padding-left: .3rem; */
  margin: .1rem -.95rem 0 -.4rem;
  text-align: center;
}

.leaflet-legend-item-clickable {
  cursor: pointer;
  border: .1rem solid grey;
  padding: .2rem .4rem .2rem .2rem;
  margin-bottom: .4rem;
  border-radius: .2rem;
}

.leaflet-legend-item-clickable:hover {
  background-color: #f4f4f4;
}

.leaflet-legend-item:not(.leaflet-legend-item-clickable) i {
  margin-left: -.4rem;
  padding: 0 1.2rem 0 0;
}

div.leaflet-legend-item-inactive span {
  color: black;
  opacity: .6;
}

div.leaflet-legend-item-inactive {
  border-color: #cccccc;
}

/* leaflet-search */
#map .leaflet-top.leaflet-left {
  z-index: 3000;
}


/* #map .leaflet-container .leaflet-control-search { */
#map .leaflet-control-search {
  position: relative;
  float: left;
    padding: .2rem;
    /* z-index: 3000; */



  font-size: 18px;
    line-height: 24px;

  background: #fff;
    color: #1978cf;
    border: 2px solid rgba(0, 0, 0, 0.2);
    background-clip: padding-box;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    margin-left: 10px;
    margin-top: 10px;
}

#map .leaflet-control-search.search-exp {
  /*expanded*/
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.2);
  background-clip: padding-box;
}

#map .leaflet-control-search .search-input {
  display: block;
  float: left;
  font-size: 18px;
    background: #fff;
    border: 1px solid #666;
    border-radius: 0;
    height: 22px;
    padding: 0 20px 0 2px;
    margin: 4px 0 4px 4px;
}

#map .leaflet-control-search.search-load .search-input {
  background: url('../images/loader.gif') no-repeat center right #fff;
}

#map .leaflet-control-search.search-load .search-cancel {
  visibility: hidden;
}

#map .leaflet-control-search .search-cancel {
  display: block;
  width: 22px;
    height: 22px;
    position: absolute;
    right: 28px;
    margin: 6px 0;
    background: url('../images/search-icon.png') no-repeat 0 -46px;
  text-decoration: none;
  filter: alpha(opacity=80);
    opacity: 0.8;
}

#map .leaflet-control-search .search-cancel:hover {
  filter: alpha(opacity=100);
  opacity: 1;
}

#map .leaflet-control-search .search-cancel span {
  display: none;
  /* comment for cancel button imageless */
  font-size: 18px;
  line-height: 20px;
  color: #ccc;
  font-weight: bold;
}

#map .leaflet-control-search .search-cancel:hover span {
  color: #aaa;
  /* font-size: medium; */
}

#map .leaflet-control-search .search-button {
  display: block;
  float: left;
  width: 30px;
  height: 30px;
  border-radius: 0;
    background: url('../images/search-icon.png') no-repeat 4px 4px #fff;
}

#map .leaflet-control-search .search-button:hover {
  background: url('../images/search-icon.png') no-repeat 4px -20px #fafafa;
}


#map .leaflet-control-search .search-tooltip {
  margin: 0;
  /* margin-top: 1.5rem; */
  min-width: 30vw;
  /* position: absolute; */
  /* top: 30%; */
  /* left: 0;
  float: left; */
  list-style: none;
  padding-left: 0;
  /* min-width: 200px;*/
  height: fit-content;
  max-height: 70vh;
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
  background-color: rgba(0, 0, 0, 0.25);
  z-index: 1010;
  overflow-y: auto;
  overflow-x: hidden;
  cursor: pointer;
}

/* #map .leaflet-control-search * {
  max-width: 100% !important;
} */
#map .leaflet-control-search .search-tip {
  max-width: 90vw !important;
  margin: 4px auto;
  padding: 6px;
  display: block;
  color: black;
    background: #eee;
    border-radius: 0;
    min-width: 120px;
    text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#map .leaflet-control-search .search-button:hover {
  background-color: #f4f4f4;
}

#map .leaflet-control-search .search-tip-select,
#map .leaflet-control-search .search-tip:hover {
  background-color: #fff;
}

#map .leaflet-control-search .search-alert {
  cursor: pointer;
  clear: both;
    /* font-size: .75em; */
    margin-bottom: 5px;
    padding: 0 .25em;
    color: #e00;
    font-weight: bold;
    border-radius: 0;
}

@media screen and (max-width: 600px) {
  #map {
    border: 0;
    border-radius: 0;
      /* max-height: calc(100vh - 51px); */
      /* margin-top: -16px; */
      width: 100vw;
      height: 100%;
    }

                                #map-info {
                                  border: 0;
                                  border-radius: 0;
                                  background-color: rgb(240, 240, 240);
                                  margin-bottom: 0;
                                  width: 100vw;
                                  max-height: 60vh !important;
                                  overflow-y: auto;
                                }

                                .leaflet-popup-content {
    max-height: 80%;
      max-width: 80vw;
      overflow-y: auto;
    }
}

@media (pointer:coarse) {
  .leaflet-tooltip-pane {
    display: none;
  }
}