/* 高德地图弹窗样式：配合 amap-map.js 使用，只在 .map-dialog--live 下生效，不影响旧的跳转弹窗 */
.map-dialog--live{max-width:600px}
.map-dialog--live .map-content{padding:24px 24px 20px}
.amap-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:14px}
.map-dialog--live .map-symbol{width:44px;height:44px;font-size:23px;margin-bottom:0;flex-shrink:0}
.amap-head-copy{min-width:0;flex:1}
.map-dialog--live .amap-head-copy h2{font-size:20px;margin:0}
.amap-note{font-size:12px;line-height:1.7;color:var(--muted);margin:4px 0 0}
.map-dialog--live .map-query{margin:0 0 10px;background:#f5f6f1;padding:9px 11px;border-radius:8px;font-size:11.5px;line-height:1.6;color:var(--ink);overflow-wrap:anywhere}
.amap-stage{position:relative;z-index:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#eef2ea}
.amap-canvas{width:100%;height:220px}
.amap-canvas img{max-width:none}
.amap-stage.is-failed .amap-canvas{height:auto}
.amap-failed{display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center;padding:30px 20px;font-size:12px;line-height:1.7;color:var(--muted)}
.amap-failed strong{font-size:14px;color:var(--ink)}
.amap-failed-hint{color:#8b968d}
.amap-pin{position:relative;width:28px;height:28px;border-radius:50%;background:var(--green);color:#fff;border:2px solid #fff;box-shadow:0 2px 8px #1c3b3440;font-size:12px;font-weight:700;display:grid;place-items:center;line-height:1}
.amap-pin::after{content:"";position:absolute;left:50%;bottom:-6px;transform:translateX(-50%);border:5px solid transparent;border-top-color:var(--green);border-bottom-width:0}
.amap-status{font-size:12px;line-height:1.7;color:var(--muted);margin:10px 0 0;min-height:18px}
.amap-status.is-error{color:#a2542f}
.amap-results{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:6px;max-height:130px;overflow:auto}
.amap-results li{margin:0}
.map-dialog--live .amap-results button{width:100%;margin:0;display:flex;align-items:flex-start;gap:10px;text-align:left;background:#f7f8f4;border:1px solid transparent;border-radius:10px;padding:9px 11px;min-height:44px}
.map-dialog--live .amap-results button:hover{background:#eef2ea}
.map-dialog--live .amap-results button[aria-current="true"]{background:#e8f1eb;border-color:#cfe1d5}
.amap-rank{width:20px;height:20px;flex-shrink:0;margin-top:1px;border-radius:50%;background:var(--green);color:#fff;font-size:11px;display:grid;place-items:center}
.amap-poi-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.amap-poi-copy strong{font-size:13px;font-weight:650;color:var(--ink);line-height:1.5}
.amap-poi-copy span{font-size:11px;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}
.amap-route-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:14px}
.amap-route-modes{display:inline-flex;border:1px solid #dbe3da;border-radius:9px;overflow:hidden;background:#fff}
.map-dialog--live .amap-route-modes button{width:auto;margin:0;border:0;border-radius:0;background:transparent;color:#5a6a60;font-size:12px;padding:10px 14px;min-height:42px}
.map-dialog--live .amap-route-modes button[aria-pressed="true"]{background:#e8f1eb;color:var(--deep);font-weight:700}
.map-dialog--live #amap-route-go{width:auto;margin:0;flex:1;min-width:150px;border:1px solid var(--green);background:#fff;color:var(--green);border-radius:9px;font-size:12px;font-weight:650;min-height:42px;padding:10px 14px}
.map-dialog--live #amap-route-go:hover{background:#eef4ef}
.amap-actions{display:flex;gap:10px;margin-top:12px}
.map-dialog--live .amap-actions a,.map-dialog--live .amap-actions button{width:auto;margin:0;flex:1;min-width:0;font-size:12.5px;padding:10px 8px;white-space:nowrap}
.map-dialog--live button:disabled{opacity:.55}
.amap-foot{font-size:10.5px;line-height:1.7;color:#8b968d;margin:12px 0 0}
/* 地点气泡：完全由本站自绘（#amap-bubble 覆盖层），不再使用高德的信息窗体，
   因此也不会再出现它自带的空壳/关闭按钮条。名称一律完整显示，不做省略号截断。 */
.amap-bubble{position:absolute;left:0;top:0;right:0;bottom:0;z-index:999;pointer-events:none}
#map-dialog .amap-poi-card{position:absolute;transform:translate(-50%,-100%);width:max-content;min-width:170px;max-width:260px;background:#fff;border:1px solid #e0e7dd;border-radius:11px;box-shadow:0 8px 22px #1c3b3429;padding:11px 34px 11px 13px;font-size:12px;line-height:1.65;color:var(--ink);text-align:left;pointer-events:auto}
#map-dialog .amap-poi-card::after{content:"";position:absolute;left:var(--amap-arrow-x,50%);bottom:-5px;width:10px;height:10px;transform:translateX(-50%) rotate(45deg);background:#fff;border-right:1px solid #e0e7dd;border-bottom:1px solid #e0e7dd;border-radius:0 0 2px 0}
/* 标记点靠近地图上沿时气泡翻到下方，箭头朝上 */
#map-dialog .amap-poi-card.is-below{transform:translate(-50%,0)}
#map-dialog .amap-poi-card.is-below::after{top:-5px;bottom:auto;border:0;border-left:1px solid #e0e7dd;border-top:1px solid #e0e7dd;border-radius:2px 0 0 0}
#map-dialog .amap-poi-name{display:block;font-size:13.5px;font-weight:650;line-height:1.5;color:var(--ink);white-space:normal;overflow-wrap:anywhere}
#map-dialog .amap-poi-line{display:block;margin-top:3px;color:#5f6d65;white-space:normal;overflow-wrap:anywhere}
#map-dialog .amap-poi-close{position:absolute;right:6px;top:6px;width:22px;height:22px;min-height:0;margin:0;padding:0;display:grid;place-items:center;border:0;border-radius:50%;background:#f1f3ec;color:#6c7a70;font-size:15px;line-height:1;cursor:pointer}
#map-dialog .amap-poi-close:hover{background:#e6ebe1;color:var(--deep)}
/* 兜底：高德自带的信息窗体（外壳 / 标题条 / 关闭按钮 / 箭头，类名都是 amap-info 系列）
   一律不显示。本站自己画的元素都用 amap-poi- / amap-bubble 前缀，不会被误伤。 */
#map-dialog [class*="amap-info"]{display:none!important}

@media(max-width:700px){
  .map-dialog--live .map-content{padding:20px}
  .amap-canvas{height:196px}
  .amap-results{max-height:132px}
  .amap-route-modes{width:100%}
  .map-dialog--live .amap-route-modes button{flex:1;padding:10px 0}
  .map-dialog--live #amap-route-go{flex:1 1 100%}
}
