:root {
  --map-filter-default-color: #0b3e63;
}

.map-filters {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 5;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 40px;
  padding: 20px 15px;
  border: 3px solid #0b3e63;
}

.map-filter {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.map-filter svg {
  width: 42px;
  height: 42px;
  fill: var(--map-filter-default-color);
  opacity: 0.4;
  display: block;
  transition: fill 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

/* hover */
.map-filter:hover svg {
  opacity: 0.9;
}

/* active */
.map-filter.is-active svg {
  opacity: 1;
  fill: var(--map-active-color); /* define globally */
}
  
.map-viewport {
  position: relative;
  overflow: hidden;
}
  
.map-base {
  display: block;
  width: 100%;
  height: auto;
}

.map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
  
.map-overlay--interstates {
  z-index: 2;
  object-fit: contain;
}

.map-overlay svg {
  display: block;
  width: 100%;
  height: 100%;
}

.map-overlay--interstates svg {
  overflow: visible;
}
  
.map-filter:focus-visible svg {
  opacity: 0.7;
  outline: none;
}
  
  .map-list {
  margin: 0;
  padding: 0 !important;
  list-style-position: inside;
}

.map-list li {
  cursor: pointer;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #efefef;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.map-list li.is-active {
  background: #0b3e63;
  color: #fff;
}
  
#map-accordion .et_pb_toggle {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin: 0;
  pointer-events: none;
  transition: max-height 0.3s ease, opacity 0.2s ease;
  position: absolute;
    top: 0;
    left: 0;
    right: 0;
  padding: 0;
}

#map-accordion .et_pb_toggle.is-visible {
  max-height: fit-content;
  opacity: 1;
  pointer-events: auto;
}
  
  .et_pb_accordion .et_pb_toggle>.et_pb_toggle_title:before { display: none !important;}
  
  .et_pb_toggle_title {
    pointer-events: none;
    cursor: text !important;
    padding: 20px !important;
  }
  
  .et_pb_accordion_item > .et_pb_toggle_content {padding-top: 0 !important;}
  
  #map-accordion {
  position: relative;
}
  
  #map-accordion .et_pb_toggle {
  transition: opacity 0.2s ease;
}
  
.map-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, -8px);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  transition: none;
}

.map-tooltip.is-active {
  transition: opacity 0.14s ease, transform 0.14s ease;
  opacity: 1;
  transform: translate(-50%, -14px);
}
  
  /*map pin styles*/
.map-pin {
  position: absolute;
  width: 34px;
  aspect-ratio: 355 / 590;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translate(-50%, -100%);
}

.map-pin__svg {
  display: block;
  width: 100%;
  height: 100%;
}

  .map-pin__ring {
    fill: #000;
  }
.map-pin__tail {
  fill: #0b3e63;
}

.map-pin__num {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: #000;
  pointer-events: none;
}
  
  .map-pin__inner {
  fill: #fff;
}
  
  .map-pins {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.map-pin {
  position: absolute;
  pointer-events: auto;
  transform: translate(-50%, -100%);
  opacity: 1;
  z-index: 1;
}

.map-pin.is-entering {
  opacity: 0;
  animation: map-pin-drop-in 0.42s ease-in-out forwards;
}

.map-pin.is-exiting {
  animation: map-pin-fade-out 0.09s linear forwards;
}

@keyframes map-pin-drop-in {
  0% {
    opacity: 0;
    transform: translate(-50%, -100%) translateY(-84px);
  }
  35% {
    opacity: 1;
    transform: translate(-50%, -100%) translateY(-84px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -100%) translateY(0);
  }
}

@keyframes map-pin-fade-out {
  0% {
    opacity: 1;
    transform: translate(-50%, -100%);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -100%);
  }
}
  
.map-pin.is-active {
  filter: drop-shadow(0 0 6px rgba(11, 62, 99, 0.9))
          drop-shadow(0 0 10px rgba(11, 62, 99, 0.6));
  z-index: 10;
}

