:root {
  --bg: #f0f2f5;
  --card: #fff;
  --line: #e4e6eb;
  --text: #1c1e21;
  --sub: #65676b;
  --soft: #f0f2f5;
  --hover: #f2f3f5;
  --pri: #ff6b3d;
  --pri-d: #e85a2d;
  --pri-soft: #fff0ea;
  --teal: #1f9aa5;
  --teal-bar: #bfe4e8;
  --teal-soft: #eef8f9;
  --like: #f02849;
  --r: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .12);
  --top: 58px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
small { font-size: 12.5px; }
.muted { color: var(--sub); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── 머리 ── */
.top { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.1); height: var(--top); }
.top__in { height: 100%; display: flex; align-items: center; gap: 12px; padding: 0 16px; max-width: 1360px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 20px; }
.logo__mark { width: 40px; height: 40px; border-radius: 50%; background: var(--pri-soft); display: grid; place-items: center; font-size: 22px; }
.top__search { flex: 0 1 300px; display: flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 999px; padding: 0 14px; height: 40px; }
.top__search input { border: 0; background: none; outline: 0; flex: 1; font: inherit; min-width: 0; }
.top__nav { flex: 1; display: flex; justify-content: center; gap: 6px; }
.top__nav a { display: flex; align-items: center; gap: 6px; padding: 8px 22px; border-radius: 10px; color: var(--sub); font-weight: 600; font-size: 20px; }
.top__nav a span { font-size: 14px; }
.top__nav a:hover { background: var(--hover); }
.top__nav a.on { color: var(--pri); box-shadow: inset 0 -3px 0 var(--pri); border-radius: 0; }
.top__write { white-space: nowrap; }

/* ── 3단 ── */
.wrap { display: grid; grid-template-columns: 280px minmax(0, 620px) 340px; gap: 24px; justify-content: center; padding: 18px 16px 40px; max-width: 1360px; margin: 0 auto; }
.side { position: sticky; top: calc(var(--top) + 18px); align-self: start; max-height: calc(100vh - var(--top) - 36px); overflow: auto; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.side--r { display: flex; flex-direction: column; gap: 14px; }

/* ── 왼쪽 메뉴 ── */
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu__item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; font-weight: 600; }
.menu__item:hover { background: #e4e6e9; }
.menu__ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); font-size: 18px; }
.menu__head { margin: 14px 10px 6px; color: var(--sub); font-weight: 700; font-size: 13px; }

/* ── 카드 ── */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.card__title { font-size: 17px; font-weight: 800; }
.card__row { display: flex; justify-content: space-between; align-items: center; }
.box { padding: 16px; }
.box .card__title { margin-bottom: 10px; }
.box__more { display: block; margin-top: 10px; color: var(--sub); font-weight: 600; font-size: 14px; }
.empty { padding: 28px 16px; text-align: center; color: var(--sub); }
.empty-sm { margin: 8px 0 2px; }

/* ── 버튼·칩 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 8px; border: 0; background: #e4e6eb; font-weight: 700; font-size: 14.5px; }
.btn:hover { filter: brightness(.96); }
.btn--primary { background: var(--pri); color: #fff; }
.btn--primary:disabled { background: #f6b8a4; cursor: default; }
.btn--ghost { background: rgba(255,255,255,.85); }
.btn--liked { background: #ffe8ec; color: var(--like); }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13.5px; }
.btn--block { display: flex; width: 100%; margin-top: 12px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; font-size: 18px; color: var(--sub); }
.icon-btn:hover { background: var(--hover); }
.link { border: 0; background: none; padding: 0; color: var(--sub); font-weight: 600; }
.link:hover { text-decoration: underline; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: 14px; white-space: nowrap; border: 1px solid transparent; }
.chip:hover { background: #e4e6eb; }
.chip small { color: var(--sub); font-weight: 500; }
.chip--sm { padding: 5px 10px; font-size: 13px; }
.chip--on { background: var(--pri-soft); color: var(--pri-d); border-color: #ffd2c2; }
.chip--pick { background: var(--teal-soft); color: #0f6f78; font-size: 13.5px; padding: 5px 10px; }
.tag { margin-left: 6px; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; vertical-align: 1px; }
.tag--review { background: var(--teal-soft); color: var(--teal); }
.tag--menu { background: #fff6dd; color: #a87500; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 8px; background: var(--soft); font-size: 13px; font-weight: 600; color: #444; }
.badge--rank { background: #fff4d6; color: #8a5a00; }
.badge--warn { background: #fdecea; color: #b42318; }
.ok-badge { font-size: 11px; font-weight: 700; color: var(--teal); background: var(--teal-soft); padding: 1px 6px; border-radius: 5px; vertical-align: 1px; }

/* ── 아바타 ── */
.ava { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: hsl(var(--h, 20) 65% 55%); font-size: 16px; }
.ava--sm { width: 32px; height: 32px; font-size: 13px; }

