/* 全域字體與版面設定 */
html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f8f9fa;
  color: #202124;
  margin: 0;
  padding: 0;
  height: 100%;
}

/* 地圖容器：純離線時也會顯示淡灰網格背景 */
#map {
  width: 100%;
  height: 340px;
  background-color: #e8eef5;
  background-image:
    linear-gradient(to right, rgba(60, 64, 67, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(60, 64, 67, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 1;
}

/* 電腦寬螢幕時地圖撐滿左側高度 */
@media (min-width: 768px) {
  #map {
    height: 100%;
    min-height: 480px;
  }
}

/* 時間軸卡片左側的垂直藍色連接線 */
.timeline-line {
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #4285f4;
  border-radius: 2px;
}

/* Leaflet 地圖彈窗圓角 */
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* 隱藏捲軸但保留捲動功能 */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
