/* 应季旅游地图 · 旅行青绿主题（zhandu.cn） */

.tm-card {
    padding: 0;
    overflow: hidden;
}

/* ---------- 月份条 ---------- */
.tm-months {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f2f9f4, #eaf5ef);
    border-bottom: 1px solid #e0ecdf;
}

.tm-month {
    position: relative;
    border: 1px solid #cfe2d6;
    background: #fff;
    color: #3c5a4a;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 9px;
    padding: 7px 15px;
    cursor: pointer;
    transition: transform .12s, box-shadow .15s, border-color .15s, background .15s;
}

.tm-month:hover {
    transform: translateY(-1px);
    border-color: #7fb694;
    box-shadow: 0 3px 10px rgba(70, 130, 95, .16);
}

.tm-month.on {
    background: linear-gradient(135deg, #3c8f63, #2e7a51);
    border-color: #2e7a51;
    color: #fff;
}

.tm-now {
    position: absolute;
    top: -8px;
    right: -6px;
    font-style: normal;
    font-size: 10px;
    background: #e08a2e;
    color: #fff;
    border-radius: 7px;
    padding: 1px 5px;
    line-height: 1.4;
}

/* ---------- 地图区 ---------- */
#tmMap {
    width: 100%;
    height: 60vh;
    min-height: 420px;
    background: linear-gradient(180deg, #fbfdfc 0%, #f1f8f3 100%);
}

.tm-mapbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding: 10px 18px 12px;
    border-top: 1px dashed #dce8df;
}

.tm-mapbar-title {
    font-size: 14px;
    font-weight: 700;
    color: #2c4437;
}

.tm-mapbar-title b {
    color: #2e7a51;
}

.tm-mapbar-tip {
    margin-left: auto;
    font-size: 12px;
    color: #93a09a;
}

/* 温度开关 */
.tm-wx-btn {
    border: 1px solid #cfe2d6;
    background: #fff;
    color: #6b7f74;
    font-size: 12.5px;
    border-radius: 999px;
    padding: 4px 12px;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}

.tm-wx-btn.on {
    background: #f0f8f2;
    border-color: #7fb694;
    color: #2e7a51;
    font-weight: 600;
}

.tm-loaderr {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #93a09a;
    font-size: 14px;
}

/* ---------- 类型筛选 ---------- */
.tm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tm-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #dde5ea;
    background: #fff;
    color: #4a5a68;
    font-size: 13px;
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
    transition: opacity .15s, border-color .15s, transform .12s;
}

.tm-chip i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.tm-chip.on {
    border-color: #b9ccc5;
    background: #f4faf6;
}

.tm-chip:not(.on) {
    opacity: .42;
}

.tm-chip:hover {
    transform: translateY(-1px);
}

/* ---------- 主区布局（卡内左右分栏） ---------- */
.tm-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 14px;
    padding: 0 18px 18px;
}

.tm-mapcol {
    min-width: 0;
}

.tm-chips-wrap {
    padding: 2px 2px 4px;
}

.tm-listbox {
    border: 1px solid #e2ebe6;
    border-radius: 12px;
    background: #fbfdfc;
    display: flex;
    flex-direction: column;
    max-height: 560px;
    overflow: hidden;
}

.tm-listhead {
    padding: 11px 14px;
    border-bottom: 1px solid #e2ebe6;
    background: #f3f9f5;
    font-size: 13.5px;
    font-weight: 700;
    color: #2c4437;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tm-listhead b {
    color: #2e7a51;
    font-size: 15px;
}

.tm-list {
    overflow-y: auto;
    padding: 8px;
    flex: 1;
}

.tm-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 0;
    background: transparent;
    border-radius: 9px;
    padding: 8px 9px;
    cursor: pointer;
    text-align: left;
    transition: background .12s;
}

.tm-item:hover {
    background: #ecf5ee;
}