/* ── 글쓰기 유도 ── */
.ask { padding: 12px 16px; display: grid; grid-template-columns: 40px 1fr; gap: 10px; cursor: pointer; }
.ask .ava { background: var(--pri-soft); font-size: 20px; }
.ask__input { background: var(--soft); border-radius: 999px; padding: 9px 16px; color: var(--sub); }
.ask:hover .ask__input { background: #e4e6eb; }
.ask__acts { grid-column: 1 / -1; display: flex; justify-content: space-around; border-top: 1px solid var(--line); padding-top: 8px; color: var(--sub); font-weight: 600; font-size: 14px; }

/* ── 지역 머리 ── */
.area-head { padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.area-head h1 { font-size: 24px; font-weight: 800; }
.area-head p { margin: 0; }
.crumbs { color: var(--sub); font-size: 13px; }
.crumbs a:hover { text-decoration: underline; }

/* ── 첫 이야기 유도 ── */
.fresh { padding: 16px; }
.fresh__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.fresh__item { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; padding: 10px; border-radius: 10px; background: var(--soft); }
.fresh__item:hover { background: #e4e6eb; }
.fresh__em { grid-row: span 2; font-size: 24px; align-self: center; }
.fresh__item b, .fresh__item small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 글 카드 ── */
.feed { display: flex; flex-direction: column; gap: 14px; }
.feed__title { font-size: 18px; margin: 6px 4px -2px; }
.post { padding-top: 12px; }
.post__head { display: flex; gap: 10px; padding: 0 16px; align-items: flex-start; }
.post__who { flex: 1; min-width: 0; }
.post__nick { font-weight: 700; }
.post__meta { color: var(--sub); font-size: 13px; }
.post__meta a:hover { text-decoration: underline; }
.post__store b { color: var(--text); }
.post__picks { padding: 10px 16px 0; }
.post__body { padding: 10px 16px 0; white-space: normal; }
.post__body.is-clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.post__more { margin: 2px 16px 0; }
.post__menus { margin: 12px 16px 0; padding: 10px 12px; border-radius: 10px; background: #fffaf0; border: 1px solid #f6e7c3; }
.post__menus-head { font-weight: 700; font-size: 13.5px; margin-bottom: 4px; color: #8a6300; }
.mline { display: flex; align-items: baseline; gap: 6px; font-size: 14.5px; padding: 2px 0; }
.mline i { flex: 1; border-bottom: 1px dotted #d9c79b; transform: translateY(-4px); }
.post__stats { display: flex; justify-content: space-between; padding: 10px 16px 8px; color: var(--sub); font-size: 14px; min-height: 18px; }
.post__stats:has(span:empty + .link:empty) { padding: 4px 16px; }
.post__acts { display: flex; margin: 0 12px; border-top: 1px solid var(--line); padding: 4px 0; }
.act { flex: 1; border: 0; background: none; border-radius: 8px; padding: 8px 4px; color: var(--sub); font-weight: 700; font-size: 14.5px; }
.act:hover { background: var(--hover); }
.act.on { color: var(--like); }
.act__ic { display: inline-block; transition: transform .15s; }
.act.pop .act__ic { transform: scale(1.35); }

/* 사진 */
.gal { margin-top: 12px; display: grid; gap: 3px; background: #fff; }
.gal--1 { grid-template-columns: 1fr; }
.gal--2 { grid-template-columns: 1fr 1fr; }
.gal--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gal--3 .gal__item:first-child { grid-row: span 2; }
.gal__item { position: relative; overflow: hidden; background: var(--soft); }
.gal__item img { width: 100%; height: 100%; object-fit: cover; }
.gal--1 .gal__item img { max-height: 520px; aspect-ratio: 4 / 3; }
.gal--2 .gal__item img { aspect-ratio: 1; }
.gal--3 .gal__item img { aspect-ratio: auto; height: 100%; min-height: 150px; }
.gal--3 .gal__item:first-child img { aspect-ratio: 4 / 5; }
.gal__plus { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-size: 28px; font-weight: 800; }

/* 댓글 */
.cmts { padding: 4px 16px 12px; border-top: 1px solid var(--line); margin: 0 12px; }
.cmts__list { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; }
.cmt { display: flex; gap: 8px; }
.cmt__b { background: var(--soft); border-radius: 16px; padding: 7px 12px; max-width: 90%; }
.cmt__b b { font-size: 13px; }
.cmt__b p { margin: 1px 0 0; }
.box .cmt { margin-bottom: 10px; }
.cmts__form { display: flex; gap: 8px; align-items: center; }
.cmts__form input { flex: 1; height: 36px; border-radius: 999px; border: 0; background: var(--soft); padding: 0 14px; font: inherit; outline: 0; }

.more { display: flex; justify-content: center; gap: 8px; align-items: center; padding: 14px; color: var(--sub); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #ccd0d5; border-top-color: var(--pri); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 가게 담벼락 ── */
.shop { overflow: hidden; }
.shop__cover { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 150px 150px; gap: 3px; background: var(--soft); }
.shop__cv { overflow: hidden; }
.shop__cv img { width: 100%; height: 100%; object-fit: cover; }
.shop__cv--0 { grid-row: span 2; }
.shop__cv--3 { grid-column: 2 / 4; }
.shop__cover:has(.shop__cv--0:only-of-type) { grid-template-columns: 1fr; }
.shop__cover--empty { display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; height: 220px; background: linear-gradient(135deg, #ffe7dc, #ffd9c7 45%, #fdebd3); }
.shop__big { font-size: 72px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.12)); }
.shop__info { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.shop__name { font-size: 28px; font-weight: 800; }
.shop__sub { color: var(--sub); font-weight: 600; }
.shop__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.shop__acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.shop__acts .btn { flex: 1 1 auto; }

/* 이런 점이 좋았어요 — 첨부 이미지 모양 */
.picks { padding: 16px; }
.picks__sum { margin: 6px 0 12px; color: var(--teal); font-weight: 700; }
.picks__sum span { color: var(--sub); font-weight: 500; }
.picks__list { display: flex; flex-direction: column; gap: 7px; }
.pk { position: relative; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px 0 12px; border-radius: 8px; border: 2px solid transparent; background: #f4f5f6; text-align: left; overflow: hidden; }
.pk::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--teal-bar); border-radius: 6px 0 0 6px; transition: width .35s ease; }
.pk > * { position: relative; }
.pk:hover { border-color: #d6eef0; }
.pk.on { border-color: var(--teal); background: #eef9fa; }
.pk__em { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 20px; }
.pk__t { flex: 1; font-weight: 800; font-size: 16px; }
.pk__n { color: var(--teal); font-weight: 800; }
.pk.pop .pk__em { animation: pop .3s; }
@keyframes pop { 50% { transform: scale(1.4); } }

/* 메뉴 */
.menus { padding: 16px; }
.menus__list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.menus__row { display: grid; grid-template-columns: auto 1fr auto; column-gap: 8px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.menus__row:last-child { border: 0; }
.menus__name { font-weight: 700; }
.menus__row > i { border-bottom: 1px dotted #c9ccd1; transform: translateY(-4px); }
.menus__row > b { font-size: 16px; }
.menus__chk { grid-column: 1 / 3; display: flex; gap: 6px; margin-top: 6px; }
.menus__chk button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; color: var(--sub); }
.menus__chk button.on { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
.menus__when { grid-column: 3; text-align: right; font-size: 12px; }

/* 정보 */
.info { display: grid; grid-template-columns: 52px 1fr; gap: 6px 10px; margin: 0; font-size: 14px; }
.info dt { color: var(--sub); }
.info dd { margin: 0; }
.info a { color: var(--pri-d); }

/* 작은 목록 */
.mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mini a { display: flex; gap: 10px; align-items: center; padding: 7px 6px; border-radius: 8px; }
.mini a:hover { background: var(--hover); }
.mini__n { width: 24px; text-align: center; font-weight: 800; color: var(--sub); }
.mini__em { width: 36px; height: 36px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; font-size: 19px; flex: none; }
.mini__t { display: flex; flex-direction: column; min-width: 0; }
.mini__t b, .mini__t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__t small { color: var(--sub); }

/* 순위 */
.rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rank__row { display: grid; grid-template-columns: 40px 76px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; }
.rank__n { font-size: 22px; font-weight: 800; text-align: center; color: var(--sub); }
.rank__img { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--soft); display: grid; place-items: center; font-size: 32px; }
.rank__img img { width: 100%; height: 100%; object-fit: cover; }
.rank__t { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rank__t b { font-size: 16px; }
.rank__s { text-align: right; display: flex; flex-direction: column; }
.rank__s b { font-size: 22px; color: var(--teal); line-height: 1.1; }
.rank__s small { color: var(--sub); }

/* 목록 */
.list { padding: 6px; }
.list--grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.list__row { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; }
.list__row:hover { background: var(--hover); }
.list__em { font-size: 26px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--soft); }
.list__t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.big-search { display: flex; gap: 8px; }
.big-search input { flex: 1; height: 42px; border-radius: 10px; border: 1px solid var(--line); padding: 0 14px; font: inherit; }

/* ── 모달 ── */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__back { position: absolute; inset: 0; background: rgba(244, 244, 244, .8); }
.modal__box { position: relative; width: min(540px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,.2), 0 2px 4px rgba(0,0,0,.1); }
.modal__box--sm { width: min(380px, 100%); }
.modal__head { position: relative; display: flex; justify-content: center; align-items: center; padding: 14px 48px; border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 19px; font-weight: 800; }
.modal__head .icon-btn { position: absolute; right: 10px; background: var(--soft); }
.modal__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.comp { overflow: hidden; }
.comp__store, .comp__body { padding: 14px 16px; overflow: auto; }
.comp__label { display: block; font-weight: 800; margin: 14px 0 8px; }
.comp__label:first-child { margin-top: 0; }
.comp__label small { color: var(--sub); font-weight: 500; }
.comp__find { display: flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 10px; padding: 0 12px; height: 44px; }
.comp__find input { flex: 1; border: 0; background: none; outline: 0; font: inherit; }
.comp__results { list-style: none; margin: 8px 0 0; padding: 0; max-height: 320px; overflow: auto; }
.comp__results li button { width: 100%; display: flex; gap: 10px; align-items: center; padding: 9px 8px; border: 0; background: none; border-radius: 8px; text-align: left; }
.comp__results li button:hover { background: var(--hover); }
.comp__results .em { font-size: 22px; width: 36px; text-align: center; }
.comp__chosen { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--pri-soft); border-radius: 10px; }
.comp__chosen b { flex: 1; }
.comp__kws .chip { cursor: pointer; background: #fff; border: 1px solid var(--line); }
.comp__kws .chip.on { background: var(--teal-soft); border-color: var(--teal); color: #0f6f78; }
.comp textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; resize: vertical; outline: 0; }
.comp textarea:focus { border-color: #ffc2ad; }
.comp__photos { display: flex; gap: 8px; flex-wrap: wrap; }
.comp__add, .comp__ph { width: 84px; height: 84px; border-radius: 10px; }
.comp__add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1.5px dashed #c9ccd1; color: var(--sub); font-size: 24px; cursor: pointer; }
.comp__add span { font-size: 12px; font-weight: 600; }
.comp__ph { position: relative; overflow: hidden; }
.comp__ph img { width: 100%; height: 100%; object-fit: cover; }
.comp__ph button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; line-height: 1; }
.comp details { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.comp summary { font-weight: 700; cursor: pointer; }
.comp summary small { color: var(--sub); font-weight: 500; }
.mrow { display: grid; grid-template-columns: 1fr 120px 28px; gap: 6px; margin-top: 8px; }
.mrow input, .comp__pw input { height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; }
.comp__pw input { margin-top: 8px; width: 100%; }
.mrow button { border: 0; background: none; color: var(--sub); }
.comp__note { color: var(--sub); font-size: 12.5px; margin: 14px 0 0; }
.comp__nick { color: var(--sub); font-size: 13px; }
.report__list { padding: 10px 16px; display: flex; flex-direction: column; }
.radio { padding: 9px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }

/* 큰 사진 */
.lb { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.92); display: grid; place-items: center; }
.lb[hidden] { display: none; }
.lb img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.lb__x { position: absolute; top: 14px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 18px; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 30px; }
.lb__prev { left: 16px; }
.lb__next { right: 16px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #222; color: #fff; padding: 10px 18px; border-radius: 10px; opacity: 0; pointer-events: none; transition: .2s; z-index: 200; font-weight: 600; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.foot { text-align: center; color: var(--sub); font-size: 12.5px; padding: 10px 16px 40px; }
.foot p { margin: 4px 0; }
.foot a:hover { text-decoration: underline; }

/* ── 반응형 ── */
@media (max-width: 1180px) {
  .wrap { grid-template-columns: minmax(0, 620px) 320px; }
  .side--l { display: none; }
}
@media (max-width: 900px) {
  .wrap { grid-template-columns: minmax(0, 640px); padding: 10px 0 30px; gap: 10px; }
  .side--r { position: static; max-height: none; padding: 0; }
  .card { border-radius: 0; }
  .main { gap: 10px; }
  .feed { gap: 10px; }
  .top__nav { display: none; }
  .top__search { flex: 1; }
  .top__write span { display: none; }
  .list--grid { grid-template-columns: repeat(2, 1fr); }
  .feed__title { margin: 6px 16px 0; }
}
@media (max-width: 520px) {
  .top__in { gap: 8px; padding: 0 10px; }
  .logo__mark { width: 36px; height: 36px; }
  .shop__name { font-size: 23px; }
  .shop__cover { grid-template-rows: 110px 110px; }
  .rank__row { grid-template-columns: 30px 60px 1fr; }
  .rank__img { width: 60px; height: 60px; }
  .rank__s { grid-column: 3; flex-direction: row; gap: 6px; align-items: baseline; text-align: left; }
  .rank__s b { font-size: 16px; }
  .fresh__list { grid-template-columns: 1fr; }
  .ask__acts span:last-child { display: none; }
  .modal { padding: 0; align-items: end; }
  .modal__box { width: 100%; max-height: 92vh; border-radius: 14px 14px 0 0; }
}

/* ── 선 아이콘(Lucide 스프라이트 · icon()) ── */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.ic--s { width: 16px; height: 16px; vertical-align: -3px; }
.ic--xs { width: 13px; height: 13px; vertical-align: -2px; stroke-width: 2.2; }
.ic--hot { color: #f2542d; }
.ic--food, .menu__ic--food, .mini__em--food, .list__em--food, .rank__ph--food, .shop__big--food { color: #e8590c; }
.ic--cafe, .menu__ic--cafe, .mini__em--cafe, .list__em--cafe, .rank__ph--cafe, .shop__big--cafe { color: #8b5a2b; }
.ic--bakery, .menu__ic--bakery, .mini__em--bakery, .list__em--bakery, .rank__ph--bakery, .shop__big--bakery { color: #c27c0e; }
.ic--pub, .menu__ic--pub, .mini__em--pub, .list__em--pub, .rank__ph--pub, .shop__big--pub { color: #7048e8; }
.ic--c1 { color: #2f9e44; } .ic--c2 { color: #f59f00; } .ic--c3 { color: #1c7ed6; }
.card__title, .feed__title, .area-head h1, .shop__sub, .badge, .chip, .btn, .act, .menu__item, .sheet__item, .post__menus-head, .comp summary, .link, .picks__sum, .mini__kw, .rank__sub, .list__s, .box__more, .top__search { display: inline-flex; align-items: center; gap: 6px; }
.card__title, .feed__title, .area-head h1 { display: flex; gap: 8px; }
.card__title .ic, .feed__title .ic { color: var(--pri); }
.area-head h1 .ic { width: 26px; height: 26px; }
.mini__kw, .rank__sub, .list__s { gap: 3px; }
.post__store { display: inline-flex; align-items: center; gap: 3px; }
.post__store .ic { color: var(--sub); }
.logo__mark { color: var(--pri); }
.logo__mark .ic { width: 22px; height: 22px; }
.top__search .ic { color: var(--sub); }
.top__nav a .ic { width: 22px; height: 22px; }
.menu__ic .ic { width: 18px; height: 18px; }
.menu__item .menu__ic:not([class*="--"]) { color: var(--pri); }
.mini__em .ic, .list__em .ic { width: 19px; height: 19px; }
.list__em .ic { width: 22px; height: 22px; }
.fresh__em { color: var(--pri); display: grid; place-items: center; }
.ava--brand { background: var(--pri-soft); color: var(--pri); }
.ava--brand .ic { width: 22px; height: 22px; }
.ava--me { background: #dfe3e8; color: var(--sub); }
.ask__acts span { display: inline-flex; align-items: center; gap: 6px; }
.chip--pick .ic { color: var(--teal); }
.chip--grp .ic { width: 16px; height: 16px; }
.chip--food .ic { color: #e8590c; } .chip--cafe .ic { color: #8b5a2b; } .chip--bakery .ic { color: #c27c0e; } .chip--pub .ic { color: #7048e8; }
.badge .ic { color: var(--sub); }
.badge--rank .ic { color: #c78a00; }

/* 좋아요 하트 — 켜지면 채운다 */
.act .ic, .btn .ic { width: 19px; height: 19px; }
.act.on .act__ic, .btn--liked .ic { fill: currentColor; }
.act.on { color: var(--like); }
.act.pop .act__ic { transform: scale(1.3); }
.act__ic { transition: transform .15s; }
.post__likes { display: inline-flex; align-items: center; gap: 5px; }
.dot-like { width: 18px; height: 18px; border-radius: 50%; background: var(--like); color: #fff; display: grid; place-items: center; }
.dot-like .ic { width: 11px; height: 11px; fill: currentColor; stroke-width: 2.5; vertical-align: 0; }

/* 문구 줄 아이콘 */
.pk__em { background: #fff; color: var(--teal); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.pk__em .ic { width: 18px; height: 18px; }
.pk.on .pk__em { background: var(--teal); color: #fff; }
.picks__sum .ic { color: var(--teal); stroke-width: 3; }
.menus__chk button { display: inline-flex; align-items: center; gap: 4px; }

/* 순위 배지 */
.medal { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--sub); background: var(--soft); }
.medal--1 { background: linear-gradient(135deg, #ffe066, #f2b705); color: #6b4a00; }
.medal--2 { background: linear-gradient(135deg, #f1f3f5, #c3c9d0); color: #454c55; }
.medal--3 { background: linear-gradient(135deg, #f6c9a2, #d08a52); color: #5c3110; }
.rank__n .medal { width: 34px; height: 34px; font-size: 16px; }
.rank__ph { width: 100%; height: 100%; display: grid; place-items: center; }
.rank__ph .ic { width: 30px; height: 30px; stroke-width: 1.6; }

/* 가게 담벼락 */
.shop__cover--n1 { grid-template-columns: 1fr; grid-template-rows: 300px; }
.shop__cover--n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 300px; }
.shop__cover--n2 .shop__cv--0 { grid-row: auto; }
.shop__cover--n3 { grid-template-columns: 2fr 1fr; }
.shop__cover--n4 .shop__cv--3 { grid-column: 2 / 4; }
.shop__big { width: 96px; height: 96px; border-radius: 28px; background: rgba(255,255,255,.75); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.08); filter: none; font-size: 0; }
.shop__big .ic { width: 48px; height: 48px; stroke-width: 1.6; }
.btn--icon { flex: 0 0 38px !important; padding: 0; }
.shop__acts .btn--liked .ic { color: var(--like); }

/* 전화번호 팝업 — 오픈모아 open.css 와 같은 모양 */
.phone__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.phone__list[hidden] { display: none; }
.pc { padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; animation: rise .28s ease-out both; }
.pc.sure { border-color: #ffc9b5; background: linear-gradient(180deg, var(--pri-soft), #fff 70%); }
.pc__top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pc__nm { flex: 0 1 auto; min-width: 0; font-size: 15px; line-height: 22px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc__ok { flex: none; padding: 1px 7px; border-radius: 999px; background: var(--pri); color: #fff; font-size: 11px; line-height: 18px; font-weight: 700; }
.pc__ad { display: block; margin-top: 2px; font-size: 12.5px; line-height: 18px; color: var(--sub); }
.pc__act { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.pc__tel { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 10px; background: var(--pri); color: #fff; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; transition: background .15s, transform .15s; }
.pc__tel:hover { background: var(--pri-d); }
.pc__tel:active { transform: scale(.98); }
.pc__tel.none { background: var(--soft); color: var(--sub); font-size: 14px; font-weight: 600; }
.pc__kk { flex: none; display: inline-flex; align-items: center; height: 46px; padding: 0 14px; border: 1px solid #d0d4d9; border-radius: 10px; font-size: 13px; font-weight: 600; background: #fff; }
.pc__kk:hover { border-color: var(--text); }
.phone__msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff6e5; font-size: 13px; line-height: 20px; }
.phone__msg[hidden] { display: none; }
.phone__more { display: flex; align-items: center; justify-content: center; gap: 4px; height: 42px; margin-top: 10px; border: 1px solid #d0d4d9; border-radius: 10px; font-size: 13.5px; font-weight: 600; }
.phone__more[hidden] { display: none; }
.phone__more:hover { border-color: var(--text); }
.pop { width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 64px); overflow: auto; margin: auto; padding: 20px; border: 0; border-radius: 16px; background: #fff; color: var(--text); box-shadow: 0 16px 48px rgba(0,0,0,.22); text-align: left; }
.pop[open] { animation: popin .26s cubic-bezier(.2,1.2,.4,1); }
.pop::backdrop { background: rgba(15,20,35,.5); backdrop-filter: blur(2px); }
.pop__hd { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pop__ic { flex: none; width: 42px; height: 42px; border-radius: 999px; background: var(--pri-soft); color: var(--pri-d); display: flex; align-items: center; justify-content: center; }
.pop__tt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pop__tt h3 { font-size: 17px; line-height: 24px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop__tt small { font-size: 12.5px; line-height: 18px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop__x { flex: none; width: 36px; height: 36px; margin: -6px -8px 0 0; align-self: flex-start; border: 0; border-radius: 999px; background: transparent; color: var(--sub); display: flex; align-items: center; justify-content: center; }
.pop__x:hover { background: var(--soft); color: var(--text); }
.pop__wait { display: flex; align-items: center; justify-content: center; gap: 10px; height: 96px; border-radius: 12px; background: var(--soft); color: var(--sub); font-size: 14px; font-weight: 600; }
.pop__wait[hidden] { display: none; }
.pop__spin { width: 18px; height: 18px; border: 2px solid #d0d4d9; border-top-color: var(--pri); border-radius: 50%; animation: spin .8s linear infinite; }
.pop__src { display: flex; gap: 6px; align-items: flex-start; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; line-height: 18px; color: #8a8d91; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes popin { from { opacity: 0; transform: scale(.96); } }

/* ⋯ 시트 · 지우기 */
.sheet { padding: 8px; }
.sheet__item { width: 100%; justify-content: flex-start; gap: 12px; padding: 13px 12px; border: 0; background: none; border-radius: 10px; font-weight: 700; font-size: 15px; }
.sheet__item:hover { background: var(--hover); }
.sheet__item[hidden] { display: none; }
.sheet__item--muted { justify-content: center; color: var(--sub); }
.del__body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.del__msg { margin: 0; color: var(--sub); }
.del__msg[hidden], .del__pw[hidden] { display: none; }
.del__pw { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.del__pw input { height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: inherit; }
.btn--danger { background: #e03131; color: #fff; }
.comp__add .ic { width: 26px; height: 26px; }
.lb__x .ic, .lb__nav .ic { width: 26px; height: 26px; }
.lb__nav, .lb__x { display: grid; place-items: center; }
.ok-badge, .tag { display: inline-block; }

@media (max-width: 520px) {
  .shop__cover--n1, .shop__cover--n2 { grid-template-rows: 220px; }
  .shop__acts .btn { flex: 1 1 40%; }
  .shop__acts .btn--icon { flex: 0 0 38px !important; }
}

/* 소개·정책·삭제요청 */
.doc { padding: 22px 22px 26px; line-height: 1.7; }
.doc h1 { display: flex; align-items: center; gap: 8px; font-size: 24px; margin-bottom: 10px; }
.doc h1 .ic { color: var(--pri); width: 24px; height: 24px; }
.doc h2 { font-size: 17px; margin: 22px 0 6px; }
.doc p { margin: 6px 0; }
.doc ul { margin: 6px 0; padding-left: 20px; }
.doc li { margin: 4px 0; }
.doc a { color: var(--pri-d); text-decoration: underline; }
.rmv { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.rmv fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 6px 14px 4px; margin: 0; }
.rmv legend { font-weight: 800; padding: 0 4px; }
.rmv .radio:last-child { border: 0; }
.rmv > label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.rmv input:not([type=radio]), .rmv textarea { font: inherit; font-weight: 400; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.rmv .btn { align-self: flex-start; }
