/* 완주잇다 — 홈 밖의 화면(둘러보기·검색·상세·스탬프·지도·소개) 스타일.
   첫 화면을 가볍게 하려고 따로 두었고, 홈이 아닌 화면에 처음 들어갈 때 app.js 가 불러온다.
   목록 화면은 회색 바탕 위 흰 카드(.lst, .sec), 상세 화면(.view--item)은 흰 띠를 12px 회색 틈으로 나눈다. */

/* ── 화면 머리, 목록 막대 */
.sec--s { margin-top: var(--card-gap); }
.sec > .note { margin-top: var(--s-3); }
.phead { position: relative; padding: var(--s-3) var(--gutter) var(--s-2); }
.phead--art { display: flow-root; }
.phead__art { --art: 92; float: right; margin: -6px -6px 6px 12px; }
.phead__k { font-size: var(--fs-13); font-weight: var(--fw-bold); color: var(--c-primary); }
.phead__t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: var(--fs-24); font-weight: var(--fw-bold); }
.phead__d { margin-top: 6px; font-size: var(--fs-15); color: var(--c-ink-2); }
.phead__lead { margin-top: var(--s-3); font-size: var(--fs-15); color: var(--c-ink-2); }
.rbar { display: flex; align-items: center; gap: var(--s-2); min-height: var(--tap); margin-top: var(--s-2); padding: 0 var(--gutter); font-size: var(--fs-14); color: var(--muted); }
.count { font-weight: var(--fw-semibold); color: var(--c-ink); }
.count strong { font-weight: var(--fw-bold); color: var(--c-primary); }
.rbar__r { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; font-size: var(--fs-13); }
/* 목록 = 흰 카드 */
.lst { margin: 0 var(--card-x); padding: var(--s-4) var(--gutter); border-radius: var(--r-xl); background: var(--c-surface); }
.lst:has(> .empty) { padding: 0; background: none; }
.row { display: flex; align-items: center; }
.row__a { flex: 1; min-width: 0; }
.row__x { color: var(--c-primary); }
.row__x .ic { fill: currentColor; }
.banner { display: flex; align-items: center; gap: var(--s-3); min-height: 68px; margin: var(--s-3) var(--card-x) 0; padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4); border-radius: var(--r-lg); background: var(--c-tint-mint); color: var(--c-ink); }
.banner > .ic:first-child { box-sizing: content-box; width: 22px; height: 22px; padding: 9px; border-radius: 14px; background: var(--c-surface); color: var(--c-primary); }
.banner > .ic:last-child { width: 18px; height: 18px; color: var(--c-ink-4); }
.banner span { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.banner strong { font-size: var(--fs-15); font-weight: var(--fw-bold); }
.banner small { font-size: var(--fs-14); color: var(--c-ink-2); }

/* ── 둘러보기·검색 */
.ctabs { position: sticky; top: calc(var(--header-h) + var(--safe-t)); z-index: 20; display: flex; padding: 0 calc(var(--gutter) - 10px); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--c-line); background: var(--c-bg); }
.ctabs::-webkit-scrollbar, .chips--x::-webkit-scrollbar, .gal__tr::-webkit-scrollbar { display: none; }
/* 아이콘 없는 "전체" 탭도 누름 영역 44px 을 지키게 최소 폭을 둔다 */
.ctab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-width: var(--tap); min-height: 48px; padding: 0 10px; font-size: var(--fs-16); font-weight: var(--fw-semibold); color: var(--muted); white-space: nowrap; }
.ctab .ic { width: 18px; height: 18px; color: var(--cat); }
.ctab[aria-current] { font-weight: var(--fw-bold); color: var(--c-ink); }
.ctab[aria-current]::after { content: ""; position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; border-radius: 2px; background: var(--c-ink); }
.ctab:focus-visible { outline-offset: -4px; }
/* 휴대폰 폭에서는 탭이 화면 밖으로 이어진다는 것을 오른쪽 끝 흐림으로 알린다(끝까지 밀면 흐림을 걷는다) */
@media (max-width: 470px) {
  .ctab:last-of-type { margin-right: 16px; }
  .ctabs::after { content: ""; position: sticky; right: calc(-1 * (var(--gutter) - 10px)); flex: none; width: 36px; margin-left: -36px; background: linear-gradient(90deg, rgba(242, 244, 246, 0), var(--c-bg) 80%); pointer-events: none; }
  @supports (animation-timeline: scroll()) {
    .ctabs::after { animation: tabs-end linear both; animation-timeline: scroll(nearest inline); }
  }
}
@keyframes tabs-end { 0%, 88% { opacity: 1; } 100% { opacity: 0; } }
.cdesc { display: flex; align-items: baseline; gap: var(--s-2); padding: var(--s-4) var(--gutter) 0; font-size: var(--fs-14); color: var(--muted); }
.cdesc strong { font-size: var(--fs-18); font-weight: var(--fw-bold); color: var(--c-ink); }
.filters { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4) var(--gutter) 0; }
.chips--x { flex-wrap: nowrap; padding: 4px var(--gutter); overflow-x: auto; scrollbar-width: none; }
/* 거르기 칩: 흰 면 + 옅은 테두리, 고르면 민트 테두리·민트 면 */
.tag::after { inset: -5px 0; }
.fbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.fsel { display: inline-flex; align-items: center; gap: 6px; min-width: 0; min-height: var(--tap); padding: 0 12px; border: 1px solid var(--c-line-strong); border-radius: 12px; background: var(--c-surface); font-size: var(--fs-14); font-weight: var(--fw-semibold); }
.fsel span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fsel .ic { width: 18px; height: 18px; color: var(--muted); }
.fsel.is-on { border-color: var(--c-primary); background: var(--c-primary-soft); color: var(--c-primary-strong); }
/* 나눔 단추: 회색 트랙 위 흰 칸 */
.seg { display: inline-flex; flex: none; padding: 3px; border-radius: 12px; background: var(--c-bg-deep); }
.seg button { position: relative; min-height: 38px; padding: 0 12px; border-radius: 10px; font-size: var(--fs-14); font-weight: var(--fw-semibold); color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--c-surface); color: var(--c-ink); box-shadow: 0 1px 3px rgba(25, 31, 40, 0.12); }
.cfil { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-lg); background: var(--c-surface); }
.cfil__g { display: flex; align-items: center; gap: var(--s-2); }
.cfil__l { flex: none; width: 2.75rem; font-size: var(--fs-13); font-weight: var(--fw-bold); color: var(--c-ink-2); }
.cfil .fchip { padding: 4px 11px; }
/* 유형 칩(전체·장소·코스·이야기)은 한 줄로. 360px에서도 들어가게 여백을 줄이고, 더 좁으면 옆으로 민다. */
.chips[data-types] { flex-wrap: nowrap; gap: 6px; margin: -4px calc(-1 * var(--gutter)); padding: 4px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.chips[data-types]::-webkit-scrollbar { display: none; }
.chips[data-types] .fchip { padding: 4px 12px; }

.sbox { display: flex; align-items: center; gap: var(--s-2); min-height: 52px; margin: var(--s-1) var(--card-x) 0; padding: 0 4px 0 var(--s-4); border: 1.5px solid var(--c-line-strong); border-radius: var(--r-md); background: var(--c-surface); transition: border-color var(--dur-1), box-shadow var(--dur-1); }
.sbox:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-soft); }
.sbox > .ic { width: 22px; height: 22px; color: var(--c-ink); }
.sbox input { flex: 1; min-width: 0; height: 100%; min-height: 48px; padding: 0; border: 0; outline: 0; background: none; font: inherit; font-size: var(--fs-16); color: var(--c-ink); -webkit-appearance: none; appearance: none; }
.sbox input::-webkit-search-cancel-button { display: none; }
.sbox input::placeholder { color: var(--muted); }
mark { padding: 0 1px; border-radius: 3px; background: color-mix(in srgb, var(--c-accent) 22%, #fff); color: inherit; }
.clist li + li { border-top: 1px solid var(--c-line); }
.clist__a { display: flex; align-items: center; gap: var(--s-3); min-height: 64px; padding: 10px 0; }
.clist li:first-child .clist__a { padding-top: 2px; }
.clist li:last-child .clist__a { padding-bottom: 2px; }
.clist__ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 14px; background: color-mix(in srgb, var(--cat) 10%, #fff); color: var(--cat); }
.clist__ic .ic { width: 20px; height: 20px; }
.clist__ic .art { --art: 34; }
.clist__b { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.clist__b strong { font-size: var(--fs-16); font-weight: var(--fw-bold); }
.clist__b small { font-size: var(--fs-14); color: var(--muted); }
.clist__a > .ic { width: 18px; height: 18px; color: var(--c-ink-4); }
.nores { margin-top: 0; }
.nores .chips { justify-content: center; }

/* ── 상세: 흰 바탕, 구획은 12px 회색 틈으로 나눈 흰 띠 */
.view--item { background: var(--c-surface); }
.view--item .sec { margin: var(--s-6) 0 0; padding: var(--s-7) var(--gutter) var(--s-2); border-top: 12px solid var(--c-bg); border-radius: 0; }
.view--item .sec .sec__hd { margin-bottom: var(--s-4); }
.gal { position: relative; }
.gal .media, .story__fig .media { border-radius: 0; }
.media--cov { aspect-ratio: 2 / 1; }
.media--xs { flex: none; width: 3.5rem; aspect-ratio: 1; border-radius: 12px; }
.gal__tr { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal__tr > li { flex: none; width: 100%; scroll-snap-align: center; }
.gal__nav { position: absolute; top: 50%; display: grid; place-items: center; width: var(--tap); height: var(--tap); margin-top: -22px; border-radius: 50%; background: rgba(255, 255, 255, 0.94); box-shadow: var(--shadow-1); }
.gal__nav--p { left: 10px; }
.gal__nav--n { right: 10px; }
.gal__nav:disabled { opacity: 0; pointer-events: none; }
.gal__nav .ic { width: 20px; height: 20px; }
.gal__c { position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: var(--r-pill); background: rgba(25, 31, 40, 0.66); color: #fff; font-size: var(--fs-12); font-weight: var(--fw-semibold); }
.credit { padding: 8px var(--gutter) 0; font-size: var(--fs-12); }
.credit a { position: relative; margin: -3px -2px; padding: 3px 2px; text-decoration: underline; text-underline-offset: 2px; }
/* 구분점은 앞 항목 끝에 붙인다(줄이 바뀌어도 점이 줄 머리에 오지 않게) */
.credit > * + *::before { content: none; }
.credit > :not(:last-child)::after { content: "·"; display: inline-block; margin: 0 6px; color: var(--c-ink-4); text-decoration: none; }
/* 작은 출처 링크("원본"은 25px 폭)도 손가락으로 누르기 쉽게 누름 영역을 위아래·양옆으로 44px 까지 넓힌다(옆으로는 구분점 자리까지만 든다) */
.credit a::before { content: ""; position: absolute; inset: -13px -10px; }
.ihead { padding: var(--s-5) var(--gutter) 0; }
.ihead__k { display: flex; flex-wrap: wrap; gap: 6px; }
.ihead__t { margin-top: var(--s-3); font-size: var(--fs-26); font-weight: var(--fw-bold); }
.ihead__d { margin-top: 6px; font-size: var(--fs-16); line-height: 1.5; color: var(--c-ink-2); }
.ihead__m { margin-top: var(--s-2); }
.ihead__act { display: flex; gap: var(--s-2); margin-top: var(--s-5); }
.ihead__act .btn { flex: 1; min-height: 48px; border-color: transparent; background: var(--c-bg); }
.ihead__act .btn[aria-pressed="true"] { background: var(--c-primary-soft); }
.prose { padding: var(--s-6) var(--gutter) 0; font-size: var(--fs-16); line-height: 1.75; color: var(--c-ink-2); }
.prose p + p { margin-top: var(--s-3); }
.prose__lead { font-weight: var(--fw-medium); color: var(--c-ink); }
.prose--in { padding: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 10px var(--s-2); padding: var(--s-4) var(--gutter) 0; }
.sec .tags { padding: var(--s-4) 0 0; }
.tag { position: relative; display: inline-flex; align-items: center; min-height: 2.125rem; padding: 4px 12px; border-radius: var(--r-pill); background: var(--c-bg); font-size: var(--fs-14); font-weight: var(--fw-medium); line-height: 1.2; color: var(--c-ink-2); }
.facs { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.facs li { display: inline-flex; align-items: center; gap: 4px; min-height: 2.125rem; padding: 4px 12px 4px 9px; border-radius: var(--r-pill); background: var(--c-primary-soft); font-size: var(--fs-14); font-weight: var(--fw-medium); line-height: 1.2; color: var(--c-ink); }
.facs .ic { width: 16px; height: 16px; color: var(--c-primary); }
.callout { padding: var(--s-4); border-radius: var(--r-md); background: var(--c-surface-2); font-size: var(--fs-14); color: var(--c-ink-2); }
.sec:not(.view--item .sec) .callout { background: var(--c-bg); }
.callout strong { color: var(--c-ink); }
.callout ul { margin-top: var(--s-2); padding-left: 1.1em; list-style: disc; }
.callout li + li { margin-top: 4px; }
.callout li::marker { color: var(--c-ink-4); }
.callout__s { margin-top: var(--s-3); font-size: var(--fs-14); color: var(--muted); }
.links { margin-top: var(--s-2); }
.links li + li { border-top: 1px solid var(--c-line); }
.lnkrow { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 52px; font-size: var(--fs-16); font-weight: var(--fw-semibold); color: var(--c-ink); }
.lnkrow .ic { width: 18px; height: 18px; color: var(--c-ink-4); }
.lnk { display: inline-flex; align-items: center; gap: 2px; font-weight: var(--fw-semibold); color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
.lnk .ic { width: 14px; height: 14px; }
.mini, .rmap { position: relative; }
.mini__map, .rmap__map, .mapv__map { z-index: 0; isolation: isolate; background: var(--c-bg-deep); }
.mini__map { height: 184px; cursor: pointer; }
.rmap__map { height: 248px; cursor: pointer; }
.mini__go, .rmap__go { position: absolute; top: 10px; right: 10px; z-index: 1; border-color: transparent; box-shadow: var(--shadow-2); }
.rmap__tag { position: absolute; top: 12px; left: 12px; z-index: 1; background: rgba(25, 31, 40, 0.78); color: #fff; }
.mapfail { display: grid; place-items: center; height: 100%; padding: var(--s-4); font-size: var(--fs-14); color: var(--muted); text-align: center; }
/* 미리보기 지도 위의 안내(배경을 못 받았을 때). "지도에서 보기" 단추 아래에 둔다. */
.mapmsg { position: absolute; top: 62px; right: 10px; left: 10px; z-index: 1; padding: 8px 12px; border-radius: var(--r-sm); background: rgba(25, 31, 40, 0.88); color: #fff; font-size: var(--fs-14); line-height: 1.5; pointer-events: none; }
.addr { display: flex; align-items: center; gap: 6px; margin-top: var(--s-3); font-size: var(--fs-15); }
.addr > .ic { width: 18px; height: 18px; color: var(--muted); }
.addr span { flex: 1; min-width: 0; }
.sub { display: flex; align-items: center; gap: 6px; margin: var(--s-5) 0 var(--s-2); font-size: var(--fs-16); font-weight: var(--fw-bold); }
.dir { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.dir .btn { border-color: transparent; background: var(--c-bg); }
.upd { margin: var(--s-8) var(--gutter) 0; font-size: var(--fs-13); color: var(--muted); }

/* 코스 요약: 민트 카드 안의 큰 숫자 넷 */
.stats { position: relative; overflow: hidden; margin: var(--s-5) var(--gutter) 0; padding: var(--s-4) var(--s-5) var(--s-3); border-radius: var(--r-lg); background: var(--c-tint-mint); color: var(--c-ink); }
.stats::before, .cert__card::before { content: ""; position: absolute; inset: 0; background: var(--c-primary); opacity: 0.08; -webkit-mask: var(--topo) right -90px top -70px / 300px no-repeat; mask: var(--topo) right -90px top -70px / 300px no-repeat; }
.stats > *, .cert__card > * { position: relative; }
.stats dl { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-4); }
.stats dt { display: flex; align-items: center; gap: 4px; font-size: var(--fs-13); font-weight: var(--fw-semibold); color: var(--c-ink-2); }
.stats dt .ic { width: 16px; height: 16px; color: var(--c-primary); }
.stats dd { font-size: var(--fs-22); font-weight: var(--fw-bold); line-height: 1.3; letter-spacing: var(--ls-tight); }
.stats .diff { font-weight: var(--fw-bold); color: var(--c-ink); }
.stats .diff__b { height: 15px; margin-right: 2px; }
.stats .diff__b i { width: 4px; background: color-mix(in srgb, var(--c-primary) 22%, #fff); }
.stats .diff__b i:nth-child(1) { height: 7px; }
.stats .diff__b i:nth-child(2) { height: 11px; }
.stats .diff__b i:nth-child(3) { height: 15px; }
.stats .diff[data-lv="1"] i:nth-child(1) { background: var(--c-easy); }
.stats .diff[data-lv="2"] i:nth-child(-n + 2) { background: var(--c-normal); }
.stats .diff[data-lv="3"] i { background: var(--c-hard); }
.stats__s { margin-top: var(--s-3); padding-top: var(--s-2); border-top: 1px solid color-mix(in srgb, var(--c-primary) 16%, transparent); font-size: var(--fs-14); line-height: 1.5; color: var(--c-ink-2); }
.rmap__el { padding: var(--s-1) var(--s-3) var(--s-4); }
.rmap__el .sub { margin: var(--s-3) 4px var(--s-1); }
.rmap__span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0 4px var(--s-3); font-size: var(--fs-14); font-weight: var(--fw-semibold); color: var(--c-ink-2); }
.rmap__span span { font-weight: var(--fw-medium); color: var(--muted); }
.rmap__sum { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--c-line); text-align: center; }
.rmap__sum dt { font-size: var(--fs-12); color: var(--muted); }
.rmap__sum dd { font-size: var(--fs-16); font-weight: var(--fw-bold); }
.note--src { padding-left: 22px; }
.elev { position: relative; height: 172px; border-radius: var(--r-sm); cursor: crosshair; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.elev__svg { overflow: visible; }
.elev__g { stroke: var(--c-line); }
.elev__ax { font-family: var(--font); font-size: 12px; fill: var(--muted); }
.elev__l { fill: none; stroke: var(--c-primary); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.elev__pk { fill: var(--c-accent); stroke: #fff; stroke-width: 1.5; }
.elev__pkt { font-family: var(--font); font-size: 12px; font-weight: 700; fill: var(--accent-t); }
.elev__cur line { stroke: var(--c-ink); stroke-dasharray: 3 3; }
.elev__cur circle { fill: var(--c-primary); stroke: #fff; stroke-width: 3; }
.elev__tip { position: absolute; top: -8px; padding: 3px 9px; border-radius: 8px; background: var(--c-ink); color: #fff; font-size: var(--fs-13); font-weight: var(--fw-bold); white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.elev__read { min-height: 1.6em; margin: var(--s-2) 4px 0; font-size: var(--fs-14); color: var(--c-ink-2); }
.tl { position: relative; padding-left: 26px; }
.tl__i:not(:last-child)::after { content: ""; position: absolute; top: 23px; bottom: -5px; left: -20px; width: 2px; background: repeating-linear-gradient(var(--c-line-strong) 0 5px, transparent 5px 9px); }
.tl__i { position: relative; padding: 4px 0 var(--s-4); }
.tl__i:last-child { padding-bottom: 0; }
.tl__i::before { content: ""; position: absolute; top: 7px; left: -26px; width: 14px; height: 14px; border: 3px solid var(--c-brand); border-radius: 50%; background: var(--c-surface); }
.tl__i--s::before { background: var(--c-brand); }
.tl__i--e::before { border-color: var(--c-accent); background: var(--c-accent); }
.tl__k { display: block; font-size: var(--fs-12); font-weight: var(--fw-bold); color: var(--c-primary); }
.tl__i--e .tl__k { color: var(--accent-t); }
.tl__b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tl__b strong { font-size: var(--fs-16); font-weight: var(--fw-bold); line-height: 1.4; }
.tl__b small { font-size: var(--fs-14); line-height: 1.45; color: var(--muted); }
.tl__a { display: flex; align-items: center; gap: var(--s-3); margin-top: 6px; padding: 10px; border-radius: var(--r-md); background: var(--c-surface-2); }
.tl__a > .ic { width: 18px; height: 18px; color: var(--c-ink-4); }
.caut { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4); border-radius: var(--r-md); background: var(--c-accent-soft); }
.caut li { display: flex; gap: var(--s-2); font-size: var(--fs-15); line-height: 1.55; }
.caut .ic { width: 18px; height: 18px; margin-top: 0.2em; color: var(--accent-t); }

.story__hd { padding: var(--s-6) var(--gutter) var(--s-5); }
.story__hd::before { content: ""; display: block; width: 32px; height: 4px; margin-bottom: var(--s-4); border-radius: 2px; background: var(--c-brand); }
.story__t { margin-top: var(--s-2); font-size: var(--fs-30); font-weight: var(--fw-bold); line-height: 1.28; }
.story__deck { margin: var(--s-3) 0; font-size: var(--fs-18); line-height: 1.55; color: var(--c-ink-2); }
.view--story .prose, .story .prose { font-size: var(--fs-17); line-height: 1.85; color: var(--c-ink); }
.story .prose__lead { font-size: var(--fs-20); font-weight: var(--fw-bold); line-height: 1.6; letter-spacing: var(--ls-tight); }
.story .prose p + p { margin-top: var(--s-5); }
.story__act { margin-top: 0; padding: var(--s-6) var(--gutter) 0; }

/* ── 스탬프 */
.sprog { display: flex; align-items: center; gap: var(--s-4); margin: var(--s-3) var(--card-x) 0; padding: var(--s-5); border-radius: var(--r-xl); background: var(--c-surface); }
.sprog__n { display: flex; align-items: baseline; gap: 4px; flex: none; }
.sprog__n strong { font-size: var(--fs-36); font-weight: var(--fw-bold); line-height: 1; letter-spacing: var(--ls-tight); color: var(--c-primary); }
.sprog__n span { font-size: var(--fs-16); font-weight: var(--fw-bold); color: var(--muted); }
.sprog__b { flex: 1; min-width: 0; font-size: var(--fs-14); color: var(--c-ink-2); }
progress { display: block; width: 100%; height: 10px; margin-bottom: 8px; overflow: hidden; border: 0; border-radius: 5px; background: var(--c-bg-deep); -webkit-appearance: none; appearance: none; }
progress::-webkit-progress-bar { background: var(--c-bg-deep); }
progress::-webkit-progress-value { border-radius: 5px; background: linear-gradient(90deg, var(--c-brand), #45d1a6); }
progress::-moz-progress-bar { border-radius: 5px; background: var(--c-brand); }
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin-top: var(--s-3); padding: 0 var(--card-x); }
/* 같은 줄의 칸 높이를 맞춘다(이름이 두 줄인 칸이 있어도) */
.sgrid > li { display: flex; min-width: 0; }
.scell { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; height: 100%; min-height: 138px; padding: var(--s-4) 6px var(--s-3); border-radius: var(--r-lg); background: var(--c-surface); text-align: center; transition: transform var(--dur-1); }
.scell:active { transform: scale(0.97); }
.scell.is-on { background: var(--c-accent-soft); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-accent) 40%, #fff); }
.scell__n { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: var(--fs-13); font-weight: var(--fw-bold); line-height: 1.3; }
.scell__d { margin-top: auto; font-size: var(--fs-12); color: var(--muted); }
.seal { width: 60px; height: 60px; fill: none; stroke: var(--c-line-strong); stroke-width: 1.5; stroke-dasharray: 3 4; }
.seal text { font-family: var(--font); font-size: 22px; font-weight: 700; fill: var(--muted); stroke: none; }
.seal.is-on { fill: #fff; stroke: var(--c-accent); stroke-width: 2.5; stroke-dasharray: none; transform: rotate(-9deg); }
.seal.is-on .seal__in { fill: none; stroke-width: 1; }
.seal__ic { fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.scell.is-new .seal { animation: stamp var(--dur-3) var(--ease); }
@keyframes stamp { from { opacity: 0; transform: rotate(-9deg) scale(1.7); } 60% { opacity: 1; transform: rotate(-9deg) scale(0.92); } to { transform: rotate(-9deg) scale(1); } }
/* 모은 기록(이 기기에만 남는다)과 지우기 */
.sreset { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); margin: var(--s-8) var(--gutter) 0; font-size: var(--fs-14); color: var(--c-ink-2); }
.sreset__t { font-size: var(--fs-15); font-weight: var(--fw-bold); color: var(--c-ink); }
.btn--danger { border-color: var(--c-danger); background: var(--c-danger); color: #fff; }
.sheet__ok { display: flex; align-items: center; gap: 6px; margin-top: var(--s-3); font-weight: var(--fw-bold); color: var(--c-primary); }
.sheet__msg { padding: 10px 12px; border-radius: var(--r-sm); background: var(--c-info-soft); font-size: var(--fs-14); color: var(--c-info); }
.sheet .chips { margin-top: var(--s-3); }
/* 완주 인증: 민트 화면 위 흰 카드와 3D 메달 */
.cert { width: 100%; max-width: var(--app-max); height: 100dvh; max-height: 100dvh; margin: 0 auto; padding: 0; overflow: auto; border: 0; background: var(--c-tint-mint); color: var(--c-ink); }
.cert::backdrop { background: var(--c-overlay); }
.cert[open] { animation: rise var(--dur-3) var(--ease); }
.cert__in { display: flex; flex-direction: column; justify-content: center; min-height: 100%; padding: var(--s-8) var(--gutter) calc(var(--s-6) + var(--safe-b)); }
.cert__card { position: relative; overflow: hidden; padding: var(--s-8) var(--s-4) var(--s-5); border-radius: var(--r-xl); background: var(--c-surface); color: var(--c-ink); text-align: center; box-shadow: var(--shadow-2); }
.cert__card::before { opacity: 0.06; }
.cert__seal { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto var(--s-3); border-radius: 50%; background: var(--c-accent); color: #fff; }
.cert__seal .ic { width: 36px; height: 36px; }
.cert__seal--art { width: auto; height: auto; background: none; }
.cert__seal--art .art { --art: 112; }
.cert__k { font-size: var(--fs-13); font-weight: var(--fw-bold); color: var(--c-primary); }
.cert__t { margin-top: 4px; font-size: var(--fs-24); font-weight: var(--fw-bold); }
.cert__d { margin-top: var(--s-2); font-size: var(--fs-15); color: var(--c-ink-2); }
.cert__l { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3) 4px; margin-top: var(--s-5); }
.cert__l li { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: var(--fs-12); font-weight: var(--fw-semibold); line-height: 1.3; }
.cert__l .seal { width: 44px; height: 44px; }
.cert__date { margin-top: var(--s-5); font-size: var(--fs-16); font-weight: var(--fw-bold); color: var(--accent-t); }
.cert .sheet__act :focus-visible { outline-color: var(--c-primary); }

/* ── 지도 */
.view--map { display: flex; padding: 0; }
.mapv { position: relative; flex: 1; min-height: 380px; overflow: hidden; }
.mapv__map { position: absolute; inset: 0; }
.mapv__top { position: absolute; top: 0; right: 0; left: 0; z-index: 2; padding-top: 8px; pointer-events: none; }
.mapv__top .chips { pointer-events: auto; }
/* 핀 대신 목록으로 가는 길(키보드·읽어 주기용). 초점이 올 때만 보인다. */
.mapv__alt { position: absolute; top: 54px; left: var(--s-3); z-index: 5; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px; border-radius: var(--r-pill); background: var(--c-ink); color: #fff; font-size: var(--fs-14); font-weight: var(--fw-semibold); opacity: 0; pointer-events: none; }
.mapv__alt:focus { opacity: 1; pointer-events: auto; }
.mapv__alt:focus-visible { outline-color: #fff; }
.fchip--map { border-color: transparent; box-shadow: 0 2px 10px rgba(25, 31, 40, 0.14); }
.fchip--map .ic { color: var(--cat); }
.fchip--map[aria-pressed="true"] { border-color: var(--c-primary); background: var(--c-primary); color: #fff; box-shadow: 0 2px 10px rgba(10, 127, 99, 0.3); }
.fchip--map[aria-pressed="true"] .ic, .fchip--map[aria-pressed="true"] b { color: #fff; }
.mapv__msg { position: absolute; top: 60px; right: 68px; left: var(--s-3); z-index: 2; padding: 8px 12px; border-radius: var(--r-sm); background: rgba(25, 31, 40, 0.88); color: #fff; font-size: var(--fs-14); line-height: 1.5; }
.mapv__fab { position: absolute; top: 164px; right: 10px; z-index: 2; display: flex; flex-direction: column; gap: var(--s-2); }
.fab { display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 14px; background: var(--c-surface); color: var(--c-ink); box-shadow: var(--shadow-2); }
.fab:disabled { opacity: 0.6; }
.mapv__card { position: absolute; right: 10px; bottom: 22px; left: 10px; z-index: 3; animation: sheet var(--dur-2) var(--ease); }
.mcard { position: relative; padding: var(--s-4); border-radius: var(--r-xl); background: var(--c-surface); box-shadow: var(--shadow-sheet); }
.mcard__a { display: flex; gap: var(--s-3); padding-right: 30px; }
.mcard .note { margin-top: var(--s-2); }
.mcard__act { display: grid; grid-template-columns: 1fr auto; gap: var(--s-2); margin-top: var(--s-3); }
.mcard__x { position: absolute; top: 4px; right: 4px; }
.mapv__load { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-2); padding: var(--gutter); background: var(--c-bg); font-size: var(--fs-14); color: var(--c-ink-2); text-align: center; }
.mapv__load .btn { margin-top: var(--s-3); }
#app .leaflet-container { font-family: var(--font); background: var(--c-bg-deep); }
#app .leaflet-container a { color: var(--c-primary); }
/* 출처 표시의 작은 링크(Leaflet·OpenStreetMap)도 누름 영역을 44px 로 넓힌다 */
#app .leaflet-control-attribution a { position: relative; }
#app .leaflet-control-attribution a::after { content: ""; position: absolute; inset: -15px -4px; }
#app .mapv .leaflet-top.leaflet-right { top: 54px; }
#app .leaflet-bar { overflow: hidden; border: 0; border-radius: 14px; box-shadow: var(--shadow-2); }
#app .leaflet-bar a { width: var(--tap); height: var(--tap); line-height: 44px; font-size: 20px; color: var(--c-ink); }
/* 타일 사이에 실선처럼 비치는 틈을 없애려고 아주 조금 겹친다(겹친 곳이 밝아지지 않게 섞기 방식은 기본값으로) */
#app .leaflet-container img.leaflet-tile { width: 256.6px !important; height: 256.6px !important; mix-blend-mode: normal; }
.pinw { border: 0; background: none; }
.pinw--pin { display: grid; place-items: center; }
.pin { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid #fff; border-radius: 50% 50% 50% 6px; background: var(--cat); color: #fff; box-shadow: 0 2px 6px rgba(25, 31, 40, 0.34); transform: rotate(-45deg); }
.pin svg { width: 18px; height: 18px; transform: rotate(45deg); }
.pin.is-on { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.92), 0 4px 12px rgba(25, 31, 40, 0.42); transform: rotate(-45deg) scale(1.22); }
.pin.is-approx { border-style: dashed; }
.cl { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid #fff; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: var(--fs-15); font-weight: var(--fw-bold); box-shadow: 0 0 0 5px rgba(24, 185, 139, 0.26), 0 2px 8px rgba(25, 31, 40, 0.28); }
.mk { position: absolute; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border: 2px solid #fff; border-radius: 11px; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; box-shadow: 0 1px 4px rgba(25, 31, 40, 0.38); transform: translate(-50%, -50%); }
.mk--start { background: var(--c-primary); }
.mk--end { background: var(--c-ink); }
.mk--stop { padding: 0; border-color: var(--c-ink); background: #fff; color: var(--c-ink); }
.me { display: block; width: 22px; height: 22px; border: 3px solid #fff; border-radius: 50%; background: var(--c-info); box-shadow: 0 0 0 2px rgba(27, 100, 218, 0.32), 0 2px 6px rgba(0, 0, 0, 0.28); }
/* 카카오맵(map/kakao.js): 핀·번호·묶음·표지는 위와 같은 모양을 CustomOverlay 로 올린다. 확대·축소 버튼과 고도 그래프의 점만 따로 그린다. */
.kmap { font-family: var(--font); }
.kmap:focus-visible { outline: 3px solid var(--c-primary); outline-offset: -3px; border-radius: 0; }
/* 선·원(카카오 도형)은 누르지 않는다. 누르면 지도가 받는다(미리보기 지도에서 선 위를 눌러도 지도 화면이 열리게). */
.kmap [id^="daum-maps-shape-"] { pointer-events: none; }
/* SDK 는 선·원을 크기 없는 칸(position:absolute) 안의 <svg version="1.1"> 에 그리고 너비를 px 로 준다(지도 폭의 몇 배).
   app.css 의 img, svg { max-width:100% } 가 그 너비를 부모 폭(0)으로 줄여 선이 사라지지 않게 지도 칸 안에서는 푼다(leaflet.css 의 .leaflet-container 와 같은 처리). */
.kmap svg, .kmap img { max-width: none !important; max-height: none !important; }
/* 움직이지 않는 미리보기 지도(kakao.js 가 kmap--static 을 붙인다): SDK 가 안쪽 div 에 넣는 touch-action:none 을 풀어
   손가락으로 지도 위를 밀어도 페이지가 스크롤되게 한다(SDK 의 터치 처리는 kakao.js 가 막는다) */
.kmap--static div { touch-action: pan-x pan-y !important; }
.kzoom { position: absolute; top: 10px; right: 10px; z-index: 10; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: var(--c-surface); box-shadow: var(--shadow-2); }
.kzoom button { display: grid; place-items: center; width: var(--tap); height: var(--tap); font-size: 22px; line-height: 1; color: var(--c-ink); }
.kzoom button + button { border-top: 1px solid var(--c-line); }
.kzoom button:disabled { color: var(--c-ink-4); cursor: default; }
.kzoom button:focus-visible { outline-offset: -3px; border-radius: 14px; }
.mapv .kzoom { top: 64px; }
.trk { display: block; width: 17px; height: 17px; border: 3px solid #fff; border-radius: 50%; background: #076650; box-shadow: 0 1px 4px rgba(25, 31, 40, 0.34); }

/* ── 소개·설치 안내 */
.about__p { margin-bottom: var(--s-3); font-size: var(--fs-15); color: var(--c-ink-2); }
.about__act { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.feats { display: flex; flex-direction: column; gap: var(--s-4); }
.feats li { display: flex; align-items: flex-start; gap: var(--s-3); }
.feats .ic { box-sizing: content-box; width: 20px; height: 20px; padding: 9px; border-radius: 14px; background: var(--c-primary-soft); color: var(--c-primary); }
.feats span { font-size: var(--fs-14); line-height: 1.55; color: var(--c-ink-2); }
.feats strong { display: block; font-size: var(--fs-16); color: var(--c-ink); }
.how, .src { margin-top: var(--s-3); font-size: var(--fs-14); }
.how > div, .src > div { display: grid; grid-template-columns: 7.25rem 1fr; gap: var(--s-2); padding: 12px 0; border-top: 1px solid var(--c-line); }
.src > div { grid-template-columns: 4.5rem 1fr; }
.how dt, .src dt { font-weight: var(--fw-bold); }
.how dd, .src dd { color: var(--c-ink-2); }
.ok, .warn { display: flex; align-items: flex-start; gap: 6px; margin-bottom: var(--s-3); font-size: var(--fs-14); font-weight: var(--fw-semibold); color: var(--c-primary); }
.warn { color: var(--accent-t); }
.ok .ic, .warn .ic { width: 18px; height: 18px; margin-top: 0.15em; }
.credits li { display: grid; gap: 2px; padding: var(--s-3) 0; border-top: 1px solid var(--c-line); font-size: var(--fs-13); color: var(--muted); }
.credits__t { position: relative; font-size: var(--fs-15); font-weight: var(--fw-bold); color: var(--c-ink); }
.credits__l { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); }
.credits__l .lnk { position: relative; min-height: 32px; }
/* 출처 목록의 링크는 줄 간격은 그대로 두고 누름 영역만 44px 로 넓힌다(위아래 여백 안에서만 넓혀 옆줄의 링크와 겹치지 않는다) */
.credits__t::after { content: ""; position: absolute; inset: -10px 0; }
.credits__l .lnk::after { content: ""; position: absolute; inset: -6px 0; }
.steps { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-4); }
.steps li { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--fs-15); }
.steps__n { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: var(--fs-13); font-weight: var(--fw-bold); }
.steps .ic { display: inline-block; width: 20px; height: 20px; color: var(--c-primary); vertical-align: -5px; }
.ibar { position: fixed; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px); left: 0; z-index: 40; display: flex; align-items: center; gap: var(--s-2); width: min(calc(100% - 20px), 460px); margin: 0 auto; padding: 12px 6px 12px var(--s-4); border-radius: var(--r-lg); background: var(--c-surface); box-shadow: 0 8px 32px rgba(25, 31, 40, 0.16); animation: rise var(--dur-2) var(--ease); }
.ibar__t { flex: 1; min-width: 0; font-size: var(--fs-14); line-height: 1.4; color: var(--c-ink-2); }
.ibar__t strong { display: block; font-size: var(--fs-14); color: var(--c-ink); }

/* ── 연작 코스 이동(고종시 마실길 1·2·3코스 등) */
.series { padding: var(--s-5) var(--gutter) 0; }
.series__t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: var(--fs-15); }
.series__t .ic { width: 18px; height: 18px; color: var(--c-primary); }
.series__t strong { font-weight: var(--fw-bold); }
.series__t span { font-size: var(--fs-14); color: var(--muted); }
.series__l { display: flex; gap: 6px; margin-top: var(--s-2); padding: 4px; border-radius: var(--r-md); background: var(--c-bg); }
.series__l li { flex: 1; min-width: 0; display: flex; }
.series__a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 56px; padding: 6px 4px; border-radius: 12px; text-align: center; transition: background var(--dur-1), transform var(--dur-1); }
.series__a b { font-size: var(--fs-15); font-weight: var(--fw-bold); }
.series__a small { font-size: var(--fs-12); color: var(--muted); }
a.series__a:active { transform: scale(0.98); background: var(--c-surface-2); }
.series__a[aria-current] { background: var(--c-surface); color: var(--c-primary); box-shadow: 0 1px 3px rgba(25, 31, 40, 0.12); }
.series__a[aria-current] small { color: var(--c-ink-2); }

/* ── 코스 길찾기: 시점·종점 */
.dir__k { align-items: flex-start; }
.dir__k .paren { font-size: var(--fs-13); }
.dir__b { display: inline-grid; place-items: center; flex: none; min-height: 1.375rem; margin-top: 1px; padding: 2px 8px; border-radius: 7px; background: var(--c-primary); color: #fff; font-size: var(--fs-12); font-weight: var(--fw-bold); }
.dir__b--e { background: var(--c-ink); }
.dir + .dir__k { margin-top: var(--s-5); }
@media (hover: hover) {
  a.series__a:hover { background: var(--c-surface); }
}

/* ── 「오늘, 완주」 테마 목록 */
.tcards { display: flex; flex-direction: column; gap: var(--card-gap); padding: 0 var(--card-x); }
.tcard { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--c-surface); }
.tcard .media { border-radius: 0; }
.tcard__b { display: flex; flex-direction: column; gap: 6px; padding: 16px var(--gutter) var(--gutter); }
.tcard .over { color: var(--c-primary); }
.tcard__n { font-size: var(--fs-20); font-weight: var(--fw-bold); }
/* 카드 전체를 누를 수 있게 제목 링크를 카드 크기로 넓힌다(읽어 줄 때는 이름만 읽힌다) */
.tcard__n a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tcard__n a:focus-visible { outline: none; }
.tcard:has(a:focus-visible) { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.tcard__d { font-size: var(--fs-15); line-height: 1.5; color: var(--c-ink-2); }
.tpath { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 4px; padding: 12px 14px; border-radius: var(--r-md); background: var(--c-surface-2); }
.tpath__i { position: relative; display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-14); line-height: 1.45; }
.tpath__i:not(:last-child)::after { content: ""; position: absolute; top: 24px; bottom: -6px; left: 10px; width: 2px; background: repeating-linear-gradient(var(--c-line-strong) 0 3px, transparent 3px 6px); }
.tpath__n { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: var(--fs-12); font-weight: var(--fw-bold); line-height: 1; }
/* 마지막 장소는 주황. 흰 글자와 4.5:1 을 넘기려고 글자용 주황(--accent-t)을 쓴다(지도 번호·하루 동선도 같다) */
.tpath__i.is-p:not(:has(~ .tpath__i.is-p)) .tpath__n { background: var(--accent-t); }
.tpath__d { position: relative; flex: none; width: 22px; height: 22px; }
.tpath__d::before { content: ""; position: absolute; top: 5px; left: 5px; width: 12px; height: 12px; border: 2px solid var(--c-line-strong); border-radius: 50%; background: var(--c-surface-2); box-sizing: border-box; }
.tpath__t { flex: 1; min-width: 0; padding-top: 1px; font-weight: var(--fw-semibold); color: var(--c-ink); }
.tpath__t small { display: inline-block; margin-right: 6px; font-size: var(--fs-12); font-weight: var(--fw-bold); color: var(--c-primary); }
.tpath__note { display: -webkit-inline-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; font-weight: var(--fw-medium); color: var(--muted); }
.tcard .meta { margin-top: 2px; }
.clist__a--today .clist__ic { background: var(--c-tint-mint); color: var(--c-primary); }

/* ── 테마 상세: 번호 지도와 하루 동선 */
.tmap { position: relative; }
.tmap__map { z-index: 0; isolation: isolate; height: 264px; background: var(--c-bg-deep); }
.tmap__msg { position: absolute; top: 10px; right: 10px; left: 10px; z-index: 1; padding: 8px 12px; border-radius: var(--r-sm); background: rgba(25, 31, 40, 0.88); color: #fff; font-size: var(--fs-14); line-height: 1.5; }
.pinw--step { display: grid; place-items: center; border-radius: 50%; }
.step { display: grid; place-items: center; width: 32px; height: 32px; border: 2.5px solid #fff; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: var(--fs-15); font-weight: var(--fw-bold); line-height: 1; box-shadow: 0 2px 6px rgba(25, 31, 40, 0.38); }
.step.is-end { background: var(--accent-t); }
.step.is-approx { border-style: dashed; }
.pinw--step:focus-visible { outline: 3px solid var(--c-ink); outline-offset: -3px; }

.stl { position: relative; padding-left: 42px; }
.stl__i { position: relative; padding-bottom: var(--s-6); border-radius: var(--r-md); outline-offset: 4px; }
.stl__i:last-child { padding-bottom: 0; }
/* 단계 사이를 잇는 점선(번호 표지 가운데를 지난다) */
.stl__i:not(:last-child)::after { content: ""; position: absolute; top: 34px; bottom: 2px; left: -28px; width: 2px; background: repeating-linear-gradient(var(--c-line-strong) 0 5px, transparent 5px 10px); }
.stl__m { position: absolute; top: 0; left: -42px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: var(--fs-14); font-weight: var(--fw-bold); line-height: 1; box-shadow: 0 0 0 4px var(--c-surface); }
.stl__i.is-end .stl__m { background: var(--accent-t); }
.stl__i--n .stl__m { top: 7px; left: -35px; width: 16px; height: 16px; border: 3px solid var(--c-line-strong); background: var(--c-surface); }
.stl__i--s .stl__m { border: 2px solid var(--c-cat-local); background: var(--c-surface); color: var(--c-cat-local); }
.stl__m .ic { width: 16px; height: 16px; }
.stl__k { display: flex; align-items: center; min-height: 30px; font-size: var(--fs-14); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); color: var(--c-primary); }
.stl__i--n .stl__k, .stl__i--s .stl__k { color: var(--c-ink-2); }
.stl__card { display: flex; align-items: center; gap: var(--s-3); margin-top: 4px; padding: 10px; border-radius: var(--r-md); background: var(--c-surface-2); transition: box-shadow var(--dur-2); }
.stl__card .media--sq { width: 4.25rem; border-radius: 12px; }
.stl__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stl__n { font-size: var(--fs-16); font-weight: var(--fw-bold); line-height: 1.35; }
.stl__n .paren { font-size: var(--fs-13); }
.stl__b small { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: var(--fs-14); line-height: 1.45; color: var(--muted); }
.stl__card > .ic { width: 18px; height: 18px; color: var(--c-ink-4); }
.stl__note { margin-top: var(--s-2); font-size: var(--fs-15); line-height: 1.6; color: var(--c-ink-2); }
.stl__i--n .stl__note { margin-top: 2px; padding: 10px 14px; border: 1px dashed var(--c-line-strong); border-radius: var(--r-md); background: var(--c-surface); }
.stl__dir { margin-top: var(--s-3); }
.stl__dir .btn { font-size: var(--fs-14); }
.stl__dir .note { margin-top: var(--s-2); }
.stl__dk { display: flex; flex-wrap: wrap; gap: 0 4px; margin-bottom: 6px; font-size: var(--fs-14); font-weight: var(--fw-semibold); color: var(--c-ink-2); }
.stl__dk .paren { display: inline; margin: 0; }
.stl__dn { margin-top: var(--s-2); }
.stl__gap { display: flex; align-items: center; gap: 6px; margin: var(--s-4) 0 0 -6px; }
.stl__gap span { padding: 5px 12px; border-radius: var(--r-pill); background: var(--c-bg); font-size: var(--fs-13); font-weight: var(--fw-bold); color: var(--c-ink-2); }
.stl__gap .ic { flex: none; width: 16px; height: 16px; color: var(--c-ink-4); transform: rotate(90deg); }
.stl__foot { margin-top: var(--s-5); }
.stl__i.is-hl .stl__card, .stl__i--n.is-hl .stl__note { box-shadow: 0 0 0 3px var(--c-accent); }
.stl__i:focus { outline: none; }
.stl__i:focus-visible { outline: 2px solid var(--c-primary); }

/* ── 예약·문의 버튼(관리자가 넣은 item.booking) */
.cta { padding: var(--s-5) var(--gutter) 0; }
.cta .btn .ic { width: 20px; height: 20px; }
.cta__s { margin-top: 6px; font-size: var(--fs-13); color: var(--muted); text-align: center; }

/* ── 예시 업체·이용 정보 */
.sample { margin: var(--s-4) var(--gutter) 0; padding: 12px 14px; border: 1.5px dashed var(--accent-t); border-radius: var(--r-md); background: var(--c-accent-soft); font-size: var(--fs-14); line-height: 1.55; color: var(--c-ink); }
.sample__t { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; font-size: var(--fs-15); color: var(--accent-t); }
.sample__t .ic { width: 20px; height: 20px; }
.sample__s { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--c-ink-2); }
.sample__s .ic { width: 16px; height: 16px; }
/* 이용 정보: 회색 칸 안의 이름 · 값 줄 */
.info { overflow: hidden; border-radius: var(--r-md); background: var(--c-surface-2); }
.info > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--s-2); padding: 13px var(--s-4); }
.info > div + div { border-top: 1px solid var(--c-line); }
.info dt { font-size: var(--fs-14); font-weight: var(--fw-semibold); color: var(--c-ink-2); }
.info dd { font-size: var(--fs-15); font-weight: var(--fw-medium); color: var(--c-ink); }

/* ── 지도: 예시 업체 핀 */
.pinx { position: relative; display: grid; place-items: center; }
.pin__tag { position: absolute; top: -13px; left: 50%; padding: 2px 6px; border: 1px dashed var(--accent-t); border-radius: 6px; background: #fff; color: var(--accent-t); font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap; transform: translateX(-50%); box-shadow: 0 1px 3px rgba(25, 31, 40, 0.22); }
.mcard__act--1 { grid-template-columns: 1fr; }
