:root {
  --bg: #FFFCF8;
  --ink: #2C2C2A;
  --ink-2: #5F5E5A;
  --ink-3: #888780;
  --line: #EDEAE2;

  --food-bg: #FAECE7; --food-mid: #F0997B; --food-ink: #712B13; --food-dot: #D85A30;
  --cafe-bg: #FAEEDA; --cafe-mid: #FAC775; --cafe-ink: #633806; --cafe-dot: #BA7517;
  --see-bg:  #EEEDFE; --see-mid:  #AFA9EC; --see-ink:  #3C3489; --see-dot:  #7F77DD;
  --all-bg:  #F1EFE8; --all-ink:  #444441;
  --map-bg:  #E1F5EE; --map-ink:  #085041;
  --me:      #378ADD;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Gowun Dodum", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;   /* 본문 고운돋움 (2026-10-27) */
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Gowun Batang", "Gowun Dodum", Pretendard, serif; }   /* 제목 고운바탕 */
.logo, .logo * { font-family: Pretendard, -apple-system, sans-serif; }   /* 로고는 그대로 */
button, input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 960px; margin: 0 auto; padding: 20px 16px 64px; }

/* 공통: 헤더, 로고 */
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
/* 로고: JID + (O 자리에 핀) + NOTE. 핀은 글자보다 조금 크게, 끝이 글자 아래로 살짝 내려옴 */
.logo { display: flex; align-items: center; font-size: 24px; letter-spacing: -0.3px; color: var(--ink); line-height: 1; }
.logo b { font-weight: 800; }
.logo span {
  font-weight: 300; color: var(--ink-2); margin-left: .18em; padding: 0 .06em;
  /* NOTE에 형광펜 칠한 느낌 */
  background: linear-gradient(transparent 58%, var(--cafe-mid) 58%, var(--cafe-mid) 88%, transparent 88%);
}
.logo-pin { width: .98em; height: 1.1em; margin: 0 0 -.14em .06em; }
.logo-pin path { fill: var(--food-dot); }
.logo-pin circle { fill: var(--bg); }
.count { font-size: 14px; color: var(--ink-3); }

/* 공통: 카테고리 색 */
[data-c="food"] { --c-bg: var(--food-bg); --c-mid: var(--food-mid); --c-ink: var(--food-ink); --c-dot: var(--food-dot); }
[data-c="cafe"] { --c-bg: var(--cafe-bg); --c-mid: var(--cafe-mid); --c-ink: var(--cafe-ink); --c-dot: var(--cafe-dot); }
[data-c="see"]  { --c-bg: var(--see-bg);  --c-mid: var(--see-mid);  --c-ink: var(--see-ink);  --c-dot: var(--see-dot); }
[data-c="all"]  { --c-bg: var(--all-bg);  --c-ink: var(--all-ink); }

/* 공통: 핀 점수, 배지 */
/* 핀 점수 (data.js의 dots()) */
.pins { display: inline-flex; gap: .1em; vertical-align: -.14em; }
.pin-i { width: .95em; height: 1.06em; fill: currentColor; }
.pin-i.off { opacity: .28; }
.dots { color: var(--c-dot, var(--food-dot)); }
.badges { display: flex; flex-wrap: wrap; gap: 4px; }
.badge { background: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }

/* 메인: 검색 */
.search {
  width: 100%; margin-bottom: 16px; padding: 13px 18px;
  border: 1.5px solid var(--line); border-radius: 16px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink); outline: none;
}
.search:focus { border-color: var(--ink-3); }

/* 메인: 지역 탭 */
.regions { display: flex; gap: 18px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
.regions::-webkit-scrollbar { display: none; }
.region {
  flex: none; background: none; border: none; padding: 4px 0 6px; cursor: pointer;
  font: inherit; font-size: 18px; font-weight: 500; color: var(--ink-3);
  border-bottom: 3px solid transparent;
}
.region.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--food-dot); }

/* 메인: 카테고리 */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.cat {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--c-bg); color: var(--c-ink);
  border: 2px solid transparent; border-radius: 18px; padding: 14px 8px;
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
}
.cat.on { border-color: currentColor; }

