:root {
    /* 基礎尺寸變數 */
    --cell-size: clamp(20px, 2.8vw, 46px);
    --gap-size: clamp(2px, 0.4vw, 6px);
    --map-max-japan: clamp(320px, 62vw, 900px);
    --map-max-taiwan: clamp(320px, 60vw, 800px);
    --primary-red: #ff6b6b; 
    --border-color: #e0e0e0;
    --bg-light: #fdfcfb;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --recommend-bg: #fff9db;
    --recommend-border: #ffe066;
    --recommend-text: #856404;
    --recommend-active-bg: #e67e22; /* 點擊後顯眼的深橘色 */
}

/* AJAX Loading State - Generic */
.travel-map-articles {
    transition: opacity 0.3s ease;
    min-height: 200px;
    position: relative;
}

.travel-map-articles.is-loading {
    pointer-events: none;
}

.travel-map-articles.is-loading::after {
    content: "正在載入相關文章...";
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    font-size: 14px;
    color: #666;
}

/* FOUC Prevention */
.travel-map-section {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
.travel-map-section.is-initialized {
    opacity: 1;
}

/* Section Title - Core Default for Travel/Explorer Type */
.tm-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #333;
    margin: 40px 0 16px;
    padding-left: 12px;
    border-left: 4px solid var(--primary-red);
    line-height: 1.2;
    text-align: left;
    display: flex;
    align-items: center;
}

/* Ensure default style in container also reflects this core look */
.travel-map-section.default .tm-section-title,
.tm-section-title.default {
    padding-left: 12px;
    border-left: 4px solid var(--primary-red);
}

.tm-featured-header, .tm-location-header {
    margin: 40px 0 16px;
    padding: 0 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tm-featured-header .tm-section-title,
.tm-location-header .tm-section-title {
    margin: 0;
}

.tm-section-title-wrap {
    margin: 40px 0 16px;
    padding: 0 4px;
}

.tm-section-title-wrap .tm-section-title {
    margin: 0;
}

.tm-section-title-wrap .main-layout-header {
    margin: 0;
}

.tm-section-title-wrap[class*="title-style-"] .tm-section-title,
.tm-featured-header[class*="title-style-"] .tm-section-title,
.tm-location-header[class*="title-style-"] .tm-section-title,
.tm-submenu-slider-header[class*="title-style-"] .tm-section-title {
    border-left: 0;
    padding-left: 0;
}

/* Style: Red Border (Consistency) */
.tm-style-red-border .tm-section-title {
    border-left-width: 5px;
    padding-left: 15px;
    margin-top: 30px;
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .tm-section-title {
        margin: 24px 0 12px;
        font-size: 18px;
    }
    .tm-style-red-border .tm-section-title {
        font-size: 1.2rem;
    }
}

/* Core Animations */
@keyframes tmFadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes tmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tmSpin {
    to { transform: rotate(360deg); }
}
