@import '../../style/themes/index.less';
@map-selector-prefix-cls: ~'@{ant-prefix}-map-selector';
@map-selector-overlay-width: 360px;

.@{map-selector-prefix-cls} {
  position: relative;
  width: 100%;
  height: 100%;

  &-overlay {
    position: absolute;
    padding-top: @padding-md;
    padding-left: @margin-md;
    top: 0;
    left: 0;
    height: 100%;
    width: @map-selector-overlay-width;
  }

  &-search-box {
    position: relative;
    z-index: 1;
    width: 100%;
  }

  &-place-item {
    transition: background-color 0.3s;
    cursor: pointer;
    padding: @padding-xs @padding-sm;
    border-bottom: 1px solid #d9d9d9;
    display: flex;
    flex-direction: column;
    // align-items: center;
    justify-content: center;

    &-title {
      font-size: @font-size-base;
      color: @text-color;
    }

    &-address {
      color: @text-color-secondary;
      font-size: @font-size-base - 2;
    }

    &:hover {
      background-color: @primary-1;
    }

    &.active {
      background-color: @primary-1;
      color: @primary-color;

      .@{map-selector-prefix-cls}-place-item-title {
        font-weight: @wii-font-weight-bold;
        color: @primary-color;
      }

      .@{map-selector-prefix-cls}-place-item-address {
        font-size: @font-size-base - 2;
        color: @primary-color;
      }
    }
  }

  &-content-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 70%;
    overflow-y: auto;
    font-size: @font-size-base;
    background-color: #fff;
    box-shadow: 0 0 5px #ddd;
  }

  &-search-no-data {
    color: @text-color-secondary;
    text-align: center;
    padding: @padding-sm;
  }

  &-search-all-data {
    margin-top: @margin-md;
    color: @text-color-secondary;
    text-align: center;
  }

  &-load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: @font-size-base;
    padding: @padding-xs;
  }
}
