* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--color-bg); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }

.app-shell { min-height: 100vh; }
.app-header { min-height: var(--size-header-desktop); display: flex; align-items: center; gap: 16px; padding: 0 24px; background: var(--color-ink); color: var(--color-ink-text); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; flex-direction: column; flex: 0 0 auto; color: var(--color-ink-text); text-decoration: none; line-height: 1; }
.brand-line { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.brand-line strong { color: var(--color-brand); font-weight: 700; }
.brand-meta { margin-top: 4px; color: var(--color-accent-sun); font-size: 9px; line-height: 12px; }
.city-label { height: 36px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--color-ink-muted); border-radius: var(--radius-input); color: var(--color-ink-text); font-size: 13px; font-weight: 600; }
.primary-nav { display: flex; gap: 2px; align-items: center; }
.primary-nav a, .primary-nav button { min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--color-ink-muted); text-decoration: none; cursor: pointer; font-size: 14px; font-weight: 600; }
.primary-nav a:hover, .primary-nav button:hover, .primary-nav a.active, .primary-nav button.active { color: var(--color-ink-text); }
.primary-nav a.active, .primary-nav button.active { border-bottom-color: var(--color-brand); }
.global-search { min-width: 220px; max-width: 390px; height: 44px; margin-left: 8px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 12px; border: 1px solid var(--color-ink-muted); border-radius: var(--radius-input); background: rgba(255, 255, 255, 0.06); color: var(--color-ink-muted); flex: 1; }
.global-search svg { width: 18px; height: 18px; flex: 0 0 auto; }
.global-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--color-ink-text); font-size: 14px; }
.global-search input::placeholder { color: var(--color-ink-muted); }
.header-action, .quiet-button, .icon-button { border: 1px solid var(--color-border-strong); background: var(--color-surface); color: var(--color-text-strong); cursor: pointer; }
.header-action { height: 40px; display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 0 12px; border-color: var(--color-ink-muted); border-radius: var(--radius-input); background: transparent; color: var(--color-ink-text); white-space: nowrap; font-size: 13px; font-weight: 600; }
.header-action svg { width: 16px; height: 16px; }
.icon-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-input); }
.icon-button.compact { width: 32px; height: 32px; border: 0; background: transparent; color: var(--color-ink-muted); }
.icon-button svg { width: 18px; height: 18px; }

