/* ───────── 토코토코 재팬 · 스타일 (和 테마) ─────────
 * 바다: 세이가이하(青海波) 문양 / 카드: 화지(和紙) 질감 / 포인트: 주홍(朱) 도장
 */
:root {
  --sea: #d7eaef;            /* 水浅葱 계열 */
  --sea-ring: #ffffff;
  --ink: #3a3440;            /* 墨 */
  --ink-soft: #7d7480;
  --kinari: #fbf6ea;         /* 生成り 화지색 */
  --kinari-deep: #efe6d2;
  --shu: #d9473b;            /* 朱 */
  --shu-deep: #a93226;
  --sakura: #f6c3cf;
  --shadow: 0 5px 0 rgba(90, 70, 50, 0.1), 0 12px 28px rgba(60, 50, 40, 0.14);
  --shadow-sm: 0 3px 0 rgba(90, 70, 50, 0.1), 0 6px 14px rgba(60, 50, 40, 0.12);
  --font-cute: "Jua", "Gowun Dodum", system-ui, sans-serif;
  --font-body: "Gowun Dodum", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-jp: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;

  /* 화지 질감 (노이즈) */
  --washi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* 세이가이하 (青海波) */
  --seigaiha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Cdefs%3E%3Cg id='f' fill='%23d7eaef' stroke='%23ffffff' stroke-opacity='.62' stroke-width='1.1'%3E%3Ccircle r='19.4'/%3E%3Ccircle r='14.4'/%3E%3Ccircle r='9.4'/%3E%3Ccircle r='4.4'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23f' x='0' y='0'/%3E%3Cuse href='%23f' x='40' y='0'/%3E%3Cuse href='%23f' x='20' y='10'/%3E%3Cuse href='%23f' x='0' y='20'/%3E%3Cuse href='%23f' x='40' y='20'/%3E%3Cuse href='%23f' x='20' y='30'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sea);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }

.app { position: relative; width: 100vw; height: 100vh; height: 100dvh; }

/* 화지 카드 공통 */
.washi {
  background-color: var(--kinari);
  background-image: var(--washi);
}

/* ───────── 상단 바 ───────── */
.topbar {
  position: absolute; z-index: 30; top: 16px; left: 16px; right: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  pointer-events: none;
}
.brand {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 20px 8px 8px;
  background-color: var(--kinari); background-image: var(--washi);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  border: 2px solid #fff;
}
/* 도장(한코) 로고 */
.brand-logo {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--shu); color: #fff;
  font-family: var(--font-jp); font-weight: 700; font-size: 24px;
  box-shadow: inset 0 0 0 2.5px var(--shu), inset 0 0 0 4px #fff3;
  transform: rotate(-4deg);
}
.brand h1 { margin: 0; font-family: var(--font-cute); font-weight: 400; font-size: 22px; letter-spacing: -0.3px; line-height: 1.1; }
.brand h1 small { font-family: var(--font-jp); font-weight: 500; font-size: 12px; color: var(--shu); margin-left: 4px; letter-spacing: 1px; }
.brand p { margin: 3px 0 0; font-size: 13px; color: var(--ink-soft); }

.back-btn {
  pointer-events: auto;
  border: 0; border-radius: 999px;
  padding: 11px 18px;
  font-family: var(--font-cute); font-size: 16px;
  background: var(--shu); color: #fff;
  box-shadow: 0 4px 0 var(--shu-deep), 0 8px 18px rgba(169, 50, 38, .28);
  transition: transform .15s, box-shadow .15s;
}
.back-btn:hover { transform: translateY(-1px); }
.back-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--shu-deep); }
.back-btn[hidden] { display: none; }

