body {
  margin: 0;
  padding: 0;
  font-family: "Raleway", sans-serif;
  font-weight: 500;
}

.interactive-map-section {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

#map_container {
  height: 700px;
  margin: auto;
  width: 100%;
}

#mapsplus {
  width: 100%;
  height: 700px;
}

#sidebar i {
  margin-right: 0.5em;
}

#sidebar {
  display: block;
  position: absolute;
  top: 130px;
  left: 0px;
  width: 300px;
  padding: 0 33px;
  background: #fcfcfc;
  -webkit-box-shadow: inset 2px 0px 0px 0px rgba(0, 0, 0, 0.03),
    inset 0px 2px 0px 0px rgba(0, 0, 0, 0.03);
  box-shadow: inset 2px 0px 2px 2px rgba(0, 0, 0, 0.03),
    inset 0px 2px 0px 0px rgba(0, 0, 0, 0.03);
  color: #666;
  font-size: 13px;
}

@media only screen and (max-width: 768px) {
  #sidebar {
    width: 50px;
    padding: 0;
    top: 130px;
    height: 650px;
  }

  .side-open {
    display: none !important;
  }

  #sidebar i {
    margin-right: auto;
  }

  #filter-groups h2,
  #filter-groups span {
    display: none;
  }

  #filter-groups .map_legend_item {
    text-align: center;
    padding: 12.5px;
  }

  #hide_menu_button.left.visible {
    display: none !important;
  }

  #print_map {
    margin-bottom: 12.5px !important;
  }

  .reg-map-title,
  .reg-map-desc,
  .reg-map-legend {
    display: none;
  }

  .mob_show {
    display: inline-block !important;
    position: absolute;
    text-align: left;
    width: 220px;
    text-overflow: clip;
    margin-left: 25px;
    color: black;
    font-weight: bold;
  }

  .selected {
    background-color: white;
  }

  .ham-menu {
    display: block !important;
  }
}

.ham-menu {
  display: none;
  position: absolute;
  top: 80px;
  width: 50px;
  height: 50px;
  font-size: 20px;
  font-weight: bold;
  border: none;
  background-color: rgba(252, 252, 252, 0.7);
  color: black;
  text-align: center;
  padding: 10px 0;
  cursor: pointer;
}

#sidebar.right {
  float: right;
  right: 0;
  left: auto;
}

#sidebar.left {
  float: left;
  left: 0;
  right: auto;
}

#sidebar.top {
  float: top;
  top: 0;
  bottom: auto;
}

#sidebar h3 {
  color: #666;
  font-size: 14px;
  font-weight: bold;
  margin: 1.5em 0 0.5em;
}

#sidebar.right {
  margin-left: -1px;
  border-left: 1px solid #e0e0e0;
}

#sidebar.left {
  margin-right: -1px;
  border-right: 1px solid #e0e0e0;
}

#sidebar.top {
  margin-bottom: -1px;
  border-bottom: 1px solid #e0e0e0;
}

#sidebar.disengaged {
  background-color: rgba(255, 255, 255, 0.75);
}

#hide_menu_button {
  display: block;
  margin-right: 50px;
  cursor: pointer;
  position: absolute;
  top: 130px;
  background-color: transparent;
  height: 29px;
  border-left: 0px;
  background-image: url("../img/mapsplus/show-hide.gif");
  background-repeat: no-repeat;
}

#hide_menu_button span.text {
  display: block;
  background-color: #fff;
  border: 1px solid #dbdbdb;
  line-height: 27px;
}

#hide_menu_button span.filters {
  display: block;
  position: absolute;
  top: 0;
  font-size: 12px;
  padding: 2px 5px;
  border: 1px solid #dbdbdb;
  background-color: #4c4c4c;
  color: #fff;
  text-align: center;
  line-height: 1;
  font-weight: bold;
  margin: 0;
}

#hide_menu_button.left {
  left: 0;
  margin-left: 257px;
}

#hide_menu_button.left.visible span.text {
  border-left: none;
  padding: 0px 27px 0px 10px;
}

#hide_menu_button.left.collapsed span.text {
  border-right: none;
  padding: 0px 10px 0px 27px;
}

#hide_menu_button.left.visible span.filters {
  right: 0;
  border-bottom-left-radius: 8px;
}

#hide_menu_button.left.collapsed span.filters {
  left: 0;
  border-bottom-right-radius: 8px;
}

#hide_menu_button.left.visible {
  padding-left: 15px;
  background-position: left center;
}

#hide_menu_button.left.collapsed {
  padding-right: 15px;
  background-position: right center;
}

#hide_menu_button.right {
  right: 0;
  margin-right: 235px;
}

#hide_menu_button.right.visible span.text {
  border-right: none;
  padding: 0px 10px 0px 27px;
}

#hide_menu_button.right.collapsed span.text {
  border-left: none;
  padding: 0px 27px 0px 10px;
}

#hide_menu_button.right.visible span.filters {
  left: 0;
  border-bottom-right-radius: 8px;
}

#hide_menu_button.right.collapsed span.filters {
  right: 0;
  border-bottom-left-radius: 8px;
}

#hide_menu_button.right.visible {
  padding-right: 15px;
  background-position: right center;
}

#hide_menu_button.right.collapsed {
  padding-left: 15px;
  background-position: left center;
}

#hide_menu_button.top {
  top: 0;
  margin-top: 257px;
}

