/* ===== Defaults ===== */
:root{
  --mobile-px: 480px;
  --tablet-px: 1024px;
}

/* ===== Map Section ===== */
section#Map{
  /* --spacer-orange: #{scale-rem(xd-rem(55), xd-rem(132))}; */
  /* margin-top: clamp(3.4375rem, 6vw, 8.25rem); */
  /* margin-bottom: clamp(3.4375rem, 6vw, 8.25rem); */
}

/* ===== Google Map ===== */
#GoogleMap{
  width: 100%;
  aspect-ratio: 16 / 6;
  max-height: 80vh;
}

@media (max-width: 480px){
  #GoogleMap{
    min-height: 30vh;
  }
}

/* ===== Content ===== */
section#Map .content .headline{
  text-transform: uppercase;
}

section#Map .filters{
  margin-top: clamp(0, 3vw, 3.625rem);
  justify-content: space-between;
  flex-wrap: nowrap;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

section#Map .filters .filter{
  display: flex;
  flex-basis: 20%;
  align-items: center;
  cursor: pointer;
}

section#Map .filters .filter img{
  width: clamp(2.5rem, 5vw, 4rem);
  min-width: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
}

section#Map .filters .filter .link{
  /* font-size: clamp(0.875rem, 1.5vw, 1.3125rem); */
  text-transform: uppercase;
  /* font-weight: 300; */
}

section#Map .map{
  /* --spacer-yellow again */
  margin-top: clamp(1.875rem, 3vw, 3.625rem);
}

/* ===== Google Map inner (tablet) ===== */
@media (max-width: 1024px){
  section#Map #GoogleMap{
    min-height: 60vh;
  }
}

/* ===== InfoBox theming ===== */
section#Map #GoogleMap{
  --infobox-Park-foreground: var(--color-white);
  --infobox-Park-background: var(--color-map-Park);
  --infobox-Entertainment-foreground: var(--color-white);
  --infobox-Entertainment-background: var(--color-map-Entertainment);
  --infobox-Food-foreground: var(--color-white);
  --infobox-Food-background: var(--color-map-Food);
  --infobox-Landmark-foreground: var(--color-white);
  --infobox-Landmark-background: var(--color-map-Landmark);
  --infobox-Shop-foreground: var(--color-white);
  --infobox-Shop-background: var(--color-map-Shop);

  --infobox-foreground-color: var(--infobox-Park-foreground);
  --infobox-background-color: var(--infobox-Park-background);
}

/* ===== Google Map Info Window ===== */
section#Map #GoogleMap .gm-style-iw{
  overflow: visible;
  padding: 0 !important;
  background-color: var(--infobox-background-color) !important;
}

section#Map #GoogleMap .gm-style-iw .gm-style-iw-d{
  background-color: var(--infobox-background-color) !important;
  overflow: auto !important;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
section#Map #GoogleMap .gm-style-iw .gm-style-iw-d::-webkit-scrollbar{
  display: none;
}
section#Map #GoogleMap .gm-style-iw .gm-style-iw-d::-webkit-scrollbar-track{
  background-color: var(--infobox-background-color);
}

section#Map #GoogleMap .gm-style-iw .gm-style-iw-d .infobox{
  padding: 0 1.5rem 1.5rem;
}

section#Map #GoogleMap .gm-style-iw .gm-style-iw-d .infobox .image{
  aspect-ratio: 16 / 9;
  background-position: center;
  background-size: cover;
  margin-bottom: 20px;
}

section#Map #GoogleMap .gm-style-iw .gm-style-iw-d .infobox .headline{
  font-family: var(--font-headline);
  color: var(--infobox-foreground-color);
  line-height: 1.1;
  font-size: 1.35rem;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

section#Map #GoogleMap .gm-style-iw .gm-style-iw-d .infobox .body{
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--infobox-foreground-color);
  line-height: 1.36;
  font-size: 1.1875rem;
}
section#Map #GoogleMap .gm-style-iw .gm-style-iw-d .infobox .body p:last-child {
  margin-bottom: 0;
}

section#Map #GoogleMap .gm-style-iw .gm-style-iw-d .infobox .actions{
  margin-top: 0.35rem;
}

section#Map #GoogleMap .gm-style-iw .gm-style-iw-d .infobox .actions a{
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--infobox-foreground-color);
  line-height: 1.36;
  font-size: 1rem;
}

section#Map #GoogleMap .gm-style-iw-t .gm-style-iw-tc::after{
  background-color: var(--infobox-background-color) !important;
}

section#Map #GoogleMap .gm-style-iw-t button.gm-ui-hover-effect{
  left: -15px;
  right: unset !important;
  top: -15px !important;
  background-color: var(--infobox-background-color) !important;
  opacity: 1;
  border-radius: 50% !important;
  z-index: 5;
}
section#Map #GoogleMap .gm-style-iw-t button.gm-ui-hover-effect span{
  background-color: var(--infobox-foreground-color) !important;
}
