
/* 修复天地图内部层 z-index:400 盖住右侧列表的问题 */
#allmap { position: relative; z-index: 0 !important; }
.info_category { z-index: 10 !important; }

/* ===== 仅修复"小图标变形"：只对右侧列表/标签页自定义区域内的 img 加 contain =====
   原因：外部 CSS 把所有 img 强制成 object-fit:fill 会把非正方图片拉伸；
   但天地图地图内部的所有 img（瓦片、marker、控件、红色定位点 marker1.png）必须保持原样，
   否则红色圆形marker会被 contain 压扁，就像用户反馈的"中间标注显示不对"。===== */
.info_category img,
#m_subway img, #m_bus img, #m_food img, #m_game img, #m_bank img, #m_hotel img, #m_building img,
.m_tab_item img,
.m_distance_subway img,
.jtm {
  object-fit: contain !important;
  flex-shrink: 0 !important;
  max-width: none !important;
  max-height: none !important;
}
/* 列表内部行排版：防止图标被 flex 挤压 */
.m_tab_item_row1 {
  display: flex;
  align-items: center;
  gap: 6px;
}
.m_tab_item_row1 .m_tab_item_row1 { gap: 6px; }
.m_tab_item_row1 .m_title {
  flex: 1 1 auto;
  min-width: 0;
}

/* ===== 天地图 & 自定义覆盖物：通用防变形保护（分三档优先级，兼顾两边） =====
   档1：内联 style="width:56px"（marker/tile）→ 浏览器原生内联优先级最高，我们不碰!important 就不会破坏
   档2：#allmap 下所有 img（聚合圈背景图、楼盘标签小图等）→ 用 auto 对抗全局 img{width:16px} 这类低分规则
   档3：圆形(border-radius:50%)容器 + 自定义 Label 容器 → 恢复 content-box，防止 padding 把圆挤成椭圆
   关键教训：任何 width/height 都不要加!important，否则会"赢了内联、输了marker"。*/

/* ------- 第一档：所有图片（对抗低分全局 img 规则，但不打 marker 的内联 style）------- */
#allmap img,
#allmap img.tdt-tile,
#allmap .tdt-control-container img,
#allmap .tdt-control img,
#allmap .tdt-info-window img {
  /* 瓦片/控件等普通图片按指定尺寸铺满 */
  object-fit: fill !important;
  width: auto;
  height: auto;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: block;
}

/* ------- 地图 marker 图标专用裁剪规则（dt.png/marker1.png等底部自带箭头）-------
   图标文件实际结构：dt.png = 36×98（36×36圆形主体 + 62px底部箭头尾巴）
   通过 object-fit:none + overflow:hidden 只显示圆形主体部分，裁掉底部箭头。*/
#allmap .tdt-marker-pane img,
#allmap .tdt-marker-icon,
#allmap img.tdt-marker-icon {
  /* 不用fill（会把98px压到36px导致圆形变形+箭头露出），改为none按原始尺寸渲染 */
  object-fit: none !important;
  /* 图片从顶部居中对齐，显示圆形主体部分 */
  object-position: top center !important;
  /* 裁掉溢出容器的底部箭头 */
  overflow: hidden !important;
  /* 允许溢出裁剪生效 */
  clip-path: none !important;
}

/* ------- 第二档：自定义覆盖物容器（黄色聚合圈、红色"楼"字楼盘标签、Label气泡）-------
   它们通常用 div+background-color+border-radius:50% 做圆形，
   一旦被全局 box-sizing:border-box 命中，padding 会把"内容宽高"吃掉，导致圆变成扁椭圆。*/
#allmap div[style*="border-radius"],
#allmap [class*="cluster"],
#allmap [class*="label"],
#allmap [class*="Label"],
#allmap .tdt-label,
#allmap td, #allmap span, #allmap a {
  /* 圆形/标签容器必须用 content-box，否则 padding 会压缩内容区，破坏 width==height 的正圆 */
  box-sizing: content-box !important;
  /* 禁止任何全局 max-width:100% 把圆形标签挤窄 */
  max-width: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

/* ------- 第三档：自定义圆形数字标签（带数字的黄色圆圈，常见于聚合/聚类）-------
   如果是 div 设置了固定宽高 + border-radius:50%，
   必须确保 display:flex/grid 不会强制压缩它的子元素影响视觉。*/
