/*main css*/
*,
*::after,
*::before {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  background-color: #2a3950; 
}
img {
  vertical-align: middle;
}
.screenOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* 同 .main：行動版的 100vh 不含網址列，見 App/MapApp.vue */
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
}
.pageLoader {
  position: fixed;
  top: 50%;
  left: 40%;
  margin-left: 10%;
  transform: translate3d(-50%, -50%, 0);
}
.pageLoader > .dot {
  width: 24px;
  height: 24px;
  background: #0d4aae;
  border-radius: 100%;
  display: inline-block;
  animation: slide 1s infinite;
}
.pageLoader > .dot:nth-child(1) {
  animation-delay: 0.1s;
  background: #0f6bae;
}
.pageLoader > .dot:nth-child(2) {
  animation-delay: 0.2s;
  background: #248bd6;
}
.pageLoader > .dot:nth-child(3) {
  animation-delay: 0.3s;
  background: #83b8ff;
}
.pageLoader > .dot:nth-child(4) {
  animation-delay: 0.4s;
  background: #c6cdff;
}
.pageLoader > .dot:nth-child(5) {
  animation-delay: 0.5s;
  background: #f8daff;
}
@-moz-keyframes slide {
  0% {
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(2);
  }
  100% {
    transform: scale(1);
  }
}
@-webkit-keyframes slide {
  0% {
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(2);
  }
  100% {
    transform: scale(1);
  }
}
@-o-keyframes slide {
  0% {
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(2);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes slide {
  0% {
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(2);
  }
  100% {
    transform: scale(1);
  }
}

/* 點燈彈窗（iframe 載入路燈查詢頁）：內距縮小，寬 360 時電話欄放得下提示字；
   外圍和頁面同一種淺灰，不會多一圈白框（STREETLAMP-POPUP-STYLE-001） */
.modal-body:has(iframe[src*="StreetLamp" i]) {
  padding: 0.5rem;
  background-color: var(--bs-secondary-bg);
}

/* 點燈彈窗的白色內容區浮起：細框線＋陰影。用 box-shadow 畫線，不佔寬度，電話欄仍放得下
   （iframe 有 inline 的 border:none）（STREETLAMP-POPUP-STYLE-002） */
.modal-body:has(iframe[src*="StreetLamp" i]) > .dialog-iframe > div {
  border-radius: 0.375rem;
  box-shadow: 0 0 0 1px rgba(var(--bs-body-color-rgb), 0.2),
    0 0.125rem 0.375rem rgba(var(--bs-body-color-rgb), 0.45);
}
/* iframe 固定 670px 高，又是行內元素多出 6px，超過外層 80vh 上限（Map.vue 的 InfoWidget）就出捲軸；
   改成區塊元素、不超過 80vh。Map.vue 的 maxHeight 改了，這裡要一起改（STREETLAMP-POPUP-STYLE-002） */
.modal-body:has(iframe[src*="StreetLamp" i]) iframe[src*="StreetLamp" i] {
  display: block;
  max-height: 80vh;
}
