html,
body {
  height: 100%;
}

#content {
  height: calc(100% - 148px);
  overflow: hidden;
}

#map-view {
  height: 100%;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

#map-view .row {
  margin: 0;
}

.row {
  width: 100%;
  max-width: 100%;
}

#map {
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  flex: 100%;
  max-width: 100%;
}

#map-container {
  display: flex;
  position: relative;
  height: 100%;
  width: 100%;
}

#map-container-iframe {
  display: flex;
  position: absolute;
  height: 100%;
  width: 100%;
}

#sidebar {
  flex: 2;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  align-items: flex-start;
  background-color: white;
}

#sidebar-location-wrapper {
  padding: 16px 24px;
  font-weight: bold;
  width: 100%;
  background-color: white;
  color: black;
}

#sidebar-content-2 {
  padding: 0.5rem;
}

#sidebar-content-2 p, #sidebar-content-2 ol, #sidebar-content-2 ul {
  font-size: 14px;
  color: rgb(54, 54, 54);
}

#map-wrapper {
  position: relative;
  flex: 5;
}
#marker-sidebar {
  max-width: 400px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: absolute;
  left: 0;
  top: 0;
  display: none;
  z-index: 1;
  margin: 0.5rem;
  transition: 0.300s all cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
  background-color: rgb(240, 240, 240);
}

#form-sidebar, #form-success-sidebar, #form-error-sidebar {
  max-width: 400px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: absolute;
  left: 0;
  top: 0;
  display: none;
  z-index: 1;
  margin: 0.5rem;
  transition: 0.300s all cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
  background-color: rgb(240, 240, 240);
}

.marker-sidebar__open {
  display: flex !important;
  flex-direction: column;
  width: inherit !important;
  overflow: hidden;
  max-height: 93%;
}

#search-container {
  width: 100%;
  background-color: black;
  padding: 14px 22px;
}

#sidebar .mapboxgl-ctrl-geocoder {
  box-shadow: none;
  width: 100%;
  border-radius: 0;
  position: relative;
  height:42px;
  border-radius: 3px;
}

#sidebar .mapboxgl-ctrl-geocoder .mapbox-search-bg-icon {
  position: absolute;
  width: 70px;
  height: 40px;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

#sidebar .mapboxgl-ctrl-geocoder .mapbox-search-bg-icon .mapbox-search-bg-icon__bg {
  position: absolute;
  bottom: -5px;
  right: -45px;
  border-radius: 6px 0 0 0;
  height: 40px;
  width: 100px;
  transform: skew(-37deg, 0deg);
  background-color: white;
}

#sidebar .mapboxgl-ctrl-geocoder .mapboxgl-ctrl-geocoder--icon-search {
  position: absolute;
  top: 13px;
  right: 12px;
  width: 23px;
  height: 23px;
  fill: black;
  z-index: 3;
}

#sidebar .mapboxgl-ctrl-geocoder .mapboxgl-ctrl-geocoder--pin-right > * {
  z-index: 2;
  position: absolute;
  left: 8px;
  top: 7px;
  display: none !important;
}

.mapbox-gl-home{
  background-image: url("../img/home-icon.5511768dc9ae.svg");
  background-size: 100%;
  width: 45px !important;
  height: 45px !important;
}

#sidebar-tabs {
  background-color: white;
  padding: 16px 24px 10px 24px;
  width: 100%;
}

.sidebar-tab {
  cursor: pointer;
  padding-bottom: 10px;
  margin-right: 18px;
  color: black;
  font-weight: 500;
}

.tab-active {
  border-bottom: 3px solid rgb(150, 150, 150);
  color: black;
}

#sidebar-tab-content__upgrades {
  flex-direction: column;
  width: 100%;
  padding: 18px;
}
.sidebar-tab-content {
  display: none;
  overflow: auto;
}

.tab-content-active {
  display: flex;
}

.marker-content {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  margin-bottom: 12px;
  padding-bottom: 32px;
  position: relative;
  border: 1px solid rgb(150, 150, 150);
}