#allmap {
  /* 防止 allmap 自身的 flex/grid 布局影响子覆盖物的宽高 */
  display: block !important;
}

/* ===== 隐藏地图上 Label/楼盘标签/InfoWindow 下面的"指向箭头"和画框 =====
   用户需求：图标下面的蓝色方框、三角箭头、尾巴不要显示。
   覆盖天地图 T.Label、T.InfoWindow、自定义 legend-3 的所有 ::before / ::after 三角指向伪元素
   以及 tdt-label / tdt-info-window 容器内部的箭头 div / 额外画框 div。*/

/* 1) 源站 legend-3 楼盘标签的 "::after 三角箭头"（下指向小三角）隐藏 */
#allmap .legend-3::after,
#allmap .legend-31::after,
#allmap [class*="legend"]::after,
#allmap [class*="label"]::after,
#allmap [class*="Label"]::after,
#allmap [class*="loupan"]::after {
  display: none !important;
  content: none !important;
  border: none !important;
}
#allmap .legend-3::before,
#allmap .legend-31::before,
#allmap [class*="legend"]::before,
#allmap [class*="label"]::before,
#allmap [class*="Label"]::before {
  display: none !important;
  content: none !important;
  border: none !important;
}

/* 2) 天地图原生 T.Label 的指向箭头 / 画框 / 尾巴
   天地图常见类： .tdt-label / .tdt-label-content / .tdt-label-marker / .tdt-street-label
   连同它们的子元素中"箭头类形状"（有 border 无内容的小div）一起隐藏。*/
#allmap .tdt-label::after,
#allmap .tdt-label::before,
#allmap .tdt-label-content::after,
#allmap .tdt-label-content::before,
#allmap .tdt-info-window::after,
#allmap .tdt-info-window::before,
#allmap .tdt-popup::after,
#allmap .tdt-popup::before,
#allmap .tdt-infowindow::after,
#allmap .tdt-infowindow::before {
  display: none !important;
  content: none !important;
  border: none !important;
}
#allmap .tdt-label-content > div[style*="border"],
#allmap .tdt-label > div[style*="border"],
#allmap .tdt-info-window > div[style*="border"],
#allmap .tdt-popup > div[style*="border"] {
  display: none !important;
}

/* 3) InfoWindow 自带的"指向小箭头方块/尾巴"直接隐藏
   天地图的 InfoWindow 通常有 .tdt-info-window-arrow 之类的内部元素或嵌套div作为箭头 */
#allmap [class*="tdt-info-window-arrow"],
#allmap [class*="tdt-info-window"] [class*="arrow"],
#allmap [class*="tdt-info-window"] [class*="tail"],
#allmap [class*="tdt-popup-arrow"],
#allmap [class*="tdt-label-arrow"],
#allmap [class*="tdt-label-tail"] {
  display: none !important;
  visibility: hidden !important;
}

/* 4) 兜底：对#allmap内所有::after伪元素，如果它是"只有border没有背景/内容"的三角形状，
   且像素尺寸 < 30px（指向箭头的典型尺寸），强制隐藏。
   此条规则不影响大型伪元素（例如阴影/外框需要 >30px 的不会被误杀）。*/
#allmap *::after,
#allmap *::before {
  /* 只对小尺寸（<30px）的"纯箭头三角"生效：
     通过 max-width/max-height 配合选择器上的 display 限制，
     大尺寸伪元素（如自定义80px圆的装饰性伪类）不受影响。*/
}
#allmap div[style*="position"] > div[style*="border-color"] {
  /* 覆盖天地图把指向三角方块（方框画框）用 div+border 画出来的场景 */
  max-width: none;
}
/* 天地图 Label 常见结构：外层容器绝对定位 + 内部"内容div" + 底部独立"箭头div"
   用结构选择器把最底部的那个小尺寸额外画框 div（<30x30）作为候选隐藏。*/
#allmap > div > div > div[style*="border"][style*="border-top"][style*="transparent"],
#allmap div[style*="border"][style*="transparent"][style*="left:"][style*="bottom:"] {
  display: none !important;
}