* {
  box-sizing: border-box;
}
html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
}
body {
  font-family: Inter, system-ui, sans-serif;
  background: url("bg.jpg") center/cover no-repeat;
  color: #eee;
  overflow: hidden;
}
.viewer {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
}
.brand {
  position: absolute;
  z-index: 20;
  left: 14px;
  top: 24px;
  display: flex;
  gap: 11px;
  align-items: center;
  color: #8ec5ff;
  letter-spacing: 0.02em;
}
.brand-logo {
  width: 50px;
  height: 50px;
  border: 2px solid #78b6ef;
  display: grid;
  place-items: center;
}
.brand-logo span {
  font-size: 35px;
  line-height: 1;
  transform: rotate(45deg);
}
.brand {
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.brand:hover {
  transform: scale(1.03);
  opacity: 0.9;
}
.brand b,
.brand strong {
  display: block;
  font-size: 21px;
  line-height: 1.05;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
}
.brand strong {
  font-weight: 600;
}
.north {
  position: absolute;
  z-index: 20;
  left: 15px;
  top: 96px;
  width: 51px;
  height: 51px;
  border: 1px solid #444;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #eee;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 0 0 1px #1b1b1b inset;
}
.north i {
  position: absolute;
  width: 2px;
  height: 25px;
  background: #eee;
  top: 4px;
  transform: rotate(20deg);
}
.top-right-logo {
  position: absolute;
  z-index: 20;
  right: 24px;
  top: 38px;
  width: 53px;
  height: 53px;
  background: #292929;
  display: grid;
  place-items: center;
  color: #86cf45;
  font-size: 31px;
}
.scene {
  position: absolute;
  inset: 0;
  display: none;
}
.scene.active {
  display: block;
}
#scene2d,
#scene3d {
  touch-action: none;
  cursor: grab;
}
.map-world {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 650px;
  height: 650px;
  transform-origin: center center;
  transition: transform 0.12s;
}
.map-board {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #7fa55f;
  clip-path: polygon(8% 10%, 97% 4%, 97% 93%, 12% 98%);
  box-shadow: 0 0 0 1px #111;
  background-image:
    radial-gradient(#8eb46f 10%, transparent 11%),
    radial-gradient(#8eb46f 10%, transparent 11%);
  background-size: 20px 20px;
  background-position:
    0 0,
    10px 10px;
}
.road {
  position: absolute;
  background: #656667;
  color: #ddd;
  font-size: 14px;
  text-align: center;
  display: grid;
  place-items: center;
  border: 2px dashed #999;
  box-sizing: border-box;
}
.road.top {
  left: 8%;
  top: 4%;
  width: 89%;
  height: 10%;
}
.road.bottom {
  left: 12%;
  bottom: 2%;
  width: 85%;
  height: 10%;
}
.road.v1 {
  left: 23%;
  top: 13%;
  width: 10%;
  height: 75%;
  writing-mode: vertical-rl;
}
.road.v2 {
  left: 47%;
  top: 13%;
  width: 9%;
  height: 75%;
  writing-mode: vertical-rl;
}
.road.v3 {
  left: 72%;
  top: 12%;
  width: 9%;
  height: 79%;
  writing-mode: vertical-rl;
}
.road.mid {
  left: 33%;
  top: 70%;
  width: 39%;
  height: 9%;
}
.green {
  position: absolute;
  background: #718c35;
  border: 2px solid #496127;
  color: #e6f0ce;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}
.park {
  left: 5%;
  top: 10%;
  width: 13%;
  height: 72%;
}
.kids {
  left: 6%;
  top: 77%;
  width: 20%;
  height: 17%;
}
.common {
  left: 29%;
  top: 76%;
  width: 28%;
  height: 16%;
  background: #696969;
  color: #eee;
  border-color: #333;
}
.entry {
  position: absolute;
  font-size: 8px;
  color: #bbb;
}
.entry.top {
  right: 4%;
  top: 4%;
}
.entry.bottom {
  right: 38%;
  bottom: 5%;
}
.plot {
  position: absolute;
  background: #e0e0e0;
  border: 1px solid #252525;
  color: #1c1c1c;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s;
}
.plot.zone-1 {
  background: #bfa6d9;
}
.plot.zone-2 {
  background: #e8a7c2;
}
.plot.zone-3 {
  background: #f0dc99;
}
.plot.zone-4 {
  background: #9ac9de;
}
.plot.zone-5 {
  background: #a6d4b2;
}
.plot:hover,
.plot.selected {
  background: #7dbb5b;
  color: white;
  box-shadow: 0 0 0 2px #fff;
  z-index: 5;
}
.plot.sold {
  background: #8e8e8e;
  color: #eee;
}
.plot.reserved {
  background: #d0a64a;
}
.plot.blocked {
  background: #9c5750;
  color: #fff;
}
.plot .num {
  pointer-events: none;
}
.right-ui {
  position: absolute;
  z-index: 20;
  right: 8px;
  bottom: 8px;
  width: min(430px, 30vw);
  min-width: 340px;
}
.toggle-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.pill,
.action,
.round,
.zoom-ui button {
  border: 1px solid #494949;
  background: #303030;
  color: #ddd;
  box-shadow: 0 3px 15px #0005;
  cursor: pointer;
}
.pill {
  height: 58px;
  border-radius: 30px;
  padding: 0 17px;
  min-width: 155px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}
.switch {
  width: 48px;
  height: 28px;
  border-radius: 30px;
  background: #555;
  position: relative;
}
.switch:after {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f6f6f6;
  position: absolute;
  left: 3px;
  top: 3px;
}
.pill.on .switch {
  background: #6c9e47;
}
.pill.on .switch:after {
  left: 23px;
}
.search {
  height: 57px;
  border-radius: 30px;
  background: #303030;
  border: 1px solid #494949;
  display: flex;
  align-items: center;
  padding: 0 17px;
  box-shadow: 0 3px 15px #0005;
}
.search span {
  font-size: 28px;
  color: #bbb;
}
.search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #eee;
  font-size: 16px;
  padding-left: 10px;
}
.search input::placeholder {
  color: #777;
}
.round-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin: 10px 0;
}
.round {
  width: 57px;
  height: 57px;
  border-radius: 50%;
  font-size: 16px;
}
.round:nth-child(2) {
  font-size: 18px;
}
.round.active {
  background: #eee;
  color: #222;
}
.bottom-row {
  display: flex;
  gap: 10px;
}
.action {
  height: 57px;
  border-radius: 30px;
  flex: 1;
  font-size: 16px;
}
.zoom-ui {
  position: absolute;
  right: 450px;
  bottom: 24px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.zoom-ui button {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 24px;
}
.plot-panel {
  position: absolute;
  z-index: 30;
  right: 24px;
  top: 100px;
  width: 320px;
  background: #2b2b2bf2;
  border: 1px solid #555;
  border-radius: 18px;
  padding: 18px;
  display: none;
  box-shadow: 0 15px 45px #0008;
}
.plot-panel.show {
  display: block;
}
.plot-panel > button,
.modal-close {
  float: right;
  border: 0;
  background: #444;
  color: #eee;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}
.plot-panel small,
.modal small {
  color: #aaa;
  letter-spacing: 0.12em;
  font-size: 10px;
}
.plot-panel h2 {
  margin: 8px 0 3px;
}
.panel-status {
  font-size: 11px;
  color: #9ad46d;
  font-weight: 700;
}
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 15px 0;
}
.panel-grid div {
  background: #383838;
  border-radius: 10px;
  padding: 10px;
}
.panel-grid span {
  display: block;
  color: #999;
  font-size: 10px;
}
.panel-grid b {
  font-size: 12px;
}
.enquire {
  width: 100%;
  height: 43px;
  border: 0;
  border-radius: 11px;
  background: #8abf54;
  color: #13200d;
  font-weight: 700;
  cursor: pointer;
}
.modal {
  position: absolute;
  inset: 0;
  background: #0008;
  z-index: 50;
  display: none;
  place-items: center;
}
.modal.show {
  display: grid;
}
.modal-card {
  width: min(500px, 90vw);
  background: #292929;
  border: 1px solid #505050;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 20px 60px #000b;
}
.modal-card h2 {
  margin: 8px 0;
}
.modal-card p {
  color: #bbb;
  line-height: 1.6;
}
.modal-stats {
  display: flex;
  gap: 10px;
}
.modal-stats b {
  background: #363636;
  border-radius: 12px;
  padding: 15px;
  flex: 1;
}
.modal-stats span {
  display: block;
  color: #999;
  font-size: 10px;
  margin-top: 4px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gallery-grid div {
  height: 110px;
  border-radius: 12px;
  background: #3b3b3b;
  display: grid;
  place-items: center;
  color: #bbb;
}
.three-hint {
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  z-index: 10;
  background: #222d;
  padding: 8px 13px;
  border-radius: 20px;
  color: #aaa;
  font-size: 11px;
}
@media (max-width: 800px) {
  .brand b,
  .brand strong {
    font-size: 15px;
  }
  .brand-logo {
    width: 42px;
    height: 42px;
  }
  .brand-logo span {
    font-size: 28px;
  }
  .north {
    top: 78px;
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
  .north i {
    height: 18px;
  }
  .right-ui {
    width: calc(100% - 20px);
    min-width: 0;
    right: 10px;
    bottom: 10px;
  }
  .toggle-row {
    justify-content: space-between;
    gap: 6px;
  }
  .pill {
    min-width: 0;
    flex: 1;
    height: 44px;
    font-size: 12px;
    padding: 0 12px;
  }
  .search {
    height: 44px;
  }
  .search input {
    font-size: 14px;
  }
  .round {
    width: 44px;
    height: 44px;
  }
  .action {
    height: 44px;
    font-size: 13px;
  }
  .zoom-ui {
    right: 10px;
    left: auto;
    top: 75px;
    bottom: auto;
    flex-direction: column;
    gap: 8px;
  }
  .zoom-ui button {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .plot-panel {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 230px;
    width: auto;
    padding: 15px;
    max-height: 50vh;
    overflow-y: auto;
  }
  .top-right-logo {
    right: 10px;
    top: 18px;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
  .map-world {
    width: 650px;
    height: 650px;
  }
  .modal-card {
    padding: 15px;
    width: calc(100% - 20px);
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
