/* Figma Opinion Map section 4091:13946 — bubble map, states, and correction flow. */
.opinion-map-page { display:flex; flex-direction:column; gap:var(--prism-space-16); padding:0 var(--prism-space-20) calc(160px + env(safe-area-inset-bottom)); }
.opinion-issue-header { padding:var(--prism-space-16) 0; border-bottom:1px solid var(--prism-color-border-subtle); }
.opinion-issue-header h1 { margin:var(--prism-space-8) 0 4px; font-size:var(--prism-font-title-18); font-weight:var(--prism-font-weight-bold); line-height:var(--prism-line-title-18); }
.opinion-issue-meta { display:inline-flex; align-items:center; gap:4px; border:0; padding:0; background:none; color:var(--prism-color-text-secondary); font:inherit; font-size:var(--prism-font-caption-12); }
.opinion-issue-meta img { width:14px; height:14px; filter:none; }
.opinion-map-page > .opinion-issue-header { order:2; }
.opinion-map-page > :not(.issue-detail-head):not(.opinion-issue-header) { order:3; }
.map-title-row { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.map-title-row h2 { min-width:0; flex:1; margin:0; font-size:var(--prism-font-body-16); font-weight:var(--prism-font-weight-medium); line-height:var(--prism-line-body-16); }
.map-help-button { width:44px; min-width:44px; height:44px; min-height:44px; flex:none; border:0; border-radius:50%; background:transparent; color:var(--prism-color-text-secondary); font-size:20px; }
.map-common-toggle-row { display:flex; align-items:center; justify-content:space-between; min-height:44px; color:var(--prism-color-text-secondary); }
.map-switch { position:relative; width:52px; min-width:52px; height:32px; min-height:32px; border:0; border-radius:var(--prism-radius-full); padding:0; background:var(--prism-color-border-default); color:transparent; font-size:0; }
.map-switch::before { position:absolute; top:2px; left:2px; width:28px; height:28px; border-radius:50%; background:var(--prism-color-surface); box-shadow:0 1px 3px rgb(0 0 0 / 20%); content:""; transition:transform .15s ease; }
.map-switch[aria-checked="true"] { background:var(--prism-color-brand); }
.map-switch[aria-checked="true"]::before { transform:translateX(20px); }
.map-bubbles { position:relative; display:flex; flex-wrap:wrap; align-content:flex-start; align-items:center; justify-content:center; gap:8px; min-height:0; padding:8px 0; overflow:hidden; }
.map-bubbles .map-bubble:nth-child(1) { order:1; }
.map-bubbles .map-bubble:nth-child(2) { order:2; }
.map-bubbles .map-bubble:nth-child(3) { order:4; }
.map-bubbles .map-bubble:nth-child(4) { order:5; }
.map-bubbles .map-bubble:nth-child(5) { order:6; }
.map-bubbles .map-bubble { max-width:44vw; max-height:44vw; padding:0 6px; }
.map-bubbles .map-bubble.is-issue { order:3; width:120px!important; max-width:120px; height:120px!important; flex:0 0 auto; margin-inline:calc(50% - 60px); white-space:pre-line; background:var(--prism-color-surface); border:1px solid var(--prism-color-border-default); }
.map-bubbles .map-bubble.is-issue .map-bubble-label { font-size:var(--prism-font-body-13); font-weight:var(--prism-font-weight-bold); color:var(--prism-color-text-primary); }
.map-bubbles .map-bubble-label { overflow-wrap:anywhere; font-size:var(--prism-font-body-13); line-height:var(--prism-line-body-13-regular); color:var(--prism-color-text-primary); }
.map-bubbles .map-bubble-value { color:var(--prism-color-brand); font-size:var(--prism-font-title-18); font-weight:var(--prism-font-weight-bold); line-height:var(--prism-line-title-18); }
/* Figma IA16 `bubble-canvas` 4045:11974 is 380px; let extra groups expand. */
.opinion-map-page .map-bubbles { min-height:380px; flex:none; overflow:visible; }
.map-caption,.map-footer { color:var(--prism-color-text-secondary); font-size:var(--prism-font-caption-12); line-height:1.6; text-align:center; }
.map-footer { border-top:1px solid var(--prism-color-border-subtle); padding:14px 0; }
/* MVP F / Figma 8010:946·1028: 중앙 이슈 버블 주위에 묶음 버블을 원형으로 배치한다.
   RING_RADIUS 112 + 최대 지름 118이 353×380 콘텐츠 박스 안에 들어와 겹치거나 잘리지 않는다. */
.map-bubbles.is-ring { display:block; height:380px; min-height:380px; padding:0; overflow:visible; }
.map-bubbles.is-ring .map-bubble { position:absolute; transform:translate(-50%,-50%); margin:0; max-width:none; max-height:none; }
.map-bubbles.is-ring .map-bubble.is-issue { margin:0; }
.map-bubbles.is-ring .map-placeholder-bubble { position:absolute; transform:translate(-50%,-50%); }
.map-loading-text { margin:0; color:var(--prism-color-text-secondary); font-size:var(--prism-font-caption-12); text-align:center; }
.map-bubbles.is-loading { color:var(--prism-color-text-secondary); }
.map-placeholder-bubble { width:92px; height:92px; border-radius:50%; background:#eef0f4; }
.map-bubbles.is-loading p { flex-basis:100%; text-align:center; }
.map-shortage { display:flex; flex-direction:column; gap:10px; padding:20px 0; text-align:center; }
.map-shortage-count { margin:0; color:var(--prism-color-text-secondary); }
.map-shortage h2 { margin:0; font-size:var(--prism-font-title-18); }
.map-progress-label { display:flex; justify-content:space-between; margin-top:8px; }
.map-shortage progress { width:100%; height:8px; accent-color:var(--prism-color-brand); }
.map-section-title { font-size:var(--prism-font-title-18); }
.map-shortage-comments { display:flex; flex-direction:column; gap:10px; }
.map-comment-card { padding:14px; border:1px solid var(--prism-color-border-subtle); border-radius:var(--prism-radius-lg); line-height:1.6; }
.map-primary { width:100%; min-height:52px; border:0; border-radius:var(--prism-radius-full); background:var(--prism-color-brand); color:#fff; font:inherit; font-weight:var(--prism-font-weight-medium); }
.map-primary:disabled { opacity:.45; }
.map-unavailable { padding:32px 0; text-align:center; color:var(--prism-color-text-secondary); }
.map-unavailable button,.map-link-button { min-height:44px; border:0; background:transparent; color:var(--prism-color-brand); font:inherit; }
.map-intersection-sheet { position:relative; border:1px solid var(--prism-color-border-subtle); border-radius:var(--prism-radius-lg); padding:18px; background:var(--prism-color-surface); }
.map-intersection-sheet::before { content:""; position:absolute; top:-28px; left:25%; right:25%; height:28px; border-top:2px dashed var(--prism-color-brand); border-left:2px dashed var(--prism-color-brand); border-right:2px dashed var(--prism-color-brand); border-radius:14px 14px 0 0; }
.map-intersection-title { color:var(--prism-color-brand); font-weight:700; }
.map-intersection-sheet h2,.map-none-title { font-size:var(--prism-font-title-18); }
.map-intersection-sheet h3,.map-detail-sheet h3,.map-correction-sheet h3 { margin:16px 0 6px; font-size:var(--prism-font-caption-12); color:var(--prism-color-text-secondary); }
.map-pager { display:flex; justify-content:center; align-items:center; gap:20px; }
.map-pager button { width:44px; height:44px; border:0; background:transparent; color:var(--prism-color-brand); font-size:22px; }
.map-detail-sheet { position:fixed; z-index:35; inset:auto 0 0; max-height:52dvh; overflow:auto; padding:12px 20px calc(24px + env(safe-area-inset-bottom)); border-radius:24px 24px 0 0; background:var(--prism-color-surface); box-shadow:var(--prism-shadow-sheet); }
.map-detail-sheet.is-expanded { max-height:92dvh; }
.map-sheet-handle { display:block; width:56px; height:36px; margin:0 auto 10px; border:0; background:transparent; color:var(--prism-color-text-secondary); }
.map-sheet-close { position:absolute; top:14px; right:20px; width:44px; height:44px; border:0; background:transparent; font-size:24px; }
.map-detail-sheet h2 { margin:8px 40px 16px 0; font-size:var(--prism-font-title-18); }
.map-own-comment { padding:12px; border-radius:var(--prism-radius-md); background:var(--prism-color-surface-subtle); }
.map-detail-sheet ul { padding-left:22px; }
.map-detail-sheet li { margin:8px 0; }
.map-sheet-overlay { position:fixed; z-index:50; inset:0; display:grid; align-items:end; background:var(--prism-color-bg-overlay); }
.map-correction-sheet { position:relative; width:100%; max-height:85dvh; overflow:auto; padding:24px 20px calc(24px + env(safe-area-inset-bottom)); border-radius:24px 24px 0 0; background:var(--prism-color-surface); }
.map-correction-sheet h2 { margin:8px 48px 20px 0; font-size:var(--prism-font-title-18); }
.map-correction-options { display:grid; gap:8px; }
.map-correction-option { min-height:44px; border:1px solid var(--prism-color-border-subtle); border-radius:var(--prism-radius-md); padding:8px 12px; background:var(--prism-color-surface); text-align:left; }
.map-correction-option.is-selected { border-color:var(--prism-color-brand); background:var(--prism-color-brand-subtle); color:var(--prism-color-brand); }
.map-correction-sheet > p { color:var(--prism-color-text-secondary); line-height:1.6; }
.map-guide-footer { margin-top:20px; border-top:1px solid var(--prism-color-border-subtle); padding-top:14px; font-size:var(--prism-font-caption-12); }
.map-ai-disclaimer { color:var(--prism-color-text-secondary); font-size:var(--prism-font-caption-12); }
.map-correction-toast,.map-feedback { position:fixed; z-index:55; left:20px; right:20px; bottom:calc(110px + env(safe-area-inset-bottom)); padding:14px 16px; border-radius:var(--prism-radius-lg); background:var(--prism-color-surface); box-shadow:var(--prism-shadow-sheet); }
.map-correction-toast { display:flex; justify-content:space-between; }
.map-correction-toast button { border:0; background:transparent; }

/* MVP 6-4 (Figma 8010:5497): the common-intersection result is a bottom sheet over the map. */
.map-intersection-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-height: 48dvh; overflow-y: auto; margin: 0; padding: 8px 20px calc(env(safe-area-inset-bottom) + 24px); border-radius: 20px 20px 0 0; background: var(--prism-color-surface); box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12); }
.map-intersection-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.map-intersection-close { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; font-size: 18px; }
.map-intersection-sheet .map-intersection-title { margin: 0; color: var(--prism-color-text-primary); font-weight: var(--prism-font-weight-bold); }

/* MVP 6-9 (Figma 8010:5684): the shortage state leads with the character. */
.map-shortage-character { display: block; width: 120px; height: auto; margin: 0 auto 16px; }

/* 6-4 toggle row is shown only once a bubble is selected or 6-4 mode is on (Figma 8010:977, 8010:5443). */
.map-common-toggle-row.is-hidden { display: none; }
