/* The 地図 tab fills the screen above the tab bar; its own z-index keeps MapKit's controls under the bar. */
.map-full { position: fixed; inset: 0 0 calc(63px + env(safe-area-inset-bottom)); z-index: 0; }
.place-map { position: relative; z-index: 0; height: 160px; margin: 0 0 16px; border-radius: var(--radius); overflow: hidden; background: var(--surface2); }

.map-hint, .map-sheet { z-index: 5; margin: 0; background: var(--surface); color: var(--ink); box-shadow: 0 4px 14px rgb(20 18 15 / 0.18); }
.map-hint { position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 50%; translate: -50% 0; padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; white-space: nowrap; }

.map-sheet { position: fixed; left: 16px; right: 16px; bottom: calc(79px + env(safe-area-inset-bottom)); padding: 12px 14px; border-radius: var(--radius); }
.map-sheet input { margin: 0; }
.map-sheet__head { display: flex; align-items: center; gap: 12px; }
.map-sheet__head > strong { flex: 1; }
.map-sheet__name { display: flex; flex: 1; flex-direction: column; min-width: 0; color: var(--ink); text-decoration: none; }
.map-sheet__name strong { overflow: hidden; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.map-sheet__name span, .map-score small { color: var(--ink2); font-size: 0.8rem; }
.map-sheet__act { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.map-score { display: flex; flex-direction: column; align-items: center; max-width: 64px; }
.map-score small { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.map-sheet__act .hk-btn { margin-left: auto; padding: 0 22px; }
.map-sheet__list { display: flex; flex-direction: column; max-height: 40vh; overflow-y: auto; }
.map-sheet__list:not(:empty) { margin-top: 10px; }
.map-sheet__list:empty, .map-sheet__list[hidden] { display: none; }
.map-sheet__row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 4px 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.map-sheet__row + .map-sheet__row { border-top: 1px solid var(--line); }

/* Pins: a score-only badge, my score or my friends' best in a lighter one when I haven't been. A saved
   place is a hollow outline with a bookmark; a search result I haven't ranked is its genre tile. MapKit
   sizes an annotation from its element, so each pin states its size. */
.pin { position: relative; display: flex; align-items: center; justify-content: center; width: 32px; height: 22px; border-radius: 8px; font: 800 0.75rem/1 var(--font-num); font-variant-numeric: tabular-nums; color: var(--chip-ink); box-shadow: 0 0 0 2px var(--surface), 0 3px 8px rgb(20 18 15 / 0.3); }
.pin-friend { opacity: 0.8; }
.pin-more { position: absolute; top: -9px; right: -9px; min-width: 18px; padding: 2px 3px; border-radius: 9px; background: var(--ink); color: var(--surface); font: 800 0.65rem/1 var(--font-num); text-align: center; }
.pin-saved { position: relative; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent), 0 3px 8px rgb(20 18 15 / 0.3); }
.pin-saved::before { content: ""; width: 8px; height: 11px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
.tile-pin { --t: 28px; position: relative; box-shadow: 0 0 0 calc(var(--t) * .04) var(--tile-edge), 0 3px 8px rgb(20 18 15 / 0.3); }
.pin-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #fff, 0 2px 6px rgb(20 18 15 / 0.35); }
.map-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .5; }
.map-ring { width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--accent); pointer-events: none; }
.map-ring--sm { width: 28px; height: 28px; }
