div.map-search {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  transition: opacity 0.5s ease-out, left 0.3s,max-height 0.3s ease-out,max-width 0.3s ease-out;
  max-height: 10rem;
  min-width: calc(100vw - 1rem);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  z-index:3;
}

.input-group {
  flex-wrap:nowrap;
}

.disabled {
  color:adjust(#000000,80%);
}

:host ::ng-deep ngb-typeahead-window.dropdown-menu {
  width: 20rem;
  left:-2.5rem !important;
}

:host ::ng-deep button.dropdown-item {
  overflow:hidden;
  text-overflow:ellipsis;
  padding: 0.375rem 0.75rem;
}

div.map-search input[type=text] {
  transition: width 0.3s ease-out;
}

div.map-search button {
  transition: width 0.3s ease-out;
}

div.map-search.collapsed {
  max-height:3.5rem;
  max-width:10rem;
  min-width: 0;
}

div.map-search.searchcollapsed {
  max-height: 3.5rem;
  max-width: 6rem;
  min-width: unset;
}

div.map-search div.options {
  padding-top: 0.5rem;
  line-height: 1.5rem;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  max-height:4.5rem;
}

div.map-search div.shortcuts {
  padding-top: 0.5rem;
  line-height: 1.5rem;
  overflow: hidden;
  max-height: 50vh;
  transition: max-height 0.3s ease-in-out;
}

div.map-search.collapsed div.options, div.map-search.searchcollapsed div.options {
  max-height: 0;
  padding:0;
}

div.map-search.collapsed div.shortcuts, div.map-search.searchcollapsed div.shortcuts {
  max-height: 0;
  padding:0;
}

div.map-search button {
  overflow: hidden;
}

div.map-search.collapsed input[type=text] {
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

div.map-search.searchcollapsed input[type=text] {
  display: none;
}

div.map-search.collapsed button.clear, div.map-search.collapsed button[type="submit"] {
  width: 0;
  padding: 0;
  border-color:transparent;
}

div.map-search.searchcollapsed button[type="submit"] {
  width: 0;
  padding: 0;
  border-color: transparent;
}

.options label {
  white-space:nowrap;
}

.form-control, .form-control:focus {
  border-color: var(--bs-secondary);
}


@media screen and (min-width:44rem) {
  div.map-search {
    width: 21rem;
    max-width: 21rem;
    min-width:0;
  }
}



