/* map-view */
#map-view
  .mapboxgl-control-container
  .mapboxgl-ctrl-bottom-right
  .mapboxgl-ctrl-group {
  display: flex;
  flex-direction: row-reverse;
  box-shadow: none;
}

#map-view
  .mapboxgl-control-container
  .mapboxgl-ctrl-bottom-right
  .mapboxgl-ctrl-group
  button {
  border-top: 0;
}

#map-view
  .mapboxgl-control-container
  .mapboxgl-ctrl-bottom-right
  .mapboxgl-ctrl-group
  button
  span {
  background-size: 45%;
}

.map-container.initialized .map-view-container {
  transition: height 0.5s ease-in-out;
}

.map-container .map-view-container {
  transition: height 0.01s; /* Need transition event to trigger, but don't want to animate */
  .mapboxgl-ctrl-bottom-right {
    margin-top: 10px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.map-container:not(.open) .map-view-container {
  height: 48px;
  .mapboxgl-ctrl-bottom-right {
    transition: 3.5s ease;
    top: 0 !important;
    bottom: unset !important;
    animation: fadeIn 3.5s;
  }
}

.map-container.open .map-view-container {
  height: 80vh;
}

.map-container #icon {
  transform: rotate(180deg);
}

.map-container.open #icon {
  transform: rotate(0deg);
}

#map-view .mapboxgl-canvas {
  height: 100%;
}

#map-view .mapboxgl-popup-close-button {
  /*
  width: 26px;
  height: 26px;
  background: #444;
  border-radius: 100%;
  color: #fff;
  top: -8px;
  right: -8px;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid rgba(0, 0, 0, 20%);
  */
  display: none;
}

#map-view .mapboxgl-popup {
  max-width: 317px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.09);
  backdrop-filter: blur(5.099999904632568px);
  border-radius: 5px;
}

#map-view .mapboxgl-popup .mapboxgl-popup-tip {
  display: none;
}

#map-view .mapboxgl-popup .mapboxgl-popup-content {
  background: none;
  padding: 0;
  width: 317px;
}

#map-view .mapboxgl-popup:has(map-popup[type="route"]) {
  transform: none !important;
  left: auto;
  right: 1rem;
  top: 1rem;
}

#map-view .mapboxgl-popup .maximized,
#map-view .mapboxgl-popup:has(map-popup[type="route"]) .minimized,
#map-view .mapboxgl-popup:has(map-popup[type="route"]) .mapboxgl-popup-tip {
  display: none !important;
}

#map-view .mapboxgl-popup:has(map-popup[type="route"]) .maximized {
  display: flex !important;
}

.route-marker .arrow:after {
  content: "";
  position: absolute;
  height: 0;
  width: 0;
  left: 100%;
  top: 0;
  border: 8px solid transparent;
  border-left: 8px solid #000;
}
