/* 自訂全域與特定動畫樣式 */

body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 雙地圖容器平滑過渡與朝上航向旋轉動畫 */
#map-leaflet {
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: center center;
}

/* 隱藏 Leaflet 的 Attribution 浮水印，保持科技感淨空介面 */
.leaflet-control-attribution {
  display: none !important;
}

/* 移除 Leaflet 地圖預設的白邊與外觀陰影 */
.leaflet-container {
  background: #0d1117 !important;
  outline: none;
}

/* 自訂 Leaflet 標記專屬 wrapper 樣式，防止背景或邊框干擾 */
.leaflet-div-icon {
  background: transparent !important;
  border: none !important;
}

/* 雷達聲納脈衝點效果 (Sonar Pulse) - 用於 Leaflet 自訂 Marker (鮮紅高亮醒目版) */
.pulse-marker {
  position: relative;
  width: 22px;
  height: 22px;
  background-color: #ff3b30;
  border: 3.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 59, 48, 0.9), 0 3px 6px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 聲納波紋擴散 */
.pulse-marker::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.5px solid #ff3b30;
  box-shadow: 0 0 15px rgba(255, 59, 48, 0.7);
  animation: pulse-ring 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  80%, 100% {
    transform: scale(3.8);
    opacity: 0;
  }
}

/* 帶航向的 Leaflet 自訂箭頭標記樣式 */
.arrow-marker-wrapper {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* 旋轉指標箭頭主體 */
.arrow-marker-body {
  width: 44px;
  height: 44px;
  transition: transform 0.3s ease-out; /* 航向改變時平滑旋轉 */
}

/* 羅盤指針與進度條平滑動畫 */
#compass-needle {
  transition: transform 0.3s ease-out;
}

#timer-progress {
  transition: width 0.1s linear;
}