.map-workspace { position: relative; width: 100%; height: min(900px, calc(100svh - var(--size-header-desktop))); min-height: 640px; margin: 0; overflow: hidden; border-bottom: 1px solid var(--color-border); }
.map-column { position: relative; width: 100%; height: 100%; min-width: 0; padding: 0; }
.map-toolbar { position: absolute; top: 20px; left: 24px; right: 24px; z-index: 9; min-height: 56px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; pointer-events: none; }
.map-toolbar > * { pointer-events: auto; }
.map-toolbar h2, .map-toolbar .eyebrow { text-shadow: 0 1px 3px rgba(255, 255, 255, .9); }
.eyebrow { display: block; color: var(--color-text-muted); font-size: 11px; letter-spacing: 0; line-height: 16px; }
.map-toolbar h1, .map-toolbar h2, .results-header h1, .results-header h2, .section-heading h2 { margin: 2px 0 0; color: var(--color-text-strong); font-size: var(--text-title2-size); line-height: var(--text-title2-lh); }
.quiet-button { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: var(--radius-input); font-size: 13px; font-weight: 600; white-space: nowrap; }
.quiet-button svg { width: 16px; height: 16px; color: var(--color-action); }
.map-canvas { height: 100%; min-height: 0; position: relative; overflow: hidden; border: 0; background: var(--map-land); isolation: isolate; }
.basemap { position: absolute; inset: 0; width: 100%; height: 100%; }
.river { fill: var(--map-water); }
.park { fill: var(--map-park); stroke: var(--map-boundary); stroke-width: 1; }
.roads path { fill: none; stroke: var(--map-road-casing); stroke-width: 12; stroke-linecap: round; }
.road-centers path { fill: none; stroke: var(--map-road); stroke-width: 6; stroke-linecap: round; }
.map-labels text { fill: var(--map-label); font-family: var(--font-sans); font-size: 20px; font-weight: 600; opacity: .72; }
.map-labels .river-label { fill: var(--color-seoul-blue); font-size: 17px; font-weight: 500; opacity: .84; }
.map-pins { position: absolute; inset: 0; }
.map-pin { --pin-color: var(--color-exp-see); position: absolute; width: 44px; height: 44px; padding: 0; transform: translate(-50%, -100%); border: 0; background: transparent; color: #fff; cursor: pointer; z-index: 3; }
.map-pin::before { content: ""; position: absolute; left: 7px; top: 3px; width: 30px; height: 30px; border: 2px solid var(--pin-outline); border-radius: 50% 50% 50% 0; background: var(--pin-color); transform: rotate(-45deg); box-shadow: 0 2px 2px rgba(23, 32, 39, .18); }
.map-pin svg, .map-pin .pin-text { position: relative; z-index: 1; display: inline-flex; width: 16px; height: 16px; margin-top: -3px; }
.map-pin.selected::after { content: ""; position: absolute; left: 2px; top: 0; width: 40px; height: 40px; border: 3px solid var(--color-action); border-radius: 50% 50% 50% 0; transform: rotate(-45deg) translate(3px, -1px); pointer-events: none; }
.map-pin.selected { z-index: 5; }
.map-cluster { position: absolute; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; transform: translate(-50%, -50%); border: 2px solid var(--cluster-outline); border-radius: 50%; background: #fff; color: var(--color-text-strong); cursor: pointer; font-family: var(--font-mono); font-size: 13px; font-weight: 600; z-index: 4; }
.map-cluster:hover { border-color: var(--color-action); }
.map-attribution { position: absolute; left: 8px; bottom: 8px; z-index: 8; padding: 2px 6px; border-radius: 3px; background: rgba(255, 255, 255, .86); color: var(--color-text-muted); font-size: 10px; line-height: 14px; }
.map-legend { position: absolute; right: 12px; bottom: 12px; z-index: 8; min-height: 28px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--color-border); background: rgba(255, 255, 255, .9); color: var(--color-text-muted); font-size: 11px; }
.map-legend #data-status { color: var(--color-text-muted); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-action); }
.legend-divider { width: 1px; height: 14px; background: var(--color-border); }
.map-controls { position: absolute; top: 96px; right: 12px; z-index: 8; display: flex; flex-direction: column; gap: 8px; }
.map-control { background: rgba(255, 255, 255, .94); }

.results-panel { position: absolute; top: 92px; left: 24px; z-index: 12; width: min(460px, calc(100% - 48px)); height: min(620px, calc(100% - 116px)); min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--color-border-strong); background: var(--color-surface); box-shadow: var(--shadow-popover); }
.results-panel[hidden] { display: none; }
.results-header { min-height: 88px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; border-bottom: 1px solid var(--color-border); }
.results-header-actions { display: flex; align-items: center; gap: 8px; }
.content-close { flex: 0 0 auto; }
.count-label { color: var(--color-text-muted); font-size: 12px; }
.experience-filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--color-border); }
.experience-filter { min-height: 34px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-text); cursor: pointer; font-size: 12px; font-weight: 600; }
.experience-filter svg { width: 15px; height: 15px; }
.experience-filter.active { border-color: var(--filter-color); background: color-mix(in srgb, var(--filter-color) 12%, white); color: var(--color-text-strong); }
.active-query { margin: 12px 20px 0; padding: 8px 10px; border-left: 3px solid var(--color-action); background: var(--color-surface-subtle); color: var(--color-text); font-size: 13px; }
.selected-detail { margin: 12px 20px 0; padding: 14px; border: 1px solid var(--color-border-strong); background: var(--color-bg); }
.selected-detail-top { display: flex; align-items: flex-start; gap: 10px; }
.selected-detail h3 { margin: 0; color: var(--color-text-strong); font-size: 18px; line-height: 24px; }
.selected-detail .detail-close { margin-left: auto; flex: 0 0 auto; }
.detail-meta { margin-top: 3px; color: var(--color-text-muted); font-size: 12px; line-height: 18px; }
.detail-copy { margin: 10px 0 0; color: var(--color-text); font-size: 13px; line-height: 19px; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 5px 8px; margin-top: 10px; color: var(--color-text-muted); font-size: 11px; line-height: 16px; }
.detail-facts span { overflow-wrap: anywhere; }
.detail-status { color: var(--color-success); font-weight: 700; }
.detail-tabs { display: flex; gap: 2px; margin-top: 12px; border-bottom: 1px solid var(--color-border); overflow-x: auto; }
.detail-tab { min-height: 32px; padding: 0 8px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--color-text-muted); cursor: pointer; font-size: 12px; font-weight: 600; white-space: nowrap; }
.detail-tab[aria-selected="true"] { border-bottom-color: var(--color-action); color: var(--color-text-strong); }
.detail-tab-panel { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; color: var(--color-text); font-size: 12px; line-height: 18px; }
.detail-tab-panel > strong { color: var(--color-text-strong); }
.detail-source-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 7px 0; border-bottom: 1px solid var(--color-border); }
.detail-source-row strong, .detail-source-row span { min-width: 0; overflow-wrap: anywhere; }
.detail-source-row span { color: var(--color-text-muted); font-size: 11px; }
.detail-source-row a { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--color-action); font-size: 11px; font-weight: 600; }
.detail-info-block { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; }
.detail-info-label { color: var(--color-text-muted); }
.detail-actions { display: flex; gap: 8px; margin-top: 12px; }
.text-button { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-input); background: var(--color-surface); color: var(--color-text-strong); cursor: pointer; font-size: 12px; font-weight: 600; }
.text-button.primary { border-color: var(--color-action); background: var(--color-action); color: #fff; }
.text-button svg { width: 15px; height: 15px; }
.results-list { min-height: 0; display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 12px 20px 24px; overflow: auto; }
.place-card { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 8px; padding: 12px; border: 1px solid var(--color-border); background: var(--color-surface); transition: border-color var(--motion-micro) var(--motion-ease), background var(--motion-micro) var(--motion-ease); }
.place-card:hover, .place-card.selected { border-color: var(--color-border-strong); background: var(--color-surface-subtle); }
.place-hit { min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.place-name { display: block; overflow-wrap: anywhere; color: var(--color-text-strong); font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 21px; }
.place-ko { display: block; margin-top: 1px; color: var(--color-text-muted); font-size: 12px; line-height: 17px; }
.place-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 7px; color: var(--color-text-muted); font-size: 12px; line-height: 16px; }
.experience-badge { display: inline-flex; align-items: center; gap: 4px; color: var(--badge-color); font-weight: 600; }
.experience-badge svg { width: 14px; height: 14px; }
.freshness { color: var(--color-success); }
.save-button { align-self: start; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--color-accent-sun-deep); cursor: pointer; }
.save-button svg { width: 18px; height: 18px; }
.save-button[aria-pressed="true"] svg { fill: var(--color-accent-sun); }
.empty-state { padding: 28px 8px; color: var(--color-text-muted); font-size: 14px; line-height: 20px; }
.empty-state strong { display: block; color: var(--color-text-strong); font-size: 15px; }
.reset-button { min-height: 36px; margin-top: 12px; padding: 0 10px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-input); background: var(--color-surface); color: var(--color-text-strong); cursor: pointer; font-size: 12px; font-weight: 600; }

