/* ============================================================
   联系我们页 · 地图样式补丁  contact-map.css
   作用：替换原百度地图（BMap）相关样式，适配 Leaflet
   依赖：assets/vendor/leaflet/leaflet.css
   ============================================================ */

/* ===== 地图容器 ===== */
.ct-contact .ct-map{
    background:#eef2f9;
    position:relative;
    font-family:"PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif;
}

/* Leaflet 容器需要显式继承圆角裁切 */
.ct-contact .ct-map .leaflet-container{
    width:100%;
    height:100%;
    background:#eef2f9;
    font-family:inherit;
    outline:none;
}

/* ===== 自定义标记（替代原 BMapLabel） ===== */
.ct-map-marker{
    width:18px !important;
    height:18px !important;
    margin:0 !important;
}
.ct-map-marker-dot{
    display:block;
    width:18px;
    height:18px;
    border-radius:50%;
    background:var(--ct-blue);
    border:3px solid #fff;
    box-shadow:0 2px 8px rgba(13,110,253,.55),0 0 0 1px rgba(13,110,253,.25);
}

/* ===== 交通参考点标记（地铁站 / 公交站） ===== */
.ct-map-ref{
    width:14px !important;
    height:14px !important;
    margin:0 !important;
}
.ct-map-ref-dot{
    display:block;
    width:14px;
    height:14px;
    border-radius:50%;
    border:3px solid #fff;
    box-shadow:0 2px 6px rgba(0,0,0,.35);
}
.ct-contact .leaflet-popup-content strong{
    color:#16223d;
}

/* ===== 弹出信息框 ===== */
.ct-contact .leaflet-popup-content-wrapper{
    border-radius:10px;
    box-shadow:0 8px 24px rgba(20,35,60,.18);
}
.ct-contact .leaflet-popup-content{
    margin:10px 14px;
    font-size:14px;
    font-weight:700;
    color:var(--ct-navy);
    line-height:1.5;
}
.ct-contact .leaflet-popup-tip{
    box-shadow:none;
}

/* ===== 缩放按钮与比例尺 ===== */
.ct-contact .leaflet-control-zoom{
    border:none !important;
    box-shadow:0 4px 14px rgba(20,35,60,.16) !important;
    border-radius:10px;
    overflow:hidden;
}
.ct-contact .leaflet-control-zoom a{
    width:32px;
    height:32px;
    line-height:32px;
    color:var(--ct-navy);
    background:#fff;
    border-bottom:1px solid var(--ct-line);
    font-size:18px;
    font-weight:700;
}
.ct-contact .leaflet-control-zoom a:hover{
    background:#eef4ff;
    color:var(--ct-blue);
}
.ct-contact .leaflet-control-zoom a:last-child{
    border-bottom:none;
}

/* ===== 版权信息（地图数据来源标注，不可移除） ===== */
.ct-contact .leaflet-control-attribution{
    background:rgba(255,255,255,.88);
    color:#64748b;
    font-size:11px;
    padding:2px 6px;
    border-radius:6px 0 0 0;
}
.ct-contact .leaflet-control-attribution a{
    color:var(--ct-blue);
}

/* ===== 加载态：瓦片未就绪时显示占位 ===== */
.ct-map-loading{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--ct-mut);
    font-size:13.5px;
    background:#eef2f9;
    z-index:500;
    pointer-events:none;
    transition:opacity .3s ease;
}
.ct-map-loading.is-hidden{
    opacity:0;
}
