@import "variables";

.epaka-map {
  .kartografSearch {
    position: absolute;
    z-index: 2147483647;
    top: 0;
    left: 0;

    @media (max-width: $beforeBreakPointMd) {
      width: 100%;
    }
    @media (min-width: $breakPointMd) {
      width: 24.375rem;
    }

    padding-top: 1.25rem;
    padding-left: 2rem;
    padding-right: 2rem;
    display: flex;
    flex-flow: row;
    background-color: transparent;
    transition: background-color 200ms ease-in-out;

    .mapSearchInputWrapper {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      align-items: center;
    }

    @media (max-width: $breakPointMd) {
      .mapSearchInputIcon {
        position: absolute;
        right: 2.6rem;

        &.icon-iks {
          font-size: 0.7rem;
          top: 2.5rem;
        }

        &.icon-search2 {
          font-size: 1rem;
          top: 2.4rem;
        }
      }
    }

    @media (min-width: $breakPointMd) {
      .mapSearchInputIcon {
        position: absolute;
        right: 2.6rem;

        &.icon-iks {
          font-size: 0.7rem;
          top: 2.2rem;
        }

        &.icon-search2 {
          font-size: 1rem;
          top: 2rem;
        }
      }
    }

    .mapSearchInput {
      font-size: 1rem;
      border-radius: 10px;
      border: 1px solid var(--epaka-color-black);
      line-height: 2.5rem;
      padding-left: 1rem;
      padding-right: 1rem;

      &:focus {
        outline: 1px solid var(--epaka-color-black);
      }
    }

    .autocompleteMapList {
      height: 28rem;
      padding: 0.5rem;
    }

    .h-100 {
      height: 100%;
    }

    .pointsList {
      height: 100%;
      overflow-y: scroll;
      overflow-x: hidden;

      &::-webkit-scrollbar {
        width: 5px;
        border-radius: 10px;
      }

      &::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
      }

      &::-webkit-scrollbar-thumb {
        background: #a1a1a1;
        border-radius: 10px;
      }

      &::-webkit-scrollbar-thumb:hover {
        background: #727272;
        border-radius: 10px;
      }
    }
  }
}