.marker-content__icon {
  display: block;
  height: 34px;
  width: 34px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
}

.marker-content__title {
  margin: 0;
  font-size: 14px;
  color: black;
  margin-left: 14px;
}

.marker-side-button {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 100px;
  height: 50px;
  overflow: hidden;
}

.marker-side-button__bg {
  position: absolute;
  bottom: -20px;
  right: -45px;
  border-radius: 6px 0 0 0;
  height: 50px;
  width: 100px;
  transform: skew(-37deg, 0deg);
  background-color: rgb(150, 150, 150);
}

.marker-side-button__icon {
  background-image: url("../img/arrow-right-black.3969c47cce3c.svg");
  width: 22px;
  height: 22px;
  position: absolute;
  right: 11px;
  background-repeat: no-repeat;
  bottom: 3px;
  background-size: contain;
  stroke: red;
}

.marker-content:hover {
  background-color: white;
}

.marker-content__active {
  border: 1px solid rgb(150, 150, 150);
  background-color: white;
}

.marker-content__active .marker-side-button__icon {
  background-image: url("../img/arrow-left-white.259da99c106f.svg");
}


#marker-sidebar-header {
  display: flex;
  padding: 1rem;
  align-items: center;
  position: relative;
  background-color: Black;

}

#marker-sidebar-header-title h1 {
  font-size: 18px;
  margin-right: 1rem;
  padding: 0 1rem;
  margin: 0 1rem 0 0;
  color: white;
}

.marker-active {
  width: 40px !important;
  height: 40px !important;
}

.marker-sidebar__open #close {
  transform: scaleY(-1);
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 50px;
}

.marker-sidebar__open #close-bg {
  position: absolute;
  top: 20px;
  right: -40px;
  border-radius: 6px 0 0 0;
  height: 50px;
  width: 100px;
  transform: skew(-37deg, 0deg);
  background-color: rgb(30, 30, 30);
}

.marker-sidebar__open #close-icon {
  position: absolute;
  top: 19px;
  right: 7px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: white;
  text-decoration: none;
  font-size: 30px;
  line-height: 100%;
  font-family: arial, sans-serif;
  font-weight: lighter;
}


#sidebar-mobile-toggle {
  display: none;
}

.chevron-arrow-down {
  display: inline-block;
  border-right: 4px solid black;
  border-bottom: 4px solid black;
  width: 20px;
  height: 20px;
  transform: rotate(225deg);
}

.chevron-arrow-up {
  display: inline-block;
  border-right: 4px solid black;
  border-bottom: 4px solid black;
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
}

#sidebar-content-wrapper {
  overflow: auto;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100%;
}

#sidebar-tab-content__overview,
.sidebar-overview-content {
  width: 100%;
}

#sidebar-tab-content__overview {
  padding: 1rem;
}

.sidebar-overview-content .marker-content__text-wrapper {
  padding: 0.5rem;
  font-size: 20px;
  text-align: center;
}

.sidebar-overview-content .marker-content__body {
  padding: 0.5rem;
  color: black;
}

.marker-content {
  cursor: pointer;
  /*background-color: white;*/
}

/* .marker-content:hover {
  background: rgb(235, 235, 235);
} */

/* .marker-content__marker {
  order: 2;
}

.marker-content__map {
  order: 1;
} */

#sidebar-content-2 {
  height: 100%;
  max-height: 700px;
  overflow-y: auto;
}

#back-btn-map {
  display: none;
}

@media screen and (min-width: 640px) {
  #sidebar {
    position: relative;
    max-width: 400px;
  }
  #sidebar .mapboxgl-ctrl-geocoder .mapboxgl-ctrl-geocoder--input {
    padding: 5px 10px 10px 36px;
    height: 48px;
  }
  #sidebar .mapboxgl-ctrl-geocoder .mapboxgl-ctrl-geocoder--icon-search {
    height: 20px;
  }
  #marker-sidebar {
    max-width: 400px !important;
  }
}

