.maplibregl-ctrl-group {
    border-radius: 4px;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
    background: #fff;
}

.maplibregl-ctrl button {
    background-color: #fff;
    border: none;
    cursor: pointer;
    display: block;
    width: 29px;
    height: 29px;
}
        
.maplibregl-ctrl button:hover {
    background-color: #f3f3f3;
}
        
.maplibregl-ctrl button + button {
    border-top: 1px solid #ddd;
}
/* 定位图标样式 - 右上角位置 */
.location-control {
    position: absolute;
    top: 150px;
    right: 10px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}
        
.location-control:hover {
    background-color: #f3f3f3;
}
        
.location-icon {
    font-size: 20px;
    color: #333;
}

.custom-marker {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 50px;
    padding: 5px 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
            
.custom-marker.active {
    background-color: black;
    color: white;
    z-index: 10;
}
            
.custom-marker.active .heart {
    /*color: #ff9195;*/
    color: white;
}
            
.custom-marker.active .count {
    color: white;
}
            
.custom-marker.dimmed {
    opacity: 1;
    filter: grayscale(50%);
}
            
.custom-marker .heart {
    margin-right: 8px;
    /*color: #ff5a5f;*/
    font-size: 18px;
    transition: all 0.3s ease;
}
            
.custom-marker .count {
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}
        
        /* 优化后的弹出层样式 */
        .custom-popup .maplibregl-popup-content {
            background: transparent;
            padding: 0;
            box-shadow: none;
        }
            
        /* 自定义popup样式 */
        /* 弹出层样式 */
        .marker-popup {
            position: relative;
            width: 220px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            overflow: hidden;
            z-index: 100;
            animation: fadeIn 0.3s ease;
        }
        
        /* 箭头样式 */
        .marker-popup::after {
            content: '';
            position: absolute;
            width: 0;
            height: 0;
            border-style: solid;
        }
        
        /* 上方弹出层箭头 */
        .marker-popup.top::after {
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            border-width: 10px 10px 0 10px;
            border-color: white transparent transparent transparent;
        }
        
        /* 下方弹出层箭头 */
        .marker-popup.bottom::after {
            top: -10px;
            left: 50%;
            transform: translateX(-50%);
            border-width: 0 10px 10px 10px;
            border-color: transparent transparent white transparent;
        }
        
        /* 左侧弹出层箭头 */
        .marker-popup.left::after {
            right: -10px;
            top: 50%;
            transform: translateY(-50%);
            border-width: 10px 0 10px 10px;
            border-color: transparent transparent transparent white;
        }
        
        /* 右侧弹出层箭头 */
        .marker-popup.right::after {
            left: -10px;
            top: 50%;
            transform: translateY(-50%);
            border-width: 10px 10px 10px 0;
            border-color: transparent white transparent transparent;
        }
        
        .popup-cover {
            position: relative;
            height: 180px;
            cursor: pointer;
            overflow: hidden;
        }
        
        .popup-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .popup-close {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.6);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            z-index: 10;
        }
        
        .popup-close:hover {
            background: rgba(0, 0, 0, 0.8);
            transform: scale(1.1);
        }
        
        .popup-title {
            padding: 15px 15px 0 15px;
            min-height: 60px;
            display: flex;
            align-items: center;
        }
        
        .popup-title h3 {
            margin: 0;
            font-size: 16px;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .popup-footer {
            padding: 12px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .author-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .author-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            overflow: hidden;
        }
        
        .author-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .author-name {
            font-weight: 500;
            font-size: 14px;
        }
        
        .post-info {
            display: flex;
            align-items: center;
            gap: 12px;
            color: #7f8c8d;
            font-size: 13px;
        }
        
        .post-time {
            white-space: nowrap;
        }
        
        .post-likes {
            display: flex;
            align-items: center;
            gap: 5px;
        }
/* 加载指示器 */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
        
.loading-indicator.hidden {
    display: none;
}
        
.loading-spinner {
    width: 30px;
    height: 30px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4264fb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
        
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
        
.loading-text {
    font-size: 16px;
    color: #333;
}

/* 播放按钮样式 - 视频类型专用 */
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
        
.play-button-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
}
        
.play-button-overlay i {
    color: white;
    font-size: 12px;
    margin-left: 4px; /* 使播放图标稍微向右偏移，看起来更居中 */
}