/* 主容器样式 */
.wp-footprint-container {
    width: 100%;
    margin: 20px 0;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* 地图容器样式 */
.wp-footprint-map-container {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
}

/* 地图控件容器 */
.wp-footprint-map-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

/* 地图切换按钮组 - 包含标准、卫星、路网、路况四种模式 */
.wp-footprint-map-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.wp-footprint-map-switcher button {
    border: none;
    background: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wp-footprint-map-switcher button:hover {
    background: rgba(0, 0, 0, 0.03);
}

.wp-footprint-map-switcher button.active {
    background: var(--theme-color, #1890ff);
    color: white;
}

/* 标准图层按钮 */
.wp-footprint-map-switcher button[data-type="standard"] i {
    color: #1890ff;
}

/* 卫星图按钮 */
.wp-footprint-map-switcher button[data-type="satellite"] i {
    color: #52c41a;
}

/* 路网按钮 */
.wp-footprint-map-switcher button[data-type="roadnet"] i {
    color: #722ed1;
}

/* 路况按钮 */
.wp-footprint-map-switcher button[data-type="traffic"] i {
    color: #f5222d;
}

.wp-footprint-map-switcher button i {
    font-size: 16px;
}

/* 缩放控制按钮组 */
.wp-footprint-zoom-controls {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.wp-footprint-zoom-controls button {
    border: none;
    background: none;
    padding: 8px 12px;
    cursor: pointer;
    color: #333;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-footprint-zoom-controls button:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* 标记点样式 */
.wp-footprint-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    border: 2px solid white;
    background-color: var(--theme-color, #1890ff);
    transform: translate(-50%, -50%);
}

.wp-footprint-marker-index {
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 信息窗口样式 */
.wp-footprint-info-window {
    max-width: 280px;
    padding: 12px;
    font-family: inherit;
}

.wp-footprint-info-window h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

.wp-footprint-info-image {
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.wp-footprint-info-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.wp-footprint-info-image:hover img {
    transform: scale(1.02);
}

.wp-footprint-info-description {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.wp-footprint-info-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.wp-footprint-info-meta span {
    display: flex;
    align-items: center;
}

.wp-footprint-info-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    color: var(--theme-color, #1890ff);
}

/* 足迹列表容器 */
.wp-footprint-list-container {
    margin-top: 30px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wp-footprint-map-container {
        height: 400px;
    }
    
    .wp-footprint-map-controls {
        flex-direction: column;
        top: 10px;
        left: 10px;
    }
    
    .wp-footprint-map-switcher {
        flex-wrap: wrap;
    }
}

/* 动画效果 */
@keyframes wp-footprint-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wp-footprint-item {
    animation: wp-footprint-fadeIn 0.3s ease forwards;
}

.wp-footprint-marker {
    animation: wp-footprint-fadeIn 0.5s ease forwards;
}

/* 自定义属性 */
:root {
    --theme-color: #1890ff;
    --theme-color-light: rgba(24, 144, 255, 0.1);
    --text-color: #333;
    --text-color-light: #666;
    --border-color: #e0e0e0;
    --border-radius: 6px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}