/* 
 * Travel Map CSS 
 * Contains styles strictly for the Map, Sidebar, and Map Overlays.
 * Core variables and Components are loaded separately.
 */

.travel-map-container-outer {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
    min-height: 0;
    align-items: stretch; /* Re-enabled stretch, JS will handle max-height cap */
    background: #fff;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* No Sidebar Variant for Independent Block */
.tm-no-sidebar .travel-map-container-outer {
    grid-template-columns: 1fr;
}

.tm-no-sidebar .tm-left-section {
    border-right: none;
    padding: clamp(20px, 4vw, 40px);
}

/* 左側地圖區 */
.tm-left-section {
    padding: clamp(16px, 2.2vw, 28px);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    position: relative;
    border-right: 1px solid var(--border-color);
    min-width: 0;
}

/* Map area alignment */
.tm-map-container {
    flex: 1; /* Allow to fill space */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(8px, 1.8vw, 20px);
    width: 100%;
    overflow: hidden;
}

.tm-map-grid {
    display: grid;
    gap: var(--gap-size);
    user-select: none;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.tm-map-grid--japan {
    width: min(100%, var(--map-max-japan));
    aspect-ratio: 14 / 13;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    grid-template-rows: repeat(13, minmax(0, 1fr));
    grid-template-rows: repeat(13, minmax(0, 1fr));
}

.tm-map-grid--taiwan {
    width: min(100%, var(--map-max-taiwan));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    border: 1px solid var(--border-color);
    background: #f1f5f9;
    margin: 0 auto;
    padding: clamp(10px, 2vw, 18px);
    border-radius: 8px;
    justify-content: center;
}

.tm-region-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    min-width: 0;
}

.tm-region-box:not(.unlinked):not(.no-posts):hover {
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.2);
    z-index: 10;
    border-color: var(--primary-red);
}