@media screen and (max-width: 640px) {

  #sidebar {
    transition: 0.300s all cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    /*background-color: white;*/
    z-index: 1;
    height: 500px;
    border-right: 0;
    /*border-top: 2px solid #ddd;*/
  }

  #sidebar-mobile-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1;
    width: 100%;
    padding: 1rem 0;
  }

  #marker-sidebar {
    width: 100% !important;
    margin: 0 auto;
    visibility: visible;
    top: 35%;
    left: 0;
    right: 0;
    bottom: 82px;
    z-index: 3;
    overflow: hidden;
    display: flex;
    transform: translateY(150%);
  }

  #marker-sidebar.marker-sidebar__open {
    transform: translateY(0);
  }

  .sidebar-mobile__open {
    height: 46vh !important;
    opacity: 1;
    z-index: 3 !important;
  }

  .sidebar-mobile__closed {
    height: 100px !important;
    overflow: hidden;
    /* opacity: 0.8; */
  }

  .marker-sidebar__open {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    /* margin: 0.5rem !important; */
    visibility: visible !important;
    top: 35% !important;
    left: 0 !important;
    right: 0;
    bottom: 82px;
    z-index: 3 !important;
    overflow: hidden;
  }

  #sidebar-location-wrapper {
    order: 1;
    margin: 0 auto;
    text-align: left;
    font-size: 20px;
  }

  #sidebar .mapboxgl-ctrl-geocoder {
    margin: 0.25rem auto 1rem;
  }

  #sidebar-content-2 {
    max-height: inherit;
  }

  .cta-buttons {
    display: none !important;
  }

  #back-btn-map {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 10px;
    z-index: 5;
    box-shadow: 0 0 5px 1px rgb(200, 200, 200);
    padding: 8px;
    background-color: white;
  }

  #back-btn-map-icon {
    width: 100%;
    height: 100%;
    background-image: url("../img/arrow-left-black.ad49b85178d4.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  .marker-content {
    /*border: 2px solid rgb(240, 240, 240);*/
    margin-bottom: 8px;
  }

  .marker-side-button__icon {
    background-image: url("../img/arrow-up-black.f5883e58d260.svg");
  }

  #sidebar .mapboxgl-ctrl-geocoder .mapboxgl-ctrl-geocoder--icon-search {
    top: 14px;
    right: 10px;
    width: 26px;
    height: 26px;
    left: auto;
  }

  #sidebar .mapboxgl-ctrl-geocoder .mapboxgl-ctrl-geocoder--input {
    padding: 10px 70px 10px 10px;
    height: auto;
  }

  #sidebar-tabs {
    padding: 8px 24px;
    /*border-bottom: 1px solid #ddd;*/
  }

  .sidebar-tab {
    padding-bottom: 8px;
  }

  #sidebar-tab-content__upgrades {
    padding: 8px;
  }

  .marker-bottom-title {
    margin: 0;
    font-size: 16px;
    color: white;
  }

  .marker-bottom-button {
    display: none;
    position: absolute;
    top: 0px;
    right: 0px;
    width: 80px;
    height: 50px;
    overflow: hidden;
    z-index: 4;
  }

  .marker-bottom-button__bg {
    position: absolute;
    top: -12px;
    right: -30px;
    border-radius: 0 0 0 6px;
    height: 50px;
    width: 100px;
    transform: skew(37deg, 0deg);
    background-color: rgb(150, 150, 150);
  }

  .marker-bottom-button__icon {
    background-image: url("../img/arrow-up-black.f5883e58d260.svg");
    width: 22px;
    height: 22px;
    position: absolute;
    right: 17px;
    background-repeat: no-repeat;
    top: 8px;
    background-size: contain
  }


  .marker-bottom-button-expand {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 80px;
    height: 50px;
    overflow: hidden;
    z-index: 4;
  }

  .marker-bottom-button-expand__bg {
    position: absolute;
    top: -12px;
    right: -30px;
    border-radius: 0 0 0 6px;
    height: 50px;
    width: 100px;
    transform: skew(37deg, 0deg);
    background-color: rgb(150, 150, 150);
  }

  .marker-bottom-button-expand__icon {
    background-image: url("../img/arrow-up-black.f5883e58d260.svg");
    width: 22px;
    height: 22px;
    position: absolute;
    right: 17px;
    background-repeat: no-repeat;
    top: 8px;
    background-size: contain;
    transform: rotate(180deg);
  }


  .shrink-sidebar {
    transform: translateY(calc(100% - 64px));
  }

  .shrink-sidebar #sidebar-location-wrapper {
    background-color: black;
    font-size: 16px;
    color: white;
    position: relative;
    padding: 22px 70px 16px 14px;
  }

  .shrink-sidebar .marker-bottom-button {
    display: block;
  }

  .shrink-sidebar .marker-bottom-button-expand {
    display: none;
  }

  #content {
    height: 100%;
  }

}
@media screen and (max-width: 640px) {
  #layer-btn-map{
    top: 8px;
    width: 40px;
    right: 10px;
    border-radius: 50%;
  }

  #layer-btn-map-icon {
    width: 100%;
    height: 100%;
    background-image: url("../img/layers.ffd63d5c3b10.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
  #layer-btn-map-text{
    display:none;
  }
}

