@import "~antd/es/style/themes/default.less";

.headerItem{
  display: flex;
  align-items: center;
  height: 50px;
  border-right: 1px solid @border-color-base;

  :global{
    .ant-input,
    .ant-select-selection {
      border: 0;

      &:focus{
        box-shadow: none;
      }
    }

    .ant-cascader-picker:focus .ant-cascader-input{
      box-shadow: none;
    }

    .ant-select{
      width: 100%;
    }
  }
}

.header{
  display: flex;
  height: 50px;
  align-items: center;
  border-top: 1px solid @border-color-base;
  border-bottom: 1px solid @border-color-base;

  a{
    margin-left: 10px;
  }
}

.input{
  .headerItem;
  width: 230px;

  :global{

  }
}

.select{
  .headerItem;
  width: 150px;
}

.map{
  position: relative;
  width: 100%;
  height: 100%;
}

.mapContent{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.mapNav{
  position: absolute;
  top: 0;
  left: -300px;
  bottom: 0;
  width: 300px;
  background: #fff;
  border-right: 1px solid @border-color-base;
  overflow: auto;
  z-index: 999;
  transition: all 0.4s;

  &.show{
    left: 0;
  }

  :global{
    .ye-empty{
      position: absolute;
      top: 50%;
      left: 0;
      width: 100%;
      transform: translate3d(0, -50%, 0);
    }
  }
}

.mapNavItem{
  padding: 10px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid @border-color-base;
  cursor: pointer;

  &.selected{
    color: #333;
    background: @primary-1;
  }

  span{
    margin-right: 10px;
    color: #666;
  }

  :global{
    .build,
    .land{
      display: none;

      &.show{
        display: block;
      }
    }
  }

  .tagList{

    :global{
      .ant-tag{
        margin-top: 5px;
      }
    }
  }

  .imageList{
    margin-top: 5px;
    padding: 0;
    display: flex;
  }

  .imageListItem{
    margin-right: 10px;
    width: 33.3333%;
    height: 80px;
    background-size: cover;

    &:last-child{
      margin-right: 0;
    }
  }
}

.mapLoading{
  position: absolute;
  width: 100px;
  height: 100px;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.mapGallery{
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;

  .close{
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
  }

  :global{
    .image-gallery-image {
      width: 100vw;
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;

      img{
        max-width: 80%;
        max-height: 80%;
        width: auto;
        height: auto;
      }
    }

    .image-gallery-slide{
      background: none;
    }
  }
}
