/* 지도 공통 (지도 메인·카페 상세의 작은 지도): 타일 색, 핀 */
/* 지도 타일을 종이색으로: 채도를 빼고 살짝 누렇게 */
[data-map] .leaflet-tile-pane { filter: grayscale(0.55) sepia(0.28) brightness(1.03) contrast(0.9); }
[data-map] .leaflet-control-attribution { background: rgb(251 248 242 / 0.85); color: var(--text-3); font-size: 10px; }
[data-map] .leaflet-control-attribution a { color: var(--text-2); }


/* 핀: '순위 점수' 꼬리표. 아래 꼭짓점이 카페 위치 */
.pin {
  position: absolute; left: 0; bottom: 7px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px;
  background: var(--surface); border-radius: var(--r2);
  font-size: 13px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap;
  box-shadow: 0 1px 3px rgb(41 35 28 / 0.25), 0 4px 10px rgb(41 35 28 / 0.12);
}
.pin::after {
  content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg);
  background: inherit; border-radius: 0 0 2px 0; z-index: -1;
}
.pin b { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; background: var(--ink-700); color: var(--paper-50); border-radius: 5px; font-size: 11px; }
.pin--first b { background: var(--terracotta); }
.pin--selected { background: var(--espresso); color: var(--paper-50); z-index: 1; }
.pin--selected b { background: var(--paper-50); color: var(--espresso); }
.pin-dot { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--ink-500); box-shadow: 0 0 0 2px var(--paper-50), 0 1px 3px rgb(41 35 28 / 0.3); }
/* 점: 누르는 자리는 28px, 확대하면 옆에 이름 */
.pin-hit { position: relative; display: grid; place-items: center; width: 28px; height: 28px; cursor: pointer; }
.pin-hit:hover .pin-dot { transform: scale(1.25); }
.pin-label {
  position: absolute; left: 25px; top: 50%; transform: translateY(-50%); display: none;
  gap: 3px; white-space: nowrap;
  font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--ink-700);
  text-shadow: 0 0 2px var(--paper-50), 0 0 2px var(--paper-50), 0 0 3px var(--paper-50);
}
.pin-label > span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.pin-label small { flex: none; font-size: 11px; color: var(--ink-500); }
.map--labels .pin-label { display: flex; }
.map--labels .pin-label.is-hidden { display: none; }
.pin--name { padding: 5px 10px; font-size: 13px; }
.me-dot { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 3px var(--paper-50), 0 0 0 9px rgb(155 67 39 / 0.18); }


.pin-dot--many { display: grid; place-items: center; width: 18px; height: 18px; background: var(--ink-700); color: var(--paper-50); font-size: 10px; font-weight: 700; line-height: 1; }
.pin-dot--ranked { width: 14px; height: 14px; background: var(--ink-900); }
.pin-dot--ranked.pin-dot--many { width: 18px; height: 18px; }
