/*------------------------------------*\
    MAP CSS
\*------------------------------------*/

.acf-map img {
  max-width: inherit !important;
}

div.mapWrap {
  position: relative;
  /* padding-bottom: 90%; */
  height: 80vh;
  margin-top: 0;
  margin-bottom: 0;
}

.mapWrap #mapSidebar {
  position: absolute;
  z-index: 1;
  background-color: #fff;
  height: 100%;
  max-width: 350px;
}

.mapSidebar__inner {
  display: flex;
  /* flex-direction: column-reverse; */
  flex-wrap: nowrap;
}

.mapWrap .acf-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.acf-map .gm-style .gm-style-iw-c {
  width: 100%;
  border-radius: 0;
}

.acf-map .gm-style .gm-style-iw-c h4 {
  font-size: 26px;
  line-height: 25px;
  margin-bottom: 15px;
}

.acf-map .gm-style .gm-style-iw-c p {
  font-size: 16px;
}

.acf-map .gm-style .gm-style-iw-c .boxcontent {
  padding: 12px 0;
}
.marker img {
  display: none;
}
#mapSidebar img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  max-height: 200px;
}

.boxcontent img {
  max-height: 300px;
}

.boxcontent h4 {
  clear: none;
  margin-top: 0;
}

.map-sidebar-close {
  position: absolute;
  right: 20px;
  top: 10px;
  cursor: pointer;
}

.map-sidebar-close > span {
  line-height: 50px;
}

/*-------------
Location Map Styling
----------------*/

.mapSidebar__inner .boxcontent h4 {
  width: 80%;
  max-width: 400px;
  color: #000;
}

.mapSidebar__inner {
  max-width: 450px;
  width: 350px;
  padding: 40px 30px;
  height: 100%;
  overflow-y: scroll;
  background: #fff;
}

.mapSidebar__inner .boxcontent {
  /* border-bottom: 1px solid #ccc; */
}


/* -------------Map Search Box------------- */
input#map-autocomplete {
  padding: 2% 5%;
  width: 100%;
  border-radius: 10px;
  border: none;
  -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0 0 5px rgba(109, 207, 246, 0.5);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  color: #fff !important;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  transition: all 0.5s;
}
.mapWrap .search-box {
  width: 50%;
  z-index: 1;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 37px;
}
.mapWrap .search-box img {
  position: absolute;
  top: 50%;
  right: 25px;
  transform: translateY(-50%);
  line-height: 1;
  width: 17px;
  height: 15px;
}
.mapWrap #mapSidebar {
  color: #000;
  z-index: 2;
}

.mapWrap #mapSidebar a {
  color: #000;
  text-decoration: underline;
}

@media only screen and (max-width: 900px) {
  .mapWrap .search-box {
    width: 70% !important;
    z-index: 1 !important;
    position: absolute !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin-top: 85px !important;
  }
}