.autocomplete_wrapper {
  position: relative;
  display: inline-block;
}

#departure_l, #arrival_l {
    position: absolute;
    z-index: 9;
    background: #fff;
    border-radius: 1rem;
}

.autocomplete::placeholder {
  color: #6c757d;
  transition: all 0.3s ease;
}

.autocomplete:hover::placeholder {
  color: #6c757d;
  transition: all 0.3s ease;
  -webkit-transition: all -webkit-transform 0.3s ease;
}

.autocomplete:focus::placeholder {
  font-size: 1rem;
  color: #6c757d;
  transition: all 0.3s ease;
  -webkit-transition: all -webkit-transform 0.3s ease;
}

.autocomplete::selection {
  color: transparent;
}

.autocomplete:focus::selection {
  color: #fff;
  background-color: rgba(34, 83, 120, 1);
}

.autocomplete:hover {
  color: rgba(34, 83, 120, 1);
  background-size: 1.7rem;
  background-position: left 1.05rem top 0.7rem;
  transition: all 0.3s ease;
  -webkit-transition: all -webkit-transform 0.3s ease;
}

.autocomplete:focus {
  color: rgba(34, 83, 120, 1);
  border: 1px solid #225378 !important;
  background-size: 1.5rem;
  background-position: left 1.05rem top 0.8rem;
  box-shadow: rgba(34, 83, 120, 0.1) 0px 0px 20px 5px;
}

.autocomplete_list {
  position: fixed;
  z-index: 1000;
  padding: 0;
  left: 0;
  right: 0;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.1s ease-in-out;
  -webkit-transition: all -webkit-transform 0.1s ease;
}

.autoComplete_result, .no_result {
  margin: 0.15rem auto;
  padding: 0.6rem;
  border: 0.05rem solid #e3e3e3;
  list-style: none;
  text-align: left;
  font-size: 1.1rem;
  color: rgb(123, 123, 123);
  transition: all 0.1s ease-in-out;
  background-color: #fff;
}

.autoComplete_result::selection {
  color: rgba(#ffffff, 0);
  background-color: rgba(#ffffff, 0);
  font-size: 1.1rem;
}

.autoComplete_result:last-child {
  border-radius: 0 0 1rem 1rem;
}

.autoComplete_result:hover {
  cursor: pointer;
  background-color: rgba(34, 83, 120, 0.1);
  border-left: 2px solid rgba(34, 83, 120, 1);
  border-right: 2px solid rgba(34, 83, 120, 1);
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  font-size: 1.1rem;
}

.autoComplete_result:focus {
  outline: none;
  background-color: rgba(34, 83, 120, 0.1);
  border-left: 2px solid rgba(34, 83, 120, 1);
  border-right: 2px solid rgba(34, 83, 120, 1);
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  font-size: 1.1rem;
}

.autoComplete_highlighted {
  opacity: 1;
  color: rgba(34, 83, 120, 1);
  font-weight: bold;
  font-size: 1.1rem;
}

.autoComplete_highlighted::selection {
  color: rgba(#ffffff, 0);
  background-color: rgba(#ffffff, 0);
  font-size: 1.1rem;
}

.autoComplete_selected {
  cursor: pointer;
  background-color: rgba(34, 83, 120, 0.1);
  border-left: 2px solid rgba(34, 83, 120, 1);
  border-right: 2px solid rgba(34, 83, 120, 1);
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  font-size: 1.1rem;
}

@media only screen and (max-width: 600px) {
  .autocomplete:focus {
    background-size: 1.6rem;
    background-position: left 1.1rem top 0.75rem;
  }

  .autoComplete_result:first-child {
    border-radius: 1rem 1rem 0 0;
  }

  .autoComplete_result:last-child {
    border-radius: 0 0 1rem 1rem;
  }

  .autoComplete_result:only-child {
    border-radius: 1rem;
  }
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .autocomplete {
    border: 1px solid grey !important;
  }

  .autocomplete:hover {
    border-width: 1px;
  }

  .autocomplete:focus {
    border-width: 1px;
  }
}

@-moz-document url-prefix() {
  .autocomplete {
    border-width: 1px;
    background-size: 1.2rem;
    background-origin: border-box;
    background-position: center;
  }

  .autocomplete:hover {
    border-width: 1px;
  }

  .autocomplete:focus {
    border-width: 1px;
    background-position: left 1.1rem top 0.8rem;
  }
}