/* ───────── 지역 칩 ───────── */
.chips-wrap { position: absolute; z-index: 25; top: 84px; left: 16px; right: 16px; }
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px;
  scrollbar-width: none; scroll-behavior: smooth; cursor: grab;
}
.chips.is-dragging, .sp-list.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.is-dragging * { pointer-events: none; }
/* 넘쳐서 가려진 쪽은 흐리게 + 화살표 */
.chips-wrap.has-right .chips { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.chips-wrap.has-left .chips { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
.chips-wrap.has-left.has-right .chips { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.chips-arrow, .h-arrow {
  position: absolute; top: 5px; width: 34px; height: 34px; border-radius: 50%;
  display: none; place-items: center; padding: 0 0 2px; cursor: pointer;
  border: 2px solid #fff; background: var(--kinari); color: var(--ink);
  font-size: 22px; line-height: 1; box-shadow: var(--shadow-sm);
}
.chips-arrow.is-left { left: -4px; }
.chips-arrow.is-right { right: -4px; }
.chips-wrap.has-left .chips-arrow.is-left, .chips-wrap.has-right .chips-arrow.is-right { display: grid; }
.chips-arrow:hover, .h-arrow:hover { background: #fff; }
.h-arrow { display: none !important; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px 7px 8px;
  border: 2px solid #fff; border-radius: 999px;
  background: var(--kinari);
  font-family: var(--font-cute); font-size: 15px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, background .2s;
}
.chip-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -3px 0 var(--d); }
.chip:hover { transform: translateY(-2px); }
.chip.is-active { background: var(--c); }
.chip.is-all .chip-dot { background: var(--shu); box-shadow: none; color: #fff; font-family: var(--font-jp); font-size: 11px; display: grid; place-items: center; border-radius: 5px; }

/* ───────── 지도 영역 ───────── */
.map-wrap {
  position: absolute; inset: 0;
  overflow: hidden;
  touch-action: none; /* 카드 위에서도 핀치·드래그가 지도로 가도록 */
  background-color: var(--sea);
  background-image:
    radial-gradient(ellipse at 25% 15%, rgba(255,255,255,.65), transparent 50%),
    radial-gradient(ellipse at 85% 95%, rgba(160, 205, 220, .45), transparent 55%),
    var(--seigaiha);
  background-size: auto, auto, 44px 22px;
}
.map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.overlay { position: absolute; inset: 0; pointer-events: none; }

/* 땅 */
.land-shadow path { fill: rgba(90, 70, 50, .18); }
.pref {
  stroke: #fffaf0; stroke-width: 1; stroke-opacity: .85;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill .25s, fill-opacity .4s, stroke-opacity .4s;
}
.region-outline {
  fill: none; stroke: #fffaf0; stroke-width: 3.4;
  stroke-linejoin: round; vector-effect: non-scaling-stroke;
  pointer-events: none;
}
/* 흐리게 하기는 그룹 opacity 대신 면·선 각각의 fill/stroke-opacity로:
   SVG 그룹 opacity는 그룹마다 따로 그려 합성해야 해서 폰에서 확대·이동할 때마다 무거움 */
.region-outline { transition: stroke-opacity .45s; }
.map.has-region .region-group:not(.is-active) .pref { fill: #ece6d8 !important; fill-opacity: .45; stroke-opacity: .38; }
.map.has-region .region-group:not(.is-active) .region-outline { stroke-opacity: .45; }
@media (hover: hover) {
  .region-group.is-hover .pref { filter: brightness(1.05) saturate(1.2); }
  .map.has-region .region-group.is-active .pref:hover { filter: brightness(1.05); }
  .map.has-region .region-group:not(.is-active):hover .pref { fill-opacity: .8; }
}

/* 오키나와 인셋 */
.inset-frame {
  fill: rgba(251, 246, 234, .45);
  stroke: var(--shu); stroke-opacity: .55; stroke-width: 1.6; stroke-dasharray: 6 5;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

/* ───────── 바다 장식: 가스미(霞) 띠 · 벚꽃잎 ───────── */
.sea-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.kasumi {
  position: absolute; height: 22px; width: 300px; border-radius: 30px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75) 20%, rgba(255,255,255,.75) 80%, transparent);
  animation: drift 120s linear infinite;
}
.kasumi::after {
  content: ""; position: absolute; left: 60px; top: 16px; width: 200px; height: 16px; border-radius: 30px;
  background: inherit; opacity: .8;
}
.kasumi-1 { top: 30%; left: -20%; }
.kasumi-2 { top: 72%; left: -30%; width: 240px; animation-duration: 150s; animation-delay: -60s; }
.kasumi-3 { top: 52%; left: -25%; width: 200px; animation-duration: 135s; animation-delay: -100s; opacity: .7; }
@keyframes drift { from { translate: 0 0; } to { translate: 140vw 0; } }

.petal {
  position: absolute; top: -20px;
  background: linear-gradient(135deg, #fde3ea, var(--sakura) 60%, #ee9fb4);
  border-radius: 100% 0 100% 0;
  animation-name: fall, sway;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-direction: normal, alternate;
}
@keyframes fall { from { translate: 0 -4vh; } to { translate: 14vw 106vh; } }
@keyframes sway { from { rotate: -20deg; } to { rotate: 200deg; } }

/* 나침반 → 도장 */
.compass {
  position: absolute; right: 22px; bottom: 22px; z-index: 5;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--kinari); border: 2px solid #fff; box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
}
.compass-n { position: absolute; top: 3px; font-family: var(--font-jp); font-weight: 700; font-size: 11px; color: var(--shu); }
.compass-needle { width: 8px; height: 26px; margin-top: 6px; background: linear-gradient(var(--shu) 50%, #cfc6b4 50%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* 지도 위 장식 이모지 */
.deco { position: absolute; left: 0; top: 0; font-size: 26px; pointer-events: none; transition: opacity .4s; }
.deco span { display: block; animation: bob 4s ease-in-out infinite; }
.deco.is-hidden { opacity: 0; }

/* ───────── 말풍선 ───────── */
.bubble {
  position: absolute; left: 0; top: 0;
  pointer-events: auto;
  width: 136px; padding: 0;
  border: 0; background: none;
  transition: opacity .35s ease;
  will-change: transform;
}
.bubble-inner {
  display: block;
  background-color: var(--kinari); background-image: var(--washi);
  border: 3px solid #fff;
  border-radius: 18px;
  box-shadow: 0 0 0 2px var(--c), 0 6px 0 2px var(--d), 0 14px 26px rgba(60, 50, 40, .18);
  overflow: hidden;
  text-align: left;
  transition: transform .2s cubic-bezier(.3,1.6,.6,1);
  animation: bob 5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.bubble:hover .bubble-inner,
.bubble.is-hover .bubble-inner { transform: translateY(-5px) scale(1.06); animation-play-state: paused; }
.bubble-photo {
  position: relative; display: block;
  height: 80px; background: var(--c);
  border-radius: 13px 13px 0 0;
  overflow: hidden;
}
.bubble-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bubble-photo .emoji-fallback { font-size: 34px; }
/* 세로쓰기 한자 이름표 */
.bubble-tate {
  position: absolute; right: 6px; top: 0;
  writing-mode: vertical-rl;
  padding: 6px 3px 7px;
  background: var(--shu); color: #fff;
  font-family: var(--font-jp); font-weight: 700; font-size: 12px; letter-spacing: 2px;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.bubble-body { display: block; padding: 7px 10px 9px; }
.bubble-name { display: block; font-family: var(--font-cute); font-size: 18px; line-height: 1.15; }
.bubble-sub { display: block; margin-top: 1px; font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bubble.is-hidden { opacity: 0; pointer-events: none; }

/* 스포트라이트: 선택된 카드가 커지고 주홍 테두리 + 진행 바 */
.bubble { z-index: 1; }
.bubble.is-spot { z-index: 5; }
.bubble-inner { position: relative; transform-origin: 50% 60%; transition: transform .55s cubic-bezier(.3,1.5,.5,1), box-shadow .4s; }
.bubble.is-spot .bubble-inner {
  transform: scale(1.32);
  box-shadow: 0 0 0 2px var(--shu), 0 6px 0 2px var(--shu-deep), 0 18px 34px rgba(60, 50, 40, .28);
}
.bubble.is-spot:hover .bubble-inner,
.bubble.is-spot.is-hover .bubble-inner { transform: translateY(-4px) scale(1.36); }
.bubble-photo img { transition: opacity .7s ease, transform 1.2s ease; }
.bubble-photo img.is-incoming { opacity: 0; transform: scale(1.12); }
.bubble-photo img:not(:first-child),
.bubble-photo .emoji-fallback.is-outgoing { position: absolute; inset: 0; }
.bubble-photo .is-outgoing { opacity: 0; transition: opacity .7s ease; }
.bubble-progress {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--shu); transform-origin: left; transform: scaleX(0); opacity: 0;
}
.bubble.is-spot.is-running .bubble-progress { opacity: .85; animation: spotProgress 10s linear forwards; }
@keyframes spotProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }

/* 카테고리 아이콘 (카드 왼쪽 위) */
.bubble-cat {
  position: absolute; left: 6px; top: 6px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 15px; line-height: 1;
  background: var(--kinari);
  border: 2.5px solid var(--pc, var(--shu));
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.bubble-cat[hidden] { display: none; }
.bubble-cat.is-pop { animation: badgePop .45s cubic-bezier(.3,1.8,.6,1); }
@keyframes badgePop { from { scale: .4; } to { scale: 1; } }

/* 현 카드 · 명소 카드 */
.bubble--pref { width: 118px; }
.bubble--pref .bubble-photo { height: 68px; }
.bubble--pref .bubble-name { font-size: 16.5px; display: flex; align-items: center; gap: 5px; }
.bubble--pref .bubble-tate { font-size: 11px; padding: 5px 3px 6px; }
.bubble-count {
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--d); color: #fff;
  font-family: var(--font-body, inherit); font-size: 11px; font-weight: 700;
}
.bubble--spot { width: 132px; }
.bubble--spot .bubble-photo { height: 76px; }
.bubble--spot .bubble-name { font-size: 15.5px; line-height: 1.2; word-break: keep-all; }
.bubble--spot .bubble-sub { font-family: var(--font-jp); font-size: 11px; }
.bubble--pref .bubble-inner,
.bubble--spot .bubble-inner {
  animation: cardPop .5s cubic-bezier(.3,1.6,.6,1) var(--pop, 0s) both, bob 5s ease-in-out var(--delay, 0s) infinite;
}
@keyframes cardPop { from { scale: .2; opacity: 0; } to { scale: 1; opacity: 1; } }
.bubble.is-leaving { opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.bubble--spot.is-spot .bubble-inner { transform: scale(1.18); }
.bubble--spot.is-spot:hover .bubble-inner { transform: translateY(-3px) scale(1.2); }

/* 작은 핀 (대표 카드가 아닌 명소) */
.mini-pin {
  position: absolute; left: 0; top: 0; z-index: 0;
  width: 0; height: 0; padding: 0; border: 0; background: none;
  pointer-events: auto;
}
.mini-pin-dot {
  position: absolute; left: 0; top: 0; translate: -50% -50%;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; cursor: pointer;
  background: var(--kinari); border: 2.5px solid var(--pc);
  box-shadow: 0 2px 0 rgba(90,70,50,.12), 0 4px 10px rgba(60,50,40,.2);
  transition: transform .2s cubic-bezier(.3,1.6,.6,1), background .2s, opacity .2s;
  animation: pinIn .4s cubic-bezier(.3,1.6,.6,1) var(--delay, 0s) backwards;
}
.mini-pin-name {
  position: absolute; left: 18px; top: -12px; padding: 3px 9px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 12.5px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.mini-pin:hover, .mini-pin.is-selected { z-index: 7; }
.mini-pin:hover .mini-pin-dot, .mini-pin.is-selected .mini-pin-dot { transform: scale(1.25); background: var(--pc); }
.mini-pin:hover .mini-pin-name, .mini-pin.is-selected .mini-pin-name { opacity: 1; }
.mini-pin.is-clustered { visibility: hidden; pointer-events: none; }
@keyframes pinIn { from { scale: 0; } to { scale: 1; } }

/* 핀 묶음 (+N) */
.pin-cluster {
  position: absolute; left: 0; top: 0; z-index: 2; translate: -50% -50%;
  min-width: 36px; height: 36px; padding: 0 9px; border-radius: 999px;
  border: 3px solid #fff; background: var(--shu); color: #fff; cursor: zoom-in;
  font-family: var(--font-cute); font-size: 15px; line-height: 30px;
  box-shadow: 0 0 0 3px rgba(217, 71, 59, .25), 0 4px 12px rgba(60,50,40,.25);
  pointer-events: auto; transition: scale .2s cubic-bezier(.3,1.6,.6,1);
  animation: pinIn .4s cubic-bezier(.3,1.6,.6,1) .5s backwards;
}
.pin-cluster::before { content: "+"; font-size: 12px; margin-right: 1px; opacity: .85; }
.pin-cluster:hover { scale: 1.12; }
.pin-cluster[hidden] { display: none; }

/* 확대했을 때 땅을 화지색으로: 바다(하늘색)와 확실히 구분 */
.map.has-region .region-group.is-active .pref {
  /* 지역 화면: 현마다 다른 파스텔색 + 흰 경계로 구분 */
  fill: color-mix(in srgb, var(--pf, var(--rc)) 78%, #fbf3df) !important;
  stroke: #fff; stroke-width: 2.2; stroke-opacity: 1;
}
/* 현 안으로 들어가면 그 현은 옅게(핀이 잘 보이게), 나머지 현은 흐리게 */
.map.has-pref .region-group.is-active .pref.is-pref-active { fill: color-mix(in srgb, var(--pf, var(--rc)) 42%, #fbf3df) !important; }
.map.has-region .region-group.is-active .region-outline { stroke: #fff; }

/* 도시 이름 */
.city-label {
  position: absolute; left: 0; top: 0; z-index: 0;
  display: flex; align-items: center; gap: 4px;
  translate: -4px -50%;
  font-size: 12px; font-weight: 700; letter-spacing: .5px; color: rgba(58, 52, 64, .62);
  text-shadow: 0 0 3px #fffaf0, 0 0 3px #fffaf0, 0 0 6px #fffaf0;
  white-space: nowrap; pointer-events: none; transition: opacity .3s;
}
.city-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(58,52,64,.55); box-shadow: 0 0 0 2px #fffaf0; }
.city-label.is-hidden { opacity: 0; }
/* 이름 자리: 점 기준 왼쪽·위·아래 (기본은 오른쪽) */
.city-label[data-pos="l"] { flex-direction: row-reverse; translate: calc(-100% + 4px) -50%; }
.city-label[data-pos="t"] { flex-direction: column-reverse; gap: 2px; translate: -50% calc(-100% + 3px); }
.city-label[data-pos="b"] { flex-direction: column; gap: 2px; translate: -50% -3px; }
.city-label.is-minor { font-size: 11px; font-weight: 500; color: rgba(58, 52, 64, .5); }
.city-label.is-minor::before { width: 4px; height: 4px; background: rgba(58,52,64,.4); }

/* 사진 핀 */
.photo-pin {
  position: absolute; left: 0; top: 0; z-index: 1;
  will-change: transform; /* 드래그 때 핀은 따로 합성해 지도 다시 그리기를 줄임 */
  width: 0; height: 0; padding: 0; border: 0; background: none; pointer-events: auto;
}
.photo-pin-img {
  position: absolute; left: 0; top: 0; translate: -50% -50%;
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden; cursor: pointer;
  background: var(--pc); border: 3px solid #fff;
  box-shadow: 0 0 0 2.5px var(--pc), 0 4px 10px rgba(60,50,40,.3);
  transition: scale .2s cubic-bezier(.3,1.6,.6,1), box-shadow .2s;
  animation: pinIn .4s cubic-bezier(.3,1.6,.6,1) var(--delay, 0s) backwards;
}
.photo-pin-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-pin-img .emoji-fallback { font-size: 16px; }
.photo-pin-cat {
  position: absolute; left: 0; top: 0; translate: 6px 4px;
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  pointer-events: none; animation: pinIn .4s cubic-bezier(.3,1.6,.6,1) var(--delay, 0s) backwards;
}
.photo-pin.is-featured { z-index: 2; }
.photo-pin.is-featured .photo-pin-img { width: 48px; height: 48px; }
.photo-pin.is-featured .photo-pin-cat { translate: 10px 8px; width: 20px; height: 20px; font-size: 11px; }
.photo-pin.is-hot, .photo-pin:hover { z-index: 8; }
/* 현 화면의 권역 대표 핀: 왼쪽 위에 '+남은 개수' */
.photo-pin-more {
  position: absolute; left: 0; top: 0; translate: -42px -36px; z-index: 3;
  min-width: 26px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center;
  font-family: var(--font-cute); font-size: 12px; line-height: 1; color: #fff;
  background: var(--ink); border: 2px solid #fff; box-shadow: 0 2px 5px rgba(60,50,40,.3);
  pointer-events: none; animation: pinIn .4s cubic-bezier(.3,1.6,.6,1) var(--delay, 0s) backwards;
}
.photo-pin.is-rep .photo-pin-img { box-shadow: 0 0 0 2.5px var(--pc), 0 0 0 6px rgba(255,255,255,.75), 0 4px 10px rgba(60,50,40,.3); }
.photo-pin.is-hot .photo-pin-img, .photo-pin:hover .photo-pin-img { scale: 1.3; box-shadow: 0 0 0 3px var(--pc), 0 8px 18px rgba(60,50,40,.35); }
/* 다녀온 명소: 핀 오른쪽 위에 살짝 기운 붉은 도장 */
.photo-pin-stamp {
  position: absolute; left: 0; top: 0; translate: 3px -31px; rotate: -14deg;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; line-height: 1;
  background: rgba(255, 250, 240, .94); color: var(--shu);
  border: 2px solid var(--shu); box-shadow: inset 0 0 0 1.5px rgba(255,250,240,.9), 0 2px 5px rgba(60,50,40,.28);
  font-family: var(--font-jp); pointer-events: none; z-index: 3;
}
.photo-pin-stamp b { font-size: 11px; font-weight: 700; }
.photo-pin-stamp i { font-style: normal; font-size: 7px; letter-spacing: -.2px; margin-top: 1px; }
.photo-pin.is-featured .photo-pin-stamp { translate: 8px -37px; width: 28px; height: 28px; }
.photo-pin.is-visited .photo-pin-img { filter: saturate(1.05); }
.photo-pin-stamp.is-new { animation: pinStampDrop .55s cubic-bezier(.2,1.5,.5,1) both; }
@keyframes pinStampDrop {
  0% { opacity: 0; scale: 2.4; rotate: -40deg; }
  60% { opacity: 1; scale: .88; rotate: -10deg; }
  100% { opacity: 1; scale: 1; rotate: -14deg; }
}
@media (prefers-reduced-motion: reduce) { .photo-pin-stamp.is-new { animation: none; } }
.photo-pin.is-selected { z-index: 9; }
.photo-pin.is-selected .photo-pin-img { scale: 1.35; box-shadow: 0 0 0 3px var(--shu), 0 0 0 7px rgba(217,71,59,.25), 0 8px 18px rgba(60,50,40,.35); }
.photo-pin.is-clustered { visibility: hidden; pointer-events: none; }

/* 핀 미리보기 */
.pin-pop {
  position: absolute; left: 0; top: 0; z-index: 20; width: 250px;
  display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 8px;
  background-color: var(--kinari); background-image: var(--washi);
  border: 2px solid #fff; border-radius: 16px;
  box-shadow: 0 0 0 2px var(--pc), 0 12px 30px rgba(60,50,40,.25);
  pointer-events: none; animation: fade .18s ease;
}
.pin-pop[hidden] { display: none; }
.pin-pop-img { width: 76px; height: 76px; border-radius: 11px; overflow: hidden; background: var(--pc); }
.pin-pop-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pin-pop-body { display: grid; align-content: start; gap: 2px; min-width: 0; }
.pin-pop-body b { font-family: var(--font-cute); font-weight: 400; font-size: 16px; line-height: 1.25; }
.pin-pop-body small { font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-pop-desc { font-size: 12.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 명소 목록 패널 (넓은 화면: 오른쪽) */
.spot-panel {
  position: absolute; z-index: 15; right: 16px; top: 128px; bottom: 16px;
  width: calc(var(--panel-w, 384px) - 24px);
  display: flex; flex-direction: column;
  background-color: var(--kinari); background-image: var(--washi);
  border: 2px solid #fff; border-radius: 22px; box-shadow: var(--shadow);
  overflow: hidden; animation: panelIn .45s cubic-bezier(.2,.8,.2,1) .2s backwards;
}
.spot-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; translate: 30px 0; } }
.sp-head { display: flex; gap: 12px; align-items: center; padding: 14px 16px 12px; border-bottom: 1.5px dashed var(--kinari-deep); position: relative; }
.sp-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--shu) 0 14px, #e8695c 14px 28px); }
.sp-tate {
  writing-mode: vertical-rl; padding: 8px 4px; border-radius: 4px; flex: none;
  background: var(--shu); color: #fff; font-family: var(--font-jp); font-weight: 700; font-size: 13px; letter-spacing: 2px;
}
.sp-head h2 { margin: 0; font-family: var(--font-cute); font-weight: 400; font-size: 22px; }
.sp-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.sp-list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; display: grid; align-content: start; gap: 6px; scrollbar-width: thin; }
.sp-item {
  width: 100%; display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center;
  padding: 6px; border: 2px solid transparent; border-radius: 14px; background: rgba(255,255,255,.55);
  text-align: left; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.sp-item:hover, .sp-item.is-hot { background: #fff; border-color: var(--pc); transform: translateX(-2px); }
.sp-item.is-selected { background: #fff; border-color: var(--shu); box-shadow: 0 0 0 3px rgba(217,71,59,.15); }
.sp-thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--pc); }
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-thumb .emoji-fallback { font-size: 24px; }
.sp-body { display: grid; gap: 1px; min-width: 0; }
.sp-body b { font-family: var(--font-cute); font-weight: 400; font-size: 15.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-body small { font-family: var(--font-jp); font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-meta { display: flex; gap: 4px; margin-top: 3px; }
.sp-meta i { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--pc) 22%, #fff); }
.sp-meta i:first-child { white-space: nowrap; flex: none; }
.sp-meta .sp-star { background: #fff2d6; color: #b27310; }

/* 목록이 있을 때: 카테고리 칩·상세 시트는 지도 부분 가운데로 */
.app.has-panel .cat-chips { left: calc((100% - var(--panel-w, 0px)) / 2); }
.app.has-panel .detail { left: calc((100% - var(--panel-w, 0px)) / 2); width: min(940px, calc(100% - var(--panel-w, 0px) - 32px)); }
.app.has-panel .compass { display: none; }

/* 현 단계: 선택한 현만 또렷하게 */
@media (hover: hover) { .pref.is-hover { filter: brightness(1.06) saturate(1.25); } }
.map.has-pref .region-group.is-active .pref:not(.is-pref-active) { fill-opacity: .5; stroke-opacity: .45; }

.leader, .anchor-dot { animation: fade .5s ease .35s both; }
.leader { fill: none; stroke: #fffaf0; stroke-width: 2.5; stroke-dasharray: 1 6; stroke-linecap: round; transition: opacity .35s, stroke .4s, stroke-width .4s; }
.leader.is-spot { stroke: var(--shu); stroke-width: 3.5; }
.anchor-dot { stroke: #fffaf0; stroke-width: 3; transition: opacity .35s, r .4s; }
.anchor-dot.is-spot { stroke: var(--shu); r: 7px; }
.lines.is-hidden .leader, .lines.is-hidden .anchor-dot { opacity: 0; }

/* 이미지 대체 */
.emoji-fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background-color: var(--c, var(--sakura));
  background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), transparent 50%), var(--seigaiha);
  background-size: auto, 30px 15px;
  background-blend-mode: normal, soft-light;
}

/* ───────── 도도부현 라벨 ───────── */
.pref-label {
  position: absolute; left: 0; top: 0;
  translate: -50% -50%;
  font-family: var(--font-cute); font-size: 13px;
  color: rgba(58, 52, 64, .55);
  text-shadow: 0 0 3px #fffaf0, 0 0 3px #fffaf0, 0 0 6px #fffaf0;
  white-space: nowrap; pointer-events: none;
  transition: opacity .35s;
}
.pref-label.is-hidden { opacity: 0; }
/* 지역 화면: 현(권역) 이름을 크게, 카드와 이어진 점 바로 아래에 */
.pref-label.is-big {
  translate: -50% 9px;
  font-size: 17px; color: rgba(58, 52, 64, .78);
  text-shadow: 0 0 3px #fffaf0, 0 0 4px #fffaf0, 0 0 8px #fffaf0, 0 0 2px #fffaf0;
}
@media (max-width: 720px) {
  .pref-label.is-big { font-size: 14px; }
  /* 폰 지방 화면: 현 이름은 동그라미 핀 이름표가 맡고, 지도 위에는 도장 표시만 남김 */
  .pref-label.is-big .pl-name { display: none; }
  .pref-label.is-big:not(:has(.zone-stamp, .pref-stamp)) { display: none; }
}
/* 다녀온 명소가 있는 현(권역): 이름 아래 '印 3/31' 도장 배지 */
.pref-label { text-align: center; }
.pref-stamp {
  display: block; width: max-content; margin: 3px auto 0; padding: 1px 6px 1px 3px;
  border-radius: 999px; background: rgba(255, 250, 240, .92); color: var(--shu-deep);
  border: 1.5px solid var(--shu); font-family: var(--font-jp); font-size: 10px; font-weight: 700;
  line-height: 1.35; text-shadow: none; box-shadow: 0 1px 3px rgba(60,50,40,.18);
}
.pref-stamp b {
  display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: 3px; vertical-align: -2px;
  border-radius: 50%; background: var(--shu); color: #fff; font-size: 8.5px;
}
.pref-label.is-big .pref-stamp { font-size: 11px; }

/* 현(권역) 고유 도장: 이름 위에 비스듬히 찍힘 */
.pref-label .zone-stamp {
  position: absolute; left: 50%; bottom: 100%; width: 34px; height: 34px;
  translate: -50% 6px; pointer-events: none; mix-blend-mode: multiply; opacity: .9;
}
.pref-label.is-big .zone-stamp { width: 50px; height: 50px; translate: -50% 4px; }
.zone-stamp-svg { width: 100%; height: 100%; display: block; rotate: var(--rot, 0deg); overflow: visible; }
.pref-label .zone-stamp.is-new { animation: zoneStampDrop .6s cubic-bezier(.2,1.5,.5,1) both; }
@keyframes zoneStampDrop {
  0% { opacity: 0; scale: 2.6; }
  55% { opacity: .95; scale: .86; }
  100% { opacity: .9; scale: 1; }
}
@media (prefers-reduced-motion: reduce) { .pref-label .zone-stamp.is-new { animation: none; } }

/* 도장첩 안 '현 도장 수첩' */
.zone-book { margin: 4px 0 14px; padding: 10px 12px 4px; border-radius: 14px; background: #fffaf0; border: 1.5px dashed rgba(217,71,59,.35); }
.zone-book summary { cursor: pointer; font-family: var(--font-cute); font-size: 15px; list-style: none; display: flex; align-items: center; gap: 8px; padding-bottom: 6px; }
.zone-book summary::-webkit-details-marker { display: none; }
.zone-book summary::after { content: "▾"; margin-left: auto; color: var(--shu); transition: rotate .2s; }
.zone-book:not([open]) summary::after { rotate: -90deg; }
.zone-book summary b { color: var(--shu); font-family: var(--font-jp); }
.zb-row { margin: 4px 0 8px; }
.zb-row p { margin: 0 0 4px; display: flex; gap: 6px; align-items: baseline; font-size: 12px; color: rgba(58,52,64,.75); }
.zb-row p small { color: var(--shu); font-weight: 700; }
.zb-row ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px 4px; }
.zb-row li { display: grid; justify-items: center; gap: 2px; }
.zb-row li svg, .zb-slot { width: 46px; height: 46px; }
.zb-row li.is-got svg { mix-blend-mode: multiply; animation: pinIn .35s cubic-bezier(.3,1.6,.6,1) backwards; }
.zb-slot {
  display: grid; place-items: center; border-radius: 50%; border: 1.5px dashed rgba(58,52,64,.22);
  font-family: var(--font-jp); font-size: 13px; color: rgba(58,52,64,.25); letter-spacing: -1px;
}
.zb-row li small { font-size: 10px; color: rgba(58,52,64,.6); white-space: nowrap; max-width: 60px; overflow: hidden; text-overflow: ellipsis; }
.zb-row li.is-got small { color: var(--shu-deep); font-weight: 700; }

/* 다녀온 비율만큼 옅은 주홍 칠 (많이 갈수록 진해짐)
   · 혼합 모드(multiply)는 확대·이동 때마다 지도 전체를 다시 합성해 폰에서 버벅여서 쓰지 않음 */
.visit-fill { fill: var(--shu); opacity: 0; pointer-events: none; transition: opacity .5s; visibility: hidden; }
.visit-fill.is-on { visibility: visible; opacity: calc(.13 + var(--vr, 0) * .42); }

@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ───────── 카테고리 칩 ───────── */
.cat-chips {
  position: absolute; z-index: 20; left: 50%; bottom: 24px; translate: -50% 0;
  display: flex; gap: 6px; padding: 6px;
  background-color: var(--kinari); background-image: var(--washi);
  border-radius: 999px; border: 2px solid #fff;
  box-shadow: var(--shadow);
  transition: opacity .3s;
}
.cat-chips[hidden] { display: none; }
.cat-chip {
  border: 0; border-radius: 999px; padding: 8px 13px;
  font-family: var(--font-cute); font-size: 14.5px;
  background: transparent; white-space: nowrap;
  transition: background .2s;
}
.cat-chip:hover { background: var(--kinari-deep); }
.cat-chip.is-active { background: var(--ink); color: #fff; }
.app.detail-open .cat-chips { opacity: 0; pointer-events: none; }

/* ───────── 상세 정보 시트 ───────── */
.detail {
  position: absolute; z-index: 40; left: 50%; bottom: 0;
  width: min(940px, calc(100% - 32px));
  max-height: 46vh;
  translate: -50% 110%;
  background-color: var(--kinari); background-image: var(--washi);
  border-radius: 26px 26px 0 0;
  border: 2px solid #fff; border-bottom: 0;
  box-shadow: 0 -10px 40px rgba(60, 50, 40, .2);
  transition: translate .45s cubic-bezier(.2,.9,.25,1.05);
  overflow: hidden;
}
/* 상단 주홍 띠 */
.detail::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: repeating-linear-gradient(90deg, var(--shu) 0 18px, #e8695c 18px 36px);
}
.app.detail-open .detail { translate: -50% 0; }
.detail-grip { width: 44px; height: 5px; border-radius: 9px; background: var(--kinari-deep); margin: 13px auto 0; }
.detail-close {
  position: absolute; right: 14px; top: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: var(--kinari-deep); font-size: 15px;
}
.detail-close:hover { background: #e6dbc3; }
.detail-inner {
  display: grid; grid-template-columns: 300px 1fr; gap: 22px;
  padding: 10px 26px 26px;
  max-height: calc(46vh - 18px); overflow-y: auto;
}
.detail-media {
  position: relative;
  border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--c); align-self: start;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--c), 0 5px 0 2px var(--d);
}
.detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-media .emoji-fallback { font-size: 64px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; padding-right: 40px; }
.tag {
  padding: 4px 10px; border-radius: 999px; font-size: 12.5px;
  background: var(--kinari-deep); font-family: var(--font-cute);
}
.tag.cat { background: var(--pc); color: #fff; }
.tag.region { background: var(--c); }
.tag .jp { font-family: var(--font-jp); font-weight: 500; font-size: 11px; margin-left: 3px; opacity: .75; }
.detail h2 { margin: 0; font-family: var(--font-cute); font-weight: 400; font-size: 28px; line-height: 1.2; }
.detail-ja { margin: 2px 0 10px; color: var(--shu); font-family: var(--font-jp); font-weight: 500; font-size: 14px; letter-spacing: 1px; }
.detail-desc { margin: 0 0 14px; line-height: 1.75; font-size: 15px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.facts li { background: rgba(255,255,255,.6); border: 1.5px dashed var(--kinari-deep); border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 1.5; }
.facts b { display: block; font-family: var(--font-cute); font-weight: 400; font-size: 13px; color: var(--ink-soft); margin-bottom: 2px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 999px; border: 0;
  font-family: var(--font-cute); font-size: 15px; text-decoration: none;
  background: var(--shu); color: #fff;
  box-shadow: 0 3px 0 var(--shu-deep);
}
.btn.ghost { background: var(--kinari-deep); color: var(--ink); box-shadow: 0 3px 0 #ddd0b4; }
.credit { margin: 12px 0 0; font-size: 11px; color: var(--ink-soft); }
.btn { cursor: pointer; transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-more { padding-right: 18px; }
.btn-more span { transition: transform .2s; }
.btn-more:hover span { transform: translate(2px, -2px); }
.detail-media { cursor: zoom-in; }

/* ───────── 자세히 보기 페이지 ───────── */
/* 시트 복제본: 시트 → 페이지로 커지는(또는 줄어드는) 연출용 */
.sheet-ghost {
  position: fixed; z-index: 199; margin: 0; pointer-events: none;
  translate: none !important; max-height: none !important; transition: none !important;
}
.sheet-ghost > * { transition: opacity .22s ease; }
.sheet-ghost.is-blank > * { opacity: 0; }
.page {
  position: fixed; inset: 0; z-index: 200;
  overflow-y: auto; overscroll-behavior: contain;
  background-color: var(--kinari); background-image: var(--washi);
  opacity: 0; transition: opacity .42s ease;
}
.page[hidden] { display: none; }
.page.is-in { opacity: 1; }
.page.is-swapping .page-hero, .page.is-swapping .page-body { opacity: 0; transition: opacity .2s; }

/* 상단 바: 처음엔 사진 위에 떠 있다가 스크롤하면 화지색으로 채워짐 */
.page-bar {
  position: sticky; top: 0; z-index: 5; height: 64px; margin-bottom: -64px;
  display: flex; align-items: center; gap: 14px; padding: 0 18px;
  transition: background-color .25s, box-shadow .25s;
}
.page.is-scrolled .page-bar { background-color: rgba(251, 246, 234, .94); box-shadow: 0 2px 12px rgba(60, 50, 40, .1); backdrop-filter: blur(6px); }
.page-back {
  border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer;
  font-family: var(--font-cute); font-size: 15px;
  background: var(--kinari); color: var(--ink); box-shadow: var(--shadow-sm);
}
.page-back:hover { background: #fff; }
.page-bar-title { font-family: var(--font-cute); font-size: 18px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.page.is-scrolled .page-bar-title { opacity: 1; transform: none; }

.page-hero { position: relative; height: min(58vh, 560px); min-height: 320px; overflow: hidden; background: var(--c); }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero-media .emoji-fallback { font-size: 96px; }
.page-hero-media { opacity: 0; scale: 1.06; transition: opacity .5s ease, scale .9s cubic-bezier(.2,.8,.2,1); }
.page.is-in .page-hero-media { opacity: 1; scale: 1; transition-delay: .1s; }
.page.is-settled .page-hero-media { transition-delay: 0s; }
.page-hero::after { /* 아래쪽 그라데이션 + 세이가이하 띠 */
  content: ""; position: absolute; inset: auto 0 0 0; height: 70%;
  background: linear-gradient(to top, rgba(30, 24, 20, .72), rgba(30, 24, 20, 0));
  pointer-events: none;
}
.page-tate {
  position: absolute; z-index: 2; right: 28px; top: 0;
  writing-mode: vertical-rl; padding: 14px 7px 16px;
  background: var(--shu); color: #fff; border-radius: 0 0 6px 6px;
  font-family: var(--font-jp); font-weight: 700; font-size: 18px; letter-spacing: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.page-hero-text { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 max(24px, calc(50% - 460px)) 34px; color: #fff; }
.page-hero-text .tag { box-shadow: 0 2px 6px rgba(0,0,0,.15); color: var(--ink); }
.page-hero-text .tag.cat { color: #fff; }
.page-hero h1 { margin: 6px 0 0; font-family: var(--font-cute); font-weight: 400; font-size: clamp(32px, 5vw, 54px); line-height: 1.1; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.page-ja { margin: 6px 0 0; font-family: var(--font-jp); font-weight: 500; font-size: 17px; letter-spacing: 3px; opacity: .92; }

/* 탭 */
.page-tabs {
  position: sticky; top: 64px; z-index: 4;
  display: flex; gap: 6px; justify-content: center; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  padding: 12px 16px; margin-top: -1px;
  background-color: var(--kinari); background-image: var(--washi);
  border-bottom: 1.5px dashed var(--kinari-deep);
}
.page-tabs::-webkit-scrollbar { display: none; }
.page-tabs a {
  padding: 7px 15px; border-radius: 999px; white-space: nowrap;
  font-family: var(--font-cute); font-size: 15px; color: var(--ink); text-decoration: none;
  transition: background .2s, color .2s;
}
.page-tabs a:hover { background: var(--kinari-deep); }
.page-tabs a.is-active { background: var(--ink); color: #fff; }

/* 본문: 사진이 다 날아온 뒤 아래에서 올라옴 */
.page-body { max-width: 920px; margin: 0 auto; padding: 22px 24px 60px; }
.page-hero-text, .page-tabs, .page-body > * { opacity: 0; transform: translateY(26px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.page.is-in .page-hero-text, .page.is-in .page-tabs, .page.is-in .page-body > * { opacity: 1; transform: none; }
.page.is-in .page-hero-text { transition-delay: .38s; }
.page.is-in .page-tabs { transition-delay: .46s; }
.page.is-in .page-body > :nth-child(1) { transition-delay: .5s; }
.page.is-in .page-body > :nth-child(2) { transition-delay: .56s; }
.page.is-in .page-body > :nth-child(3) { transition-delay: .62s; }
.page.is-in .page-body > :nth-child(n+4) { transition-delay: .68s; }
.page.is-settled .page-hero-text, .page.is-settled .page-tabs, .page.is-settled .page-body > * { transition-delay: 0s; }

.page-note { margin: 0 0 18px; padding: 10px 14px; border-radius: 12px; font-size: 13px; color: var(--ink-soft); background: rgba(255,255,255,.55); border: 1.5px dashed var(--kinari-deep); }
.page-sec {
  scroll-margin-top: 130px;
  margin: 0 0 22px; padding: 22px 24px 24px;
  background: rgba(255, 255, 255, .55); border: 2px solid #fff; border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.page-sec h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--font-cute); font-weight: 400; font-size: 23px; }
.page-sec h2 em, .facts b em { font-style: normal; font-family: var(--font-body); font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--kinari-deep); color: var(--ink-soft); }
.sec-jp {
  display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 8px;
  background: var(--shu); color: #fff; font-family: var(--font-jp); font-weight: 700; font-size: 13px; letter-spacing: 1px;
  transform: rotate(-4deg); box-shadow: 0 2px 0 var(--shu-deep);
}
.page-lead { margin: 0 0 14px; font-size: 17px; line-height: 1.85; }
.page-fits { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.page-fits span { padding: 6px 12px; border-radius: 999px; background: var(--c); font-family: var(--font-cute); font-size: 14px; }
.page-facts { margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 130px; gap: 8px; }
.gallery figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: var(--c); }
.gallery .g-main { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px;
  background: rgba(30, 24, 20, .55); color: #fff; font-size: 12px; backdrop-filter: blur(3px);
}

.rv-summary { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; margin-bottom: 16px; }
.rv-score { text-align: center; }
.rv-score b { display: block; font-family: var(--font-cute); font-weight: 400; font-size: 46px; line-height: 1; }
.rv-score small { color: var(--ink-soft); font-size: 12.5px; }
.rv-stars { color: #f0a73a; letter-spacing: 1px; }
.rv-bars div { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); margin: 4px 0; }
.rv-bars i { flex: 1; height: 8px; border-radius: 9px; background: var(--kinari-deep); position: relative; overflow: hidden; }
.rv-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: #f0a73a; border-radius: 9px; }
.rv-list { display: grid; gap: 10px; margin-bottom: 14px; }
.rv { padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.75); border: 1.5px solid var(--kinari-deep); }
.rv-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.rv-head time { margin-left: auto; color: var(--ink-soft); font-size: 12px; }
.rv-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c); font-size: 16px; }
.rv p { margin: 8px 0 0; line-height: 1.7; font-size: 14.5px; }
.rv-photo { display: block; width: 120px; height: 84px; object-fit: cover; border-radius: 10px; margin-top: 10px; }

.info-grid { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: center; }
.minimap { width: 100%; height: auto; background-color: #e3f0f3; background-image: var(--seigaiha); background-size: 44px 22px; border-radius: 16px; border: 2px solid #fff; }
.mm-dot { stroke: #fff; stroke-width: 1.5; }
.mm-pulse { fill: var(--shu); opacity: .35; transform-box: fill-box; transform-origin: center; animation: mmPulse 1.8s ease-out infinite; }
@keyframes mmPulse { from { scale: .6; opacity: .5; } to { scale: 2.2; opacity: 0; } }
.info-list { margin: 0; display: grid; gap: 8px; }
.info-list div { display: grid; grid-template-columns: 56px 1fr; gap: 10px; font-size: 14.5px; padding-bottom: 8px; border-bottom: 1.5px dashed var(--kinari-deep); }
.info-list dt { font-family: var(--font-cute); color: var(--ink-soft); }
.info-list dd { margin: 0; }
.info-list .jp { font-family: var(--font-jp); color: var(--shu); font-size: 13px; margin-left: 4px; }
.info-list .btn { justify-self: start; margin-top: 4px; }

.near-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.near-card {
  flex: 0 0 168px; scroll-snap-align: start; padding: 0; border: 0; cursor: pointer; text-align: left;
  border-radius: 16px; overflow: hidden; background: var(--kinari);
  box-shadow: 0 0 0 2px #fff, 0 4px 0 2px var(--kinari-deep);
  transition: transform .2s cubic-bezier(.3,1.6,.6,1);
}
.near-card:hover { transform: translateY(-4px); }
.near-photo { display: block; height: 100px; background: var(--pc); }
.near-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.near-photo .emoji-fallback { font-size: 34px; }
.near-body { display: block; padding: 8px 10px 10px; }
.near-body b { display: block; font-family: var(--font-cute); font-weight: 400; font-size: 15px; line-height: 1.25; }
.near-body small { color: var(--ink-soft); font-size: 12px; }
/* 상세 소개: 한눈에 보기 · 이야기 블록 · 출처 */
.story-key {
  margin: 22px 0 8px; padding: 16px 20px; border-radius: 18px;
  background: color-mix(in srgb, var(--c) 35%, #fff); border: 2px solid #fff;
}
.story-key h3, .story-src h3 { margin: 0 0 8px; font-family: var(--font-cute); font-weight: 400; font-size: 18px; }
.story-key ul { margin: 0; padding-left: 4px; list-style: none; display: grid; gap: 6px; }
.story-key li { position: relative; padding-left: 22px; line-height: 1.65; font-size: 15px; }
.story-key li::before { content: "◆"; position: absolute; left: 2px; top: 1px; color: var(--shu); font-size: 11px; }
.story {
  display: grid; gap: 22px; align-items: center;
  padding: 26px 0; border-top: 1.5px dashed var(--kinari-deep);
}
.story:first-of-type { border-top: 0; }
.story.has-fig { grid-template-columns: 1.15fr 1fr; }
.story.has-fig.is-flip .story-fig { order: -1; }
.story.has-fig.is-flip { grid-template-columns: 1fr 1.15fr; }
.story h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--font-cute); font-weight: 400; font-size: 21px; line-height: 1.3; }
.story-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c); font-size: 17px; flex: none; }
.story p { margin: 0 0 10px; line-height: 1.9; font-size: 15.5px; word-break: keep-all; }
.story-list { margin: 4px 0 10px; padding: 0; list-style: none; display: grid; gap: 6px; }
.story-list li { padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.75); border: 1.5px solid var(--kinari-deep); line-height: 1.6; font-size: 14.5px; }
.story-list li b { color: var(--shu-deep); font-weight: 700; margin-right: 4px; }
.story-tip { padding: 10px 14px; border-radius: 12px; background: #fff7e6; border-left: 4px solid #f0a73a; font-size: 14.5px !important; }
.story-tip b { display: block; font-family: var(--font-cute); font-weight: 400; color: #c27a12; margin-bottom: 2px; }
.story-fig { margin: 0; cursor: zoom-in; }
.story-fig img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: 18px; border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--c), 0 6px 0 2px var(--d);
  transition: transform .3s ease;
}
.story-fig:hover img { transform: rotate(-1deg) scale(1.02); }
.story-fig figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--ink-soft); }
.story-src { margin-top: 10px; padding: 16px 20px; border-radius: 16px; background: rgba(255,255,255,.6); border: 1.5px dashed var(--kinari-deep); }
.story-src ol { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 3px; font-size: 13.5px; }
.story-src a { color: var(--ink); text-decoration-color: var(--shu); text-underline-offset: 3px; word-break: break-all; }
.story-src p { margin: 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }
.gallery figure { cursor: zoom-in; }

/* 여행자 후기 모아보기 */
.rv-intro { margin: -4px 0 16px; color: var(--ink-soft); font-size: 14px; }
.rv-intro b { color: var(--ink); }
.rv-voices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
@media (max-width: 720px) { .rv-voices { grid-template-columns: 1fr; } }
.rv-voice {
  margin: 0; padding: 16px 16px 12px; border-radius: 18px; position: relative;
  background: rgba(255,255,255,.8); border: 1.5px solid var(--kinari-deep);
}
.rv-voice::before { content: "“"; position: absolute; left: 12px; top: -6px; font-family: Georgia, serif; font-size: 44px; color: var(--shu); opacity: .35; }
.rv-voice.jp { background: color-mix(in srgb, #fde7ea 55%, #fff); }
.rv-voice.kr { background: color-mix(in srgb, #e5effb 55%, #fff); }
.rv-voice blockquote { margin: 6px 0 10px; font-size: 15px; line-height: 1.7; word-break: keep-all; }
.rv-voice figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-soft); }
.rv-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rv-col { padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.7); border: 2px solid #fff; box-shadow: 0 2px 0 var(--kinari-deep); }
.rv-col.good { border-top: 4px solid #5fae7f; }
.rv-col.bad { border-top: 4px solid #e8955a; }
.rv-col.tip { border-top: 4px solid #f0a73a; }
.rv-col h3 { margin: 0 0 8px; font-family: var(--font-cute); font-weight: 400; font-size: 17px; }
.rv-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rv-col li { font-size: 14px; line-height: 1.65; padding-bottom: 8px; border-bottom: 1px dashed var(--kinari-deep); word-break: keep-all; }
.rv-col li:last-child { border-bottom: 0; padding-bottom: 0; }
.rv-refs { display: inline-flex; flex-wrap: wrap; gap: 3px; margin-left: 5px; vertical-align: 1px; }
.rv-ref {
  display: inline-block; padding: 0 5px; border-radius: 6px; font-size: 10.5px; font-weight: 700; line-height: 17px;
  text-decoration: none; color: #fff; background: #6f8fc4;
}
.rv-ref.jp { background: #d9706a; }
a.rv-ref:hover { filter: brightness(1.1); }
.rv-src { margin-top: 14px; font-size: 13px; }
.rv-src summary { cursor: pointer; font-family: var(--font-cute); font-size: 15px; color: var(--ink-soft); }
.rv-src ol { margin: 10px 0 8px; padding: 0; list-style: none; display: grid; gap: 4px; }
.rv-src li { display: flex; gap: 6px; align-items: baseline; }
.rv-src li a { color: var(--ink); word-break: break-all; }
.rv-src p { margin: 0; color: var(--ink-soft); font-size: 12.5px; }

/* 라이트박스 */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  display: grid; grid-template-columns: 64px 1fr 64px; align-items: center;
  background: rgba(24, 20, 18, .9); opacity: 0; transition: opacity .25s;
}
.lightbox.is-in { opacity: 1; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox figcaption { color: #fff; font-size: 14px; }
.lb-nav, .lb-close { border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; border-radius: 50%; }
.lb-nav { width: 48px; height: 48px; font-size: 30px; justify-self: center; }
.lb-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; font-size: 18px; }
.lb-nav:hover, .lb-close:hover { background: rgba(255,255,255,.28); }

.page-foot { text-align: center; color: var(--ink-soft); font-family: var(--font-jp); font-size: 12px; letter-spacing: 2px; padding: 10px 0 0; }

/* ───────── 반응형 ───────── */
@media (max-width: 720px) {
  .brand { padding: 6px 14px 6px 6px; gap: 10px; }
  .brand-logo { width: 36px; height: 36px; font-size: 19px; }
  .brand h1 { font-size: 19px; }
  .brand h1 small { display: none; }
  .brand p { font-size: 12px; }
  .back-btn { padding: 9px 14px; font-size: 14px; }
  .chips-wrap { top: 72px; left: 10px; right: 10px; }
  .chips { gap: 6px; }
  .chip-dot { width: 15px; height: 15px; }
  .chips-arrow { width: 30px; height: 30px; font-size: 19px; top: 4px; }
  .chip { font-size: 13.5px; padding: 5px 11px 5px 6px; gap: 5px; }

  .bubble { width: 84px; }
  .bubble-inner { border-width: 2px; border-radius: 14px; }
  .bubble-photo { height: 48px; border-radius: 11px 11px 0 0; }
  .bubble-tate { font-size: 9px; padding: 4px 2px 5px; letter-spacing: 1px; right: 4px; }
  .bubble-body { padding: 4px 6px 6px; }
  .bubble-name { font-size: 14px; text-align: center; }
  .bubble-sub { display: none; }
  .bubble-cat { width: 20px; height: 20px; font-size: 11px; left: 3px; top: 3px; border-width: 2px; }
  .bubble--pref { width: 82px; }
  .bubble--pref .bubble-photo { height: 44px; }
  .bubble--pref .bubble-name { font-size: 13px; justify-content: center; gap: 3px; }
  .bubble--pref .bubble-tate { font-size: 8.5px; padding: 3px 2px 4px; }
  .bubble-count { min-width: 15px; height: 15px; font-size: 9.5px; padding: 0 4px; }
  .bubble--spot { width: 92px; }
  .bubble--spot .bubble-photo { height: 52px; }
  .bubble--spot .bubble-name { font-size: 12.5px; }

  /* 지방 카드·현 카드 → 사진 동그라미 핀 + 이름표 */
  .brand h1 { white-space: nowrap; }
  .bubble--region { width: 76px; }
  .bubble--pref { width: 72px; }
  .bubble--region .bubble-inner, .bubble--pref .bubble-inner {
    background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; text-align: center;
  }
  .bubble--region .bubble-photo, .bubble--pref .bubble-photo {
    width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; overflow: visible;
    border: 3px solid #fff; box-shadow: 0 0 0 3px var(--c), 0 3px 0 3px var(--d), 0 8px 14px rgba(60,50,40,.25);
    transition: box-shadow .3s;
  }
  .bubble--pref .bubble-photo { width: 46px; height: 46px; }
  .bubble--region .bubble-photo img, .bubble--pref .bubble-photo img,
  .bubble--region .bubble-photo .emoji-fallback, .bubble--pref .bubble-photo .emoji-fallback { border-radius: 50%; }
  .bubble--region .bubble-photo .emoji-fallback, .bubble--pref .bubble-photo .emoji-fallback { display: grid; place-items: center; width: 100%; height: 100%; font-size: 22px; }
  .bubble--region .bubble-tate, .bubble--pref .bubble-tate {
    right: -11px; top: -7px; z-index: 2; font-size: 8.5px; letter-spacing: 0; padding: 3px 2px 4px; border-radius: 4px;
    border: 1.5px solid #fff;
  }
  .bubble--pref .bubble-tate { font-size: 8px; right: -10px; }
  .bubble--region .bubble-cat, .bubble--pref .bubble-cat,
  .bubble--region .bubble-progress, .bubble--pref .bubble-progress { display: none; }
  .bubble--region .bubble-body, .bubble--pref .bubble-body { padding: 0; margin-top: 6px; }
  .bubble--region .bubble-name, .bubble--pref .bubble-name {
    display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; line-height: 17px; padding: 1px 8px; white-space: nowrap;
    background: rgba(251, 246, 234, .96); border-radius: 999px; box-shadow: 0 0 0 1.5px var(--c), 0 2px 5px rgba(60,50,40,.15);
  }
  .bubble--pref .bubble-name { font-size: 12px; padding: 1px 6px; }
  .bubble--region.is-spot .bubble-inner, .bubble--pref.is-spot .bubble-inner { transform: none; box-shadow: none; }
  .bubble--region.is-spot:hover .bubble-inner, .bubble--pref.is-spot:hover .bubble-inner,
  .bubble--region.is-spot.is-hover .bubble-inner, .bubble--pref.is-spot.is-hover .bubble-inner { transform: translateY(-3px); }
  .bubble--region.is-spot .bubble-photo, .bubble--pref.is-spot .bubble-photo { box-shadow: 0 0 0 3px var(--shu), 0 3px 0 3px var(--shu-deep), 0 10px 18px rgba(60,50,40,.3); }
  .bubble--region.is-spot .bubble-name, .bubble--pref.is-spot .bubble-name { background: var(--shu); color: #fff; box-shadow: none; }

  .compass { display: none; }
  .cat-chips { bottom: 16px; max-width: calc(100% - 24px); overflow-x: auto; scrollbar-width: none; }
  .cat-chips::-webkit-scrollbar { display: none; }
  .cat-chip { padding: 7px 10px; font-size: 13.5px; }

  .detail { width: 100%; max-height: 62vh; border-radius: 22px 22px 0 0; }
  .detail-inner { grid-template-columns: 1fr; gap: 14px; padding: 8px 18px 24px; max-height: calc(62vh - 18px); }
  .detail-media { aspect-ratio: 16 / 9; }
  .detail h2 { font-size: 24px; }
  .facts { grid-template-columns: 1fr; }

  .page-hero { height: 46vh; min-height: 280px; }
  .page-tate { right: 16px; font-size: 14px; padding: 10px 5px 12px; }
  .page-hero-text { padding: 0 18px 24px; }
  .page-ja { font-size: 14px; }
  .page-tabs { justify-content: flex-start; padding: 10px 12px; }
  .page-body { padding: 16px 12px 40px; }
  .page-sec { padding: 18px 16px 20px; border-radius: 18px; }
  .page-lead { font-size: 15.5px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 110px; }
  .rv-summary { grid-template-columns: 1fr; gap: 10px; }
  .info-grid { grid-template-columns: 1fr; }
  .rv-cols { grid-template-columns: 1fr; }
  .story.has-fig, .story.has-fig.is-flip { grid-template-columns: 1fr; gap: 14px; }
  .story.has-fig .story-fig { order: -1; }
  .story h3 { font-size: 19px; }
  .story p { font-size: 15px; }
  .lightbox { grid-template-columns: 40px 1fr 40px; }
  .lb-nav { width: 36px; height: 36px; font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .petal { display: none; }
}

/* 좁은 화면: 명소 목록은 아래쪽에서 옆으로 넘기는 카드 줄 */
@media (max-width: 899px) {
  .spot-panel {
    left: 0; right: 0; top: auto; bottom: 64px; width: auto; height: 132px;
    background: none; border: 0; box-shadow: none; border-radius: 0;
    animation-name: panelUp;
  }
  @keyframes panelUp { from { opacity: 0; translate: 0 30px; } }
  .sp-head { display: none; }
  .sp-list {
    display: flex; gap: 10px; padding: 6px 16px 10px; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .sp-list::-webkit-scrollbar { display: none; }
  .sp-list li { flex: 0 0 min(78vw, 300px); scroll-snap-align: center; }
  .sp-item {
    height: 112px; grid-template-columns: 96px 1fr;
    background-color: var(--kinari); background-image: var(--washi);
    border: 2px solid #fff; box-shadow: 0 0 0 2px var(--pc), 0 6px 16px rgba(60,50,40,.18);
  }
  .sp-item:hover, .sp-item.is-hot { transform: translateY(-3px); border-color: #fff; box-shadow: 0 0 0 3px var(--pc), 0 8px 20px rgba(60,50,40,.22); }
  .sp-item.is-selected { border-color: #fff; box-shadow: 0 0 0 3px var(--shu), 0 8px 20px rgba(60,50,40,.22); }
  .sp-thumb { width: 96px; height: 96px; }
  .app.detail-open .spot-panel { opacity: 0; pointer-events: none; transition: opacity .2s; }
  .app.has-panel .cat-chips { left: 50%; }
}

/* 비켜 놓은 사진 핀 ↔ 실제 위치를 잇는 점선 */
.pin-lead { fill: none; stroke-width: 1.8; stroke-dasharray: 2 4; stroke-linecap: round; opacity: .85; }
.pin-lead.is-hot { stroke-width: 2.6; stroke-dasharray: none; opacity: 1; }
.pin-anchor { stroke: #fffaf0; stroke-width: 2; }

/* 사진 핀 이름표 (자리가 있을 때만 보임) */
.photo-pin-label {
  position: absolute; left: 0; top: 0;
  max-width: 132px; padding: 2px 8px; border-radius: 999px;
  font-family: var(--font-cute); font-size: 12.5px; line-height: 17px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(251, 246, 234, .94); border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--pc) 45%, transparent), 0 2px 6px rgba(60,50,40,.15);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.photo-pin-label.is-on { opacity: 1; }
.photo-pin.is-featured .photo-pin-label { font-size: 13.5px; line-height: 18px; }
.photo-pin.is-hot .photo-pin-label, .photo-pin:hover .photo-pin-label { background: var(--ink); color: #fff; border-color: var(--ink); opacity: 1; }
.photo-pin.is-selected .photo-pin-label { background: var(--shu); color: #fff; border-color: var(--shu); opacity: 1; }
@media (max-width: 720px) { .photo-pin-label { font-size: 11.5px; max-width: 104px; padding: 1px 6px; } }

/* 좁은 화면 카드 줄: 넘치면 양끝 흐리게 + ‹ › 버튼 */
@media (max-width: 899px) {
  .sp-list { cursor: grab; }
  .spot-panel .h-arrow { top: 50%; translate: 0 -60%; z-index: 2; width: 36px; height: 36px; }
  .spot-panel .h-arrow.is-left { left: 6px; }
  .spot-panel .h-arrow.is-right { right: 6px; }
  .spot-panel.has-left .h-arrow.is-left, .spot-panel.has-right .h-arrow.is-right { display: grid !important; }
  .spot-panel.has-right .sp-list { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
  .spot-panel.has-left .sp-list { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
  .spot-panel.has-left.has-right .sp-list { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
}

/* 추천 명소 탭 */
.sp-tabs { display: flex; gap: 6px; padding: 10px 12px 2px; overflow-x: auto; scrollbar-width: none; flex: none; }
.sp-tabs::-webkit-scrollbar { display: none; }
.sp-tab {
  flex: none; border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer;
  font-family: var(--font-cute); font-size: 14px; color: var(--ink);
  background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1.5px var(--kinari-deep);
  transition: background .15s, color .15s;
}
.sp-tab:hover { background: #fff; }
.sp-tab.is-active { background: var(--ink); color: #fff; box-shadow: none; }
.spot-panel.is-rec .sp-meta .sp-star { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: color-mix(in srgb, var(--c) 45%, #fff); color: var(--ink); }
.sp-empty { padding: 20px; text-align: center; color: var(--ink-soft); font-size: 14px; }

@media (max-width: 899px) {
  .spot-panel.is-rec { height: 172px; }
  .spot-panel.is-rec .sp-tabs { padding: 0 16px 6px; }
  .spot-panel.is-rec .sp-tab {
    padding: 5px 11px; font-size: 13px;
    background-color: var(--kinari); box-shadow: 0 0 0 2px #fff, var(--shadow-sm);
  }
  .spot-panel.is-rec .sp-tab.is-active { background: var(--ink); }
  .spot-panel.is-rec .h-arrow { translate: 0 -30%; }
  .app:not(.has-cats) .spot-panel { bottom: 12px; }

  /* 카드 줄 접기 (추천 카드 · 현 명소 목록): 접으면 탭·제목 줄만 남음 */
  .spot-panel .sp-fold {
    display: grid; place-items: center; flex: none; margin-left: auto;
    width: 32px; height: 30px; border: 0; border-radius: 999px; cursor: pointer;
    font-size: 14px; color: var(--ink); background-color: var(--kinari); box-shadow: 0 0 0 2px #fff, var(--shadow-sm);
  }
  .spot-panel:not(.is-rec) { height: 172px; }
  .spot-panel:not(.is-rec) .sp-bar { display: flex; align-items: center; gap: 8px; padding: 0 16px 6px; }
  .sp-bar-title {
    border: 0; cursor: pointer; padding: 5px 12px; border-radius: 999px;
    font-family: var(--font-cute); font-size: 13px; color: var(--ink);
    background-color: var(--kinari); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--c), var(--shadow-sm);
  }
  .sp-bar-title b { font-weight: 400; color: var(--d); }
  .spot-panel:not(.is-rec) .h-arrow { translate: 0 -30%; }
  .spot-panel { transition: height .25s ease; }
  .spot-panel.is-folded { height: 44px; }
  .spot-panel.is-folded .sp-list, .spot-panel.is-folded .h-arrow { display: none !important; }
}
.sp-fold, .sp-bar { display: none; }

/* 현 안의 여행 권역 (가나가와: 요코하마·가와사키·쇼난…) — 현 화면에서만 */
/* 꺼진 현의 권역 레이어는 아예 그리지 않음(visibility) — 폰에서 확대·이동할 때 46개 현의 잘린 면을 다시 그리지 않도록 */
/* 권역 레이어: 지금 현만 그림. 그룹 opacity 페이드는 이동 애니메이션 내내 그룹을 따로 합성해서 쓰지 않음 */
.sub-layer { visibility: hidden; pointer-events: none; }
.sub-layer.is-on { visibility: visible; }
.sub { fill: #fff; fill-opacity: calc(var(--si, 0) * .14); }
.sub-border {
  fill: none; stroke: rgba(120, 84, 70, .55); stroke-width: 1.6; stroke-dasharray: 5 4; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.sub-label {
  position: absolute; left: 0; top: 0; translate: -50% -50%; z-index: 0;
  display: grid; justify-items: center; line-height: 1.1; text-align: center;
  font-family: var(--font-cute); font-size: 16px; color: rgba(110, 70, 58, .58);
  text-shadow: 0 0 3px #fffaf0, 0 0 4px #fffaf0, 0 0 8px #fffaf0;
  white-space: nowrap; pointer-events: none; transition: opacity .35s;
}
.sub-label b { font-weight: 400; letter-spacing: .5px; }
.sub-label small { font-family: var(--font-jp); font-size: 10px; letter-spacing: 2px; opacity: .8; }
.sub-label.is-crowded {
  z-index: 6; padding: 2px 9px 3px; border-radius: 999px; font-size: 13px;
  background: rgba(255, 250, 240, .9); color: rgba(110, 70, 58, .85);
  border: 1.5px dashed rgba(120, 84, 70, .45); box-shadow: 0 2px 6px rgba(60, 50, 40, .15); text-shadow: none;
}
.sub-label.is-crowded small { display: none; }
.sub-label.is-hidden { opacity: 0; pointer-events: none; }
/* 권역 누르기: 이름표·면을 누르면 그 권역 명소만 */
.sub-label:not(.is-hidden) { pointer-events: auto; cursor: pointer; }
.sub-label:not(.is-hidden):hover { color: rgba(110, 70, 58, .9); }
.sub-label.is-active:not(.is-hidden) { color: var(--shu-deep); }
.sub-label.is-active.is-crowded { border-color: var(--shu); color: var(--shu-deep); }
.sub-layer.has-sub path.sub:not(.is-active) { fill: #5a4a44; fill-opacity: .16; }
.sub-layer.has-sub path.sub.is-active { fill-opacity: .06; }
@media (max-width: 720px) { .sub-label { font-size: 13px; } .sub-label small { font-size: 9px; } }

/* 홋카이도 권역 (도오·도난·도호쿠·도토) */
.area { fill: var(--ac); cursor: pointer; transition: fill .25s, fill-opacity .4s; }
.area-border {
  fill: none; stroke: #fffaf0; stroke-width: 2.2; stroke-dasharray: 6 4; stroke-linecap: round;
  vector-effect: non-scaling-stroke; pointer-events: none;
}
@media (hover: hover) { .region-group.is-hover .area, .area.is-hover { filter: brightness(1.05) saturate(1.25); } }
.map.has-region .region-group.is-active .area { fill: color-mix(in srgb, var(--ah) 72%, #fbf3df); }
.map.has-region .region-group.is-active .area-border { stroke: #fff; stroke-width: 2.6; stroke-dasharray: none; }
.map.has-region .region-group:not(.is-active) .area { fill: #ece6d8; fill-opacity: .45; }
.map.has-area .area:not(.is-area-active) { fill-opacity: .5; }
.map.has-area .area.is-area-active { fill: color-mix(in srgb, var(--ah) 40%, #fbf3df); }
.map.has-area .area:not(.is-area-active) { fill: color-mix(in srgb, var(--ah) 35%, #ece6d8); }

/* 지도 데이터 출처 */
.map-credit {
  position: absolute; z-index: 4; left: 12px; bottom: 6px; margin: 0;
  font-size: 10.5px; color: rgba(58, 52, 64, .55); pointer-events: none;
  text-shadow: 0 0 3px #fffaf0, 0 0 3px #fffaf0;
}
.map-credit a { pointer-events: auto; color: inherit; }
@media (max-width: 899px) { .map-credit { bottom: auto; top: 128px; left: 12px; } }

/* ───────── 공유 · 찜 · 도장첩 ───────── */
.toast {
  position: fixed; z-index: 600; left: 50%; bottom: 28px; translate: -50% 20px;
  padding: 11px 18px; border-radius: 999px; background: var(--ink); color: #fff;
  font-family: var(--font-cute); font-size: 15px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none; transition: opacity .2s, translate .25s;
}
.toast.is-on { opacity: 1; translate: -50% 0; }

/* 공유 버튼 */
.share-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 0; border-radius: 999px; padding: 8px 14px;
  font-family: var(--font-cute); font-size: 15px; color: #fff; background: var(--shu); box-shadow: 0 3px 0 var(--shu-deep);
}
.share-btn:hover { filter: brightness(1.06); }
.share-btn.is-hero { padding: 10px 18px; font-size: 16px; }
.page-bar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; transition: opacity .25s; }
/* 대표 사진에 같은 버튼이 있으니, 상단 바 버튼은 스크롤해서 사진을 지나면 보이게 */
.page:not(.is-scrolled) .page-bar-actions { opacity: 0; pointer-events: none; }
.page-hero-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* 가고 싶어요(도장) 버튼 */
.wish-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 2px solid #fff; border-radius: 999px; padding: 6px 14px 6px 6px;
  font-family: var(--font-cute); font-size: 15px; color: var(--ink);
  background: var(--kinari); box-shadow: var(--shadow-sm);
}
.wish-stamp {
  width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center;
  border: 2px dashed rgba(217,71,59,.55); color: rgba(217,71,59,.6);
  font-family: var(--font-jp); font-weight: 700; font-size: 15px; transition: all .2s;
}
.wish-btn.is-on .wish-stamp { background: var(--shu); color: #fff; border: 2px solid var(--shu); transform: rotate(-8deg); }
.wish-btn.is-pressed .wish-stamp { animation: stampPress .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes stampPress { 0% { scale: 1.9; opacity: 0; } 60% { scale: .9; opacity: 1; } 100% { scale: 1; } }
.wish-btn.is-compact { padding: 4px 12px 4px 4px; font-size: 14px; }
.wish-btn.is-compact .wish-stamp { width: 24px; height: 24px; font-size: 13px; }
.wish-btn.is-hero { padding: 7px 16px 7px 7px; font-size: 16px; }
.wish-btn.is-sheet { margin-left: auto; }

/* 섹션 링크 버튼 */
.sec-link {
  margin-left: auto; border: 0; cursor: pointer; width: 34px; height: 34px; border-radius: 50%;
  background: var(--kinari-deep); font-size: 15px; opacity: .7; transition: opacity .2s, background .2s;
}
.sec-link:hover { opacity: 1; background: #fff; }

/* 공유 메뉴 (아래에서 올라오는 시트) */
.share-sheet {
  position: fixed; inset: 0; z-index: 500; display: grid; align-items: end; justify-items: center;
  background: rgba(30, 24, 20, .4); opacity: 0; transition: opacity .2s;
}
.share-sheet.is-in { opacity: 1; }
.share-box {
  position: relative; width: min(520px, 100%); max-height: 88vh; overflow-y: auto;
  padding: 22px 22px 26px; border-radius: 24px 24px 0 0;
  background-color: var(--kinari); background-image: var(--washi);
  box-shadow: 0 -10px 40px rgba(0,0,0,.2);
  translate: 0 30px; transition: translate .25s cubic-bezier(.2,.9,.25,1.05);
}
.share-sheet.is-in .share-box { translate: 0 0; }
.share-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: 24px 24px 0 0; background: repeating-linear-gradient(90deg, var(--shu) 0 18px, #e8695c 18px 36px); }
.share-box h3 { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; font-family: var(--font-cute); font-weight: 400; font-size: 22px; }
.share-box h3 small { font-family: var(--font-body); font-size: 13px; color: var(--ink-soft); }
.share-x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--kinari-deep); cursor: pointer; font-size: 15px; }
.share-preview { margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.7); border: 1.5px dashed var(--kinari-deep); display: grid; gap: 2px; }
.share-preview b { font-family: var(--font-cute); font-weight: 400; font-size: 15px; }
.share-preview span { font-size: 12px; color: var(--ink-soft); word-break: break-all; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.share-grid button {
  display: grid; justify-items: center; gap: 6px; padding: 12px 4px; border: 0; border-radius: 16px; cursor: pointer;
  background: rgba(255,255,255,.75); font-family: var(--font-cute); font-size: 13.5px; color: var(--ink);
  transition: transform .15s, background .15s;
}
.share-grid button:hover { background: #fff; transform: translateY(-2px); }
.share-grid i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 21px; background: var(--kinari-deep); }
.share-grid .ic-kakao { background: #fee500; }
.share-grid .ic-x { background: #111; color: #fff; font-size: 18px; }
.share-grid .ic-fb { background: #1877f2; color: #fff; font-family: Arial, sans-serif; font-weight: 700; }
.share-grid .ic-line { background: #06c755; color: #fff; font-family: Arial, sans-serif; font-weight: 700; }
.share-image { width: 100%; justify-content: center; margin-top: 14px; padding: 13px; font-size: 16px; }
.share-note { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: var(--ink-soft); }
.share-row { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.share-imgview img { display: block; max-width: 100%; max-height: 58vh; margin: 0 auto; border-radius: 14px; box-shadow: var(--shadow); }
@media (min-width: 721px) { .share-sheet { align-items: center; } .share-box { border-radius: 24px; } }

/* 상단 도장첩 버튼 */
.stamp-btn {
  pointer-events: auto; margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 8px 12px 8px 8px; border: 2px solid #fff; border-radius: 999px;
  background-color: var(--kinari); background-image: var(--washi); box-shadow: var(--shadow-sm);
  font-family: var(--font-cute); font-size: 15px; color: var(--ink);
}
.stamp-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--shu); color: #fff; font-family: var(--font-jp); font-weight: 700; transform: rotate(-6deg); }
.stamp-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--kinari-deep); font-size: 13px; }
.stamp-btn.has-some .stamp-n { background: var(--shu); color: #fff; }
@media (max-width: 720px) {
  .stamp-btn { padding: 6px; }
  .stamp-btn .stamp-text { display: none; }
  .stamp-ico { width: 26px; height: 26px; font-size: 13px; }
  .page-bar .share-label, .page-bar .wish-label { display: none; }
  .wish-btn.is-sheet { margin-left: 0; }
}

/* 도장첩 */
.stamp-box { width: min(720px, 100%); }
.stamp-grid { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px 10px; }
.stamp-grid button { width: 100%; display: grid; justify-items: center; gap: 4px; padding: 6px 2px; border: 0; background: none; cursor: pointer; }
.stamp-photo {
  width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: var(--kinari-deep);
  box-shadow: 0 0 0 4px var(--shu), 0 0 0 9px rgba(217,71,59,.18); transform: rotate(-4deg); transition: transform .2s;
}
.stamp-grid button:hover .stamp-photo { transform: rotate(0) scale(1.05); }
.stamp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stamp-grid b { margin-top: 8px; font-family: var(--font-cute); font-weight: 400; font-size: 14.5px; text-align: center; line-height: 1.25; word-break: keep-all; }
.stamp-grid small { font-size: 11.5px; color: var(--ink-soft); }
.stamp-empty { margin: 14px 0 6px; text-align: center; line-height: 1.8; color: var(--ink-soft); }

/* 좁은 화면 상단: 제목 줄과 버튼이 겹치지 않게 */
@media (max-width: 720px) {
  .topbar { left: 10px; right: 10px; gap: 6px; }
  .brand { min-width: 0; flex: 1 1 auto; }
  .brand-text { min-width: 0; }
  .brand p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .back-btn { flex: none; white-space: nowrap; padding: 9px 12px; font-size: 13.5px; }
  .stamp-btn { flex: none; margin-left: 0; }
  .stamp-n { min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; }
}

/* ───────── 버킷리스트(♥) · 도장첩(印) 분리 ───────── */
.my-btns { pointer-events: auto; margin-left: auto; display: flex; gap: 8px; flex: none; }
.my-btns .stamp-btn { margin-left: 0; }
.stamp-btn.is-bucket .stamp-ico { background: #e98ea4; transform: rotate(0); font-family: var(--font-body); font-size: 17px; border-radius: 50%; }
.stamp-btn.is-bucket.has-some .stamp-n { background: #e05577; }
.stamp-btn.is-bump { animation: bump .45s cubic-bezier(.3,1.8,.5,1); }
@keyframes bump { 0% { scale: 1; } 40% { scale: 1.18; } 100% { scale: 1; } }

/* 명소의 '가고 싶어요' 버튼 (하트) */
.wish-btn .wish-heart {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  color: #e05577; background: #fdeef2; font-size: 17px; line-height: 1; transition: all .2s;
}
.wish-btn.is-on .wish-heart { background: #e05577; color: #fff; }
.wish-btn.is-pressed .wish-heart { animation: stampPress .45s cubic-bezier(.3,1.6,.5,1); }
.wish-btn.is-compact .wish-heart { width: 24px; height: 24px; font-size: 14px; }

/* '다녀왔어요' 도장 버튼 */
.visit-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 2px solid #fff; border-radius: 999px; padding: 6px 14px 6px 6px;
  font-family: var(--font-cute); font-size: 15px; color: var(--ink);
  background: var(--kinari); box-shadow: var(--shadow-sm);
}
.visit-stamp {
  width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center;
  border: 2px dashed rgba(217,71,59,.55); color: rgba(217,71,59,.6);
  font-family: var(--font-jp); font-weight: 700; font-size: 15px; transition: all .2s;
}
.visit-btn.is-on { background: #fff4f1; }
.visit-btn.is-on .visit-stamp { background: var(--shu); color: #fff; border: 2px solid var(--shu); transform: rotate(-8deg); }
.visit-btn.is-pressed .visit-stamp { animation: stampPress .45s cubic-bezier(.3,1.6,.5,1); }
.visit-btn.is-compact { padding: 4px 12px 4px 4px; font-size: 14px; }
.visit-btn.is-compact .visit-stamp { width: 24px; height: 24px; font-size: 13px; }
.visit-btn.is-hero { padding: 7px 16px 7px 7px; font-size: 16px; }
.wish-btn.is-sheet { margin-left: auto; }
.wish-btn.is-sheet + .visit-btn.is-sheet { margin-left: 0; }

/* 날아가는 하트·도장 */
.fly-token {
  position: fixed; left: 0; top: 0; z-index: 700; pointer-events: none;
  width: 32px; height: 32px; display: grid; place-items: center; color: #fff;
  font-family: var(--font-jp); font-weight: 700; font-size: 16px; box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.fly-token.is-stamp { background: var(--shu); border-radius: 8px; }
.fly-token.is-heart { background: #e05577; border-radius: 50%; font-family: var(--font-body); }

/* 모아보기 화면 탭 */
.coll-tabs { display: flex; gap: 6px; margin: 2px 44px 12px 0; }
.coll-tabs button {
  flex: 1; border: 0; border-radius: 999px; padding: 9px 12px; cursor: pointer;
  font-family: var(--font-cute); font-size: 15px; color: var(--ink); background: rgba(255,255,255,.7);
  box-shadow: inset 0 0 0 1.5px var(--kinari-deep);
}
.coll-tabs button i { font-style: normal; font-size: 12.5px; margin-left: 3px; opacity: .7; }
.stamp-box.is-wish .coll-tabs [data-tab="wish"].is-active { background: #e05577; color: #fff; box-shadow: none; }
.stamp-box.is-visit .coll-tabs [data-tab="visit"].is-active { background: var(--shu); color: #fff; box-shadow: none; }
.stamp-box.is-wish .sec-jp { background: #e05577; box-shadow: 0 2px 0 #b83a5a; }

/* 진행도 */
.prog { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 14px; }
.prog span { display: grid; gap: 4px; min-width: 120px; font-size: 13px; color: var(--ink-soft); }
.prog b { font-family: var(--font-cute); font-weight: 400; color: var(--ink); font-size: 14px; }
.prog i { height: 7px; border-radius: 9px; background: var(--kinari-deep); position: relative; overflow: hidden; }
.prog i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--shu); border-radius: 9px; }
.prog.is-wish span { min-width: 220px; }
.prog.is-wish i::after { background: #e05577; }

/* 모아보기 카드 */
.stamp-photo { position: relative; }
.stamp-box.is-wish .stamp-photo { box-shadow: 0 0 0 4px #fff, 0 0 0 7px #e98ea4; transform: none; }
.stamp-box.is-wish .is-done .stamp-photo { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--shu); }
.stamp-box.is-wish .is-done .stamp-photo img { opacity: .75; }
.stamp-mark, .heart-mark {
  position: absolute; right: -4px; bottom: -4px; width: 34px; height: 34px; display: grid; place-items: center;
  font-style: normal; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.stamp-mark { background: var(--shu); border-radius: 8px; font-family: var(--font-jp); font-weight: 700; font-size: 16px; transform: rotate(-10deg); }
.heart-mark { top: -4px; bottom: auto; background: #fff; color: #e05577; border-radius: 50%; font-size: 17px; }
.stamp-grid .is-done small { color: var(--shu); }
@media (max-width: 720px) {
  .my-btns { gap: 5px; }
  .page-bar .visit-label { display: none; }
  .visit-btn.is-sheet, .wish-btn.is-sheet { margin-left: 0; }
}
/* 도장·하트 표시가 둥근 사진 밖으로 나올 수 있게 (사진만 둥글게 자름) */
.stamp-photo { overflow: visible; }
.stamp-photo img, .stamp-photo .emoji-fallback { border-radius: 50%; }

/* ───────── 추천 맛집 ───────── */
.shops-intro { margin: -4px 0 14px; font-size: 13.5px; color: var(--ink-soft); }
.shop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.shop {
  display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start;
  padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.75); border: 1.5px solid var(--kinari-deep);
}
.shop-no {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; margin-top: 2px;
  background: var(--shu); color: #fff; font-family: var(--font-cute); font-size: 16px; transform: rotate(-5deg);
}
.shop h3 { margin: 0; font-family: var(--font-cute); font-weight: 400; font-size: 19px; line-height: 1.3; }
.shop h3 small { margin-left: 6px; font-family: var(--font-jp); font-size: 13px; color: var(--shu); }
.shop-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 6px; font-size: 13px; color: var(--ink-soft); }
.shop-desc { margin: 0 0 8px; font-size: 14.5px; line-height: 1.7; word-break: keep-all; }
.shop-note { margin: 0 0 8px; padding: 6px 10px; border-radius: 10px; background: #fff7e6; font-size: 13px; color: #8a5a0b; }
.shop-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.shop-links .btn { padding: 7px 13px; font-size: 14px; }
.shop-src { font-size: 12px; color: var(--ink-soft); }
.shop-src a { margin-left: 3px; color: var(--ink-soft); }
/* 상세 시트의 짧은 목록 */
.detail-shops { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 14px; font-size: 13.5px; }
.detail-shops b { font-family: var(--font-cute); font-weight: 400; color: var(--ink-soft); margin-right: 2px; }
.detail-shops a, .detail-shops .more {
  padding: 4px 10px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; color: var(--ink);
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--kinari-deep); font-size: 13px;
}
.detail-shops a:hover { box-shadow: inset 0 0 0 1.5px var(--shu); }
.detail-shops .more { background: var(--kinari-deep); }
@media (max-width: 720px) { .shop { grid-template-columns: 28px 1fr; padding: 12px; } .shop-no { width: 26px; height: 26px; font-size: 14px; } }
@media (max-width: 380px) { .brand h1 { font-size: 17px; } .brand { gap: 8px; } }

/* 지도가 움직이는 동안만: 그림자·점선 경계를 끄고 가장자리 다듬기(안티에일리어싱)를 생략 — 멈추면 바로 원래대로 */
.map.is-moving path { shape-rendering: optimizeSpeed; }
.map.is-moving .land-shadow,
.map.is-moving .sub-border,
.map.is-moving .area-border,
.map.is-moving .inset-frame { visibility: hidden; }

/* 상세 페이지 데이터 불러오는 중 */
.page-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60vh; color: #8a7a66; font-size: 14px; }
.page-loading-dot { width: 10px; height: 10px; border-radius: 50%; background: #e8735a; animation: pageLoadDot 0.9s ease-in-out infinite alternate; }
@keyframes pageLoadDot { from { transform: translateY(0); opacity: .5; } to { transform: translateY(-8px); opacity: 1; } }
