/* RabbitTravel Visual Styles v1.0 */

/* ===== 游记卡片 Tooltip ===== */
.fm-card-blog {
    width: 180px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fm-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.fm-blog-thumb {
    width: 100%;
    height: 95px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.fm-blog-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.fm-blog-info {
    padding: 12px;
}

.fm-blog-title {
    font-size: 14px;
    font-weight: 800;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fm-blog-meta {
    font-size: 11px;
    color: #999;
}

/* ===== 气泡 Tooltip（去过/想去/当前/游记） ===== */
.fm-bubble {
    background: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fm-bubble-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.fm-bubble-name {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

.fm-bubble-type {
    font-size: 10px;
    color: #aaa;
    white-space: nowrap;
}

/* ===== 地图缩放过渡效果 ===== */
.fm-warp {
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fm-warp-active #fm-map {
    transform: scale(1.5);
}

.fm-warp-active .fm-header,
.fm-warp-active .fm-switch,
.fm-warp-active .fm-footer {
    opacity: 0;
}

/* ===== 悬停卡片容器（单例，点击不重建） ===== */
.fm-hover-card {
    position: absolute;
    z-index: 60;
    display: none;
    cursor: default;
}

/* ===== ECharts Tooltip 容器覆盖 ===== */
.fm-map-tooltip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
