/* 清除百度地图信息窗口默认阴影 */
.BMap_pop {
  box-shadow: none !important; /* 覆盖默认阴影 */
  border: none !important; /* 可选：移除默认边框 */
}

/* 清除信息窗口箭头的阴影（若有） */
.BMap_shadow {
  display: none !important; /* 完全隐藏阴影元素 */
}


/* 隐藏信息窗口的各个组成部分（边框、边角、箭头等） */
.BMap_top, .BMap_bottom, .BMap_center, 
.BMap_pop > div[style*="width: 25px; height: 25px;"],
.BMap_pop > div[style*="width: 34px; height: 50px;"] {
    display: none !important;
}

/* 自定义信息窗口内容容器样式 */
.BMap_bubble_content {
    background: white !important;
    border-radius: 12px !important; /* 添加圆角 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important; /* 添加自定义阴影 */
    padding:0px !important;
    border: 1px solid #ddd !important; /* 添加边框 */
    width: 320px !important; /* 确保宽度一致 */
    height: auto !important; /* 高度自适应 */
    position: relative !important; /* 为箭头定位 */
}

/* 添加自定义箭头 */
.BMap_bubble_content::after {
    content: '';
    position: absolute;
    bottom: -10px; /* 箭头位置 */
    left: 40%;
    transform: translateX(-40%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white; /* 箭头颜色与窗口背景一致 */
    z-index: 10; /* 确保箭头显示在最上层 */
}

.BMap_bubble_content::before {
    content: '';
    position: absolute;
    bottom: -11px; /* 边框箭头，比实际箭头大1px */
    left: 40%;
    transform: translateX(-40%);
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 11px solid #ddd; /* 边框颜色与窗口边框一致 */
    z-index: 9; /* 位于实际箭头下方 */
}

/* 确保信息窗口内容正确显示 */
.BMap_bubble_content > div {
    width: 100% !important;
    height: 100% !important;
}

/* 调整信息窗口的位置，补偿被隐藏的箭头 */
.BMap_pop {
    margin-top: 20px !important; /* 根据需要调整垂直位置 */
}

/* 确保信息窗口完整显示（解决高度问题） */
.BMap_pop > div[style*="width: 300px; height: 100px;"] {
    height: auto !important; /* 允许高度自适应 */
    overflow: visible !important; /* 允许内容溢出 */
}