@media screen and (min-width: 640px) {
  #layer-btn-map{
    bottom: 28px;
    right: 84px;
  }
  #layer-btn-map-text{
    width: 100%;
    height: 100%;
    display:show;
  }
  #layer-btn-text-arrow-icon{
    display:inline;
  }
}

#layer-btn-map {
  display: block;
  height: 40px;
  position: absolute;
  z-index: 5;
  box-shadow: 0 0 5px 1px rgb(200, 200, 200);
  padding: 8px;
  background-color: white;
}



/*
#map-view, .row
{
    max-width:100%;
    height:600px;
    margin: 0px;
}

#sidebar
{
    padding:15px;
    overflow: auto;
    height:600px;
}

#map
{
    padding:0px;
    height:600px;
}
*/
.marker {
  background-image: url("/static/imap/img/marker.8d4f5ef317a6.png");
  background-size: cover;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  /*border: 2px solid #ffffff;*/
  cursor: pointer;
  transition: width 0.2s, height 0.2s;
}

#video_0 div{
  background: url("/static/images/play.9ab8d72d62ee.png") no-repeat center;
  background-size:contain;
  position: absolute;
  display: block;
  height: 64px;
  width: 64px;
  top: 50%;
  left: 50%;
  margin: -20px 0 0 -20px;
}

.image-thumbnail{
  height: auto;
  max-width: 375px;
  max-height: 250px;
}
@media screen and (max-width: 640px) {
 #map-key{
   right: 0;
   top: 0;
 }
 #marker-sidebar{
  display: none;
 }
 
}

@media screen and (min-width: 640px) {
 #map-key{
   bottom: 21px;
   right: 76px;
 }

 #container{
  height: 100%;
 }
}

#map-key {
  display: none;
  max-width: 500px;
  min-width: 100px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: absolute;
  z-index: 5;
  margin: 0.5rem;
  background: white;
  transition: 0.300s all cubic-bezier(0.4, 0, 0.2, 1);
}

.map-key-header {
  position: relative;
  height: 38px;
  display: flex;
  align-items: center;
  background-color: black;
  color:white;
  min-width: 135px;
  padding-left: 10px;
}

.map-key-header strong {
  margin-left: 12px;
}

.map-key-close {
  width: 74px;
  height: 38px;
  position: absolute;
  overflow: hidden;
  right: 0;
  top: 0;
}

.map-key-close__bg {
  position: absolute;
  top: -5px;
  right: -40px;
  border-radius: 0 0 0 6px;
  height: 40px;
  width: 100px;
  transform: skew(37deg, 0deg);
  background-color: rgb(30, 30, 30);
}

.map-key-close__icon {
  background-image: url("../img/x-white.0a708304f396.svg");
  width: 25px;
  height: 25px;
  position: absolute;
  right: 14px;
  background-repeat: no-repeat;
  top: 5px;
  background-size: contain;
  color: white;
}

#map-key-layers {
  padding: 12px;
  background-color: rgb(240, 240, 240);
  display:table;
}

