@import url("https://api.mapbox.com/mapbox-gl-js/v2.9.1/mapbox-gl.css");

/* Variables */
:root {
  --map-height: 100vh;
  --map-side-nav-top: 0px;                                                  --map-side-nav-list-height: initial;
}

div.footer {
  /* Hiding the footer with only CSS here since the actual dom is still needed for it to load the dependencies that are
  loaded in the footer */
  display: none;
}

#map {
  /* height: 100% !important;  */
  height: var(--map-height) !important;
  margin: 0;
  padding: 0;
}

@media (min-width: 992px) and (max-width: 1740px) {
  .hero {
    height: 119.7656px !important; /* fixes weird hero hack height they made, allow for extra spacing when the brochure button wraps to a second row */
  }
}

@media (min-width: 767px) and (max-width: 991px) {
  .hero {
    height: 191.77px !important; /* fixes weird hero hack height they made, allow for extra spacing when the brochure button wraps to a second row */
  }
}

.map-side-nav {
  position: absolute;
  width: 100%;
  height: var(--map-height);
  overflow: hidden;
  z-index: 9998;
  top: var(--map-side-nav-top); /* offsets header at the top */
}

@media (min-width: 767px) {
  .map-side-nav {
    max-width: 370px;
  }
}

.map-side-nav.list-hidden {
  width: auto !important;
  max-width: initial !important;
  height: 100px !important; /* same px height as side nav list header, needed for the map to be interactive in the area where the list was/is */
}

.map-side-nav__menu-header {
  background-color: #60758D !important;
  background-image: none !important;
  width: 100%;
  height: 100px !important;
  padding: 0 !important;
  border-bottom: none !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.map-side-nav--img-wrapper {
  padding: 0 30px;
  border-right: 1px solid #fff;
  height: 100% !important;
  display: flex !important;
  align-items: center;
  background-image: none !important;
  position: static !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.map-side-nav__menu-header .map-side-nav--img-wrapper img {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: 70px;
  min-width: 60px;
  max-width: 60px;
}

.map-side-nav__header-title-section {
  transition: opacity 0.1s ease-in-out;
  opacity: 1;
  padding: 0px 20px !important;
  text-transform: uppercase !important;
  display: flex !important;
  justify-content: center !important;
  color: #fff !important;
  width: 100% !important;
  text-align: center !important;
  font-size: 14px;
  background: none !important;
  background-image: none !important;
  letter-spacing: normal !important;
}

@media (min-width: 400px) {
  .map-side-nav__header-title-section {
    font-size: 19px;
  }
}

.map-side-nav__header-title-section.opacity-0 {
  opacity: 0;
}

.map-side-nav__header-title-section.hide {
  display: none !important;
}

.map-side-nav__menu-header .map-side-nav--img-wrapper img {
  height: 70px;
  min-width: 60px;
  max-width: 60px;
}

a.map-side-nav__drawer-btn {
  display: block;
  height: 100%;
  display: flex;
  padding-right: 10px;
  padding-left: 10px;
  transition: background 0.1s ease-in-out;
}

body a.map-side-nav__drawer-btn {
  padding-right: 10px;
  padding-left: 10px;
}

a.map-side-nav__drawer-btn svg {
  transition: transform 0.2s ease-in-out;
}

a.map-side-nav__drawer-btn > svg.arrow-rotate {
  transform: rotate(-90deg);
}

a.map-side-nav__drawer-btn:hover {
  background: #fff;
}

a.map-side-nav__drawer-btn:hover svg {
  fill: #0095a9;
}

a.map-side-nav__drawer-btn > svg {
  object-fit: contain;
  box-sizing: content-box;
  width: 15px !important;
  height: auto !important;
  transform: rotate(90deg) !important;
  position: static !important;
  fill: #fff !important;
}

a.map-side-nav__drawer-btn > svg.arrow-rotate {
  transform: rotate(-90deg) !important;
  position: static !important;
}

@media (min-width: 767px) {
  ul.map-side-nav__menu-list {
    padding-left: 35px;
    padding-right: 25px;
  }
}

ul.map-side-nav__menu-list {
  list-style-type: none;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 8px;
  padding-bottom: 0;
  height: var(--map-side-nav-list-height);
  overflow-x: hidden;
  overflow-y: scroll;
  background-color: #fff;
  opacity: 1;
  transition: opacity 0.1s ease-in-out;
}

ul.map-side-nav__menu-list.opacity-0 {
  opacity: 0 !important;
}

ul.map-side-nav__menu-list.hide {
  display: none !important;
}

@media (min-width: 767px) {
  ul.map-side-nav__menu-list li {
    font-size: 16px !important;
  }
}

ul.map-side-nav__menu-list li {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  flex-direction: column;
}

ul.map-side-nav__menu-list > li {
  padding: 18px 0;
}

@media (min-width: 767px) {
  ul.map-side-nav__menu-list li > ul.map-side-nav__sub-menu-list {
    width: calc(100% + 35px) !important;
  }
}

@media (max-width: 767px) {
  ul.map-side-nav__menu-list li > ul.map-side-nav__sub-menu-list a {
    padding-right: 20px;
  }
}

ul.map-side-nav__menu-list li > ul.map-side-nav__sub-menu-list {
  display: none;
  background: #0095a9;
  width: calc(100% + 60px);
  margin-left: -35px;
  margin-bottom: -19px;
  margin-top: 18px;
  color: #fff;
  padding-left: 95px;
}

ul.map-side-nav__menu-list li > ul.map-side-nav__sub-menu-list.active {
  display: block;
}

@media (min-width: 767px) {
  ul.map-side-nav__menu-list
    li
    > ul.map-side-nav__sub-menu-list
    .view-all-category-group-li {
    display: none;
  }
}

ul.map-side-nav__menu-list
  li
  > ul.map-side-nav__sub-menu-list
  .view-all-category-group-li {
  position: relative;
  background: #067e8e;
  z-index: 1;
  margin-bottom: 25px;
  padding-top: 25px;
  padding-bottom: 25px;
}

ul.map-side-nav__menu-list
  li
  > ul.map-side-nav__sub-menu-list
  .view-all-category-group-li
  .bg-filler {
  position: absolute;
  background: #067e8e;
  z-index: -1;
  height: 100%;
  width: 1000%;
  top: 0;
  left: -50%;
}

ul.map-side-nav__menu-list
  li
  > ul.map-side-nav__sub-menu-list
  .view-all-category-group-li
  a
  + .bg-filler {
  right: -50%;
}

ul.map-side-nav__menu-list
  li
  > ul.map-side-nav__sub-menu-list
  .view-all-category-group-li
  a {
  color: #f0c331;
}

ul.map-side-nav__menu-list li > ul > li {
  max-width: 250px;
  text-align: left;
  border: none !important;
}

ul.map-side-nav__menu-list li > ul > li > a {
  color: #fff;
  line-height: 1.3;
}

@media (min-width: 767px) {
  ul.map-side-nav__menu-list li > ul > li:nth-of-type(2) {
    padding-top: 4px;
  }
}

ul.map-side-nav__menu-list li > ul > li:last-of-type {
  padding-bottom: 28px;
}

ul.map-side-nav__menu-list li > ul > li:not(:last-of-type) {
  padding-bottom: 10px;
}

ul.map-side-nav__menu-list > li:not(:last-of-type) {
  border-bottom: 1px solid #0095a9;
}

ul.map-side-nav__menu-list > li:last-of-type {
  margin-bottom: 140px;
}

ul.map-side-nav__menu-list li a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #4c4c4c;
}

ul.map-side-nav__menu-list li a img.icon {
  padding-right: 20px;
  width: 60px;
}

/* Sidenav scrollbar style */
.map-side-nav__menu-list::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
  background-color: #e8eaeb;
}

