/**
 * 额外组件CSS样式
 * 从map.html中提取的特殊组件样式
 */

/* 宝藏标记样式 */
.treasure-marker-custom {
    background: transparent !important;
    border: none !important;
}

.treasure-icon-wrapper {
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.leaflet-marker-icon.treasure-marker-custom {
    background: transparent !important;
    border: none !important;
}

/* 移除了所有复杂的宝藏标记样式，避免CSS冲突 */

/* 用户位置标记样式 */
.user-location-marker {
    background: white;
    border: 2px solid #3B82F6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 地图控制按钮样式 */
.map-control-btn {
    background: white;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 弹幕容器和相关样式 */
#danmaku-container {
    z-index: 1000 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

/* 覆盖Leaflet默认z-index */
.leaflet-map-pane {
    z-index: 1 !important;
}

.leaflet-tile-pane {
    z-index: 2 !important;
}

.leaflet-overlay-pane {
    z-index: 3 !important;
}

.leaflet-marker-pane {
    z-index: 4 !important;
}

.leaflet-popup-pane {
    z-index: 5 !important;
}

/* 弹幕项样式 */
.danmaku-item {
    position: absolute;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 1001;
    min-width: 60px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.danmaku-item:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