.tm-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.tm-item-n {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.tm-item-n b {
    font-size: 13.5px;
    color: #26333d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-item-n i {
    font-style: normal;
    font-size: 11.5px;
    color: #8b998f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-item-side {
    margin-left: auto;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.tm-item-wx {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    border-radius: 6px;
    padding: 0 6px;
    background: #4aa06e;
}

.tm-item-wx.hot {
    background: linear-gradient(135deg, #ef7d3a, #e05f2b);
}

.tm-item-wx.warm {
    background: linear-gradient(135deg, #52ab72, #3d9160);
}

.tm-item-wx.cool {
    background: linear-gradient(135deg, #4a97c9, #3379ab);
}

.tm-item-wx.cold {
    background: linear-gradient(135deg, #7d7fd1, #5e63b8);
}

.tm-item-m {
    flex: 0 0 auto;
    font-size: 10.5px;
    color: #93a09a;
    white-space: nowrap;
}

.tm-empty {
    padding: 30px 12px;
    text-align: center;
    color: #93a09a;
    font-size: 13.5px;
}

/* ---------- 信息卡 ---------- */
.tm-info {
    margin-top: 14px;
}

.tm-info-empty {
    padding: 26px 10px;
    text-align: center;
    color: #8a93a6;
    font-size: 14px;
}

.tm-info.on .tm-info-empty {
    color: #55617a;
}

.tm-info-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tm-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex: 0 0 auto;
    box-shadow: 0 3px 8px rgba(40, 80, 60, .22);
}

.tm-info-t {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tm-info-t b {
    font-size: 18px;
    color: #22303a;
}

.tm-info-t i {
    font-style: normal;
    font-size: 13px;
    color: #8a93a6;
}

.tm-best {
    margin-left: auto;
    font-size: 12px;
    color: #8a93a6;
    border: 1px solid #e2e8ee;
    border-radius: 999px;
    padding: 4px 12px;
    background: #f7fafc;
}

.tm-best.on {
    color: #fff;
    background: linear-gradient(135deg, #3c8f63, #2e7a51);
    border-color: #2e7a51;
    font-weight: 600;
}

.tm-info-d {
    margin: 12px 0 0;
    font-size: 13.5px;
    line-height: 1.85;
    color: #4d5c68;
}

.tm-info-foot {
    margin-top: 10px;
    font-size: 12.5px;
    color: #8a93a6;
}

.tm-info-foot b {
    color: #2e7a51;
}

/* ---------- 实时温度行 ---------- */
.tm-wx {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 12px;
    border: 1px solid #dcebe1;
    background: linear-gradient(135deg, #f3faf5, #ecf6ef);
    border-radius: 11px;
    padding: 10px 14px;
}

.tm-wx-ico {
    font-size: 22px;
    line-height: 1;
}

.tm-wx-now {
    font-size: 24px;
    font-weight: 800;
    color: #256b47;
    line-height: 1;
}

.tm-wx-range {
    font-size: 13px;
    color: #4d6357;
}

.tm-wx-src {
    margin-left: auto;
    font-size: 11px;
    color: #93a09a;
}

.tm-wx-load {
    font-size: 13px;
    color: #8a93a6;
}

/* ---------- 游玩攻略 ---------- */
.tm-guide {
    margin-top: 12px;
    border: 1px solid #e6ecf2;
    border-radius: 11px;
    background: #fbfcfe;
    padding: 12px 16px;
}

.tm-guide-t {
    font-size: 14px;
    font-weight: 700;
    color: #2c4437;
    margin-bottom: 6px;
}

.tm-guide ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tm-guide li {
    position: relative;
    padding: 5px 0 5px 16px;
    font-size: 13px;
    line-height: 1.8;
    color: #4d5c68;
    border-bottom: 1px dashed #eef2f6;
}

.tm-guide li:last-child {
    border-bottom: 0;
}

.tm-guide li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7fb694;
}

/* ---------- 相关工具 ---------- */
.tm-rel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tm-rel-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e6eaf2;
    border-radius: 12px;
    padding: 13px 14px;
    text-decoration: none;
    background: #fbfcff;
    transition: transform .12s, box-shadow .15s, border-color .15s;
}

.tm-rel-item:hover {
    transform: translateY(-2px);
    border-color: #bcd0f5;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .12);
}

.tm-rel-ico {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eaf1fb, #dbe8f9);
    color: #2d5aa8;
}

.tm-rel-t {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tm-rel-t b {
    font-size: 14px;
    color: #2a3142;
}

.tm-rel-t i {
    font-style: normal;
    font-size: 12px;
    color: #8a93a6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tm-rel-go {
    margin-left: auto;
    color: #b9c2d4;
    flex: 0 0 auto;
}

/* ---------- 说明 ---------- */
.tm-note {
    font-size: 12.5px;
    line-height: 1.9;
    color: #8a93a6;
}

.tm-note b {
    color: #67748c;
}

/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
    #tmMap {
        height: 50vh;
        min-height: 330px;
    }

    .tm-months {
        padding: 12px 14px;
        gap: 6px;
    }

    .tm-month {
        padding: 6px 11px;
        font-size: 12.5px;
    }

    .tm-split {
        grid-template-columns: 1fr;
        padding: 0 14px 14px;
    }

    .tm-listbox {
        max-height: 340px;
        order: 2;
    }

    .tm-chips {
        padding: 0 14px;
    }

    .tm-chip {
        padding: 5px 11px;
        font-size: 12.5px;
    }

    .tm-rel-grid {
        grid-template-columns: 1fr;
    }

    .tm-best {
        margin-left: 0;
    }

    .tm-wx-src {
        margin-left: 0;
        width: 100%;
    }

    .tm-wx-now {
        font-size: 21px;
    }
}
