body {
  margin: 0;
  padding: 0;
}

.mapboxgl-ctrl-bottom-left {
  display: none;
}

.mapboxgl-ctrl-bottom-right {
  right: 450px;
  bottom: 55px;
  transition: 0.3s;
}

.mapboxgl-ctrl-bottom-right.active {
  right: 35px;
  bottom: 55px;
  transition: 0.3s;
}

.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl-scale {
  background-color: transparent;
  font-size: 13px;
  font-weight: 900;
}

.mapboxgl-ctrl-group.mapboxgl-ctrl {
  display: none;
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  z-index: 1;
  height: 100vh;
}

.w-auto {
  width: auto !important;
}

#TWmap {
  height: calc(100%);
}

.z-index-2 {
  z-index: 2;
}

.mapui__left {
  max-width: 100%;
}
.mapui__left.active {
  width: auto;
}

canvas.mapboxgl-canvas {
  opacity: 1;
}

.map-controls {
  display: none;
}

.rightTop {
  position: fixed;
  right: 50px;
  top: 10px;
  z-index: 999;
}

.leftTop {
  position: fixed;
  left: 15px;
  top: 10px;
  z-index: 999;
  display: flex;
  flex-direction: column;
}

.rightBottom {
  position: fixed;
  right: 15px;
  bottom: 10px;
  z-index: 999;
  display: flex;
  flex-direction: column;
}

.layerPanel {
  min-width: 175px;
  padding-top: 5px;
  padding-left: 20px;

  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: rgb(0 0 0 / 16%) 0px 6px 12px 0px;
}

.layerPanel > div {
  padding-right: 20px;
  padding-bottom: 5px;
  max-height: 280px;
  overflow-y: scroll;
}

.layerPanel p {
  margin-top: 5px;
  margin-bottom: 5px;
}

.layerPanel ul {
  min-width: 275px;
  margin-top: 5px;
  margin-bottom: 5px;
  list-style-type: none;
  padding-left: 0;
}

.layerPanel ul li {
  padding: 6.5px 10px;
  margin-bottom: 5px;
  border-radius: 3px;
  background-color: white;
  color: rgb(41, 50, 60);
  box-shadow: rgb(0 0 0 / 16%) 0px 6px 12px 0px;
  letter-spacing: 0.3px;
  cursor: move;
  width: calc(100% - 15px);
  border-color: transparent;
}

.layerPanel ul li .remove-layer-btn {
  position: absolute;
  right: 0px;
  color: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.1rem 0.5rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
}

/*.grid {
  position: relative;
  height: auto;
}
 .item {
  display: block;
  position: absolute;
  z-index: 1;
  background: #000;
  color: #fff;
}
.item.muuri-item-dragging {
  z-index: 3;
}
.item.muuri-item-releasing {
  z-index: 2;
}
.item.muuri-item-hidden {
  z-index: 0;
}
.item-content {
  position: relative;
  width: 100%;
  height: 100%;
} */

.viewStatePanel {
  min-width: 175px;
  padding: 5px 20px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: rgb(0 0 0 / 16%) 0px 6px 12px 0px;
  margin-bottom: 20px;
}

.viewStatePanel p {
  margin-top: 5px;
  margin-bottom: 5px;
}

.cityBuilding {
  min-width: 175px;
  padding: 5px 20px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: rgb(0 0 0 / 16%) 0px 6px 12px 0px;
}

::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 7px;
}

::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

.cityBuilding p {
  margin-top: 5px;
  margin-bottom: 5px;
}

.cityBuildingList {
  margin: 0;
  padding-left: 0;
  height: 195px;
  overflow: scroll;
}

.cityBuildingList li {
  list-style: none;
}

.calculation-box {
  display: none;
  margin-bottom: 15px;
  min-width: 175px;
  padding: 5px 20px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: rgb(0 0 0 / 16%) 0px 6px 12px 0px;
}
#calculated-area p {
  margin-top: 5px;
  margin-bottom: 5px;
}

.building-box {
  display: none;
  margin-bottom: 15px;
  min-width: 175px;
  padding: 5px 20px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: rgb(0 0 0 / 16%) 0px 6px 12px 0px;
}

#building-info p {
  margin-top: 5px;
  margin-bottom: 5px;
}

.mapStyleSelectGroup p {
  margin: 0;
}

.mapStyle {
  margin-bottom: 15px;
}
.mapStyle select {
  padding: 6.5px 10px;
  border-radius: 3px;
  background-color: white;
  color: rgb(41, 50, 60);
  box-shadow: rgb(0 0 0 / 16%) 0px 6px 12px 0px;
  letter-spacing: 0.3px;
  cursor: pointer;
  text-align: center;
  border-color: transparent;
}

.btns {
  float: left;
  margin-left: 10px;
}

.btn {
  margin-bottom: 5px;
  padding: 5px 10px;
  border-radius: 3px;
  background-color: white;
  color: rgb(41, 50, 60);
  box-shadow: rgb(0 0 0 / 16%) 0px 6px 12px 0px;
  letter-spacing: 0.3px;
  cursor: pointer;
  text-align: center;
}

.btn-remove-marker {
  background-color: rgba(191, 26, 32, 0.8);
  color: #fff;
  padding: 2px 5px;
  border: none;
}

.mapboxgl-popup {
  max-width: 200px;
}

.mapboxgl-popup-content {
  text-align: center;
  padding: 10px 10px;
}