.now-popover { position: absolute; top: 92px; right: 64px; z-index: 13; width: min(560px, calc(100% - 88px)); max-height: min(680px, calc(100% - 116px)); min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--color-border-strong); background: var(--color-surface); box-shadow: var(--shadow-popover); }
.now-popover[hidden] { display: none; }
.now-popover-header { flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; border-bottom: 1px solid var(--color-border); }
.now-popover-header h2 { margin: 2px 0 0; color: var(--color-text-strong); font-size: var(--text-title2-size); line-height: var(--text-title2-lh); }
.now-popover-header p { max-width: 360px; margin: 8px 0 0; color: var(--color-text-muted); font-size: 12px; line-height: 17px; }
.now-close { flex: 0 0 auto; }
.now-popover .feed-grid { min-height: 0; flex: 1; grid-template-columns: 1fr; align-content: start; overflow: auto; padding: 12px 20px 24px; overscroll-behavior: contain; }
.saved-popover { position: absolute; top: 92px; right: 64px; z-index: 13; width: min(420px, calc(100% - 88px)); max-height: min(620px, calc(100% - 116px)); min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--color-border-strong); background: var(--color-surface); box-shadow: var(--shadow-popover); }
.saved-popover[hidden] { display: none; }
.saved-popover-header { flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; border-bottom: 1px solid var(--color-border); }
.saved-popover-header h2 { margin: 2px 0 0; color: var(--color-text-strong); font-size: var(--text-title2-size); line-height: var(--text-title2-lh); }
.saved-list { min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow: auto; padding: 12px 20px 24px; }
.saved-place-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.saved-place-row > div { min-width: 0; }
.saved-place-row strong, .saved-place-row span { display: block; overflow-wrap: anywhere; }
.saved-place-row strong { color: var(--color-text-strong); font-size: 13px; }
.saved-place-row span { margin-top: 2px; color: var(--color-text-muted); font-size: 11px; }
.saved-place-hit { min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.saved-place-row button { flex: 0 0 auto; }
.saved-empty { padding: 20px 0; color: var(--color-text-muted); font-size: 13px; line-height: 19px; }
.auth-dialog { width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--color-border-strong); background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-popover); }
.auth-dialog::backdrop { background: rgba(23, 32, 39, .42); }
.auth-dialog form { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.auth-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.auth-dialog-header h2 { margin: 2px 0 0; color: var(--color-text-strong); font-size: var(--text-title2-size); line-height: var(--text-title2-lh); }
.auth-switch { display: flex; gap: 4px; border-bottom: 1px solid var(--color-border); }
.auth-switch button { min-height: 32px; padding: 0 8px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--color-text-muted); cursor: pointer; font-size: 12px; font-weight: 600; }
.auth-switch button[aria-selected="true"] { border-bottom-color: var(--color-action); color: var(--color-text-strong); }
.auth-message { min-height: 18px; margin: 0; color: var(--color-text-muted); font-size: 12px; line-height: 18px; }
.auth-error { padding: 8px 10px; border-left: 3px solid var(--color-brand); background: var(--color-surface-subtle); color: var(--color-text-strong); font-size: 12px; line-height: 18px; }
.auth-field { display: flex; flex-direction: column; gap: 5px; color: var(--color-text-muted); font-size: 12px; }
.auth-field input { min-height: 40px; width: 100%; padding: 0 10px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-input); background: var(--color-bg); color: var(--color-text-strong); outline: 0; }
.auth-field input:focus { border-color: var(--color-action); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-action) 18%, transparent); }
.auth-submit { width: 100%; justify-content: center; margin-top: 4px; }
.auth-link { align-self: center; border: 0; background: transparent; color: var(--color-action); cursor: pointer; font-size: 12px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-heading p { max-width: 420px; margin: 0; color: var(--color-text-muted); font-size: 13px; line-height: 18px; text-align: right; }
.feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feed-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--color-border); background: var(--color-surface); }
.feed-placeholder { min-height: 116px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--color-border); background: var(--map-land); color: var(--color-text-muted); font-size: 12px; }
.feed-placeholder[data-platform="instagram"] { background: #f2e9ec; }
.feed-placeholder[data-platform="tiktok"] { background: #e8f0f0; }
.feed-placeholder[data-platform="youtube"] { background: #f4e9e8; }
.feed-body { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.feed-source { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--color-text-muted); font-size: 11px; line-height: 16px; }
.feed-source strong { color: var(--color-text-strong); font-weight: 600; }
.source-label { padding: 2px 5px; border: 1px solid var(--color-border); border-radius: var(--radius-pill); font-size: 10px; }
.feed-card h3 { margin: 0; overflow-wrap: anywhere; color: var(--color-text-strong); font-family: var(--font-display); font-size: 16px; line-height: 21px; }
.feed-summary { margin: 0; color: var(--color-text); font-size: 13px; line-height: 19px; }
.feed-place { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; padding: 0; border: 0; background: transparent; color: var(--color-action); cursor: pointer; font: inherit; font-size: 12px; line-height: 17px; text-align: left; }
.feed-place svg { width: 14px; height: 14px; }
.feed-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.feed-freshness { color: var(--color-success); font-size: 11px; }
.feed-actions { display: flex; align-items: center; gap: 8px; }
.like-button { min-height: 32px; display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border: 0; background: transparent; color: var(--color-text-muted); cursor: pointer; font-size: 11px; }
.like-button svg { width: 16px; height: 16px; color: var(--color-accent-coral); }
.like-button[aria-pressed="true"] svg { fill: var(--color-accent-coral); }
.source-link { min-height: 32px; display: inline-flex; align-items: center; gap: 4px; color: var(--color-action); font-size: 11px; font-weight: 600; }
.source-link svg { width: 14px; height: 14px; }
.feed-empty { grid-column: 1 / -1; padding: 24px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-muted); font-size: 14px; }
.saved-strip { width: min(1440px, 100%); margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--color-border); color: var(--color-text); font-size: 13px; }
.saved-strip svg { width: 17px; height: 17px; color: var(--color-accent-sun-deep); }
.saved-strip strong { color: var(--color-text-strong); font-family: var(--font-mono); }
.saved-strip .quiet-button { min-height: 32px; margin-left: auto; padding: 0 9px; font-size: 12px; }
.saved-strip .quiet-button svg { width: 15px; height: 15px; color: var(--color-action); }
.muted { color: var(--color-text-muted); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; max-width: min(420px, calc(100vw - 32px)); padding: 10px 14px; transform: translateX(-50%); border: 1px solid var(--color-border-strong); background: var(--color-ink); color: var(--color-ink-text); box-shadow: var(--shadow-popover); font-size: 13px; line-height: 18px; }

@media (max-width: 1040px) {
  .app-header { gap: 10px; padding: 0 16px; }
  .brand-meta, .city-label { display: none; }
  .primary-nav a, .primary-nav button { padding: 0 8px; }
  .map-workspace { height: min(820px, calc(100svh - var(--size-header-desktop))); }
  .map-toolbar { top: 16px; left: 16px; right: 16px; }
  .results-panel { top: 80px; left: 16px; width: min(420px, calc(100% - 32px)); }
  .now-popover { top: 80px; right: 56px; width: min(500px, calc(100% - 72px)); max-height: calc(100% - 104px); }
  .saved-popover { top: 80px; right: 56px; width: min(420px, calc(100% - 72px)); max-height: calc(100% - 104px); }
  .saved-strip { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 760px) {
  .app-header { min-height: 56px; flex-wrap: wrap; padding: 8px 12px; }
  .brand-line { font-size: 16px; }
  .primary-nav { order: 3; width: 100%; overflow: auto; }
  .primary-nav a, .primary-nav button { min-height: 32px; padding: 0 10px; font-size: 12px; }
  .global-search { order: 2; min-width: 0; height: 40px; margin-left: auto; max-width: none; }
  .header-action { display: none; }
  .map-workspace { display: flex; flex-direction: column; height: auto; min-height: 0; overflow: visible; }
  .map-column { order: 1; height: 58dvh; min-height: 300px; max-height: 560px; }
  .map-workspace.content-closed .map-column { height: calc(100dvh - 98px); max-height: none; }
  .map-toolbar { top: 12px; left: 12px; right: 12px; min-height: 0; }
  .map-controls { top: 72px; right: 12px; }
  .map-toolbar h1, .map-toolbar h2 { font-size: 20px; line-height: 28px; }
  .map-canvas { min-height: 0; height: 100%; }
  .map-labels text { font-size: 16px; }
  .map-labels .river-label { font-size: 13px; }
  .results-panel { position: static; order: 2; width: auto; height: auto; max-height: none; border-top: 1px solid var(--color-border); border-right: 0; border-left: 0; box-shadow: none; }
  .results-header { min-height: 72px; padding: 16px 12px 10px; }
  .experience-filters { padding: 10px 12px; overflow-x: auto; flex-wrap: nowrap; }
  .experience-filter { flex: 0 0 auto; }
  .active-query, .selected-detail { margin-left: 12px; margin-right: 12px; }
  .results-list { max-height: 430px; padding: 10px 12px 18px; }
  .now-popover { position: fixed; top: auto; right: 0; bottom: 0; left: 0; width: 100%; max-height: 72dvh; border-right: 0; border-bottom: 0; border-left: 0; box-shadow: 0 -8px 28px rgba(23, 32, 39, .18); }
  .now-popover-header { padding: 14px 12px 12px; gap: 8px; }
  .now-popover-header p { max-width: none; margin-top: 5px; font-size: 12px; line-height: 17px; }
  .now-popover .feed-grid { max-height: calc(72dvh - 94px); padding: 10px 12px 24px; }
  .saved-popover { position: fixed; top: auto; right: 0; bottom: 0; left: 0; width: 100%; max-height: 72dvh; border-right: 0; border-bottom: 0; border-left: 0; box-shadow: 0 -8px 28px rgba(23, 32, 39, .18); }
  .saved-popover-header { padding: 14px 12px 12px; }
  .saved-list { max-height: calc(72dvh - 78px); padding: 10px 12px 24px; }
  .feed-grid { grid-template-columns: 1fr; }
  .feed-placeholder { min-height: 96px; }
  .saved-strip { padding: 12px; flex-wrap: wrap; }
  .saved-strip .quiet-button { margin-left: auto; }
  .saved-strip .muted { flex-basis: 100%; padding-left: 25px; }
}

@media (max-width: 420px) {
  .map-toolbar .quiet-button { width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 0; }
  .map-toolbar .quiet-button svg { width: 18px; height: 18px; }
  .map-legend { left: 8px; right: auto; bottom: 36px; }
  .map-attribution { bottom: 8px; }
}
