/* 考场详情页位置地图；只作用于 .kc-map，桌面/手机高度与原来的 iframe 地图保持一致。 */
.kc-map .kc-map-canvas {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 340px;
    overflow: hidden;
    border: 1px solid #dfe6f0;
    border-radius: 7px;
    background: #eef2f7;
}

/* Leaflet 初始化前（含资源加载中）的占位提示，容器一旦有地图内容即自动消失。 */
.kc-map .kc-map-canvas:empty::before {
    content: "地图加载中…若长时间无法显示，请使用下方地图链接";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    background: #eef2f7;
    color: #61718a;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}

.kc-map .kc-map-canvas[data-kc-map-failed]::before {
    display: none;
}

.kc-map .kc-map-fail {
    margin: 0;
    padding: 24px;
    color: #61718a;
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}

.kc-map .kc-map-note {
    margin-top: 10px;
}

.kc-map .leaflet-container {
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
    background: #eef2f7;
}

.kc-map .leaflet-container:focus-visible {
    outline: 3px solid #89b9ff;
    outline-offset: -3px;
}

.kc-map .leaflet-control-attribution {
    padding: 0 4px;
    background: rgba(255, 255, 255, 0.86);
    color: #61718a;
    font-size: 11px;
    line-height: 1.7;
}

.kc-map .leaflet-control-attribution a {
    color: #1765d5;
}

.kc-map .leaflet-control-zoom a {
    color: #263449;
}

.kc-map .leaflet-popup-content {
    margin: 9px 12px;
    font-size: 13px;
    line-height: 1.65;
}

.kc-map .leaflet-popup-content strong {
    color: #16243a;
    font-weight: 600;
}

@media (max-width: 767px) {
    .kc-map .kc-map-canvas {
        height: 300px;
    }
}

@media (max-width: 640px) {
    .kc-map .kc-map-canvas {
        height: 260px;
    }
}