.tm-region-box.active,
.tm-region-box.tm-hover-highlight {
    background: var(--primary-red) !important;
    border-color: #e63946;
    color: white !important;
    z-index: 15;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.tm-region-box.unlinked,
.tm-region-box.no-posts {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f0f0f0;
    color: #bbb;
}

.tm-region-name {
    font-size: clamp(9px, 0.9vw, 12px);
    font-weight: 700;
    line-height: 1.2;
}

.tm-region-spots {
    font-size: clamp(8px, 0.8vw, 10px);
    opacity: 0.8;
    margin-top: 1px;
    color: #666;
}

.tm-region-box.active .tm-region-spots { color: white; }

.travel-map-section--japan .tm-region-box[data-region="kyushu"] { background-color: #e6fcf5; }

/* Map type specifics */
.travel-map-section--japan .travel-map-container-outer {
    height: auto;
    min-height: 0;
}

.travel-map-section--taiwan .travel-map-container-outer {
    height: auto;
    padding-bottom: 20px;
}

/* 區域配色 - 台灣 */
.travel-map-section--taiwan .tm-region-box[data-region="north"] { background-color: #f8fafc; }
.travel-map-section--taiwan .tm-region-box[data-region="central"] { background-color: #f0fdf4; }
.travel-map-section--taiwan .tm-region-box[data-region="south"] { background-color: #fffaf0; }
.travel-map-section--taiwan .tm-region-box[data-region="east"] { background-color: #fef2f2; }
.travel-map-section--taiwan .tm-region-box[data-region="islands"] { background-color: #f5f3ff; }

/* Grid 定位 */
.hokkaido { grid-column: 12 / span 2; grid-row: 1 / span 2; }
.aomori { grid-column: 12; grid-row: 3; }
.iwate { grid-column: 13; grid-row: 3; }
.akita { grid-column: 11; grid-row: 4; }
.miyagi { grid-column: 12; grid-row: 4; }
.yamagata { grid-column: 11; grid-row: 5; }
.fukushima { grid-column: 12; grid-row: 5; }
.niigata { grid-column: 10; grid-row: 5; }
.nagano { grid-column: 10; grid-row: 6 / span 2; }
.toyama { grid-column: 9; grid-row: 6; }
.ishikawa { grid-column: 9; grid-row: 5; }
.fukui { grid-column: 8; grid-row: 6; }
.gunma { grid-column: 11; grid-row: 6; }
.tochigi { grid-column: 12; grid-row: 6; }
.ibaraki { grid-column: 13; grid-row: 6; }
.yamanashi { grid-column: 10; grid-row: 8; }
.saitama { grid-column: 11 / span 2; grid-row: 7; }
.chiba { grid-column: 13; grid-row: 7 / span 2; }
.tokyo { grid-column: 11 / span 2; grid-row: 8; }
.kanagawa { grid-column: 11 / span 2; grid-row: 9; }
.gifu { grid-column: 9; grid-row: 7; }
.shizuoka { grid-column: 10; grid-row: 9; }
.aichi { grid-column: 9; grid-row: 8; }
.mie { grid-column: 8; grid-row: 8; }
.shiga { grid-column: 8; grid-row: 7; }
.kyoto { grid-column: 7; grid-row: 7; }
.hyogo { grid-column: 6; grid-row: 7 / span 2; }
.osaka { grid-column: 7; grid-row: 8; }
.nara { grid-column: 7; grid-row: 9; }
.wakayama { grid-column: 6; grid-row: 9; }
.tottori { grid-column: 5; grid-row: 7; }
.shimane { grid-column: 4; grid-row: 7; }
.okayama { grid-column: 5; grid-row: 8; }
.hiroshima { grid-column: 4; grid-row: 8; }
.yamaguchi { grid-column: 3; grid-row: 8; }
.kagawa { grid-column: 5; grid-row: 9; }
.tokushima { grid-column: 6; grid-row: 10; }
.ehime { grid-column: 4; grid-row: 9; }
.kochi { grid-column: 5; grid-row: 10; }
.fukuoka { grid-column: 3; grid-row: 9 / span 2; }
.saga { grid-column: 2; grid-row: 9; }
.nagasaki { grid-column: 2; grid-row: 10; }
.oita { grid-column: 4; grid-row: 10; }
.kumamoto { grid-column: 3; grid-row: 11; }
.miyazaki { grid-column: 4; grid-row: 11; }
.kagoshima { grid-column: 3; grid-row: 12; }
.okinawa { grid-column: 2; grid-row: 13; }

/* 右側選單 */
.tm-sidebar {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: min(750px, 80vh); /* Cap height for stability */
    overflow: hidden;
    position: sticky;
    top: 10px;
    min-width: 0;
    align-self: start; /* Don't stretch the container */
}

.tm-sidebar-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.tm-sidebar-title {
    font-size: 16px;
    font-weight: 800;
    color: #333;
}

.tm-region-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto; /* 啟用捲軸 */
    flex: 1;
}

/* 自定義捲軸 */
.tm-region-list::-webkit-scrollbar {
    width: 6px;
}
.tm-region-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.tm-region-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.tm-region-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.tm-region-group {
    border-bottom: 1px solid #f0f0f0;
}

.tm-region-item-header {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
    font-size: 14px;
    font-weight: 800;
}

.tm-region-item-header:hover {
    background: #fcfcfc;
}

.tm-arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    fill: #ccc;
}

.tm-region-group.active .tm-arrow-icon {
    transform: rotate(180deg);
    fill: var(--primary-red);
}

.tm-sub-menu {
    background: #fdfdfd;
    display: none; /* 由 JS 控制 slideToggle */
    padding: 5px 0;
}

.tm-pref-container {
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f9f9f9;
}

.tm-pref-container:last-child {
    border-bottom: none;
}

.tm-pref-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0;
}

.tm-pref-title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px 10px 35px;
    text-decoration: none !important;
    color: #444;
    transition: all 0.2s;
}

.tm-pref-title:hover {
    background: #f0f7ff;
    color: var(--primary-red);
    padding-left: 40px;
}

.tm-pref-name {
    font-weight: 800;
    font-size: 13px;
}

.tm-pref-count {
    background: #f1f5f9;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.tm-pref-toggle, .tm-pref-leaf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.tm-pref-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
    cursor: pointer;
}

.tm-pref-toggle:hover {
    background: #f8fafc;
}

.tm-pref-leaf-icon svg {
    width: 14px;
    height: 14px;
    fill: #cbd5e1;
}

/* Active State Highlighting */
.tm-pref-container.is-active {
    background: #fff5f5;
    border-left: 4px solid var(--primary-red);
}

.tm-pref-container.is-active .tm-pref-title {
    color: var(--primary-red);
}

.tm-pref-container.is-active .tm-pref-count {
    background: var(--primary-red);
    color: #fff;
}

/* 3rd Level: City Menu */
.tm-city-menu {
    display: none;
    background: #f8f9fa;
    padding: 5px 0 10px 0;
    border-bottom: 1px solid #eee;
}

.tm-city-item-sidebar {
    display: block;
    padding: 8px 15px 8px 50px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

.tm-city-item-sidebar:hover {
    color: var(--primary-red);
    background: #fff;
    padding-left: 55px;
}

.tm-city-item-all {
    font-weight: bold;
    color: var(--primary-red);
    background-color: #fff5f5;
    border-bottom: 1px dashed #eee;
    padding-left: 45px; /* Slightly less indentation to stand out */
}

.tm-city-item-all:hover {
    background-color: #ffe0e0;
    padding-left: 50px;
}

.tm-pref-arrow {
    width: 14px;
    height: 14px;
    fill: #ccc;
    transform: rotate(0deg);
    transition: transform 0.3s;
}

.tm-pref-container.has-children:not(.active-city-menu) .tm-pref-arrow {
    transform: rotate(0deg);
}

.tm-pref-container.active-city-menu .tm-pref-arrow {
    transform: rotate(180deg);
    fill: var(--primary-red);
}

/* Layout Wrappers */
.main-layout-wrapper.tm-no-sidebar #postshow-a {
    max-width: 100% !important;
    width: 100% !important;
    margin: 10px 0;
}

.main-layout-wrapper.tm-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    column-gap: 30px;
    align-items: start;
}

.main-layout-wrapper.tm-map-layout #postshow-a {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    width: 100%;
    margin: 10px 0;
}

.main-layout-wrapper.tm-map-layout #postshow-b {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin: 10px 0;
    position: relative;
    z-index: 2;
}

