.box-body {    
    width: 100%;
}
.video-box {
    display: flex;
    justify-content: center;
}
.video {
    position: relative;
    width: 60%;
    /* margin-top: 4%; */
}

.map-box {
    display: flex;
    justify-content: center;
    position: relative;
    height: 100vh;
}

/* 新瀏覽器用 dvh（會扣掉工具列） */
@supports (height: 100dvh) {
    .map-box {
        height: 100dvh;
    }
}

.map {
    width: 60%;
    height: 100%;
}

/* 手機版改成全寬 */
@media (max-width: 768px) {
    .map {
        width: 100%;
    }
}

.video-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    z-index: 1;
    display: none;
}

.video-img-2 {
    position: absolute;
    width: 100%;
    bottom: 0px;
    z-index: 1;
    display: none;
}

.vjs-control-bar {
    z-index: 9;
}

.vjs-error-display {
    display: none;
}

iframe {
    width: 100%;
    height: 100%;
    border-style: none;
}

/* .my-video-2-dimensions {
    display: none;
} */

@media screen and (max-width: 600px) { 
    .video {
        width: 100%;
        /* margin-top: 4%; */
    }
    .map {
        width: 100%;
    }
}

@media (-webkit-video-playable-inline) {
    .video-img {
        display: block;
    }
}

/* 讓 body 不產生額外滾動 */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

#map {
    height: 100%;
    width: 100%;
}

.gps-marker {
    background: #4285f4;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    position: relative;
  }

.gps-marker::after {
    content: "";
    position: absolute;
    top: -6px;
    left: -6px;
    width: 28px;
    height: 28px;
    background: rgba(66, 133, 244, 0.4);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
      transform: scale(0.8);
      opacity: 1;
    }
    100% {
      transform: scale(1.8);
      opacity: 0;
    }
}

#map-button-bar {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    z-index: 9999;
    scrollbar-width: none; /* Firefox */
}

#map-button-bar::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.map-btn {
    flex: 0 0 auto;
    margin: 0 6px;
    padding: 8px 16px;
    border: none;
    background-color: #0d6efd;
    color: white;
    border-radius: 999px; /* ✅ 圓 pill style */
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.map-btn:hover {
    background-color: #0b5ed7;
    transform: scale(1.05);
}

.map-btn:active {
    background-color: #084298;
    transform: scale(0.95);
}

/* ✅ 特別為「繡旗隊位置」做設計 */
.centerFab {
    position: absolute;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.3);
    color: #000;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;             /* 圖示大小 */
    cursor: pointer;
    z-index: 9999;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.centerFab:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    transform: translateX(-50%) scale(1.1);
    background-color: #ffc107;
}

.centerFab:active {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%) scale(0.95);
}

#videoModal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#modalContent {
    position: relative;
    width: 90%;
    max-width: 600px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: transparent;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.theme-mazu-classic{
    --bg: #0F1E3D;
    --panel: rgba(248,241,229,.92);
    --text: #0F1E3D;
  
    --primary: #C00000;
    --primary-2: #7A0000;
    --accent: #D4AF37;
  
    --btn-text: #fff;
    --btn-border: rgba(212,175,55,.85);
  
    --route: #D4AF37;
    --me-dot: #4285F4;
}

.theme-flag-hot{
    --bg: #1B1B1B;
    --panel: rgba(27,27,27,.85);
    --text: #fff;
  
    --primary: #D40000;
    --primary-2: #A80000;
    --accent: #F4C430;
  
    --btn-text: #fff;
    --btn-border: rgba(244,196,48,.9);
  
    --route: #FFD700;
    --me-dot: #4285F4;
}

.theme-night-lantern{
    --bg: #0B132B;
    --panel: rgba(11,19,43,.75);
    --text: #fff;
  
    --primary: #C1121F;
    --primary-2: #7A0C12;
    --accent: #F2C14E;
  
    --btn-text: #fff;
    --btn-border: rgba(242,193,78,.9);
  
    --route: #F2C14E;
    --me-dot: #5FA8FF;
}

.map-btn:active{
    transform: translateY(1px);
}