/* 메인: 태그 */
.tags { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.tags::-webkit-scrollbar { display: none; }
.tag {
  flex: none; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer;
}
.tag.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 지도 (그림) */
.map {
  position: relative; height: 340px; border-radius: 28px; overflow: hidden;
  background: var(--map-bg); margin-bottom: 32px;
}
.map .road { position: absolute; background: #fff; opacity: .6; border-radius: 999px; }
.map .water { position: absolute; right: -40px; bottom: -40px; width: 260px; height: 180px; border-radius: 50%; background: #E6F1FB; }
.pin {
  position: absolute; width: 36px; height: 36px; margin: -36px 0 0 -18px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  background: var(--c-mid); color: var(--c-ink);
  border: none; cursor: pointer; transition: opacity .2s, transform .2s;
}
.pin span { transform: rotate(45deg); font-size: 13px; font-weight: 700; }
.pin .pm { display: flex; gap: 2px; }
.pin .pm i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pin .pm i.off { opacity: .3; }
.pin.off { opacity: .12; pointer-events: none; }
.pin.sel { transform: rotate(-45deg) scale(1.25); }
.pin.closed { filter: grayscale(1); opacity: .45; }
/* 진짜 지도(카카오) 사진 핀: 실제 위치에 빨간 점 → 가게마다 다르게 꺾인 선 → 살짝 기운 대표 사진 (모양은 mapview.js phShape) */
.ph-pin { position: relative; width: 0; height: 0; }
.ph-pin .ph-pt { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%; background: #E2492F; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.ph-dot { display: block; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; background: #E2492F; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.ph-pin .leg { position: absolute; left: 0; top: 0; overflow: visible; }
.ph-pin .leg path { fill: none; stroke: rgba(31, 35, 40, .42); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.ph-card { position: absolute; transform: rotate(var(--rot, 0deg)); width: 60px; height: 60px; box-sizing: border-box; padding: 3px; border: 0; border-radius: 9px; background: #fff; box-shadow: 0 6px 14px -6px rgba(0,0,0,.55); cursor: pointer; transition: transform .15s; }
.ph-card > span { display: block; width: 100%; height: 100%; border-radius: 6px; background: #ddd center / cover; }
.ph-card b { position: absolute; right: -9px; top: -9px; min-width: 24px; height: 24px; padding: 0 6px; box-sizing: border-box; border-radius: 12px; background: #E2492F; color: #fff; font: 700 12px/24px Pretendard, -apple-system, sans-serif; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.ph-pin.sel .ph-card { box-shadow: 0 0 0 3px #E2492F, 0 6px 14px -6px rgba(0,0,0,.55); transform: rotate(0deg) scale(1.12); }
.ph-pin.closed .ph-card > span { filter: grayscale(1); }
.pin.closed.off { opacity: .08; }
.me { position: absolute; left: 48%; top: 46%; width: 18px; height: 18px; border-radius: 50%; background: var(--me); border: 3px solid #fff; }
.map-btn {
  position: absolute; background: #fff; color: var(--map-ink); border: none;
  border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 14px; cursor: pointer;
}
.map-note { position: absolute; right: 16px; bottom: 16px; font-size: 12px; color: var(--map-ink); opacity: .7; }

/* 메인: 기록 카드 */
.list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.section-title { font-size: 20px; font-weight: 700; margin: 0; }
.sort {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 12px; font: inherit; font-size: 14px; color: var(--ink-2);
}
.legend .pins { color: var(--food-dot); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--ink-2); margin: 0 0 18px; }
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card {
  display: block; border-radius: 24px; padding: 10px; background: var(--c-bg); color: var(--c-ink);
  transition: transform .15s; outline: 3px solid transparent;
}
.card:hover { transform: translateY(-2px); }
.card.sel { outline-color: var(--ink); }
.photo { position: relative; background: var(--c-mid); border-radius: 18px; overflow: hidden; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card .photo { aspect-ratio: 4 / 3; }
.card .body { padding: 12px 6px 6px; }
.card .name { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.card .meta { font-size: 13px; opacity: .8; margin: 0 0 10px; }
.card .menu { font-size: 14px; font-weight: 600; margin: -4px 0 10px; }
.card .badges { margin-bottom: 10px; }
.badge.visits { background: var(--c-dot); color: #fff; }
.card.closed .photo img { filter: grayscale(1); opacity: .7; }
.card.closed { opacity: .75; }
.status {
  position: absolute; left: 10px; top: 10px; background: var(--ink); color: #fff;
  border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700;
}
.card .quote { font-size: 15px; line-height: 1.5; margin: 0; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--ink-3); padding: 40px 0; }
.empty .elsewhere { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 12px 0 16px; color: var(--ink); font-weight: 700; }
.empty .elsewhere a { color: inherit; text-decoration: none; }
.empty .elsewhere small { margin-left: 4px; font-weight: 400; color: var(--ink-3); }
.empty .go-all { display: inline-block; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* 상세 페이지 */
.back { font-size: 15px; color: var(--ink-2); }
/* 사진: 모바일은 화면 꽉 차게 옆으로 넘기기, 누르면 뷰어 */
.gallery-wrap { position: relative; margin: 0 -16px 24px; }
.gallery {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 16px; scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery .photo {
  flex: 0 0 100%; aspect-ratio: 4 / 5; scroll-snap-align: center; border-radius: 22px;
  border: none; padding: 0; cursor: zoom-in; font: inherit;
}
.gallery-count {
  position: absolute; right: 28px; bottom: 12px; background: rgba(44, 44, 42, .55); color: #fff;
  border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600;
}
.info { color: var(--c-ink); overflow-wrap: anywhere; }   /* 띄어쓰기 없는 긴 글이 와도 화면 밖으로 안 넘치게 (안 맞을 때만 끊음) */
.info .kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 10px; }
.info .chip { background: var(--c-bg); border-radius: 999px; padding: 5px 12px; font-weight: 700; }
.info .status-chip { background: var(--ink); color: #fff; }
.info h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; margin: 0 0 6px; color: var(--ink); }
.price-basis { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); margin-top: 3px; }
.menu-line { font-size: 17px; font-weight: 700; color: var(--c-ink); margin: 0 0 14px; }
.score {
  display: inline-flex; align-items: center; gap: 10px; background: var(--c-bg);
  border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 700; margin-bottom: 14px;
}
.score .dots { font-size: 18px; }
.info .badges { margin-bottom: 22px; }
.info .badge { background: var(--c-bg); }
.big-quote { font-size: 24px; font-weight: 700; line-height: 1.4; margin: 0 0 14px; color: var(--ink); }
.memo { font-size: 16px; line-height: 1.75; color: var(--ink-2); margin: 0 0 22px; }
/* 주문 팁: 꼭 시킬 것 / 패스 */
.picks { display: grid; gap: 8px; margin: 0 0 22px; }
.picks > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border-radius: 16px; padding: 12px 14px; }
.picks b { font-size: 13px; margin-right: 4px; }
.picks span { font-size: 15px; font-weight: 700; }
.picks span + span::before { content: "·"; margin-right: 6px; color: var(--ink-3); font-weight: 400; }
/* 꼭 시킬 것: 이름표는 작게 위에, 메뉴 이름은 크고 굵게 (이 가게에서 뭘 시킬지가 먼저 보이게) */
.picks > div { display: block; }
.picks b { display: block; margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.picks p { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pick-good b { color: #E2492F; }
.pick-good span { font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.pick-bad span { font-size: 15px; font-weight: 600; color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.picks span + span::before { margin-right: 10px; }
/* 다시 간 곳: 핀 점수 옆에 "3번 감" */
.score-visits { margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(31, 35, 40, .2); font-style: normal; font-weight: 700; color: #E2492F; }
.pick-good { background: var(--c-bg); color: var(--c-ink); }
.pick-bad { background: var(--all-bg); color: var(--ink-2); }
.pick-bad span { text-decoration: line-through; text-decoration-color: var(--ink-3); }
.status-banner {
  background: var(--ink); color: #fff; border-radius: 14px;
  padding: 10px 14px; font-size: 14px; font-weight: 600; margin-bottom: 14px;
}
.facts { margin: 0 0 24px; border-top: 1.5px solid var(--line); }
.facts > div { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1.5px solid var(--line); font-size: 15px; }
.facts dt { flex: none; width: 76px; color: var(--ink-3); word-break: keep-all; }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; }
.facts dd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wait-row { display: block; width: 100%; }
.fact-note { display: block; width: 100%; font-size: 13px; font-weight: 400; color: var(--ink-3); }
.kid { background: var(--c-bg); color: var(--c-ink); border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.kid.warn { background: var(--ink); color: #fff; }
.kid.no { background: none; color: var(--ink-3); text-decoration: line-through; font-weight: 400; }
.badge.kids { background: #E1F5EE; color: #085041; }
.badge.nokids { background: var(--ink); color: #fff; }
.tag.tag-kids { border-color: #9FE1CB; color: #085041; }
.tag.tag-kids.on { background: #1D9E75; border-color: #1D9E75; color: #fff; }
.sub-title { font-size: 17px; font-weight: 800; color: var(--ink); margin: 0 0 12px; }
.timeline { list-style: none; margin: 0 0 28px; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px 4px; }
.timeline li::before {
  content: ""; position: absolute; left: -26px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--c-dot); border: 3px solid var(--bg);
}
.timeline li:not(:first-child)::before { background: var(--line); }
.tl-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.tl-head .dots { color: var(--c-dot); }
.tl-meta { font-size: 13px; color: var(--ink-3); margin: 3px 0 0; }
.tl-note { font-size: 14px; color: var(--ink-2); margin: 4px 0 0; }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: -28px 0 40px; }
.share-row .share { margin: 0; }
.share.story { background: var(--ink); color: #fff; }
/* 카톡 공유: 카카오 노란색, 한 줄 꽉 채워서 */
.share.kakao { grid-column: 1 / -1; background: #FEE500; color: #191919; }
.share[hidden] { display: none; }
.share {
  width: 100%; margin: -28px 0 40px; padding: 13px; border: none; border-radius: 14px;
  background: var(--c-bg); color: var(--c-ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.mini-map { height: 200px; margin-bottom: 12px; }
.mini-map .pin { left: 50%; top: 55%; transform: rotate(-45deg) scale(1.2); }
.open-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
/* 길찾기: 카카오맵 길찾기로 바로 (위치 있는 기록만). 한 줄 꽉 채워서 먼저 */
.open-links .route { flex-basis: 100%; background: var(--c-bg); color: var(--c-ink); border-color: transparent; font-size: 15px; font-weight: 700; }
.open-links a {
  flex: 1; text-align: center; background: #fff; border: 1.5px solid var(--line);
  border-radius: 14px; padding: 12px; font-size: 14px; font-weight: 600; color: var(--ink-2);
}
/* 같이 가면 좋은 곳 */
.pairs { display: grid; gap: 10px; }
.pair { display: flex; gap: 14px; align-items: center; background: var(--c-bg); color: var(--c-ink); border-radius: 20px; padding: 10px; }
.pair .photo { flex: none; width: 96px; height: 96px; border-radius: 14px; }
.pair-arrow { font-size: 12px; font-weight: 700; color: var(--c-dot); }
.pair b { display: block; font-size: 17px; margin: 2px 0; }
.pair small { font-size: 13px; opacity: .85; }
.pair p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
@media (min-width: 1024px) { .pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.related-title { font-size: 18px; font-weight: 700; margin: 0 0 14px; }

/* 첫 화면 */
.to-map {
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: 14px; color: var(--ink-2);
}
.hero { margin: 12px 0 26px; }
.hero h1 { font-size: 40px; line-height: 1.18; font-weight: 800; letter-spacing: -1px; margin: 0 0 10px; }
.hero p { font-size: 16px; color: var(--ink-2); margin: 0; }
/* 첫 화면 지도 무늬 배경 (6035b48 버전 배경: 등고선 + 흰 도로 + 노란 점선 + 파란 핀 3개).
   그림은 400x300 한 장을 같은 크기로 이어 붙임 → 화면이 넓어도 줄 간격이 폰에서 본 그대로 */
.hero-bg {
  position: relative; overflow: hidden; margin: 0 -16px 22px; padding: 104px 16px 34px;
  background: #F4F6F1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='300' viewBox='0 0 400 300'%3E%3Cg fill='none' stroke='%231F5A3A' stroke-opacity='.12' stroke-width='1.2'%3E%3Cpath d='M0 40 C70 10 130 10 200 40 S330 70 400 40'/%3E%3Cpath d='M0 75 C70 37 130 37 200 75 S330 113 400 75'/%3E%3Cpath d='M0 110 C70 64 130 64 200 110 S330 156 400 110'/%3E%3Cpath d='M0 232 C70 192 130 192 200 232 S330 272 400 232'/%3E%3Cpath d='M0 266 C70 234 130 234 200 266 S330 298 400 266'/%3E%3C/g%3E%3Cg fill='none' stroke='%23fff' stroke-width='9'%3E%3Cpath d='M0 175 C70 132 130 132 200 175 S330 218 400 175'/%3E%3Cpath d='M300 0 C250 70 250 110 300 150 S350 230 300 300'/%3E%3C/g%3E%3Cpath d='M0 175 C70 132 130 132 200 175 S330 218 400 175' fill='none' stroke='%23FFE58A' stroke-width='3' stroke-dasharray='10 8'/%3E%3C/svg%3E") 0 0 / 400px 300px repeat;
}
.hero-bg > h1, .hero-bg > p { position: relative; z-index: 1; }
.hero-pin { position: absolute; width: 30px; height: 34px; z-index: 1; }
.hero-pin path { fill: #2E4CF6; }
.hero-pin circle { fill: #F4F6F1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-pin { animation: drop .7s cubic-bezier(.2,.9,.3,1.25) both; }
  .hero-pin:nth-of-type(2) { animation-delay: .12s; }
  .hero-pin:nth-of-type(3) { animation-delay: .24s; }
  @keyframes drop { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
}
.home-regions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.home-region {
  display: flex; flex-direction: column; justify-content: space-between;
  height: 170px; border-radius: 26px; padding: 20px;
}
.home-region[data-tone="coral"] { background: var(--food-bg); color: var(--food-ink); --tone: var(--food-dot); }
.home-region[data-tone="mint"]  { background: var(--map-bg);  color: var(--map-ink);  --tone: #1D9E75; }
.home-region .hr-pin { font-size: 24px; color: var(--tone); }
.home-region b { display: block; font-size: 30px; font-weight: 800; }
.home-region small { font-size: 13px; opacity: .85; }
.home-all {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--see-bg); color: var(--see-ink); border-radius: 20px; padding: 16px 20px; margin-bottom: 36px;
}
.home-all b { font-size: 16px; }
.home-all small { font-size: 13px; opacity: .85; text-align: right; }
.shelf { margin-bottom: 36px; }
.shelf-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.shelf-head h2 { font-size: 21px; font-weight: 800; margin: 0; }
.shelf-head a { font-size: 14px; color: var(--ink-3); }
.shelf-sub { font-size: 14px; margin: -6px 0 14px; }
/* 카드 줄: 모바일은 옆으로 밀기, PC는 3열 */
.shelf-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -16px; padding: 0 16px;
}
.shelf-row::-webkit-scrollbar { display: none; }
.shelf-row .card { scroll-snap-align: start; }
.shelf.best { background: var(--ink); color: #fff; border-radius: 28px; padding: 22px 16px 20px; }
.shelf.best .shelf-row { margin: 0 -16px; }
/* "일부러 찾아감" 제목 옆 장식: 핀 3개가 겹쳐 꽂힌 모양 */
.best-pins { display: inline-flex; color: var(--food-mid); vertical-align: -.08em; margin-right: .15em; }
.best-pins .pin-i { width: .78em; height: .88em; }
.best-pins .pin-i + .pin-i { margin-left: -.32em; }
.best-pins .pin-i:nth-child(1) { transform: rotate(-14deg); }
.best-pins .pin-i:nth-child(2) { transform: translateY(-.1em); }
.best-pins .pin-i:nth-child(3) { transform: rotate(14deg); }
.shelf.best .shelf-head a, .shelf.best .shelf-sub { color: #B4B2A9; }

/* 첫 화면: 1년 전 이맘때 */
.ago {
  display: flex; gap: 12px; align-items: center; margin: -8px 0 22px;
  background: var(--cafe-bg); color: var(--cafe-ink); border-radius: 20px; padding: 10px;
}
.ago[hidden] { display: none; }
.ago-photo { flex: none; width: 68px; height: 68px; border-radius: 14px; overflow: hidden; background: var(--cafe-mid); }
.ago-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ago small { display: block; font-size: 12px; opacity: .85; }
.ago b { display: block; font-size: 16px; margin: 2px 0; }
.ago span { font-size: 13px; }

/* 첫 화면: 오늘 뭐 먹지 뽑기 */
.pick { background: var(--food-bg); color: var(--food-ink); border-radius: 26px; padding: 20px 16px; margin-bottom: 36px; }
.pick h2 { font-size: 21px; font-weight: 800; margin: 0 0 12px; }
.pick-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pick-chips select, .pick-toggle {
  border: none; background: #fff; color: var(--food-ink); border-radius: 999px;
  padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer;
}
.pick-toggle[aria-pressed="true"] { background: var(--food-dot); color: #fff; }
.pick-toggle[disabled] { opacity: .45; cursor: default; }
.pick-body { display: flex; gap: 10px; align-items: stretch; }
.pick-result { flex: 1; min-height: 92px; background: #fff; border-radius: 18px; display: flex; align-items: center; }
.pick-result.spinning { opacity: .6; }
.pick-empty { margin: 0 auto; font-size: 14px; color: var(--ink-3); padding: 0 12px; text-align: center; }
.pick-card { display: flex; gap: 12px; align-items: center; padding: 10px; width: 100%; color: var(--food-ink); }
.pick-card .photo { flex: none; width: 72px; height: 72px; border-radius: 12px; }
.pick-card b { display: block; font-size: 17px; }
.pick-card small { display: block; font-size: 12px; margin-top: 2px; opacity: .85; }
.pick-card .dots { color: var(--c-dot); }
.pick-go {
  flex: none; width: 84px; border: none; border-radius: 18px; background: var(--food-dot); color: #fff;
  font: inherit; font-size: 18px; font-weight: 800; cursor: pointer;
}
.pick-go:active { transform: scale(.96); }

/* 첫 화면: 동네 점수판 */
.board { background: var(--map-bg); color: var(--map-ink); border-radius: 26px; padding: 20px 16px; margin-bottom: 24px; }
.board[hidden] { display: none; }
.board h2 { font-size: 21px; font-weight: 800; margin: 0; }
.board-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.board-tabs button { border: none; background: #fff; color: var(--map-ink); border-radius: 999px; padding: 6px 13px; font: inherit; font-size: 13px; cursor: pointer; }
.board-tabs button.on { background: #1D9E75; color: #fff; }
.board-row { display: grid; grid-template-columns: 70px 1fr 82px; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; }
.board-row span:last-child { text-align: right; font-size: 13px; }
.bar { height: 10px; border-radius: 999px; background: #fff; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: #1D9E75; }
.board-note { font-size: 12px; opacity: .75; margin: 8px 0 0; }

/* 첫 화면: 사라진 가게 링크 */
.to-archive {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; border-radius: 20px; padding: 16px 20px;
}
.to-archive[hidden] { display: none; }
.to-archive small { color: #B4B2A9; font-size: 13px; text-align: right; }

/* 지도 페이지: 목록 / 사진 전환 */
.list-head { gap: 10px; }
.list-head .section-title { margin-right: auto; }
.view-toggle { display: inline-flex; background: var(--all-bg); border-radius: 999px; padding: 3px; }
.view-toggle button { border: none; background: none; border-radius: 999px; padding: 5px 13px; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.view-toggle button.on { background: var(--ink); color: #fff; }
.list.photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--c-mid); outline: 3px solid transparent; outline-offset: -3px; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile.sel { outline-color: var(--ink); }
.tile.closed img { filter: grayscale(1); opacity: .7; }
.tile-dots .pin-i { fill: #fff; }
.tile-dots .pin-i.off { opacity: .35; }
.tile-dots {
  position: absolute; left: 6px; bottom: 6px; background: rgba(44, 44, 42, .5); color: #fff;
  border-radius: 999px; padding: 1px 7px; font-size: 10px; letter-spacing: 1px;
}

.tile-count {
  position: absolute; right: 6px; top: 6px; background: rgba(44, 44, 42, .5); color: #fff;
  border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 700;
}
.tile-count::before { content: "▣ "; font-size: 9px; }

/* 사라진 가게 페이지: 전부 흑백 */
.archive { --bg: #E9ECE8; }   /* 다른 페이지 지도색에서 채도만 뺀 회색 (흑백 사진과 맞춤) */
.archive .card { background: #fff; color: var(--ink); }
.archive .card .photo img { filter: grayscale(1); }
.archive .card .meta { margin-bottom: 4px; }

/* 사진 전체 화면 뷰어 */
.viewer { position: fixed; inset: 0; z-index: 100; background: rgba(20, 20, 19, .94); }
.viewer[hidden] { display: none; }
.viewer-strip {
  display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.viewer-strip::-webkit-scrollbar { display: none; }
.viewer-slide {
  flex: 0 0 100%; height: 100%; scroll-snap-align: center;
  display: flex; align-items: center; justify-content: center; padding: 64px 16px 80px;
}
.viewer-slide img { width: 100%; height: 100%; object-fit: contain; }
.viewer-btn {
  position: absolute; border: none; background: rgba(255, 255, 255, .14); color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer;
}
.viewer-close { top: 14px; right: 14px; font-size: 20px; }
.viewer-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.viewer-next { right: 16px; top: 50%; transform: translateY(-50%); }
.viewer-count {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 14px; font-weight: 600;
}
.viewer-link {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: #fff; color: var(--ink); border-radius: 999px; padding: 11px 20px;
  font-size: 15px; font-weight: 700; white-space: nowrap;
}
.viewer-link[hidden] { display: none; }
@media (max-width: 520px) { .viewer-prev, .viewer-next { display: none; } }

/* PC */
@media (min-width: 1024px) {
  .wrap { max-width: 1440px; padding: 24px 32px 64px; }
  /* 메인: 지도는 왼쪽 고정, 기록 목록은 오른쪽 */
  .main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .main > .map { position: sticky; top: 20px; height: calc(100vh - 40px); margin-bottom: 0; }
  /* 상세: 사진은 왼쪽, 정보는 오른쪽. 사진 영역 높이를 오른쪽 정보 높이에 맞춤 */
  .detail { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; align-items: stretch; }
  /* PC 사진: 왼쪽 큰 사진 1장 + 오른쪽 2x2 (최대 5장, 나머지는 +N과 뷰어로) */
  .gallery-wrap { margin: 0; height: 100%; }
  .gallery {
    display: grid; height: 100%; min-height: 600px; gap: 10px; overflow: visible; padding: 0;
    grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  .gallery .photo { aspect-ratio: auto; border-radius: 22px; }
  .gallery .photo:first-child { grid-row: 1 / -1; }
  .gallery .photo:nth-child(n+6) { display: none; }
  .gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .gallery.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .gallery.n3 { grid-template-columns: 2fr 1fr; }
  .gallery.n4 .photo:nth-child(4) { grid-column: span 2; }
  .gallery .more::after {
    content: attr(data-more); position: absolute; inset: 0;
    background: rgba(44, 44, 42, .45); color: #fff; font-size: 26px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
  }
  .gallery-count { display: none; }
  .detail .share-row { margin-bottom: 0; }
  /* 첫 화면 */
  .home .wrap, .archive .wrap, .nf .wrap { max-width: 1100px; }   /* 두 칸(지도·상세)이 아닌 페이지는 첫 화면과 같은 폭 */
  .hero { margin: 40px 0 36px; }
  .hero.hero-bg { margin: 0 calc(50% - 50vw) 30px; padding: 150px calc(50vw - 50%) 72px; }
  .hero h1 { font-size: 64px; }
  .hero p { font-size: 18px; }
  .home-region { height: 220px; padding: 26px; }
  .home-region b { font-size: 40px; }
  .shelf-row { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .shelf.best { padding: 28px; }
  .shelf.best .shelf-row { margin: 0; }
  .pick, .board { padding: 26px 28px; }
  .list.photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 모바일 */
@media (max-width: 520px) {
  .cat { font-size: 14px; padding: 12px 4px; border-radius: 14px; }
  .map { height: 280px; border-radius: 22px; }
  .info h1 { font-size: 28px; }
  .big-quote { font-size: 21px; }
}

/* 진짜 지도(카카오맵)가 뜨면: 그림 지도 무늬 끄기. 핀은 .pin 그대로 쓰되 위치는 지도가 잡음 */
.map.real { background: #E1F5EE; }
.map.real .pin { position: absolute; }
.mini-map.real .pin { left: auto; top: auto; transform: rotate(-45deg) scale(1.2); cursor: default; }
/* 상세 작은 지도는 보기만: 지도 칸 밖에 투명한 막(.mini-cover)을 겹쳐서 손가락이 지도에 안 닿게 → 지도 위에서도 페이지가 그대로 스크롤됨 (카카오 지도는 끌기를 꺼도 터치를 잡아먹음) */
.mini-wrap { position: relative; }
.mini-cover { position: absolute; left: 0; right: 0; top: 0; bottom: 12px; z-index: 10; border-radius: 22px; }
.mini-open { position: absolute; right: 10px; top: 10px; z-index: 11; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #1F2328; font-size: 13px; font-weight: 600; text-decoration: none; box-shadow: 0 2px 8px -2px rgba(0,0,0,.3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.map.real .me { position: static; display: block; }

/* 404 페이지 */
.not-found { margin-top: 48px; }
.nf-links { display: flex; gap: 8px; margin-top: 24px; }
.nf-btn { flex: 1; max-width: 200px; text-align: center; padding: 13px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; color: var(--ink-2); }
.nf-btn.primary { background: var(--food-bg); border-color: transparent; color: var(--food-ink); }

/* 첫 화면: 검색창 */
.home-search {
  display: flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 0 18px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink-3);
}
.home-search svg { width: 18px; height: 18px; flex: none; }
.home-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 14px 0; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.home-search:focus-within { border-color: var(--ink-3); }

/* 첫 화면: 가장 최근에 다녀온 곳 (한 곳 크게) */
.feature { margin-bottom: 32px; }
.feature[hidden], .now[hidden] { display: none; }
.feature-label { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 0 0 8px 4px; }
.feature-card { display: block; background: var(--c-bg); color: var(--ink); border-radius: 26px; padding: 8px; }
.feature-card .photo { aspect-ratio: 4 / 3; border-radius: 20px; }
.feature-date { position: absolute; left: 12px; top: 12px; background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.feature-card .body { padding: 14px 10px 8px; }
.feature-card b { display: block; font-size: 22px; letter-spacing: -0.5px; }
.feature-card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--ink-3); margin: 4px 0 10px; }
.feature-card .meta .dots { margin-left: auto; font-size: 15px; }
.feature-quote { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.45; }

/* 첫 화면: 지금 바로 갈 만한 곳 */
.now { margin-bottom: 32px; }
.now .shelf-sub { color: var(--ink-3); }
.now-list { display: grid; gap: 8px; }
.now-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: #fff; border-radius: 20px; padding: 8px 12px 8px 8px; color: var(--ink); }
.now-item .photo { width: 64px; height: 64px; border-radius: 14px; }
.now-item b { display: block; font-size: 16px; }
.now-item small { font-size: 12px; color: var(--ink-3); }
.now-wait { font-size: 12px; font-weight: 700; color: #2C6B4F; background: #DDF1E6; border-radius: 999px; padding: 4px 9px; white-space: nowrap; }

/* 첫 화면: 맨 아래 작은 글씨 */
.home-foot { display: flex; justify-content: space-between; gap: 12px; padding: 16px 4px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.home-foot a { color: var(--ink-2); }
.home-foot a[hidden] { display: none; }

/* ── 첫 화면: 스크랩북 지도 (진짜 한국 지도 위, 실제 위치에 점 + 근처에 폴라로이드를 꽂고 실로 이음) ── */
/* 대문: 제목 → 지도 칸 → 문 3개 (폰은 위에서 아래로, PC는 왼쪽 지도 / 오른쪽 제목·문) */
.gate { display: flex; flex-direction: column; gap: 14px; margin: 0 -16px 36px; padding: 6px 16px 0; }
.gate .scrap-title { position: static; }
.gate-stage { position: relative; height: clamp(360px, calc(100svh - 430px), 560px); overflow: hidden; border-radius: 28px; background: #E4ECEF; }
.gate-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }
.doors { display: grid; gap: 8px; }
.door {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 12px 16px; border-radius: 22px; background: #fff; color: var(--ink); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 10px 26px -16px rgba(30, 50, 40, .4);
}
.door i { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #EEF2EC; color: var(--ink); }
.door i svg { width: 22px; height: 22px; }
.door b { font-size: 17px; letter-spacing: -0.4px; }
.door small { font-size: 12.5px; color: var(--ink-3); }
.door-map i { background: var(--ink); color: #fff; }
@media (hover: hover) { .door:hover { transform: translateY(-1px); } }
.gate-recent .shelf-head { margin-bottom: 10px; }
.scrap-map { position: absolute; left: 50%; top: 12px; bottom: 12px; aspect-ratio: 388.3 / 570; max-width: 100%; transform: translateX(-50%); }
.scrap-map svg { display: block; width: 100%; height: 100%; }
.scrap-map .land { fill: #F6F3EB; stroke: #CBC2AE; stroke-width: 1; stroke-linejoin: round; }
.scrap-map .land-far { fill: #EEEDE7; }
.scrap-map .dots { position: absolute; inset: 0; }
/* 점: 기록마다 하나. 많이 몰린 곳은 겹쳐서 진해짐 */
.dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #E2492F; box-shadow: 0 0 0 1.5px #fff, 0 1px 2px rgba(0, 0, 0, .25); }
.dot:hover, .dot:focus-visible { transform: scale(1.6); z-index: 2; }
.threads { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.threads path { fill: none; stroke: rgba(60, 50, 40, .5); stroke-width: 1.3; }
.scrap-title { position: relative; z-index: 3; padding: 0 2px; }
.scrap-title p { margin: 0; font-size: 15px; font-weight: 600; color: #5A6058; }
.scrap-title h1 { margin: 2px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -1px; color: var(--ink); }
.scrap-legend { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: #6A706A; }
.scrap-legend i { width: 8px; height: 8px; border-radius: 50%; background: #E2492F; box-shadow: 0 0 0 1.5px #fff; }
.scrap-pins { position: absolute; inset: 0; z-index: 2; }
.spot { position: absolute; width: 0; height: 0; }
.polaroid {
  position: absolute; left: 0; top: 0; width: 100px; transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  background: #fff; padding: 6px 6px 9px; border-radius: 2px; color: var(--ink);
  box-shadow: 0 12px 20px -12px rgba(0, 0, 0, .5); transition: transform .25s ease;
}
@media (hover: hover) { .polaroid:not(.under):hover { transform: translate(-50%, -54%) rotate(0deg); z-index: 3; } }
.polaroid::before {
  content: ""; position: absolute; left: 50%; top: -11px; width: 18px; height: 21px; margin-left: -9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 112'%3E%3Cpath fill='%23E2492F' d='M50 108 C44 98 34 90 22 82 A42 42 0 1 1 78 82 C66 90 56 98 50 108 Z'/%3E%3Ccircle cx='50' cy='48' r='18' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, .3));
}
.polaroid .photo { display: block; aspect-ratio: 1; border-radius: 1px; }
.polaroid b { display: block; margin-top: 6px; font-size: 12px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.polaroid em { display: block; font-style: normal; font-family: "Nanum Pen Script", cursive; font-size: 17px; line-height: 1; color: #555; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot-label {
  position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap;
  font-family: "Nanum Pen Script", cursive; font-size: 19px; color: #5E584A; pointer-events: none;
}

/* 들어올 때 한 번: 점이 하나씩 찍히고 → 실이 그어지고 → 사진이 꽂힘. 움직임 줄이기 설정이면 안 함 */
@media (prefers-reduced-motion: no-preference) {
  .dot { animation: dot-in .35s cubic-bezier(.2, .9, .3, 1.4) both; animation-delay: calc(var(--i, 0) * 40ms); }
  .threads path { stroke-dasharray: 1; animation: thread-in .6s ease-out both; animation-delay: calc(.5s + var(--i, 0) * 120ms); }
  .spot { animation: pin-in .5s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(.35s + var(--i, 0) * 120ms); }
  @keyframes dot-in { from { scale: 0; } to { scale: 1; } }
  @keyframes thread-in { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes pin-in { from { opacity: 0; translate: 0 -18px; } to { opacity: 1; translate: 0 0; } }
}

.thumb-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; scroll-padding-inline: 16px; }
.thumb-row::-webkit-scrollbar { display: none; }
.thumb { flex: none; width: 88px; color: var(--ink); }
.thumb .photo { display: block; width: 88px; height: 88px; border-radius: 14px; }
.thumb small { display: block; margin-top: 5px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 1024px) {
  .gate { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px); grid-template-rows: auto 1fr; column-gap: 48px; row-gap: 22px; margin: 0 0 48px; padding: 8px 0 0; align-items: start; }
  .gate-stage { grid-column: 1; grid-row: 1 / span 2; height: min(640px, calc(100vh - 140px)); margin: 0; }
  .gate .scrap-title { grid-column: 2; grid-row: 1; padding-top: 40px; }
  /* 최근 사진 줄: 오른쪽 칸 안에서만, 끝은 흐리게 (잘린 게 아니라 옆으로 넘긴다는 표시) */
  .gate .thumb-row { margin: 0; padding: 0; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .gate .scrap-title h1 { font-size: 40px; }
  .gate-side { grid-column: 2; grid-row: 2; }
}
.home header { position: relative; z-index: 20; }

/* ===== 테마 C (지도 앱: 지도 무늬 바탕 + 반투명 유리판) — 2026-11-05 확정, 예전 theme-c.css를 합침 ===== */
/* ─────────────────────────────────────────────────────────────
   시안 C: 지도 앱
   화면 전체가 지도 종이(첫 화면 지도 무늬를 바탕 전체로), 그 위에 반투명 유리판이 떠 있음.
   지도 페이지는 지도를 크게 띄우고 목록은 아래에서 올라오는 판(시트)처럼.
   - 바탕: 지도 무늬(등고선 + 도로 + 노란 점선)
   - 판: 흰 유리 (반투명 + 뒤 흐림), 모서리 크게, 얇은 흰 테두리
   - 포인트: 핀 빨강 + 먹색
   style.css 위에 덮어쓰는 파일 (?theme=c)
   ───────────────────────────────────────────────────────────── */
:root {
  --bg: #EEF2EC;
  --ink: #1F2328;
  --ink-2: #555B63;
  --ink-3: #8B9198;
  --line: rgba(31, 35, 40, .08);
  --red: #E2492F;
  --food-dot: var(--red);
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .82);
  --glass-edge: rgba(255, 255, 255, .85);
  --lift: 0 10px 30px -12px rgba(30, 50, 40, .28), 0 1px 0 rgba(255, 255, 255, .9) inset;
  --mappaper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='300' viewBox='0 0 400 300'%3E%3Cg fill='none' stroke='%231F5A3A' stroke-opacity='.10' stroke-width='1.2'%3E%3Cpath d='M0 40 C70 10 130 10 200 40 S330 70 400 40'/%3E%3Cpath d='M0 75 C70 37 130 37 200 75 S330 113 400 75'/%3E%3Cpath d='M0 110 C70 64 130 64 200 110 S330 156 400 110'/%3E%3Cpath d='M0 232 C70 192 130 192 200 232 S330 272 400 232'/%3E%3Cpath d='M0 266 C70 234 130 234 200 266 S330 298 400 266'/%3E%3C/g%3E%3Cg fill='none' stroke='%23fff' stroke-width='9'%3E%3Cpath d='M0 175 C70 132 130 132 200 175 S330 218 400 175'/%3E%3Cpath d='M300 0 C250 70 250 110 300 150 S350 230 300 300'/%3E%3C/g%3E%3Cpath d='M0 175 C70 132 130 132 200 175 S330 218 400 175' fill='none' stroke='%23FFE58A' stroke-width='3' stroke-dasharray='10 8'/%3E%3C/svg%3E");
}
body {
  background: var(--bg) var(--mappaper) 0 0 / 400px 300px repeat;
  word-break: keep-all;
}

/* 유리판 공통 */
.card, .pick, .board, .ago, .home-region, .home-all, .to-archive, .search, .cats,
.info-sheet, .pair, .share-row .share, .open-links a, .score, .shelf.best, .nf-btn {
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
}

/* 헤더: 맨 위에선 판 없이 로고만(흰 막대가 글 입력칸처럼 보여서, 2026-11-05). 내리면 그때 유리판이 깔림 (data.js가 html에 .scrolled) */
header {
  position: sticky; top: 10px; z-index: 20; margin: 0 -6px 18px; padding: 8px 10px 8px 14px;
  background: transparent; border: 1px solid transparent; border-radius: 22px; box-shadow: none;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
html.scrolled header {
  background: var(--glass-strong); border-color: var(--glass-edge); box-shadow: var(--lift);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
}
.logo { font-size: 21px; }
.logo-pin circle { fill: #fff; }
.to-map, .back {
  background: var(--ink); color: #fff; border: none; border-radius: 999px; padding: 8px 14px;
  font-size: 13px; font-weight: 600;
}

/* 첫 화면 한 줄 소개: 바탕이 이미 지도라 따로 칸 없이 */
.hero-bg { background: none; margin: 0 0 22px; padding: 64px 0 18px; overflow: visible; }
.hero h1 { letter-spacing: -1.2px; }
.hero-pin path { fill: var(--red); }
.hero-pin circle { fill: #fff; }

/* 칸 제목 */
.shelf-head h2, .pick h2, .board h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.6px; color: var(--ink); }
.shelf-head a { background: var(--glass-strong); border-radius: 999px; padding: 5px 11px; color: var(--ink); font-size: 13px; font-weight: 600; }
.dots, .legend .pins, .tl-head .dots, .pick-card .dots { color: var(--red); }

/* 카드: 유리판 위 사진 */
.card {
  background: var(--glass); color: var(--ink); border: 1px solid var(--glass-edge);
  border-radius: 26px; padding: 8px; box-shadow: var(--lift); outline: none;
}
.card:hover { transform: translateY(-2px); }
.card.sel { box-shadow: 0 0 0 2px var(--red), var(--lift); }
.card .photo, .photo { border-radius: 19px; background: rgba(255, 255, 255, .5); }
.card .body { padding: 12px 8px 6px; }
.card .name { font-weight: 700; letter-spacing: -0.3px; }
.card .meta { color: var(--ink-3); opacity: 1; }
.card .menu { color: var(--ink-2); }
.card .quote { color: var(--ink-2); }
.badge { background: rgba(255, 255, 255, .7); color: var(--ink-2); }
.badge.visits { background: var(--ink); color: #fff; }

/* 첫 화면 지역·전체 지도 */
.home-region {
  background: var(--glass) !important; color: var(--ink) !important; border: 1px solid var(--glass-edge);
  box-shadow: var(--lift);
}
.home-region .hr-pin { color: var(--red); }
.home-all { background: var(--glass); color: var(--ink); border: 1px solid var(--glass-edge); box-shadow: var(--lift); }

/* 일부러 찾아감: 진한 유리 */
.shelf.best { background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--lift); color: var(--ink); }   /* 다른 판과 같은 유리 (진한 판은 혼자 튀어서 뺌) */
.shelf.best .shelf-sub { color: var(--ink-3); }
.shelf.best .shelf-head a { color: var(--ink); }
.best-pins { color: var(--red); }

/* N년 전, 뽑기, 점수판, 사라진 가게: 유리판 */
.ago, .pick, .board, .to-archive {
  background: var(--glass); color: var(--ink); border: 1px solid var(--glass-edge); box-shadow: var(--lift);
}
.ago-photo { border-radius: 14px; }
.pick-chips select, .pick-toggle { background: rgba(255, 255, 255, .8); color: var(--ink); }
.pick-toggle[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pick-result { background: rgba(255, 255, 255, .75); }
.pick-card { color: var(--ink); }
.pick-go { background: var(--ink); }   /* 주 버튼은 머리글·길찾기와 같은 먹색 */
.board-tabs button { background: rgba(255, 255, 255, .8); color: var(--ink-2); }
.board-tabs button.on { background: var(--ink); color: #fff; }
.bar { background: rgba(255, 255, 255, .8); }
.bar i { background: var(--red); }
.to-archive small { color: var(--ink-3); }

/* ── 지도 페이지: 지도 크게, 목록은 아래에서 올라오는 판 ── */
.search { background: var(--glass-strong); border: 1px solid var(--glass-edge); border-radius: 999px; box-shadow: var(--lift); }
.region { font-weight: 600; }
.region.on { border-bottom-color: var(--red); }
.cats { background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 999px; padding: 4px; gap: 2px; box-shadow: var(--lift); }
.cat { background: none; color: var(--ink-2); border: none; border-radius: 999px; padding: 10px 4px; }
.cat.on { background: var(--ink); color: #fff; }
.tag { background: var(--glass-strong); border-color: var(--glass-edge); }
.tag.on { background: var(--ink); border-color: var(--ink); }
.map { border-radius: 28px; border: 1px solid var(--glass-edge); box-shadow: var(--lift); }
@media (max-width: 1023px) {
  .map { height: 62vh; margin-bottom: 0; }
  .main > section {
    position: relative; z-index: 5; margin: -56px -16px 0; padding: 14px 16px 24px;
    background: rgba(246, 248, 245, .9); border-radius: 30px 30px 0 0; border-top: 1px solid var(--glass-edge);
    box-shadow: 0 -12px 30px -18px rgba(30, 50, 40, .35);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  }
  /* 손잡이 막대는 안 붙임: 끌어내릴 수 있는 것처럼 보이는데 실제론 안 돼서 (2026-11-05) */
}
.view-toggle { background: rgba(255, 255, 255, .7); }
.sort { background: rgba(255, 255, 255, .8); }

/* ── 상세 페이지: 사진 위에 정보판이 겹쳐 올라옴 ── */
.gallery .photo { border-radius: 26px; }
@media (max-width: 1023px) {
  .info {
    position: relative; z-index: 2; margin: -48px -6px 0; padding: 20px 16px 4px;
    background: var(--glass-strong); border: 1px solid var(--glass-edge); border-radius: 28px; box-shadow: var(--lift);
    -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  }
  .share-row { margin-bottom: 18px; }
  .gallery-count { top: 12px; bottom: auto; }   /* 아래는 정보판이 덮어서 사진 번호가 잘림 → 위로 */
}
@media (min-width: 1024px) {
  .info { background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 28px; padding: 24px; box-shadow: var(--lift); }
  .detail .share-row { margin-bottom: 0; }
}
.info { color: var(--ink); }
.info .chip { background: rgba(255, 255, 255, .8); }
.menu-line { color: var(--ink); }
.score { background: rgba(255, 255, 255, .8); }
.picks > div { background: rgba(255, 255, 255, .7) !important; }
.kid { background: rgba(255, 255, 255, .8); color: var(--ink); }
.kid.warn { background: var(--ink); color: #fff; }
.kid.no { background: none; }
/* 아래 정보 표 안에서는 칩 모양 빼고 그냥 글자로 (윗줄·아랫줄과 시작점 맞춤) */
.facts dd .kid { background: none; padding: 0; border-radius: 0; box-shadow: none; font-size: inherit; }
.timeline li::before { background: var(--red); border-color: #fff; }
.mini-map { border-radius: 22px; }
.open-links a { background: rgba(255, 255, 255, .8); border-color: var(--glass-edge); border-radius: 999px; color: var(--ink); }
.open-links .route { background: var(--ink); color: #fff; }
.share { background: rgba(255, 255, 255, .85); color: var(--ink); border-radius: 999px; }
.share.story { background: var(--ink); color: #fff; }
.pair { background: var(--glass); color: var(--ink); border: 1px solid var(--glass-edge); box-shadow: var(--lift); }

.nf-btn { background: var(--glass-strong); border-color: var(--glass-edge); border-radius: 999px; }
.nf-btn.primary { background: var(--ink); color: #fff; }

@media (prefers-reduced-transparency: reduce) {
  :root { --glass: #fff; --glass-strong: #fff; }
}

/* 첫 화면 새 칸들 (검색창, 가장 최근, 지금 바로) */
.home-search {
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--lift);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
}
.feature-card, .now-item {
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--lift);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
}
.feature-card { border-radius: 28px; }
.feature-card .photo { border-radius: 21px; }
.home-foot { border-top-color: rgba(31, 35, 40, .1); }

/* 첫 화면 스크랩북: 지도 그림이 바탕을 덮으니 위쪽 헤더는 그 위에 떠 있게 */
.home header { position: sticky; }

/* 대문 문 3개: 유리판 */
.door {
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--lift);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
}
.gate-stage { border: 1px solid var(--glass-edge); box-shadow: var(--lift); }

/* PC 상세 사진 (2026-11-05): 사진 칸이 오른쪽 정보 길이만큼 늘어나 세로로 길쭉하게 잘리던 것 →
   위에 큰 사진(가로 16:10) + 아래 작은 정사각형 4칸, 내릴 때 사진은 따라 내려옴(sticky) */
@media (min-width: 1024px) {
  .detail { align-items: start; }
  .gallery-wrap { position: sticky; top: 88px; height: auto; }
  .gallery, .gallery.n1, .gallery.n2, .gallery.n3, .gallery.n4 {
    height: auto; min-height: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto;
  }
  .gallery .photo:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
  .gallery .photo:not(:first-child) { aspect-ratio: 1; border-radius: 16px; }
  .gallery.n4 .photo:nth-child(4) { grid-column: auto; }
}

/* 영업시간 그림 (data.js hoursHTML): 왼쪽 오늘 반원 게이지 + 오른쪽 요일 칸·묶은 목록. 폰은 위아래로 */
.facts .hrs-row { display: block !important; }   /* 영업시간은 그림이 넓어서 이름표를 위로 */
.facts .hrs-row dt { margin-bottom: 14px; }
.facts .hrs-row dd { display: block; min-width: 0; }
.hg { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; align-items: center; }
.hg-gauge { position: relative; width: 170px; }
.hg-gauge svg { display: block; width: 100%; overflow: visible; }
.hg-gauge svg path { fill: none; stroke-width: 12; stroke-linecap: round; }
.hg-gauge svg text { font-size: 10px; fill: #9AA0A6; }
.hg-gauge svg .now { fill: #fff; stroke: #E2492F; stroke-width: 3; }
.hg-gauge .c { position: absolute; left: 0; right: 0; top: 44px; text-align: center; }
.hg-gauge .c b { font-size: 17px; font-weight: 800; color: #1F2328; white-space: nowrap; }
.hg-open .hg-gauge .c b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2F9E6B; margin: 0 6px 2px 0; vertical-align: middle; }
.hg-off .hg-gauge .c b, .hg-after .hg-gauge .c b { color: #6B7076; }
.hg-ends { display: flex; justify-content: space-between; margin-top: 2px; font-size: 12px; color: #6B7076; }
.hg-ends b { display: block; font-size: 14px; font-weight: 700; color: #1F2328; }
.hg-ends div:last-child { text-align: right; }
.hg-sub { margin: 8px 0 0; text-align: center; font-size: 13px; color: #6B7076; word-break: keep-all; }
.hg-week { display: flex; gap: 5px; margin: 0 0 6px; }
.hg-week i { flex: 1; max-width: 32px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 700; background: rgba(31, 35, 40, .07); color: #1F2328; }
.hg-week i.some { background: repeating-linear-gradient(135deg, rgba(31, 35, 40, .06) 0 4px, rgba(31, 35, 40, .17) 4px 8px); }
.hg-week i.off { background: none; color: #B0B4B9; text-decoration: line-through; }
.hg-week i.today { background: #1F2328; color: #fff; text-decoration: none; }
.hg-week i.today.off { background: #9AA0A6; }
.hg-legend { margin: 0 0 12px; font-size: 11.5px; color: #9AA0A6; }
.hg-list { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 12px; font-size: 14px; }
.hg-list dt { color: #6B7076; white-space: nowrap; }
.hg-list dd { margin: 0; color: #1F2328; font-weight: 600; word-break: keep-all; }
.hg-list dd small { display: block; font-weight: 400; color: #6B7076; font-size: 12.5px; }
.hg-notes { margin: 10px 0 0; font-size: 12.5px; color: #6B7076; word-break: keep-all; }
@media (max-width: 1023px) {
  .hg { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hg-gauge { width: 220px; margin: 0 auto; }
}