.main-layout-wrapper.tm-map-layout .tm-map-fullwidth {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 10px 0 20px;
    z-index: 1;
}

.main-layout-wrapper.tm-map-layout .tm-map-posts {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
}

@media (max-width: 1024px), (max-width: 1366px) and (hover: none) and (pointer: coarse) {
    .main-layout-wrapper.tm-map-layout {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }
    .main-layout-wrapper.tm-map-layout #postshow-b {
        grid-column: 1;
        grid-row: auto;
    }
    .main-layout-wrapper.tm-map-layout .tm-map-fullwidth {
        grid-column: 1;
        grid-row: auto;
    }
    .main-layout-wrapper.tm-map-layout .tm-map-posts {
        grid-column: 1;
        grid-row: auto;
    }

}

@media (max-width: 850px) {
    .travel-map-container-outer {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto !important;
        min-height: auto;
        margin-bottom: 20px;
    }
    .tm-left-section {
        order: 1;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 20px 12px;
    }
    .tm-sidebar {
        order: 2;
        max-height: 50vh;
        position: static;
        height: auto;
    }
}

@media (max-width: 600px) {
    .travel-map-section { --gap-size: clamp(1px, 0.6vw, 2px); }
    .tm-left-section {
        padding: 24px 12px;
    }
    .tm-map-container {
        padding: 8px;
    }
    .tm-map-grid--taiwan {
        padding: 12px;
    }
    .tm-region-name { font-size: 8px; }
    .tm-region-spots { display: none; }
}

/* City Overlay */
.tm-city-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 300px;
    max-width: 90%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 100;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: tmFadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tm-city-overlay-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    background: rgba(255,255,255,0.5);
}

.tm-city-overlay-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.tm-city-overlay-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}

.tm-city-overlay-close:hover {
    color: var(--primary-red);
}

.tm-city-overlay-read-more {
    font-size: 13px;
    color: var(--primary-red);
    text-decoration: none;
    margin-right: 8px;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.tm-city-overlay-read-more:hover {
    opacity: 0.8;
}

.tm-city-overlay-body {
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
}

/* City List Mode Container */
.tm-city-list {
    display: none; /* Hidden by default, shown via JavaScript */
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 300px;
    max-width: 90%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 100;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: tmFadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tm-city-list-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    background: rgba(255,255,255,0.5);
}

.tm-city-list-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.tm-city-list-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}

