/* 外層容器，垂直排列 */
#container {
    display: flex;
    flex-direction: column; /* 垂直排列 */
    align-items: stretch; /* 填滿容器寬度 */
    width: 100%; /* 滿寬 */
    max-width: 100%; /* 根據瀏覽器自適應 */
    box-sizing: border-box; /* 包括邊框和內距 */
}

/* 圖表容器 */
#chart-container {
    height: 800px; /* 固定高度 */
    background-color: rgba(255, 255, 255, 0.9); /* 背景顏色 */
    border: 1px solid #ccc; /* 邊框 */
    border-radius: 8px; /* 圓角 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* 陰影 */
    padding: 10px; /* 上下左右 10px 內距 */
    box-sizing: border-box; /* 包括邊框與內距 */
    display: flex; /* 使用 Flex 布局 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    width: 100%; /* 滿寬 */
}

/* 確保 Plotly 圖表大小適應容器 */
#chart-container .plotly-graph-div {
    width: 100%; /* 滿寬 */
    height: 100%; /* 滿高 */
}

/* 地圖容器樣式 */
#map-container {
    width: 100%; /* 滿寬 */
    padding: 0; /* 移除內邊距 */
}

#map {
    width: 100%; /* 地圖寬度自適應容器 */
    height: 100%; /* 地圖高度自適應容器 */
}

/* 調整 #space */
#space {
    width: 100%; /* 填滿可用寬度 */
    margin: 20px 0; /* 與其他區域保持間距 */
    padding: 20px; /* 內邊距 */
    background-color: #f9f9f9; /* 背景色 */
    border-top: 1px solid #ccc; /* 分隔線 */
    border-radius: 8px; /* 圓角 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* 陰影 */
    display: flex; /* 使用 Flex 布局 */
    flex-direction: column; /* 垂直排列 */
    align-items: center; /* 水平居中 */
    box-sizing: border-box; /* 包括邊框和內距 */
}

/* 調整 #address-charts-container */
#address-charts-container {
    display: block; /* 確保可見 */
    width: 100%; /* 滿寬 */
    max-width: 1200px; /* 限制最大寬度 */
    margin: 0 auto; /* 居中 */
    text-align: center; /* 居中顯示內容 */
}

/* 全局滾動 */
body {
    margin: 0; /* 移除默認邊距 */
    overflow-y: hidden; /* 啟用垂直滾動條 */
    height: 100%; /* 確保內容充滿視窗 */
}

html {
    height: 100%; /* 確保根元素高度覆蓋整個視窗 */
}

/* 手機設備樣式 */
@media (max-width: 768px) {
    #map {
        height: 300px; /* 手機屏幕高度減小 */
    }
}

/* 平板設備樣式 */
@media (min-width: 769px) and (max-width: 1024px) {
    #map {
        height: 400px; /* 平板高度 */
    }
}

/* 桌面設備樣式 */
@media (min-width: 1025px) {
    #map {
        height: 950px; /* 桌面高度更大 */
    }
}

/* 頂部標頭 */
#header {
    height: 50px;
    background-color: #333;
    color: white;
    width: 100%;
    display: flex; /* 使用 Flex */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
}

/* 下拉框樣式 */
#mosquito-box {
    font-size: 14px;
    border-radius: 4px;
}




