/* 足迹地图前端样式 */
.fp-gallery {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
    scrollbar-color: #aaa transparent;
}

.fp-gallery::-webkit-scrollbar {
    height: 20px;
}

.fp-gallery::-webkit-scrollbar-track {
    background: transparent;
}

.fp-gallery::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 3px;
}

/* 照片滚动按钮 */
.fp-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.35);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: background .2s;
}

.fp-scroll-btn:hover {
    background: rgba(0,0,0,.55);
}

.fp-scroll-left {
    left: 4px;
}

.fp-scroll-right {
    right: 4px;
}

/* 修复百度地图标记点阴影显示 bug */
.BMap_shadow {
    display: none !important;
}

/* 隐藏百度地图 InfoWindow 阴影精灵图（WebGL 版精灵图错位导致阴影偏移） */
img[src*="iws3.png"] {
    display: none !important;
}

.BMap_bubble_pop {
    background: rgba(255,255,255,0.88) !important;
}

.BMap_bubble_content {
    width: 284px !important;
}

.BMap_bubble_title {
    margin: 8px 0 0 !important;
    font-weight: bold !important;
}

/* 全屏按钮 */
.fp-fullscreen-btn {
    position: absolute;
    inset: auto 15px 80px auto;
    z-index: 10;
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 14px;
    user-select: none;
}

.fp-fullscreen-btn:hover {
    background: #f5f5f5;
}

/* 主题内地图占位与异常提示：避免地图 SDK 慢或未配置时出现一块空白 */
.fp-map-note {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    height: 100%;
    padding: 20px;
    border: 1px dashed rgba(100, 116, 139, .35);
    border-radius: 16px;
    background: #f7faff;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

html[data-night="night"] .fp-map-note {
    border-color: rgba(255, 255, 255, .14);
    background: #111a25;
    color: #9fb0c4;
}