#hide_menu_button.top.visible span.text {
  border-top: none;
  padding: 0px 10px 0px 27px;
}

#hide_menu_button.top.collapsed span.text {
  border-bottom: none;
  padding: 0px 27px 0px 10px;
}

#hide_menu_button.top.visible span.filters {
  bottom: 0;
  border-bottom-right-radius: 8px;
}

#hide_menu_button.top.collapsed span.filters {
  top: 0;
  border-bottom-left-radius: 8px;
}

#hide_menu_button.top.visible {
  padding-top: 15px;
  background-position: center;
}

#hide_menu_button.top.collapsed {
  padding-bottom: 15px;
  background-position: center;
}

.width_selector,
.builder_selector,
.assigned_builder_selector,
.lot_type_selector,
.front_meter_selector,
.front_feet_selector,
.building_pocket_selector,
.rank_selector,
.entry_type_selector,
.amenity_type_selector,
.reset_map,
#print_map {
  cursor: pointer;
}

h3 .reset {
  display: none;
  cursor: pointer;
  color: #169fe6;
}

h3 .reset:before {
  content: "(";
}

h3 .reset:after {
  content: ")";
}

.reset_map,
#print_map {
  padding: 5px 10px;
  margin: 1.5em 0 0em;
}

.map_legend_item {
  line-height: 30px;
  padding: 0px;
  margin: 0px;
  cursor: pointer;
  list-style-type: none;
  text-align: left;
  display: block;
}

.map_legend_color {
  height: 14px;
  width: 14px;
  display: inline-block;
  opacity: 0.8;
  border-radius: 7px;
}

.explore-region {
  height: 80px;
  margin-right: auto;
  margin-left: auto;
  display: block;
  width: 100%;
}

.explore-region ul li {
  text-align: center;
  line-height: 64px;
}

ul {
  margin: 0;
  padding: 0;
}

ul .btn-map {
  display: inline-block;
  -webkit-mask-image: url("https://map.madisonbuilders.ca/img/btn-stroke.svg");
  mask-image: url("https://map.madisonbuilders.ca/img/btn-stroke.svg");
  -webkit-mask-size: 100% 100%;
  mask-size: 90% 90%;
  background-color: #dedede;
  font-family: "Helvetica", cursive, sans-serif;
  font-weight: bold;
  letter-spacing: 1px;
  color: black;
  border: none;
  width: 100%;
  cursor: pointer;
}

ul .btn-map:hover {
  background-color: #ffa64d;
}

ul .btn-map span {
  display: inline-block;
  transform: rotate(-7deg);
}

.marker {
  width: 100%;
  padding: 10px 10px;
  margin: 0 !important;
}

.marker:hover {
  background-color: #ddd;
}

.accordion {
  display: block;
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 5px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
}

.am-filter {
  display: none;
  position: absolute;
  width: 180px;
  height: 700px;
  background: #fcfcfc;
  box-shadow: inset 2px 0px 2px 2px rgba(0, 0, 0, 0.03),
    inset 0px 2px 0px 0px rgba(0, 0, 0, 0.03);
  color: #666;
  font-size: 13px;
  top: 80px;
}

@media only screen and (max-width: 768px) {
  .am-filter {
    width: 100%;
  }

  .amenities h2 {
    font-size: 15px;
  }

  .accordion {
    display: inline-block;
  }
}

.reg-filter {
  display: none;
}

.reg-map-title {
  position: absolute;
  top: 220px;
  padding-left: 50px;
  width: 320px;
  color: White;
  font-family: "Avenir Next LT W01 Bold", "Avenir", sans-serif;
}

.reg-map-desc {
  position: absolute;
  top: 400px;
  padding-left: 50px;
  width: 400px;
  color: White;
  font-family: "Avenir Next LT W01 Bold", "Avenir", sans-serif;
}

.reg-map-legend {
  position: absolute;
  top: 520px;
  padding-left: 50px;
  width: 430px;
  color: white;
  font-family: "Avenir Next LT W01 Bold", "Avenir", sans-serif;
}

.reg-map-legend ul {
  list-style-type: none;
}

.active,
.accordion:hover {
  background-color: #5780c1;
  color: white;
}

.panel {
  padding: 0;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.lot_elevation_image {
  width: 100%;
  position: inline-block;
  object-fit: cover;
}

.lot_info {
  padding: 10px;
  width: 60%;
  float: right;
}

.inner_content {
  margin: 5px;
}

.btn-photo-360 {
  display: block;
  color: white;
  background-color: #576757;
  border-style: inset;
  float: right;
  width: 100px;
  height: 32px;
  text-align: center;
  cursor: pointer;
  margin: 10px 0px 10px 10px;
}

.filter-display {
  text-align: right;
}

.btn-photo-360:hover {
  color: black;
  background-color: #c7c7c7;
}

#photo-overlay {
  display: none;
  width: 100%;
  height: 100%;
}

.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.9);
  overflow-x: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: relative;
  width: 100%;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.overlay a:hover,
.overlay a:focus {
  color: #f1f1f1;
}

.overlay .closebtn {
  position: absolute;
  top: 70px;
  right: 30px;
  font-size: 60px;
  z-index: 1001;
}

@media screen and (max-height: 450px) {
  .overlay a {
    font-size: 20px;
  }
  .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}

.vertical-center {
  display: flex;
  justify-content: flex-end;
}
