/* 지도 상권분석 — 왼쪽 패널 + 오른쪽 지도 (모바일: 지도 위, 패널 아래) */
.mp-app { padding-top: 58px; }
.mp-app section { padding: 0; }
.mp-wrap { display: grid; grid-template-columns: 420px minmax(0, 1fr); height: calc(100vh - 58px); height: calc(100dvh - 58px); }
.mp-panel { overflow-y: auto; border-right: 1px solid var(--line); background: #0c1222; padding: 22px 20px 40px; display: flex; flex-direction: column; gap: 14px; }
.mp-map { position: relative; min-height: 320px; }
.mp-head h1 { font-size: 24px; letter-spacing: -.03em; line-height: 1.25; margin: 4px 0 6px; }
.mp-head p { font-size: 13.5px; }
.mp-tabs { margin-top: 10px; }
.mp-tab { font-size: 13px; color: var(--gold2); border-bottom: 1px solid rgba(212, 168, 67, .4); }
.mp-controls { display: flex; flex-direction: column; gap: 10px; position: relative; }
.mp-search { display: flex; gap: 6px; }
.mp-search input { flex: 1; min-width: 0; background: #0e1426; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; }
.mp-search input:focus { outline: none; border-color: rgba(212, 168, 67, .6); }
.mp-search .btn { padding: 0 16px; font-size: 14px; }
.mp-icon { width: 42px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--gold2); font-size: 18px; cursor: pointer; }
.mp-results { list-style: none; position: absolute; top: 46px; left: 0; right: 0; z-index: 5; background: #121a30; border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); max-height: 300px; overflow-y: auto; }
.mp-results li { padding: 0; }
.mp-results li.sk-muted { padding: 10px; font-size: 13px; }
.mp-results button { width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; font: inherit; }
.mp-results button:hover { background: rgba(255, 255, 255, .05); }
.mp-results small { color: var(--faint); font-size: 12px; }
.mp-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.mp-ind { flex: 1 1 160px; }
.mp-cond .sk-field { flex: 1 1 90px; }
.mp-status { font-size: 13px; color: var(--dim); padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }
.mp-status[hidden] { display: none; }
.mp-result { display: flex; flex-direction: column; gap: 14px; }
.mp-result[hidden] { display: none; }
.mp-place small { color: var(--faint); font-size: 12px; }
.mp-place h2 { font-size: 22px; letter-spacing: -.03em; }
.mp-verdict { padding: 16px; gap: 16px; flex-direction: row !important; align-items: center !important; }
.mp-verdict .sk-grade { width: 96px; height: 96px; }
.mp-verdict .sk-grade-in b { font-size: 32px; }
.mp-verdict h3 { font-size: 21px; }
.mp-verdict p { font-size: 13px; }
.mp-money { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mp-m { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: rgba(255, 255, 255, .02); }
.mp-m small { color: var(--dim); font-size: 12px; display: block; }
.mp-m strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.mp-m.pos strong { color: var(--green); } .mp-m.neg strong { color: var(--red); }
.mp-axes { grid-template-columns: 1fr !important; margin: 0 !important; }
.mp-why h4, .mp-block h4 { font-size: 13.5px; margin: 10px 0 6px; color: var(--dim); }
.mp-why h4:first-child { margin-top: 0; }
.mp-why ul { list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: #d6dbe8; }
.mp-why li { padding-left: 12px; position: relative; }
.mp-why li::before { content: ""; position: absolute; left: 0; top: .6em; width: 4px; height: 4px; border-radius: 50%; background: var(--gold2); }
.mp-block h4 b { color: var(--gold2); }
.mp-basis { list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13px; margin-bottom: 6px; }
.mp-basis li { display: flex; justify-content: space-between; gap: 8px; }
.mp-basis a { color: var(--gold2); }
.mp-basis span { color: var(--faint); white-space: nowrap; }
.maplibregl-popup-content { background: #121a30; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-family: inherit; }
.maplibregl-popup-tip { display: none; }
.maplibregl-ctrl-attrib { font-size: 10px; }
.mp-app ~ footer, .mp-app ~ .sk-brandfoot { display: none; }
@media (max-width: 860px) {
  .mp-wrap { grid-template-columns: 1fr; grid-template-rows: 46vh auto; height: auto; }
  .mp-map { order: -1; height: 46vh; }
  .mp-panel { border-right: 0; border-top: 1px solid var(--line); overflow: visible; }
}
