:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #5b6270;
  --line: #e2e5ea;
  --accent: #1f4fd1;
  --on-accent: #ffffff;
  --ok: #15803d;
  --warn: #b45309;
  --new: #e11d48;
  --shadow: 0 2px 10px rgb(0 0 0 / 0.14);
  color-scheme: light;
  font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #1a1d23;
    --text: #eef0f3;
    --muted: #a0a7b4;
    --line: #2b3039;
    --accent: #7aa2ff;
    --on-accent: #0b1020;
    --ok: #4ade80;
    --warn: #f59e0b;
    --new: #fb7185;
    --shadow: 0 2px 12px rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}

[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100dvh;
  background: var(--bg);
  color: var(--text);
}
button { font: inherit; color: inherit; }

/* 제목 줄: 박스 없이 지도 위에 글자만. 지도 무늬 위에서도 읽히도록 배경색 테두리(halo)를 두른다. */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap; /* 좁은 화면에서는 '비공식 · 서비스 안내'가 다음 줄로 */
  align-items: center;
  gap: 0 8px;
  max-width: calc(100% - 150px); /* 오른쪽의 출처 표기·HOT 버튼 자리를 비워 둔다 */
  padding: 10px 14px;
  padding-top: calc(10px + env(safe-area-inset-top));
  pointer-events: none; /* 글자 위에서도 지도를 끌 수 있게 — 버튼만 누를 수 있다 */
  text-shadow: 0 0 2px var(--surface), 0 0 4px var(--surface), 0 0 8px var(--surface);
}
.topbar h1 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.tag-unofficial {
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
}
.tag-unofficial:hover { color: var(--text); text-decoration: underline; }
.tag-unofficial:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 서비스 안내 */
.about { font-size: 13.5px; line-height: 1.6; }
.about-lead { margin: 14px 0 0; }
.about h3 { margin: 18px 0 6px; color: var(--muted); font-size: 13px; }
.about ul { margin: 0; padding-left: 18px; }
.about li + li { margin-top: 4px; }
.about p { margin: 0; }
.about a { color: var(--accent); }

/* ── 레이아웃: 데스크톱 좌측 패널 + 지도 / 모바일 지도 + 바텀시트 (명세 4.3) ── */
.app { position: relative; min-height: 0; }
.map-wrap { position: relative; min-height: 0; }
#map { position: absolute; inset: 0; background: var(--bg); }

.panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
}
.panel-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.sheet-grip { display: none; }

@media (min-width: 768px) {
  .app { display: grid; grid-template-columns: 380px 1fr; grid-template-areas: "panel map"; }
  .panel { grid-area: panel; border-right: 1px solid var(--line); }
  .map-wrap { grid-area: map; }
  .chip-row { flex-wrap: wrap; }
}

@media (max-width: 767px) {
  .map-wrap { position: absolute; inset: 0; }
  .panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 800;
    height: var(--sheet-h, 140px);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgb(0 0 0 / 0.18);
    transition: height 0.25s ease;
  }
  .panel.is-dragging { transition: none; }
  .sheet-grip {
    display: flex;
    justify-content: center;
    padding: 9px 0 7px;
    cursor: grab;
    touch-action: none;
  }
  .sheet-grip span { width: 40px; height: 4px; border-radius: 2px; background: var(--line); }
  .quals { padding-top: 0 !important; }
  .fab { bottom: calc(var(--sheet-h, 140px) + 12px) !important; transition: bottom 0.25s ease; }
  .toast { bottom: calc(var(--sheet-h, 140px) + 16px) !important; }
  .leaflet-control-zoom { display: none; }
}

/* ── 패널 머리: 내 자격 + 건수·정렬·필터 ── */
.quals { display: flex; align-items: center; gap: 8px; padding: 12px 16px 0; }
.quals-label { flex: none; font-size: 12px; font-weight: 700; color: var(--muted); }
.chip-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chip-row::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.chip .n { margin-left: 2px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .n { color: inherit; opacity: 0.8; }
.chip--zero:not([aria-pressed="true"]) { opacity: 0.45; }
.chip:focus-visible, .seg button:focus-visible, .btn-filter:focus-visible, .card:focus-visible, .sheet-grip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.result-count { margin: 0; font-size: 13px; white-space: nowrap; }
.result-count b { color: var(--accent); font-variant-numeric: tabular-nums; }
.result-tools { display: flex; flex: none; align-items: center; gap: 6px; }
.seg button, .btn-filter { white-space: nowrap; }

.seg { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--bg); }
.seg button {
  padding: 5px 9px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); }

.btn-filter {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 12.5px;
  cursor: pointer;
}
.badge {
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 700;
}