.map-overlay-stack {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-overlay-stack--zoomed-out {
  z-index: 2;
}

.map-overlay-piece {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.map-overlay-piece--madison,
.map-overlay-piece--greenbay,
.map-overlay-piece--chicago {
  z-index: 1;
}

.map-overlay-piece--all {
  z-index: 2;
  object-fit: contain;
}

.map-overlay-piece svg,
.map-route-group,
.map-route-line,
.map-route-ring,
.map-route-dot {
  pointer-events: none;
}

.map-overlay-piece svg {
  display: block;
  width: 100%;
  height: 100%;
}

.map-route-group {
  transition: filter 0.2s ease, opacity 0.2s ease;
}

/*.et_pb_group_carousel.map-city-active-madison .map-overlay-piece--madison,
.et_pb_group_carousel.map-city-active-chicago .map-overlay-piece--chicago,
.et_pb_group_carousel.map-city-active-green-bay .map-overlay-piece--greenbay {
  z-index: 3;
}*/
/*
.et_pb_group_carousel.map-city-active-madison .map-overlay-piece--madison .map-route-group {
  filter: drop-shadow(0 0 10px rgba(11, 62, 99, 1))
          drop-shadow(0 0 18px rgba(11, 62, 99, 0.75));
}

.et_pb_group_carousel.map-city-active-chicago .map-overlay-piece--chicago .map-route-group {
  filter: drop-shadow(0 0 10px rgba(11, 62, 99, 1))
          drop-shadow(0 0 18px rgba(11, 62, 99, 0.75));
}

.et_pb_group_carousel.map-city-active-green-bay .map-overlay-piece--greenbay .map-route-group {
  filter: drop-shadow(0 0 10px rgba(11, 62, 99, 1))
          drop-shadow(0 0 18px rgba(11, 62, 99, 0.75));
}*/

.et_pb_group_carousel.map-city-active-other .map-overlay-stack--zoomed-out::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 62, 99, 0.1);
  z-index: 4;
  pointer-events: none;
}

.et_pb_group_carousel.map-city-active-madison .map-tooltip,
.et_pb_group_carousel.map-city-active-chicago .map-tooltip,
.et_pb_group_carousel.map-city-active-green-bay .map-tooltip,
.et_pb_group_carousel.map-city-active-other .map-tooltip {
  z-index: 99999;
}
  
.et_pb_group_carousel.map-city-active-madison .map-tooltip,
.et_pb_group_carousel.map-city-active-chicago .map-tooltip,
.et_pb_group_carousel.map-city-active-green-bay .map-tooltip,
.et_pb_group_carousel.map-city-active-other .map-tooltip {
  transform: translate(-50%, -50%);
}

.et_pb_group_carousel.map-city-active-madison .map-tooltip.is-active,
.et_pb_group_carousel.map-city-active-chicago .map-tooltip.is-active,
.et_pb_group_carousel.map-city-active-green-bay .map-tooltip.is-active,
.et_pb_group_carousel.map-city-active-other .map-tooltip.is-active {
  transform: translate(-50%, -50%);
}

@media (max-width: 980px) {
  .map-filters {padding: 10px 6px;}
    
  #map-container > #map-instructions {
    margin-bottom: 20px;
  }

  #map-accordion {
    margin-top: 20px;
  }
  
  .map-row {
    display: flex;
    flex-direction: column;
  }

  #map-container {
    order: 1;
    width: 100%;
  }

  #map-instructions {
    order: 0;
    width: 100%;
    margin-bottom: 20px;
  }

  #map-accordion .et_pb_toggle {
      position: relative !important;
  }
  
  .map-pins.has-mobile-active-pin .map-pin {
    opacity: 0.4!important;
    transition: opacity 0.18s ease, filter 0.18s ease;
  }

  .map-pins.has-mobile-active-pin .map-pin.is-active {
    opacity: 1 !important;
  }
  
  .map-viewport {overflow-y: visible !important;}
}

@media (hover: none) and (pointer: coarse) {
  .map-list li:hover {
    background: transparent !important;
    color: inherit !important;
  }
  
  
}

.map-radius-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-radius-hit {
  pointer-events: fill;
  cursor: pointer;
}

.map-radius-hit.is-active {
  opacity: 0.15;
}

.map-route-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-route-path {
  pointer-events: none;
  transition: filter 0.16s ease, opacity 0.16s ease;
}

.map-route-hit {
  pointer-events: none;
}

.map-route-hit path,
.map-route-hit line,
.map-route-hit polyline {
  fill: none;
  stroke: transparent !important;
  stroke-width: 12px !important;
  pointer-events: stroke;
}

.routes-enabled .map-route-hit path,
.routes-enabled .map-route-hit line,
.routes-enabled .map-route-hit polyline {
  cursor: pointer;
}


.map-city-active-green-bay .map-overlay-piece--greenbay .map-route-group, 
.map-city-active-chicago .map-overlay-piece--chicago .map-route-group, 
.map-city-active-madison .map-overlay-piece--madison .map-route-group,
.map-route-overlay.is-active .map-route-path {
  filter: drop-shadow(0 0 6px rgba(11, 62, 99, 1));
}


.map-city-active-green-bay .map-overlay-piece--greenbay path, 
.map-city-active-chicago .map-overlay-piece--chicago path, 
.map-city-active-madison .map-overlay-piece--madison path,
.map-route-overlay.is-active .map-route-path path,
.map-route-overlay.is-active .map-route-path line,
.map-route-overlay.is-active .map-route-path polyline {
  stroke: #0b3e63 !important;
  stroke-width: 4px !important;
  opacity: 1 !important;
}
   .map-route-overlay .st0 { fill: none; stroke: #123d62; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 2.4px;
      }