/* 地图相关样式 */

.map-section {
    position: relative;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
}

.map {
    width: 100%;
    height: 100%;
}

.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
}

.map-controls .btn {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/*
 * 高德地图版权与审图号（合规要求，须保留 .amap-copyright 可见）
 * 审图号由 SDK 自动注入，随底图版本更新，勿在代码中写死 GS 号。
 */
.map-section .amap-logo {
    /* Logo 与审图号同在左下，隐藏 Logo 以免重叠；版权条已含高德署名 */
    display: none !important;
}

.map-section .amap-copyright {
    display: block !important;
    left: 8px !important;
    right: auto !important;
    bottom: 6px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 3px 8px;
    font-size: 11px !important;
    line-height: 1.4;
    color: #999 !important;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    z-index: 150;
    pointer-events: none;
    user-select: none;
}

.map-section .amap-copyright a {
    color: #999 !important;
    text-decoration: none;
    pointer-events: auto;
}

/* 比例尺上移，避免遮挡左下角审图号 */
.map-section .amap-scalecontrol {
    left: 8px !important;
    bottom: 36px !important;
}

/* 地图信息窗口 */
.map-info-window {
    padding: 0.5rem;
}

.map-info-window h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.map-info-window p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
}

/* 首页地图：已完成任务流域中心点（暖色：土壤橙 / 深橙） */
.task-map-point {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-soil-orange);
    border: 2px solid var(--color-white);
    box-shadow: 0 0 0 1px rgba(214, 137, 16, 0.45);
    opacity: 0.92;
}

.task-map-cluster {
    display: inline-block;
    border-radius: 50%;
    background: var(--color-deep-orange);
    color: var(--color-white);
    border: 2px solid var(--color-white);
    box-shadow: 0 0 0 1px rgba(243, 156, 18, 0.4);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}
