@import "./reset";

@mixin maskColor($color, $px) {
  width: $px;
  text-align: center;
  background-color: $color;
  color: white;
  padding: 5px 10px;
  border-radius: 16px;
}
@mixin dfsb {
  display: flex;
  justify-content: space-between;

}
@mixin maskNum {
  @include dfsb;
  margin: 10px 0;
  font-weight: 700;
}
@mixin select {
  width: 180px;
  padding: 5px 10px;
  border-radius: 16px;
  border: none;
  font-size: 15px;
}
.mapWrap {
  width: 100%;
  height: 100vh;
  display: flex;
  overflow: hidden;
  font-family: "Microsoft JhengHei";
  p {
    margin: 5px 0 0 0;
  }
  .mapSide {
    width: 420px;
    .sideNav {
      background-color: #73c0d8;
      color: white;
      padding: 10px;
      .sideTime {
        @include dfsb;
        .navLeft {
          font-size: 30px;
        }
        .navRigrt {
          text-align: right;
          font-size: 12px;
          p {
            margin-top: 6px;
          }
          .sideId {
            color: yellow;
            font-weight: bold;
            font-size: 15px;
          }
        }
      }

      .select {
        @include dfsb;
        margin-top: 10px;
        .selectCity {
          @include select;
        }
        .selectTown {
          @include select;
        }
      }
      .search {
        @include select;
        margin-top: 10px;
        width: 360px;
      }
    }
    .sideCard {
      overflow-y: auto;
      height: 592px;
      background-color: white;
      font-size: 15px;
      color: #666666;
      .cardTop {
        @include dfsb;
        a {
          width: 24px;
          height: 24px;
          cursor: pointer;
          color: #73c0d8;
          &:hover {
            color: #ffa573;
          }
        }
      }
      h1 {
        color: #333333;
        font-size: 21px;
        font-weight: bold;
        margin: 5px 0;
      }
      li {
        padding: 10px 20px;
        border-bottom: 1px solid #d9d9d9;
        .maskNum {
          @include maskNum;
          .maskNone {
            @include maskColor(#3333, 140px);
          }
          .maskAdult {
            @include maskColor(#73c0d8, 140px);
          }
          .maskChild {
            @include maskColor(#ffa573, 140px);
          }
        }
      }
    }
  }

  #map {
    transition: all 0.5s;
    width: 75%;
    .leaflet-popup-content {
      font-family: "Microsoft JhengHei";
      width: 260px;
      .maskNum {
        @include maskNum;
        .maskNone {
          @include maskColor(#3333, 100px);
        }
        .maskAdult {
          @include maskColor(#73c0d8, 100px);
        }
        .maskChild {
          @include maskColor(#ffa573, 100px);
        }
      }
    }
  }
}
.marker-cluster-small {
  background-color: rgba(181, 226, 140, 0.6);
  transform: all 1.5s;
}
.marker-cluster-small div {
  background-color: rgba(110, 204, 57, 0.6);
}

.marker-cluster-medium {
  background-color: rgba(241, 211, 87, 0.6);
}
.marker-cluster-medium div {
  background-color: rgba(240, 194, 12, 0.6);
}

.marker-cluster-large {
  background-color: rgba(253, 156, 115, 0.6);
}
.marker-cluster-large div {
  background-color: rgba(241, 128, 23, 0.6);
}

.marker-cluster {
  background-clip: padding-box;
  border-radius: 20px;
}
.marker-cluster div {
  width: 30px;
  height: 30px;
  margin-left: 5px;
  margin-top: 5px;
  text-align: center;
  border-radius: 15px;
  // font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
}
.marker-cluster span {
  line-height: 30px;
}