.map-side-nav__menu-list::-webkit-scrollbar {
  width: 6px;
  background-color: #f5f5f5;
}

.map-side-nav__menu-list::-webkit-scrollbar-thumb {
  background-color: #c5c5c5;
}

/* Info Windows styles for google maps */
.map-marker {
  top: -30px;
  width: 30px;
  height: 30px;
}

.map-marker::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 26px;
  height: 12px;
  background-color: #fff;
  transform: translateX(-50%);
  clip-path: polygon(0% 0%, 50% 100%, 100% 0%);
}

.map-marker .map-marker-container {
  position: absolute;
  left: 50%;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  outline: 5px solid #fff;
  border-radius: 100px;
  cursor: pointer;
  z-index: 1;
  transform: translateX(-50%);
  white-space: nowrap;
}

.map-marker .map-marker-icon {
  width: 30px;
}

.map-marker .map-marker-tooltip {
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  max-width: 0;
  padding: 0;
  overflow: hidden;
  transition: max-width, padding 0.2s ease-in-out;
}

.map-marker.active {
  z-index: 1;
}

.map-marker:hover {
  z-index: 2;
}

.map-marker.active .map-marker-container,
.map-marker:hover .map-marker-container {
  width: auto;
}

.map-marker.active .map-marker-tooltip,
.map-marker:hover .map-marker-tooltip {
  max-width: 100vw;
  padding: 0 10px;
}

.map-side-nav__menu-list .js-map-item--desktop {
  display: none;
}

@media (min-width: 767px) {
  .map-side-nav__menu-list .js-map-item--desktop {
    display: block;
  }

  .map-side-nav__menu-list .js-map-item--mobile {
    display: none;
  }
}

#map-side-info {
  display: none;
  position: absolute;
  width: 100%;
  height: var(--map-height);
  overflow: hidden;
  z-index: 9999;
  top: var(--map-side-nav-top);
  right: 0;
  background: #fff;
  padding: 15px 35px;
  color: #595959;
  overflow: auto;
  max-width: 100%;
}

@media (min-width: 767px) {
  #map-side-info {
    max-width: 360px;
  }
}

#map-side-info .info-content .info-header {
  margin-bottom: 30px;
}

#map-side-info .info-content .info-header h2.map-title {
  line-height: 1.25;
  font-size: 18px;
  font-family: "Montserrat", sans-serif;
  text-align: left;
  color: #595959;
  margin-bottom: 10px;
}

#map-side-info .info-content .info-header h3.map-category {
  line-height: 1.25;
  font-size: 15px;
  font-family: "Montserrat", sans-serif;
  text-align: left;
  color: #595959;
}

#map-side-info .close-info {
  position: relative;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  height: 30px;
  width: 30px;
  margin-left: auto;
}

#map-side-info .close-info::after {
  content: "\00d7";
  display: flex;
  justify-content: center;
  align-items: center;
}

#map-side-info .info-content {
  font-size: 14px;
}

#map-side-info .info-content p {
  line-height: 1.75;
}

#map-side-info .info-content a.map-website-link {
  display: block;
  margin: 30px 0;
  color: #0095a9;
  text-decoration: underline;
  font-size: 12px;
  transition: 0.3s all;
  text-transform: uppercase;
}

#map-side-info .info-content a.map-website-link:hover {
  text-decoration: none;
}

#map-side-info .info-content .map-images {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.fancybox-button--zoom,
.fancybox-button--play,
.fancybox-button--thumbs {
  display: none;
}
