/* 地图选点：手机上铺满一屏，电脑上是中间一个框。颜色跟手机端、后台一样的暖纸色。 */
.mp-wrap { --mp-bg: #fffdf9; --mp-panel: #f6f1e8; --mp-line: rgba(48, 32, 20, .14); --mp-ink: #1f1710; --mp-ink-2: #4a3f34; --mp-ink-3: #75655a;
  --mp-accent: #c4561f; --mp-on-accent: #fffaf4; --mp-bad: #b8402f;
  position: fixed; inset: 0; z-index: 90; background: rgba(31, 23, 16, .42); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .18s; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
.mp-wrap.on { opacity: 1; }
.mp { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 40px); display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px;
  background: var(--mp-bg); color: var(--mp-ink); border-radius: 18px; box-shadow: 0 30px 70px -30px rgba(31, 23, 16, .7); overflow-y: auto; }
.mp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mp-top b { font-size: 17px; font-weight: 800; }
.mp-top small { display: block; font-size: 13px; color: var(--mp-ink-3); margin-top: 1px; overflow-wrap: anywhere; }
.mp-x { flex: none; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--mp-line); background: var(--mp-panel); color: var(--mp-ink-2); font: inherit; font-weight: 700; }
.mp-search { position: relative; }
.mp-search input, .mp-in { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--mp-line); background: #fff; color: var(--mp-ink); font: inherit; font-size: 16px; outline: none; }
.mp-search input:focus, .mp-in:focus { border-color: var(--mp-accent); }
.mp-tips { position: absolute; z-index: 3; top: 48px; left: 0; right: 0; max-height: 300px; overflow-y: auto; background: #fff; border: 1px solid var(--mp-line); border-radius: 12px;
  box-shadow: 0 16px 34px -18px rgba(31, 23, 16, .55); }
.mp-tips button { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--mp-line); background: none; font: inherit; color: var(--mp-ink); }
.mp-tips button:last-child { border-bottom: 0; }
.mp-tips button:active, .mp-tips button:hover { background: var(--mp-panel); }
.mp-tips b { font-size: 15px; } .mp-tips small { display: block; font-size: 12.5px; color: var(--mp-ink-3); margin-top: 2px; }
.mp-tips p { margin: 0; padding: 12px 14px; font-size: 13.5px; color: var(--mp-ink-3); }
.mp-map { position: relative; height: 420px; border-radius: 14px; overflow: hidden; background: #dfe3d8; border: 1px solid var(--mp-line); }
.mp-map > div:first-child { position: absolute; inset: 0; }
/* 针：方块左下角放在地图中心，绕这个角转 -45°，左下角就是针尖 */
.mp-pin { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -28px 0 0 0; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); transform-origin: 0 100%;
  background: var(--mp-accent); box-shadow: 0 0 0 3px #fff, 0 8px 16px -6px rgba(0, 0, 0, .6); pointer-events: none; z-index: 2; }
.mp-pin::after { content: ""; position: absolute; left: 9px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.mp-layer { position: absolute; z-index: 2; right: 10px; top: 10px; display: flex; background: rgba(255, 253, 249, .95); border-radius: 10px; padding: 3px; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .5); }
.mp-layer button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--mp-ink-2); }
.mp-layer button.on { background: var(--mp-ink); color: var(--mp-on-accent); }
.mp-addr { min-height: 22px; font-size: 14px; font-weight: 700; color: var(--mp-ink-2); overflow-wrap: anywhere; }
.mp-addr.bad { color: var(--mp-bad); }
.mp-addr:empty { display: none; }
.mp-cur { font-size: 13px; color: var(--mp-ink-3); overflow-wrap: anywhere; }
.mp-cur a, .mp-nokey a { color: var(--mp-accent); font-weight: 700; }
.mp-nokey { font-size: 14px; line-height: 1.65; color: var(--mp-ink-2); background: var(--mp-panel); border-radius: 12px; padding: 12px 14px; }
.mp-nokey ol { margin: 6px 0 8px; padding-left: 20px; }
.mp-acts { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.mp-btn { height: 48px; border-radius: 13px; border: 1.5px solid var(--mp-line); background: var(--mp-panel); color: var(--mp-ink); font: inherit; font-size: 15.5px; font-weight: 800; }
.mp-btn.main { background: var(--mp-accent); border-color: transparent; color: var(--mp-on-accent); }
.mp-btn:disabled { opacity: .6; }
.mp-clear { height: 40px; border: 0; background: none; color: var(--mp-bad); font: inherit; font-weight: 700; }
.mp-clear.sure { background: rgba(184, 64, 47, .1); border-radius: 10px; }
@media (max-width: 720px) {
  .mp-wrap { align-items: stretch; }
  .mp { width: 100%; max-height: none; height: 100%; border-radius: 0; padding: calc(env(safe-area-inset-top) + 10px) 16px calc(env(safe-area-inset-bottom) + 14px); }
  .mp-map { flex: 1; min-height: 260px; height: auto; }
}
@media (prefers-reduced-motion: reduce) { .mp-wrap { transition: none; } }