/* ── 요약 카드 ── */
.list { margin: 0; padding: 0; list-style: none; }
.card {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  cursor: pointer;
}
.card > span { display: block; }
.card:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.card-top { display: flex !important; align-items: baseline; gap: 8px; }
.card-discount { color: var(--accent); font-size: 16px; font-weight: 800; }
.card-discount--gift, .card-discount--free { font-size: 14px; }
.card-cat { color: var(--muted); font-size: 12px; }
.card-dist { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.card-name { margin: 3px 0 2px; font-size: 15px; font-weight: 600; }
.card-benefit { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.card-tags { display: flex !important; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.tag {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted);
  font-size: 11.5px;
}
.tag--ok { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); font-weight: 600; }
.tag--scope { background: none; border: 1px solid var(--line); }
.tag--warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }

.selected { border-bottom: 6px solid var(--bg); }
.selected .card { background: color-mix(in srgb, var(--accent) 7%, transparent); border-bottom: 0; }
.selected-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.btn-x {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.btn-x:hover { background: var(--bg); }

.btn-more {
  display: block;
  width: calc(100% - 32px);
  margin: 12px 16px 20px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
  cursor: pointer;
}
.empty { margin: 0; padding: 28px 24px; color: var(--muted); font-size: 13.5px; line-height: 1.6; text-align: center; }

/* ── 상세 (목록 자리를 대체) ── */
.detail { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.panel.is-detail .panel-head, .panel.is-detail .panel-body { display: none; }
.detail-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 4px 12px 4px 6px;
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
}
.btn-back {
  flex: none;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-back:hover { background: var(--bg); }
.btn-back:focus-visible, .act:focus-visible, .route-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.detail-title { flex: 1; min-width: 0; overflow: hidden; color: var(--muted); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.detail-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px 28px; }

.d-cat { margin: 0; color: var(--muted); font-size: 12.5px; }
.d-name { margin: 4px 0 6px; font-size: 20px; line-height: 1.3; outline: none; }
.d-discount { margin: 0; color: var(--accent); font-size: 24px; font-weight: 800; }
.d-discount--gift, .d-discount--free { font-size: 19px; }
.d-ok, .d-notice, .d-warn { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.d-ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); font-weight: 600; }
.d-notice, .d-warn { background: color-mix(in srgb, var(--warn) 13%, transparent); color: var(--warn); }

.d-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.act svg { color: var(--accent); }
.act:hover { background: var(--bg); }
.act[aria-expanded="true"] { border-color: var(--accent); }
.act.is-disabled { color: var(--muted); cursor: default; }
.act.is-disabled svg { color: var(--muted); }
.d-routes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding: 10px; border-radius: 12px; background: var(--bg); }
.route-btn {
  flex: 1 1 28%;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.d-hint { flex-basis: 100%; margin: 2px 0 0; color: var(--muted); font-size: 11.5px; }

.d-sec { margin-top: 22px; }
.d-sec h3 { margin: 0 0 8px; font-size: 14px; }
.d-check { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.d-check li { position: relative; padding: 8px 10px 8px 32px; border-radius: 8px; background: var(--bg); font-size: 13.5px; }
.d-check li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10px;
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid var(--muted);
  border-radius: 4px;
}
.d-check li.is-mine { background: color-mix(in srgb, var(--accent) 10%, transparent); font-weight: 600; }
.d-check li.is-mine::before { border-color: var(--accent); }
.mine { margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; }
.d-orig { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.d-orig span { display: inline-block; margin-right: 5px; padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; }
.d-tip { margin: 8px 0 0; padding: 8px 10px; border-left: 3px solid var(--accent); background: var(--bg); font-size: 12.5px; line-height: 1.5; }
.d-body { margin: 0; font-size: 14px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.d-meta { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
.d-muted { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.d-elig { display: flex; flex-wrap: wrap; gap: 4px; }
.d-notes { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.6; }
.d-info { display: grid; grid-template-columns: 64px 1fr; gap: 8px 10px; margin: 0; font-size: 13.5px; }
.d-info dt { color: var(--muted); }
.d-info dd { margin: 0; overflow-wrap: anywhere; }
.d-info a { color: var(--accent); }
.link-btn { margin-left: 4px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; background: none; color: var(--muted); font-size: 11.5px; cursor: pointer; }
.d-disclaimer { margin: 26px 0 0; padding: 12px; border-radius: 10px; background: var(--bg); color: var(--muted); font-size: 12px; line-height: 1.6; }
.d-source { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.d-source a { color: inherit; }
.d-report { margin: 6px 0 0; font-size: 12.5px; }
.d-report a { color: var(--accent); }

/* ── 신규 피드 (명세 5.1) ── */
.feed-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border: 0;
  border-bottom: 6px solid var(--bg);
  background: var(--surface);
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}
.feed-entry:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.feed-entry:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.feed-badge { flex: none; padding: 2px 6px; border-radius: 6px; background: var(--new); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: 0.03em; }
.feed-text { flex: 1; min-width: 0; }
.feed-text b { color: var(--accent); }
.feed-sub { color: var(--muted); }
.chev { color: var(--muted); font-size: 18px; line-height: 1; }

.feed { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.panel.is-feed .panel-head, .panel.is-feed .panel-body { display: none; }
.panel.is-detail .feed { display: none; }
.feed-body { padding: 0 0 24px; }
.feed-intro { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.feed-group h3 {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-size: 13px;
}
.feed-group h3 span { margin-left: 4px; color: var(--muted); font-weight: 500; }
.card-meta { margin-top: 1px; color: var(--muted); font-size: 12px; }
.tag--new { background: color-mix(in srgb, var(--new) 12%, transparent); color: var(--new); font-weight: 700; }

/* ── 저밀도 지역 대응 (명세 5.1) — 빈 화면을 그대로 두지 않는다 ── */
.empty p { margin: 0 0 6px; }
.empty-near b { color: var(--text); }
.empty-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.empty-actions button {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.empty-actions button:first-child { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
/* ── HOT 브랜드 ── */
.hot-toggle {
  position: absolute;
  top: 28px;
  right: 10px;
  z-index: 500;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--new);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.hot-toggle[aria-pressed="true"] { background: var(--new); color: #fff; }
.hot-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.panel.is-hot .panel-head, .panel.is-hot .panel-body { display: none; }
.hot-brands { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.feed-intro b { color: var(--text); }
.d-brand { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--new) 10%, transparent); color: var(--new); font-size: 13px; line-height: 1.5; }

.near-hint {
  position: absolute;
  top: 78px; /* HOT 브랜드 버튼 아래 */
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  max-width: calc(100% - 32px);
  overflow: hidden;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.near-hint b { color: var(--accent); }

/* ── 지도 위 요소 ── */
.fab {
  position: absolute;
  right: 10px;
  bottom: 100px;
  z-index: 500;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.fab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fab.is-busy svg { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.toast {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 900;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  border-radius: 10px;
  background: #23262d;
  color: #fff;
  font-size: 13px;
}

.loading {
  position: absolute;
  inset: 0;
  z-index: 700;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  color: var(--muted);
  font-size: 14px;
}

.disclaimer {
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
  z-index: 1000;
}
.disclaimer a { color: inherit; }

/* ── 필터 창 ── */
.filter-dialog {
  width: min(480px, calc(100% - 24px));
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 10px 40px rgb(0 0 0 / 0.3);
}
.filter-dialog::backdrop { background: rgb(0 0 0 / 0.4); }
.fd { display: flex; flex-direction: column; max-height: min(82dvh, 720px); }
.fd-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); }
.fd-head h2 { margin: 0; font-size: 16px; }
.fd-body { overflow-y: auto; padding: 4px 18px 16px; }
.fd-section h3 { margin: 16px 0 8px; color: var(--muted); font-size: 13px; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.fd-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.fd-foot { display: flex; gap: 8px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.btn-ghost, .btn-primary { padding: 11px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); }
.btn-primary { flex: 1; border: 0; background: var(--accent); color: var(--on-accent); }
@media (max-width: 767px) {
  .filter-dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 16px 16px 0 0; }
  .fd { max-height: 88dvh; }
}

/* ── 마커: 업종 아이콘 + 할인율 뱃지 ── */
.pin-marker { background: none; border: 0; }
.pin {
  --c: #64748b;
  position: relative;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2.5px solid var(--c);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.3);
  font-size: 17px;
  line-height: 1;
  transition: transform 0.15s ease;
}
.pin-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--c);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
}
.pin.is-hl { transform: scale(1.18); }
.pin.is-selected {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 35%, transparent), 0 2px 6px rgb(0 0 0 / 0.35);
}
/* 위치 확인 필요 매장 (명세 2.4) */
.pin--warn { border-style: dashed; }
.pin--warn::after {
  content: "!";
  position: absolute;
  right: -6px;
  bottom: -5px;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--warn);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.cluster-marker { background: none; border: 0; }
.cluster {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 90%, transparent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent), 0 1px 4px rgb(0 0 0 / 0.3);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.me-dot { fill: #1f6feb; fill-opacity: 1; stroke: #fff; stroke-width: 3; }
.me-accuracy { fill: #1f6feb; fill-opacity: 0.12; stroke: #1f6feb; stroke-opacity: 0.4; stroke-width: 1; }

/* Leaflet 기본 컨트롤을 테마에 맞춤 */
.leaflet-bar a { background: var(--surface); color: var(--text); border-color: var(--line); }
.leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 80%, transparent) !important; color: var(--muted); }
.leaflet-control-attribution a { color: inherit; }
