body {
    font-family: 'Noto Sans CJK TC', 'Microsoft JhengHei', sans-serif; /* 選擇更適合中文的字體 */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5; /* 更柔和的淺灰色背景 */
    color: #333; /* 統一文字顏色 */
}

header {
    background-color:#607D8B; /* 藍灰色 */
    color: white;
    padding: 25px 0; /* 增加上下內邊距 */
    text-align: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1); /* 輕微的陰影，提升層次感 */
}
header h1 {
    margin: 0;
    font-size: 2.8rem; /* 稍微放大標題 */
    letter-spacing: 1px; /* 字元間距 */
}
header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 5px;
}

main {
    max-width: 1000px; /* 設定最大寬度，避免內容過寬 */
    margin: 30px auto; /* 居中並增加上下留白 */
    padding: 0 20px; /* 左右內邊距 */
}

/* 下拉選單和篩選器容器 */
.filter-controls {
    margin-bottom: 30px; /* 增加底部間距 */
    padding: 20px; /* 增加內邊距 */
    background-color: #ffffff; /* 白色背景 */
    border: none; /* 移除邊框 */
    border-radius: 12px; /* 更大的圓角 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* 柔和的陰影 */
    display: flex;
    align-items: center;
    gap: 15px; /* 元素之間的間距 */
}
.filter-controls label {
    font-weight: 600; /* 加粗字體 */
    color: #555;
    font-size: 1.1rem;
}
.filter-controls select {
    padding: 10px 15px; /* 增加內邊距 */
    border: 1px solid #ddd;
    border-radius: 8px; /* 圓角 */
    font-size: 1rem;
    cursor: pointer;
    background-color: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* 添加過渡效果 */
    min-width: 150px; /* 確保下拉選單有最小寬度 */
}
.filter-controls select:focus {
    outline: none;
    border-color: #007bff; /* 聚焦時的邊框顏色 */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2); /* 更柔和的陰影 */
}

/* 地圖容器樣式 */
#map {
    height: 550px; /* 設定地圖的高度 */
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px; /* 統一圓角 */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); /* 稍強但柔和的陰影 */
    overflow: hidden; /* 確保內容不會超出圓角 */
}

/* 排球館列表標題 */
h2 {
    margin-top: 40px;
    margin-bottom: 25px;
    font-size: 2rem;
    color: #444;
    text-align: center; /* 讓標題居中 */
}

/* 排球館卡片樣式 */
.venue-card {
    background-color: #ffffff;
    border-radius: 12px; /* 統一圓角 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* 柔和的陰影 */
    margin-bottom: 25px;
    padding: 20px;
    display: flex; /* 使用 Flexbox 讓圖片和資訊並排 */
    gap: 20px; /* 元素間距 */
    align-items: flex-start; /* 頂部對齊 */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* 添加過渡效果 */
}
.venue-card:hover {
    transform: translateY(-5px); /* 鼠標懸停時輕微上浮 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* 懸停時陰影加強 */
}
/* 確保以下這個 .venue-card img 保持原樣，這是列表顯示時的樣式 */
.venue-card img {
    width: 160px; /* 圖片固定寬度 */
    height: 110px; /* 圖片固定高度 */
    object-fit: cover; /* 裁剪圖片以填充容器 */
    border-radius: 10px; /* 圖片圓角 */
    flex-shrink: 0; /* 防止圖片縮小 */
    cursor: pointer; /* 鼠標變成手型，表示可點擊 */
    transition: transform 0.3s ease-in-out; /* 為放大的過渡效果 */
}

/* --- 移除或刪除之前添加的 .venue-card img.expanded 和 body.image-expanded::before 樣式 --- */
/* 以下是新的圖片彈出視窗樣式 */

/* 圖片彈出視窗的整體容器 */
.image-modal {
    display: none; /* 預設隱藏 */
    position: fixed; /* 固定在視窗上 */
    z-index: 1001; /* 確保在最上層 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* 允許滾動（如果圖片太大） */
    background-color: rgba(0,0,0,0.8); /* 半透明黑色背景 */
    backdrop-filter: blur(5px); /* 新增：背景模糊效果，現代瀏覽器支持 */
    -webkit-backdrop-filter: blur(5px); /* 兼容 Safari */
}

/* 彈出視窗內的圖片 */
.modal-image {
    margin: auto; /* 水平居中 */
    display: block; /* 使 margin auto 生效 */
    max-width: 90vw; /* 最大寬度為視窗寬度的90% */
    max-height: 90vh; /* 最大高度為視窗高度的90% */
    position: absolute; /* 相對於父元素定位 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 精確居中 */
    object-fit: contain; /* 確保圖片完整顯示，不裁切 */
    border: 5px solid white; /* 白色邊框 */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6); /* 陰影 */
    border-radius: 5px; /* 圖片邊角圓滑 */
}

/* 關閉按鈕 */
.close-button {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1002; /* 確保關閉按鈕在圖片上方 */
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.venue-info {
    flex-grow: 1; /* 讓資訊區塊佔滿剩餘空間 */
}
.venue-info h2 { /* 注意：這裡的 h2 是卡片內的標題，與外面的 h2 不同 */
    margin-top: 0;
    margin-bottom: 8px;
    color: #007bff; /* 排球館名稱可以使用強調色（藍色） */
    font-size: 1.6rem;
    text-align: left; /* 確保卡片內標題靠左 */
}
.venue-info p {
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: #666;
}
.venue-info a {
    display: inline-block; /* 讓連結像按鈕一樣 */
    background-color: #007bff; /* 連結按鈕的顏色 */
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 15px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.venue-info a:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

/* 底部版權資訊 */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    background-color: #222; /* 更深的底部背景色 */
    color: #ccc; /* 版權資訊的淺灰色文字 */
    font-size: 0.9rem;
}

/* Footer 聯絡資訊樣式 */
footer .contact-info {
    margin-top: 20px; /* 與上方版權資訊的間距 */
}

footer .contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    color: white; /* 聯絡我們文字顏色改為白色 */
}

footer .contact-info ul {
    list-style: none; /* 移除列表項目符號 */
    padding: 0;
    margin: 0;
    display: flex; /* 讓列表項目水平排列 */
    justify-content: center; /* 水平居中 */
    gap: 20px; /* 項目間距 */
}

footer .contact-info li {
    margin: 0;
}

footer .contact-info a {
    color: white; /* 連結文字顏色改為白色 */
    text-decoration: none; /* 移除下劃線 */
    display: flex; /* 讓圖示和文字水平對齊 */
    align-items: center; /* 垂直居中 */
    gap: 8px; /* 圖示和文字間距 */
    font-size: 1rem;
    transition: color 0.3s ease; /* 鼠標懸停過渡效果 */
}

footer .contact-info a:hover {
    color: #a4d8ff; /* 鼠標懸停時變淺藍色 */
}

footer .contact-info img {
    width: 24px; /* 圖示大小 */
    height: 24px;
    vertical-align: middle; /* 垂直對齊 */
}