*{
  -webkit-user-select: none;
}

body{
  /* position: fixed; */
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

#map{
  /* position: absolute;
  top: 0;
  left: 0; */
  width: 100vw;
  height: 100vh;
}

#statusbarDimmer{
  position: absolute;
  top: 0;
  left: 0;
  /* -webkit-backdrop-filter: blur(12px); */
  display: none;
}

button.Label.Secondary{
  border: none;
  color: #1d82e0;
  padding-left: 8px;
  padding-right: 8px;
  box-shadow: none;
  width: auto;
  background-color: rgba(255,255,255,0.5);
  box-shadow: inset 0px 1px 1px rgba(255,255,255,0.4), 0px 1px 2px rgba(0,0,0,0.08), 0px 2px 8px rgba(0,0,0,0.04);
}

button.Secondary.Hidden{
  display: none;
}

#editButton{
  float: right;
}

input{
  -webkit-user-select: text;
}

button{
  width: 100%;
  height: 32px;
  font-size: 14px;
  background-color: rgba(255,255,255,0.5);
  box-shadow: inset 0px 1px 1px rgba(255,255,255,0.4), 0px 1px 2px rgba(0,0,0,0.08), 0px 2px 8px rgba(0,0,0,0.04);
  border: none;
  border-radius: 6px;
}

button.Destructive{
  color: #de1b45;
}

#clearAll.Hidden{
  display: none;
}

button:active{
  background-color: rgba(255,255,255,0.35);
  color: black;
  box-shadow: inset 0px 1px 1px rgba(255,255,255,0.4), 0px 0.5px 2px rgba(0,0,0,0.2);
}

#bottomSheet{
  position: absolute;
  width: 340px;
  height: auto;
  background-color: rgba(255,255,255,0.7);
  -webkit-backdrop-filter: saturate(200%) blur(20px);
  border-radius: 16px;
  padding: 16px;
  top: 16px;
  left: 16px;
  box-shadow: inset 0px 1px 1px rgba(255,255,255,0.4), 0px 2px 4px rgba(0,0,0,0.1), 0px 6px 28px rgba(0,0,0,0.1);
  transition: transform 0.4s cubic-bezier(0.400, 0.000, 0.200, 1.000);;
}

#searchInput{
  height: 44px;
  display: block;
  -webkit-appearance: none;
  width: 100%;
  border-style: none;
  font-size: 16px;
  border-radius: 6px;
  background-color: rgba(0,0,0,0.05);
  box-shadow: inset 0px 1px 2px rgba(0,0,0,0.02), inset 0px 2px 8px rgba(0,0,0,0.01);
}

#searchInput.Hidden{
  display: none;
}

#routeSummary{
  display: block;
}

.SummaryDataItem{
  display: inline-block;
  float: left;
  width: auto;
  margin-right: 24px;
}

.SummaryDataItem .Value{
  font-size: 20px;
  font-weight: bold;
  color: black;
  display: block;
}

.SummaryDataItem .Unit{
  font-size: 10px;
  font-weight: bold;
  color: rgba(0,0,0,0.4);
  text-transform: uppercase;
}

#waypointsList.Hidden{
  opacity: 0;
}

#waypointsList{
  font-size: 14px;
  padding: 0px;
  margin: 0;
  margin-top: -16px;
  border-radius: 6px;
  overflow: hidden;
  /* border: 1.5px solid rgba(0,0,0,0.2); */
  background-color: rgba(0,0,0,0.05);
  /* box-shadow: 0px 0.5px 2px rgba(0,0,0,0.12), 0px 1px 6px rgba(0,0,0,0.08); */
  box-shadow: 0px 1px 2px rgba(0,0,0,0.08), 0px 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 8px;
  transition: opacity 0.2s ease-in-out;
}

#waypointsList li{
  list-style: none;
  box-sizing: border-box;
  background-color: rgba(255,255,255,0.7);
  height: 36px;
  line-height: 36px;
  padding-left: 36px;
  padding-right: 36px;
  overflow: hidden;
  float: left;
  width: 100%;
  display: inline-block;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  transition: border-radius 0.3s ease-in-out;
}

#waypointsList li:first-child{
  border-radius: 6px 6px 0px 0px;
}

#waypointsList li:last-child{
  border-radius: 0px 0px 6px 6px;
  border-bottom: none;
}

#waypointsList li .Handle{
  position: absolute;
  display: inline-block;
  /* float: right; */
  width: 44px;
  right: 16px;
  height: 36px;
  /* background-color: grey; */
  background-image: url("../img/reorder.svg");
  background-size: 32px 32px;
  background-repeat: no-repeat;
  background-position: center;
}

#waypointsList li .Delete{
  position: absolute;
  box-sizing: border-box;
  display: inline-block;
  width: 36px;
  left: 16px;
  height: 36px;
  border-radius: 50%;
  background-image: url("../img/delete.svg");
  background-size: 32px 32px;
  background-repeat: no-repeat;
  background-position: center;
}

#waypointsList li.sortable-fallback{
  box-shadow: 0px 2px 8px rgba(0,0,0,0.2);
  opacity: 1;
  z-index: 1000;
  border-radius: 6px !important;
  /* transform: scale(1.02); */
}

.mapboxgl-ctrl{
  display: hidden !important;
  visibility: hidden !important ;
}

#waypointsList .ListGhost{
  opacity: 0 !important;
  /* opacity: 1;
  background-color: rgba(0,0,0,0.4); */
}

#waypointsList .sortable-fallback .Delete{
  left: 0px;
}

#waypointsList .sortable-fallback .Handle{
  right: 0px;
}

#graphWrapper{
  width: 100%;
}

.mapboxgl-marker{
  background-color: transparent;
  width: 64px;
  height: 64px;
  background-image: url(../img/pin.svg);
  background-size: 66% 66%;
  background-repeat: no-repeat;
  background-position: 11px 22px;
  transition: backgroud-position 0.2s ease-in-out;
}

.mapboxgl-marker:active{
  background-color: rgba(29, 130, 224, 0.3);
  border-radius: 50%;
}

.mapboxgl-marker.Dragged{
  background-position: 11px 22px;
  background-color: rgba(29, 130, 224, 0);
  background-image: url(../img/pin_hover.svg);
}

.mapboxgl-marker svg{
  display: none;
}


@media screen and (max-width: 640px) {
  body{
    height: 100%;
  }
  #statusbarDimmer{
    width: 100vw;
    height: env(safe-area-inset-top); /* env(safe-area-inset-top) */
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
    display: block;
    /* -webkit-backdrop-filter: blur(12px); */
  }
  #bottomSheet{
    width: calc(100vw - 48px);
    margin-left: 8px;
    height: 480px;
    background-color: rgba(255,255,255,1);
    border-radius: 16px;
    top: auto;
    bottom: -40px;
    left: 0px;
    transform: translateY(400px);
    box-shadow: inset 0px 1px 1px rgba(255,255,255,0.4), 0px 2px 4px rgba(0,0,0,0.1), 0px 6px 28px rgba(0,0,0,0.1);
  }
  #bottomSheet.Expanded{
    transform: translateY(0px);
  }
  button{
    font-size: 16px;
    height: 44px;
  }
  #waypointsList{
    font-size: 16px;
  }
  #waypointsList li{
    height: 48px;
    line-height: 48px;
  }
  #waypointsList li .Handle{
    width: 56px;
    height: 44px;
  }
  #waypointsList li .Delete{
    margin-top: 6px;
    width: 36px;
    height: 36px;
  }
}
