@import '../../vars.less';
@import '../../mixins.less';

@font-size: 20px;

.map-filter {
  pointer-events: all;
  // margin-top: 160px;
  margin-top: 20px;
  position: relative;
  display: flex;
  padding-left: 30px;
}
.map-filter-area {
  margin-left: 20px;
}

.map-feat {
  display: flex;
  flex-wrap: wrap;
  width: 400px;
  position: absolute;
  right: 20px;
  .map-feat-item {
    width: 33.33%;
    padding: 12px;
    color: #ffffff;
    font-size: @font-size;
    word-break: keep-all;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    .feat {
      width: auto;
      height: 36px;
      margin-bottom: 8px;
      background: no-repeat center center;
      background-size: contain;
      &-aiops {
        .screen-bg('feat_aiops_1');
      }
      &-aipower {
        .screen-bg('feat_aipower_1');
      }
      &-data {
        .screen-bg('feat_data_1');
      }
      &-res {
        .screen-bg('feat_res_1');
      }
      &-safe {
        .screen-bg('feat_safe_1');
      }
      &-wei {
        .screen-bg('feat_wei_1');
      }
    }
    &:hover {
      background: rgba(19, 50, 57, .7);
    }
    &.selected {
      // background: #0B1E22;
      // border: 1px solid #0E9D97;
      .feat {
        &-aiops {
          .screen-bg('feat_aiops');
        }
        &-aipower {
          .screen-bg('feat_aipower');
        }
        &-data {
          .screen-bg('feat_data');
        }
        &-res {
          .screen-bg('feat_res');
        }
        &-safe {
          .screen-bg('feat_safe');
        }
        &-wei {
          .screen-bg('feat_wei');
        }
      }
    }
  }
}

.normal-screen {
  .map-filter {
    // margin-top: @normal-layer-top + @gap * 2;
    margin-top: 60px;
  }
  .map-feat {
    transform: scale(1.5);
    transform-origin: top right;
  }
  .map-filter-left {
    transform: scale(1.5);
    transform-origin: top left;
  }
}
