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

@line-margin-top: 130px;
@map-gap: 26px;

.mapBox {
  width: 100%;
  height: 100%;
  color: #000;
  // .screen-box;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.layer {
  z-index: 2;
  // width: 1784px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 @map-gap;
  position: relative;
  pointer-events: none;
}

.bgLeftTop {
  width: 313px;
  height: 313px;
  .screen-bg('map_lt');
  position: absolute;
  top: @line-margin-top;
  pointer-events: none;
}

.bgLeftBottom {
  width: 620px;
  height: 132px;
  .screen-bg('map_lb');
  position: absolute;
  bottom: 20px;
  pointer-events: none;
}

.bgRightTop {
  width: 313px;
  height: 313px;
  .screen-bg('map_rt');
  position: absolute;
  top: @line-margin-top;
  right: @map-gap;
  pointer-events: none;
}

.bgRightBottom {
  width: 620px;
  height: 132px;
  .screen-bg('map_rb');
  position: absolute;
  bottom: 20px;
  right: @map-gap;
  pointer-events: none;
}

:global {
  .marker-area {
    width: 110px;
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: #ffffff;
    text-align: center;
    .screen-bg('area');
    background-size: 100% 100%;
    transition: all 0.2s;
    &.active {
      .screen-bg('area_s');
      width: 184px;
      height: 184px;
      font-size: 18px;
      transition: all 0.2s;
    }
    .marker-icon {
      border-top: solid 1px #fff;
      width: 65px;
      &::before {
        content: '';
        display: inline-block;
        width: 18px;
        height: 18px;
        background-repeat: no-repeat;
        background-position: center;
        position: relative;
        top: 2px;
        margin-right: 5px;
      }
      &-vehicle {
        &::before {
          .screen-bg('icon_vehicle')
        }
      }
      &-people {
        &::before {
          .screen-bg('icon_people')
        }
      }
      &-customer {
        &::before {
          .screen-bg('icon_location')
        }
      }
      &:first-child {
        border-top: none;
      }
    }
  }

  .amap-logo {
    display: none !important;
  }
}

:global(.normal-screen) {
  .bgLeftTop, .bgRightTop {
    top: 200px;
  }
}

:global {
  .amap-info {
    .top-left {
      position: absolute;
      top: -550px;
    }
  }
}