.mapui-list > li.active {
  min-height: auto;
}

.draw_layer_input {
  width: 103px;
  margin-right: 7px;
  padding: 2px 5px;
  font-size: 1em;
  height: auto;
}

div[class^="mapui__"] .cards .cards__card.active {
  border-color: #fd9c27;
  background-color: white;
  box-shadow: 0 0 0px 1px rgb(99 61 15 / 10%);
}

#menu-layer {
  overflow-y: auto;
}

.mapui #menu-layer .mapui-list {
  height: auto;
}

#opacity {
  width: 47px;
}

.mapui .map-btn .button.toggle.active {
  width: 100% !important;
  max-width: calc(100% - 30px);
}

#menu-analysis .cards__card__title .title-line-1 {
  margin-bottom: 6px;
}

.info-box .search {
  margin-top: 0.4rem !important;
}

#address-search-layer {
  height: 39px !important;
  background-color: rgba(28, 46, 99, 0.1);
  color: #1c2e63;
}

#landmark-search-layer {
  height: 39px !important;
  background-color: rgba(28, 46, 99, 0.1);
  color: #1c2e63;
}

#addresslandmark {
  margin-bottom: 5px !important;
}

[v-cloak] {
  display: none;
}

@media only screen and (max-width: 767px) {
  .mapui__right {
    height: 100%;
  }
}

@media screen and (max-width: 460px) {
  div[class^="mapui__"] .cards .cards__card {
    padding: 0.6rem;
  }
  #menu-analysis .cards__card__title .title-line-1 {
    margin-bottom: 3px;
  }

  .-morulus-customsb > div:last-child > div {
    padding-right: 10;
  }

  .draw_layer_input {
    width: 55px;
  }

  .cards__card[type="analysis"] .cards__card__title > .d-flex,
  .cards__card[type="picker"] .cards__card__title > .d-flex {
    height: auto;
    min-height: 35px;
  }
}

#menu-search {
  overflow-y: auto;
  padding-bottom: 25px;
}

.genReportBtn.disabled {
  cursor: wait;
  opacity: 0.6;
}

#countdown_timer {
  font-size: 14px;
  margin-left: 2px;
  display: none;
}
#externalLayerUrlBox {
  position: relative;
}
#externalLayerUrlBox.loading input {
  padding-right: 45px;
}
#externalLayerLoading {
  display: none;
  position: absolute;
  right: 14px;
  top: 0;
}
#externalLayerUrlBox.loading #externalLayerLoading {
  display: block;
}
.lds-dual-ring {
  display: inline-block;
  width: 30px;
  height: 30px;
}
.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 26px;
  height: 26px;
  margin: 8px;
  border-radius: 50%;
  border: 3px solid #ccc;
  border-color: #ccc transparent #ccc transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Style the marker div as a circle with a background image */
.marker {
  width: 64px;
  height: 64px;
  background-image: url("data:image/svg+xml,%3Csvg%20fill%3D%22%231C2E63%22%20width%3D%2264px%22%20height%3D%2264px%22%20viewBox%3D%22-2.4%20-2.4%2028.80%2028.80%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20stroke%3D%22%231C2E63%22%20stroke-width%3D%220.00024000000000003%22%3E%3Cg%20id%3D%22SVGRepo_bgCarrier%22%20stroke-width%3D%220%22%3E%3C%2Fg%3E%3Cg%20id%3D%22SVGRepo_tracerCarrier%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke%3D%22%23fff%22%20stroke-width%3D%220.384%22%3E%3C%2Fg%3E%3Cg%20id%3D%22SVGRepo_iconCarrier%22%3E%3Cpath%20d%3D%22m8.075%2023.52c-6.811-9.878-8.075-10.891-8.075-14.52%200-4.971%204.029-9%209-9s9%204.029%209%209c0%203.629-1.264%204.64-8.075%2014.516-.206.294-.543.484-.925.484s-.719-.19-.922-.48l-.002-.004zm.925-10.77c2.07%200%203.749-1.679%203.749-3.75s-1.679-3.75-3.75-3.75-3.75%201.679-3.75%203.75c0%202.071%201.679%203.75%203.75%203.75z%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%; /* 保持圓形 */
  cursor: pointer;
  transition-property: width, height;
  transition-duration: 0.1s;
  transition-timing-function: linear;
  /* Define Marker Animation */
  animation: pop-in 1s ease-out forwards, wobble 5s ease-in-out 1s forwards;
  transform-origin: bottom center;
}

.marker::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-61%);
  width: 42px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  filter: blur(3px);
  opacity: 0.5;
}

/* Keyframe animation for pop-in */
@keyframes pop-in {
  0% {
    width: 0px;
    height: 0px;
    opacity: 0;
    box-shadow: none;
  }
  70% {
    width: 55px;
    height: 55px;
    opacity: 1;
  }
  85% {
    width: 48px;
    height: 48px;
  }
  100% {
    width: 50px;
    height: 50px;
  }
}

/* Keyframe animation for slow wobble after pop-in */
@keyframes wobble {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(5deg);
  }
  20% {
    transform: rotate(-5deg);
  }
  30% {
    transform: rotate(4deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(2.5deg);
  }
  60% {
    transform: rotate(-2deg);
  }
  70% {
    transform: rotate(2.5deg);
  }
  80% {
    transform: rotate(1deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