.cta-buttons {
  background-color: black;
  padding: 16px 24px;
  width: 100%;
}

.button-sidebar-back {
  background-color: black;
  color: white;
  border: 0;
  outline: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.button-sidebar-back:focus {
  outline: none;
}

.button-sidebar-back__content {
  flex-shrink: 0;
  width: 60px;
  margin-right: 4px;
  height: 30px;
  position: relative;
  overflow: hidden;
}

.button-sidebar-back__bg {
  position: absolute;
  bottom: 0px;
  right: 12px;
  border-radius: 0 0 6px 0;
  height: 31px;
  width: 100px;
  transform: skew(-37deg, 0deg);
  background-color: rgb(150, 150, 150);
}

.button-sidebar-back__icon {
  /* background-image: url("../img/arrow-left.29f86936f682.svg"); */
  background-color: black;
  -webkit-mask-image: url("../img/arrow-left-white.259da99c106f.svg");
  mask-image: url("../img/arrow-left-white.259da99c106f.svg");
  width: 22px;
  height: 22px;
  position: absolute;
  left: 12px;
  background-repeat: no-repeat;
  bottom: 5px;
  background-size: contain;
}

/* diable compass */
.mapboxgl-ctrl-compass {
display: none !important;
}

.rich-text img {
  max-width:100%;
  height:auto;
}

.dot {
  border: 4px solid #ffffff;
  background: transparent;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  height: 100%;
  width: 100%;
  -webkit-animation: pulse 3s linear;
  -moz-animation: pulse 3s linear;
  animation: pulse 3s linear;
  -webkit-animation-iteration-count: infinite;
  -moz-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 1;
  opacity: 0;
}

@-moz-keyframes pulse {
 0% {
    -moz-transform: scale(1.1);
    opacity: 0.0;
 }
 60% {
    -moz-transform: scale(1.1);
    opacity: 0.0;
 }
 70% {
    opacity: 1.0;
 }
 90% {
    opacity: 0.8;
 }
 100% {
    -moz-transform: scale(2.0);
    opacity: 0.0;
 }
}

@-webkit-keyframes "pulse" {
 0% {
    -webkit-transform: scale(1.1);
    opacity: 0.0;
 }
 60% {
    -webkit-transform: scale(1.1);
    opacity: 0.0;
 }
 70% {
    opacity: 1.0;
 }
 90% {
    opacity: 0.8;
 }
 100% {
    -webkit-transform: scale(2.0);
    opacity: 0.0;
 }
}

.mapboxgl-popup-content {
  /*max-width: 400px;*/
  color: white;
  background-color: black;
  font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  text-align: center;
  padding:10px;
}

.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: black !important;
}
.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: black !important;
}
.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
    border-right-color: black !important;
}
.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
    border-left-color: black !important;
}

#loading-wheel {
  position:absolute;
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  flex: 100%;
  max-width: 100%;
  background-color: black;
  /* background-color: rgb(255, 255, 255, 1); */
  z-index: 10;
}

.loading-center{
  position: relative;
  top:50%;
  margin-top:-40px;
}

.lds-text {
  text-align: center;
  position: relative;
  width: 100%;
  color:white;
  font-size: larger;
}

.lds-dual-ring {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid white;
  border-color: white transparent white transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.legend-line {
  margin-bottom: 0.5rem;
}

.legend-label {
  margin-bottom: 0px;
}

.legend-line-box {
  background-color:transparent;
  width: 12px;
  display:table-cell;
  border: 1px solid;
  border-color: transparent;
}

.legend-line-label {
  padding-left: 0.5rem;
  display:table-cell;
}

.search-container-map-mobile {
  position: absolute;
  top: 10px;
  left: 10px;
}

@media screen and (max-width: 640px) {
  .mapboxgl-ctrl-bottom-right {
    bottom:unset;
    top: 60px;
    right: 5px;
  }
  #content {
    height: 100%;
  }
}

@media (max-width: 992px) {
  .search-container-map {
    display: none;
  }

  #content {
    height: calc(100% - 58px);
  }
}