body {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px;
}

.map-container {
  position: relative;
  width: 100vw;
  max-width: 800px;
  margin: 0 auto;
}

/* 地圖圖片100%寬度 */
.map-container img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* marker 圓點與字體皆會隨圖片等比例縮放，預設較小 */
.map-point {
  position: absolute;
  width: 2.5vw;
  height: 2.5vw;
  min-width: 12px;
  min-height: 12px;
  max-width: 22px;
  max-height: 22px;
  background-color: rgba(255, 0, 0, 0.85);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 0.8vw;
  min-font-size: 6px;
  max-font-size: 14px;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.55);
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: auto;
}
.map-point:hover {
  transform: translate(-50%, -50%) scale(1.2);
  background-color: rgba(200, 0, 0, 1);
}
.map-point::after {
  content: "▶ 播放語音導覽";
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #c00;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 1vw;
  white-space: nowrap;
  z-index: 1200;
  display: none;
}
.map-point:hover::after {
  display: block;
}

/* MP3音樂播放器 區域 */
#audio-player-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 340px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  padding: 15px;
  z-index: 1000;
  transition: opacity 0.3s, transform 0.3s;
}
#audio-player-container.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.player-header h3 {
  margin: 0;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#close-player {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}
.timeline-container {
  margin-bottom: 5px;
}
#timeline {
  width: 100%;
  cursor: pointer;
}
.time-display {
  font-size: 12px;
  color: #666;
  text-align: right;
  margin-bottom: 10px;
}
.controls {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 10px;
}
.controls button {
  padding: 8px 12px;
  border-radius: 5px;
  border: 1px solid #ddd;
  background-color: #f0f0f0;
  cursor: pointer;
  font-size: 16px;
}
.controls button:hover {
  background-color: #e0e0e0;
}
.speed-control-container {
  display: flex;
  justify-content: center;
}
#speed-control {
  padding: 8px 12px;
  border-radius: 5px;
  border: 1px solid #ddd;
  background-color: #f0f0f0;
  cursor: pointer;
  font-size: 15px;
}
