/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    /* clamp(最小值, 響應式比例, 最大值) */
    font-size: clamp(14px, 0.5vw + 12px, 18px);
}
body {
    font-size: 1rem; 
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--primary-dark); 
    background-color: var(--primary-light); 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Color Palette: Black/Dark Gray + Vibrant Yellow */
:root {
    --primary-dark: #000000;
    --primary-light: #f4f4f4;
    --accent-yellow: #ffffff;
    --accent-silver: #C0C0C0;
    --accent-red: #FF0000;
}

/* Header Styles */
header {
    background-color: var(--primary-dark);
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-right: 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    transition: all 0.3s;
}

nav ul li a:hover {
    color: var(--accent-yellow);
}

nav ul li a.active {
    color: var(--accent-yellow);
    border-bottom: 2px solid var(--accent-yellow);
}

/* Main Content Area */
main {
    flex: 1;
    padding: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('首頁照片.jpg') no-repeat center center/cover;
    height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 0.5rem;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: var(--accent-yellow);
    color: var(--primary-dark);
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-red);
    color: white;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}
.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Content Section */
.content-section {
    padding: 2rem;
    max-width: 1700px;
    margin: auto;
}

.content-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    position: relative;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: var(--accent-yellow);
    margin: 0.5rem auto;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--accent-yellow);
}

.card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* Mock Map Section */
.mock-map {
    background: #e0f2fe;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #7dd3fc;
    margin-bottom: 2.5rem;
    border-radius: 8px;
    color: #0369a1;
    font-weight: bold;
}

/* Introduction and Result Section */
.intro-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Contact Form & Select Inputs */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* Footer Styles */
footer {
    background-color: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: white;
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-yellow);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Map Container */
.map-image-container {
    position: relative;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    background-color: #e5e7eb;
}

.map-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* RWD: Mobile vertical layout */
@media (max-width: 992px) {
    .map-explore-container {
        flex-direction: column;
    }
    .spots-sidebar {
        max-height: none;
    }
}