.tm-city-list-close:hover {
    color: var(--primary-red);
}

.tm-city-list-body {
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
}

/* City List Items Container */
.tm-city-list-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tm-city-item {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    color: #555;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.tm-city-item:hover:not(.no-posts) {
    background: var(--primary-red);
    color: white;
    transform: translateY(-1px);
}

.tm-city-item.no-posts {
    opacity: 0.5;
    background: #e8e8e8;
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
}

.tm-city-empty, .tm-city-error {
    text-align: center;
    color: #888;
    font-size: 13px;
    padding: 10px 0;
}

/* Loading State for Overlay */
.tm-city-overlay-loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* Loading State for List Mode */
.tm-city-list-loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.tm-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-red);
    border-radius: 50%;
    animation: tmSpin 0.8s linear infinite;
}

/* City Overlay Grid */
.tm-city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Responsive columns */
    gap: 10px;
}

.tm-city-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px; /* Rounded corners */
    padding: 8px; /* Padding inside the card */
    text-align: center;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex; /* Centering content */
    align-items: center;
    justify-content: center;
    min-height: 40px; /* Minimum height for touch targets */
}

.tm-city-item:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background: #fff5f5;
}

.tm-city-name {
    font-size: 14px;
    font-weight: 500;
}

.tm-city-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Ensure it overlays correctly */
}

.tm-city-overlay-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdfdfd;
}

.tm-city-overlay-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.tm-city-overlay-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.tm-city-overlay-read-more {
    font-size: 13px;
    color: var(--primary-red);
    text-decoration: none;
    margin-right: 8px;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.tm-city-overlay-read-more:hover {
    opacity: 0.8;
}

.tm-city-overlay-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

/* Mobile Bottom Sheet */
@media (max-width: 767px) {
    .tm-city-overlay {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 50vh;
        animation: tmFadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
}
 


/* Mobile Adjustments */
@media (max-width: 768px) {
    .tm-city-overlay {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        border-bottom: none;
    }
    
    .tm-map-container {
        padding-bottom: 20px; /* Space for bottom sheet if needed, though it overlays */
    }
}

/* Inline Box Styles (Extracted from map-main.php) */
.tm-city-inline-box {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 300px;
    max-width: 90%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 20;
    overflow: hidden;
    animation: tmFadeIn 0.3s ease;
}

.tm-city-inline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.tm-city-inline-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.tm-city-inline-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0;
}

.tm-city-inline-close:hover {
    color: #333;
}

.tm-city-inline-read-more {
    font-size: 13px;
    color: var(--primary-red, #e53e3e);
    text-decoration: none;
    margin-right: 8px;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.tm-city-inline-read-more:hover {
    opacity: 0.8;
}

.tm-city-inline-body {
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.tm-city-inline-loading {
    display: none;
    padding: 20px;
    text-align: center;
}



/* Grid layout for inline items */
.tm-city-inline-body .tm-city-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.tm-city-inline-body .tm-city-item {
    display: block;
    padding: 6px 10px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    text-align: center;
    transition: all 0.2s;
}

.tm-city-inline-body .tm-city-item:hover {
    background: #fff0f0;
    border-color: #ffcccc;
    color: #d63638;
}

/* Unlinked State Styles */
.tm-region-box.unlinked {
    background-color: #f0f0f0 !important;
    color: #aaa !important;
    cursor: default !important;
    box-shadow: none !important;
    border: 1px dashed #ccc !important;
    opacity: 0.6;
}

.tm-region-box.unlinked:hover {
    transform: none !important;
    box-shadow: none !important;
    background-color: #e5e5e5 !important;
}

.tm-region-box.unlinked .tm-region-name {
    color: #999 !important;
}

/* No Posts State (Gray-out) */
.tm-region-group.no-posts .tm-region-item-header,
.tm-pref-container.no-posts .tm-pref-header,
.tm-city-item-sidebar.no-posts,
.tm-city-item.no-posts {
    color: #bbb !important;
    opacity: 0.7;
}

.tm-region-group.no-posts .tm-region-item-header {
    background: #f9f9f9;
}

.tm-city-item-sidebar.no-posts {
    text-decoration: none;
}
