/* 오마잇맵 전용. /map 에서만 받는다 — 모든 화면이 지도 CSS 를 지지 않게. */
.map-shell { display: grid; gap: var(--s3); }
/* 지도는 화면 폭을 꽉 채운다 — .wrap 의 좌우 여백만큼 밖으로 민다.
   640px 이하는 스킨이 .wrap 여백을 16px 로 고정해 두어(style.css 6298행) 그 값을 그대로 쓴다.
   1024px 부터는 레일 자리 때문에 .wrap 이 한 번 더 좁아지므로(--s6) 그만큼 더 민다. */
 /* 지도가 꺼져 있어도 상자는 자리를 지킨다 — 안 그러면 빈 상태 문구가 허공에 뜬다. */
.map-frame { position: relative; min-height: 260px; width: auto; margin-inline: calc(var(--gutter) * -1);
  border-block: 1px solid var(--line); background: var(--surface-2); }
@media (min-width: 1024px) { .map-frame { min-height: 380px; } }
/* 빈 상태가 상자 안에 있는 동안에는 상자 밖 상태 줄을 겹쳐 쓰지 않는다. */
.map-shell:has(.map-empty:not([hidden])) > .map-state { display: none; }
.map-canvas { width: 100%; height: 260px; background: var(--surface-2); }
/* ORDER-139 B2: 빈 상태는 상자 안 가운데. 밖에 작은 회색으로 두면 상자가 고장 난 것처럼 보인다. */
.map-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--s3); padding: var(--s4); text-align: center; }
.map-empty > p { margin: 0; color: var(--ink); font-size: var(--t-body); font-weight: 600; }
.map-empty[hidden] { display: none; }
@media (max-width: 640px) {
  .map-frame { margin-inline: -16px; }
}
.map-head { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.map-head .btn { flex: 0 0 auto; }
.map-radius { margin: 0; }
.map-state { margin: 0; color: var(--ink-2); font-size: var(--t-caption); }
.map-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.map-item { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; padding-left: var(--s3); }
.map-item--bad { border-left-color: var(--bad-text); }
.map-item--warn { border-left-color: var(--warn-text); }
.map-item--good { border-left-color: var(--line); }
.map-item-body { display: grid; gap: 2px; min-width: 0; }
.map-item-name { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; font: inherit; font-size: var(--t-body); font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
.map-item-body small { font-size: var(--t-caption); line-height: 1.4; }
.map-item-score { flex: 0 0 auto; margin-left: auto; min-width: 52px; color: var(--ink); font-size: var(--t-sub); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; text-decoration: none; }
.map-item-score small { font-size: var(--t-caption); font-weight: 600; }
.map-item-score.is-unknown { color: var(--ink-2); font-weight: 600; }
.map-item--bad .map-item-score { color: var(--bad-text); }
.map-item--warn .map-item-score { color: var(--warn-text); }
.map-dish-list { display: grid; margin: var(--s2) 0 0; padding: 0; list-style: none; }
.map-dish-list li { border-bottom: 1px solid var(--line); }
.map-dish-list a { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding: var(--s3) 0; color: var(--ink); text-decoration: none; }
.map-dish-list small { flex: 0 0 auto; color: var(--ink-2); font-size: var(--t-caption); white-space: nowrap; }
@media (min-width: 1024px) {
  .map-canvas { height: 380px; }
  .map-frame { margin-inline: calc((var(--gutter) + var(--s6)) * -1); }
  .map-list { grid-template-columns: 1fr 1fr; column-gap: var(--s6); }
}