/* Header Upgrade: Glassmorphism Effect */
header {
    background-color: rgba(34, 34, 34, 0.8) !important;
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Main Two-Column Layout */
.map-dashboard-container {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 2rem;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Map Wrapper */
.interactive-map-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.map-title-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    z-index: 10;
}

.responsive-map-img {
    width: 100%;
    height: auto;
    display: block;
}

/* RWD: Switch to single column for mobile */
@media (max-width: 900px) {
    .map-dashboard-container {
        grid-template-columns: 1fr;
    }
}

/* Header Glassmorphism Effect */
header {
    background-color: rgba(34, 34, 34, 0.85) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Map Dashboard Container */
.map-dashboard-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    margin-top: 1rem;
}

/* Recommended Attractions Sidebar */
.recommend-sidebar {
    display: flex;
    flex-direction: column;
    background: #fbfbfd;
    border-radius: 14px;
    padding: 1.6rem;
    border: 1px solid #f0f0f2;
    max-height: 650px;
}

.recommend-sidebar h3 {
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-left: 4px solid var(--accent-yellow);
    padding-left: 12px;
    font-weight: 700;
}

.recommend-list {
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom Sidebar Scrollbar */
.recommend-list::-webkit-scrollbar {
    width: 5px;
}
.recommend-list::-webkit-scrollbar-thumb {
    background: #e2e2e7;
    border-radius: 10px;
}

/* Recommendation Item Cards */
.recommend-item {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid #e9e9ee;
    cursor: pointer;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.recommend-item:hover, .recommend-item.active {
    background: var(--primary-dark) !important;
    color: #ffffff !important;
    border-color: var(--primary-dark);
    transform: translateX(6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.recommend-item h4 {
    font-size: 1.05rem;
    color: #1d1d1f;
    transition: color 0.3s;
}
.recommend-item:hover h4, .recommend-item.active h4 {
    color: var(--accent-yellow) !important;
}

.recommend-item p {
    font-size: 0.88rem;
    margin-top: 0.5rem;
    color: #6e6e73;
    line-height: 1.5;
    transition: color 0.3s;
}
.recommend-item:hover p, .recommend-item.active p {
    color: #d2d2d7 !important;
}

/* Mobile Responsive Breakpoints */
@media (max-width: 960px) {
    .map-dashboard-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .recommend-sidebar {
        max-height: none;
    }
}

/* ==========================================================================
   🎋 Marquee Season Cards Control
   ========================================================================== */

/* Main Card Container */
.season-card {
    position: relative;
    height: 240px;
    overflow: hidden;
    border-radius: 14px;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.season-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

/* Top-Left Glassmorphic Season Badge */
.season-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 0.5rem 1.1rem;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

/* Marquee Container: Blur & Dim Effects */
.marquee-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: brightness(0.7);
    transform: scale(1);
    transition: filter 0.4s ease;
}

/* ==========================================================================
   📸 Season Cards: Pure CSS Fade In/Out Carousel
   ========================================================================== */

.marquee-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter:brightness(0.5); 
    transform: scale(1.05); 
    transition: filter 0.4s ease;
}

.season-card:hover .marquee-container {
    filter: blur(0px) brightness(0.6);
}

/* Image Layering & Animation Init */
.marquee-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0;
    animation: imageFade 12s linear infinite;
}

/* Delay Settings for Each Image */
.marquee-container img:nth-child(1) {
    animation-delay: 0s;
}
.marquee-container img:nth-child(2) {
    animation-delay: 4s;
}
.marquee-container img:nth-child(3) {
    animation-delay: 8s;
}

/* Fade Animation Keyframes */
@keyframes imageFade {
    0% {
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    33% {
        opacity: 1;
    }
    41% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* ==========================================================================
   🔒 Strict 2x2 Seasonal Grid Matrix
   ========================================================================== */
.season-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; 
    grid-template-rows: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
    width: 100% !important;
    max-width: 1200px;
    margin: 0 auto;
}

.season-card {
    height: 200px !important;
}

.marquee-track img {
    height: 100% !important;
    object-fit: cover !important;
}

/* Mobile responsive fallback to preserve 2x2 matrix */
@media (max-width: 768px) {
    .season-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .season-card {
        height: 140px !important; 
    }
    .season-badge {
        font-size: 0.85rem !important;
        padding: 0.3rem 0.7rem !important;
        top: 0.75rem !important;
        left: 0.75rem !important;
    }
}

/* Header Scroll Shadow Effect */
header.header-scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background-color: rgba(20, 20, 20, 0.95) !important;
}

/* Emerge Up Animation */
.emerge-element {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.emerge-element.active {
    opacity: 1;
    transform: translateY(0);
}

/* Slide Out From Edge Animation */
.slide-from-edge {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-from-edge.active {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   Souvenir Page Layout & Animations
   ========================================================================== */

.souvenir-page-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 3rem 0 5rem 2rem;
    overflow-x: hidden;
}

.page-title-banner {
    text-align: center;
    margin-bottom: 4rem;
    padding-right: 2rem;
}

.page-title-banner h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.page-title-banner p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Product Row Layout (Left Text, Right Image) */
.product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 6rem;
    position: relative;
}

/* Left Text Area */
.product-info {
    flex: 1;
    max-width: 550px;
}

.product-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Underline Accent */
.title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--accent-warm, #D8A25E);
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.product-intro p {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.product-tag {
    background: #eef4f0;
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem !important;
    border-left: 3px solid var(--primary-moss, #3A5A40);
}

/* Right Image Area */
.product-image-container {
    flex: 1.2;
    display: flex;
    justify-content: flex-end;
}

/* Custom Box Shadow Effect */
.shadow-box {
    position: relative;
    width: 100%;
    max-width: 580px;
    border-radius: 12px;
    box-shadow: 
        -16px 16px 0px rgba(30, 45, 36, 0.15),
        -25px 25px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.shadow-box:hover {
    transform: translate(4px, -4px);
    box-shadow: 
        -20px 20px 0px rgba(216, 162, 94, 0.4),
        -30px 30px 35px rgba(0, 0, 0, 0.12);
}

.product-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */

/* 1. Emerge Up */
.emerge-element {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.emerge-element.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-from-edge {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-from-edge.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive: Mobile & Tablet */
/* 響應式設計：手機與平板視窗 */
@media (max-width: 768px) {
    nav ul {
        display: flex;
        flex-direction: row;            /* 強制保持橫向排版 (覆蓋原本的 column) */
        overflow-x: auto;               /* 允許超出範圍時水平滑動 */
        white-space: nowrap;            /* 防止選單項目折行 */
        padding: 0.4rem 0;
        -webkit-overflow-scrolling: touch; /* 提升 iOS 手機滑動流暢度 */
        scrollbar-width: none;          /* 隱藏 Firefox 滾動條 */
    }
    nav ul::-webkit-scrollbar {
        display: none;
    }
    nav ul li {
        flex-shrink: 0;                 /* 關鍵：防止選單被硬擠縮小 */
        margin-right: 0.5rem;
        margin-bottom: 0;               /* 移除原本垂直排列時留下的下邊距 */
    }
    nav ul li a {
        display: inline-block;
        padding: 0.4rem 0.9rem;
        background-color: rgba(255, 255, 255, 0.15); /* 輕微透明背景 */
        border-radius: 20px;            /* 圓角膠囊形狀 */
        font-size: 0.85rem;
    }
    nav ul li a.active {
        background-color: var(--accent-yellow);
        color: var(--primary-dark);
        border-bottom: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   🎏 Experience Activities Page Styles (上下無縫貼齊 Header/Footer)
   ========================================================================== */
/* 5. 底部月份標籤 */
/* 底部月份標籤 (獨立區塊化) */
.month-tag {
    /* === 新增以下 4 行以達成完美對齊 === */
    position: absolute;
    bottom: 1.8rem;              /* 固定距離卡片底部 1.8rem */
    left: 50%;                  /* 水平居中 */
    transform: translateX(-50%); /* 水平居中修正 */

    /* === 以下為您原本的設定，完全保留 === */
    font-size: 0.95rem;
    color: var(--primary-dark);
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.5rem 0;
    width: 85%;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* 懸浮遮罩 */
.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.88);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.hover-overlay span {
    color: var(--accent-yellow);
    font-size: 1.25rem;
    font-weight: bold;
    text-transform: lowercase;
    border-bottom: 2px solid var(--accent-yellow);
    padding-bottom: 4px;
    letter-spacing: 1px;
}

.activity-card:hover .hover-overlay {
    opacity: 1;
}

/* ==========================================
   📱 手機版 RWD 保持獨立運作
   ========================================== */
@media (max-width: 768px) {
    .activities-container {
        flex-direction: column;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
    }

    .activity-card {
        height: 100px;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.15);
        padding: 0 1.5rem;
    }

    .vertical-title {
        writing-mode: horizontal-tb;
        margin-top: 0;
        font-size: 1.8rem;
        letter-spacing: 0.2rem;
    }

    .month-tag {
        width: auto;
        padding: 0.4rem 0.8rem;
        bottom: 1.2rem;      /* 手機上稍微貼近底部 */
        font-size: 0.85rem;  /* 稍微縮小字體以符合手機視覺 */
    }
}

/* ==========================================================================
   Activity Detail Page Styles
   ========================================================================== */
.activity-detail-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    max-width: 950px;
    margin: 0rem auto;
    border: 1px solid #eee;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.detail-header h1 {
    font-size: 2rem;
    color: var(--primary-dark);
}

.detail-month {
    font-weight: bold;
    color: var(--accent-red);
    font-size: 1.1rem;
}

.detail-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    margin-top: 1.5rem;
}
.detail-img-box {
    align-self: start; /* 讓容器貼合圖片自身高度，不再隨右側拉長 */
    display: flex;
}
.detail-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.detail-content h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.6rem;
    border-left: 4px solid var(--accent-yellow);
    padding-left: 8px;
}

.detail-content p {
    color: #555;
    line-height: 1.7;
}

.info-box {
    background: #f8f9fa;
    padding: 1rem 1.2rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    white-space: pre-line;
    color: #444;
    line-height: 1.8;
}

.detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.contact-link {
    background-color: var(--primary-dark);
    color: var(--accent-yellow);
}
/* 響應式：手機板切換成橫排 */
@media (max-width: 900px) {
    .activities-container {
        width: 100%;            /* 修正：將原本固定的 1200px 改為 100%，防止手機爆版 */
        flex-direction: column;
        height: auto;
    }

    .activity-card {
        height: auto;           /* 修正：改為 auto，避免固定 110px 導致文字過長時溢出 */
        min-height: 80px;
        flex-direction: row;    /* 手機版橫向排列：左側標題、右側月份 */
        justify-content: space-between;
        align-items: center;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.15);
        padding: 0.8rem 1.2rem;
    }

    .vertical-title {
        writing-mode: horizontal-tb; /* 標題恢復橫排 */
        font-size: 1.15rem;          /* 修正：將 3rem 縮小至適合手機閱讀的大小 */
        letter-spacing: 0.05rem;
        margin-top: 0;
    }

    .month-tag {
        /* 1. 新增這三行：解除電腦版的置中絕對定位 */
        position: static;
        transform: none;
        left: auto;

        /* 2. 以下為您原本的設定，搭配 Flexbox 完美靠右 */
        width: auto;
        margin-left: auto;
        padding: 0.4rem 0.8rem;
        white-space: nowrap;
        font-size: 0.85rem;
        border-top: none;
        flex-shrink: 0;
    }

    .detail-body {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Google Map Navigation Button
   ========================================== */
.map-link-btn {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--primary-dark);
    background-color: var(--accent-yellow);
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-link-btn:hover {
    background-color: var(--primary-dark);
    color: var(--accent-yellow);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
/* 水平滑動容器 */
.tabs-scroll-container {
    display: flex;                  /* 強迫子元素橫向一字排開 */
    overflow-x: auto;               /* 開啟水平滾動條，超出的部分可滑動 */
    white-space: nowrap;            /* 防止內容換行 */
    gap: 10px;                      /* 標籤之間的間距 */
    padding: 10px 15px;             /* 容器內距留白 */
    background-color: #000;         /* 背景顏色 (可依需求更換) */
    
    /* 觸控優化 */
    -webkit-overflow-scrolling: touch; /* 讓 iOS 手機滑動時有順暢的滑行彈性效果 */
    scrollbar-width: none;          /* 隱藏 Firefox 滾動條 */
}

/* 隱藏 Chrome / Safari / Edge 的預設滾動條 (讓畫面更乾淨) */
.tabs-scroll-container::-webkit-scrollbar {
    display: none;
}

/* 單個標籤按鈕樣式 */
.tab-btn {
    flex-shrink: 0;                 /* 關鍵：防止按鈕因為寬度不夠而被壓縮 */
    padding: 8px 18px;
    background-color: #2a2a2a;      /* 未選中的膠囊背景色 */
    color: #ffffff;
    border: 1px solid #444;
    border-radius: 20px;            /* 橢圓形膠囊外觀 */
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover 與被選中的狀態 */
.tab-btn:hover,
.tab-btn.active {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}
/* 解決平滑滾動至地圖時被置頂 Header 遮擋的問題 */
.map-interactive-wrapper,
.interactive-map-wrapper {
    scroll-margin-top: 100px;
}

/* 呼吸發光 Keyframe 動畫 */
@keyframes borderGlow {
    0% {
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 30px rgba(255, 215, 0, 0.4);
    }
}
/* ==========================================
   修復：地圖大頭針隨螢幕等比例縮小 (響應式大小)
   ========================================== */
.map-pin, .pin-icon {
    /* 使用 clamp(最小值, 隨螢幕變化的比例, 最大值) */
    /* 手機螢幕極限最小維持 1rem (約16px)，電腦版最大維持原本的 2.2rem (約35px) */
    font-size: clamp(1rem, 4vw, 2.2rem) !important;
}

/* 稍微優化手機版的 Tooltip 提示框，避免字體過大遮擋 */
@media (max-width: 768px) {
    .pin-tooltip {
        font-size: 0.75rem;
        padding: 2px 6px;
    }
}
/* ==========================================
   地圖多圖層疊加與點位樣式 (請新增至檔尾)
   ========================================== */

/* 地圖滿寬容器 */
/* 1. 縮小整體地圖容器寬度 */
.map-explore-fullwidth {
    max-width: 750px; /* 原為 1100px，可依照喜好調整為 700px~800px */
    margin: 0 auto;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.map-title-hint {
    text-align: center;
    font-size: 0.95rem;
    color: #2e7d32;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* 2. 地圖圖片容器：開啟容器寬度監測 (Container Query) */
.map-image-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f4f1;
    container-type: inline-size; /* 讓子元素的 cqw 單位能參考地圖寬度 */
}

/* 底圖圖層 */
.map-layer-base {
    width: 100%;
    height: auto;
    display: block;
}

/* 疊加圖層 (路線、靜態圖標) */
.map-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* 穿透點擊，防止阻擋底層事件 */
    object-fit: cover;
}

/* 動態 Pin 圖層 */
#interactive-pin-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
}

/* ------------------------------------------
   當季景點：圓形照片框 (Photo Pin)
   ------------------------------------------ */
.photo-pin-interactive {
    position: absolute;
    transform: translate(-50%, -100%);
    cursor: pointer;
    z-index: 60;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 3. 讓圓形 Icon 隨地圖/螢幕比例縮放 */
.photo-bubble {
    position: relative;
    /* 使用 clamp(最小值, 容器寬度百分比 cqw, 最大值) 達成動態縮放 */
    width: clamp(32px, 6.5cqw, 65px);
    height: clamp(32px, 6.5cqw, 65px);
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    background: #ffffff;
}

.photo-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 懸停氣泡提示 */
.photo-tooltip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #ffd700;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    padding: 2px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.photo-pin-interactive:hover .photo-tooltip {
    opacity: 1;
}

.photo-pin-interactive:hover {
    transform: translate(-50%, -112%) scale(1.25);
    z-index: 100;
}

/* 4. 讓 Icon 下方的小箭頭指針同步縮放 */
.photo-pointer {
    width: 0;
    height: 0;
    border-left: clamp(4px, 0.8cqw, 6px) solid transparent;
    border-right: clamp(4px, 0.8cqw, 6px) solid transparent;
    border-top: clamp(6px, 1.2cqw, 9px) solid #ffffff;
    margin: -1px auto 0 auto;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

/* ------------------------------------------
   非當季景點：純文字地點標籤
   ------------------------------------------ */
.text-label-interactive {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 40;
    pointer-events: none;
}

.plain-text-tag {
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    font-weight: bold;
    color: #4a5568;
    background: rgba(255, 255, 255, 0.85);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dot-icon {
    color: #a0aec0;
    font-size: 1rem;
}

/* ------------------------------------------
   景點詳細頁 (spot-detail.html) 專用樣式
   ------------------------------------------ */
.activity-detail-card {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.detail-month {
    background: #2e7d32;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .detail-body {
        grid-template-columns: 1fr;
    }
}

.detail-img-box img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
}

.detail-footer {
    margin-top: 2rem;
    text-align: center;
}
/* ==========================================
   地圖與當季體驗活動雙欄佈局
   ========================================== */
.map-layout-wrapper {
    display: grid;
    grid-template-columns: 1.8fr 1fr; /* 左地圖寬，右活動窄 */
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* 左側地圖包覆盒 */
.map-left-column {
    background: #ffffff;
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* 右側當季體驗活動側邊欄 */
.seasonal-activity-sidebar {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9e9ee;
}

.seasonal-activity-sidebar h3 {
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    color: var(--primary-dark);
    border-left: 4px solid #2e7d32;
    padding-left: 10px;
}

/* 推薦活動卡片 */
.activity-recommend-card {
    background: #fbfbfd;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.activity-recommend-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #2e7d32;
    background: #ffffff;
}

.activity-recommend-card .act-tag {
    display: inline-block;
    background: #eef4f0;
    color: #2e7d32;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.4rem;
}

.activity-recommend-card h4 {
    font-size: 1.05rem;
    color: #1d1d1f;
    margin-bottom: 0.4rem;
}

.activity-recommend-card p {
    font-size: 0.85rem;
    color: #6e6e73;
    line-height: 1.5;
}

/* 手機與平板適應：切換為垂直單欄 */
@media (max-width: 900px) {
    .map-layout-wrapper {
        grid-template-columns: 1fr;
    }
}
.vertical-title {
    font-family: 'Oswald', sans-serif;
}
/* ==========================================
   體驗活動頁面：全面改為橫向層疊清單版型
   ========================================== */

/* 1. 主容器：保持大滿版綠色背景，高度自動調整 */
.activities-container {
    display: flex !important;
    flex-direction: column !important; /* 改為上下垂直堆疊 */
    width: 100% !important;
    max-width: 1200px !important;
    height: auto !important;          /* 允許高度隨內容伸縮 */
    background-color: #61b88e !important; /* 綠色背景 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    margin: 0 auto !important;
    overflow: hidden;
}

/* 2. 單一活動橫列卡片 */
.activity-card {
    display: flex !important;
    flex-direction: row !important;     /* 內部橫向排列：左名稱、右月份 */
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 90px !important;        /* 每列高度 */
    padding: 1.2rem 2.5rem !important;  /* 左右邊距留白 */
    background-color: transparent !important;
    border-right: none !important;      /* 移除原本直立時的右邊框 */
    border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important; /* 新增橫向分隔線 */
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* 最後一個活動橫列移除底線 */
.activity-card:last-child {
    border-bottom: none !important;
}

/* 滑鼠懸停時的微亮效果 */
.activity-card:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

/* 3. 活動名稱：橫向大寫字體 */
.vertical-title {
    writing-mode: horizontal-tb !important; /* 強制恢復為橫向文字 */
    text-orientation: initial !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08rem !important;
    text-transform: uppercase !important;   /* 強制為大寫字母 */
    color: var(--primary-dark) !important;
    margin-top: 0 !important;
    text-align: left !important;
    flex: 1;
    padding-right: 1.5rem;
}

/* 4. 右側月份標籤：靠右置中對齊 */
.month-tag {
    position: static !important;            /* 解除電腦版的絕對定位 */
    transform: none !important;
    width: auto !important;
    min-width: 110px !important;
    padding: 0.5rem 1.2rem !important;
    background-color: #ffffff !important;
    color: var(--primary-dark) !important;
    border-radius: 8px !important;
    text-align: center !important;
    font-weight: bold !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    flex-shrink: 0;
}

/* 5. 調整懸浮遮罩適應橫向版型 */
.hover-overlay {
    background-color: rgba(0, 0, 0, 0.75) !important;
}
/* ==========================================
   頂部 Header 左右並排佈局（Logo/選單在左，語言選單在右）
   ========================================== */
header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.8rem 2.5rem !important;
}

/* 左側包覆容器：垂直排列 Logo 與導覽列 */
.header-left {
    display: flex;
    flex-direction: column;
}

.header-left .logo {
    margin-bottom: 0.3rem !important;
}

/* 右側語言選擇欄膠囊外框 */
.language-dropdown-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.language-dropdown-box label {
    font-size: 1.1rem !important;
    color: #ffffff;
}

.language-dropdown-box select {
    font-size: 0.95rem !important;
    padding: 6px 12px !important;
    border-radius: 18px !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    cursor: pointer;
    outline: none;
}