/* 시장 가이드맵 화면 모양 (색은 config.js 의 colors 에서 바꾸세요) */
:root {
  --main: #fe8100;
  --point: #ffb000;
  --bg: #f5f5f8;
  --card: #ffffff;
  --text: #1f2230;
  --sub: #7a7d8c;
  --line: #ececf2;
  --head-h: 70px;
  --nav-h: 78px;
  --shadow: 0 4px 16px rgba(30, 34, 60, .07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  background: #e8e9f0;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.noscroll { overflow: hidden; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12px 12px, color-mix(in srgb, var(--main) 9%, transparent) 2px, transparent 2.5px) 0 0 / 34px 34px,
    var(--bg);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, .06);
}
/* 꿈돌이·꿈순이를 연하게 흩뿌린 배경 (config.js 의 mascot: false 면 원래 점무늬) */
.mascot #app {
  background: url("images/kkumdori/bg_pattern.webp") center top / 100% auto repeat-y, var(--bg);
}
main { padding-bottom: calc(var(--nav-h) + 24px); }

/* ───────── 위쪽 머리 (로고 + 검색) ───────── */
.top {
  position: sticky; top: 0; z-index: 40;
  height: var(--head-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 6px 18px rgba(0, 0, 0, .04);
}
.logo {
  display: flex; align-items: center; gap: 4px;
  font-family: "Nanum Brush Script", cursive;
  font-size: 34px; line-height: 1; white-space: nowrap; color: #1a1a1a;
}
.seal {
  font-family: "Pretendard", sans-serif;
  font-size: 9px; font-weight: 800; line-height: 1.05;
  color: #e0383e; border: 1.6px solid #e0383e; border-radius: 3px;
  padding: 2px 2px; max-width: 26px; text-align: center; word-break: keep-all;
  transform: rotate(-4deg);
}
.logo { min-width: 0; overflow: hidden; }
html:not([lang="ko"]) .logo { font-size: 28px; }
.search { flex: 1; position: relative; min-width: 140px; }
.search input {
  width: 100%; height: 40px;
  border: 0; border-radius: 12px; outline: none;
  background: rgba(238, 239, 245, .95);
  padding: 0 40px 0 14px;
  font: inherit; font-size: 14px; color: var(--text);
}
.search input::placeholder { color: #9a9cab; }
.search input:focus { box-shadow: 0 0 0 2px var(--main) inset; background: #fff; }
.search input::-webkit-search-cancel-button { display: none; }
.search .ico { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: #8a8c9a; pointer-events: none; display: flex; }
.results {
  position: absolute; top: 46px; left: 0; right: 0;
  background: #fff; border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
  max-height: 60vh; overflow: auto; padding: 6px;
}
.res { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; }
.res:hover, .res:focus { background: #f2f3fa; outline: none; }
.res-emo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; background: color-mix(in srgb, var(--c) 30%, #fff); }
.res b { display: block; font-size: 14px; }
.res small { color: var(--sub); font-size: 12px; }
.res-none { padding: 16px; text-align: center; color: var(--sub); font-size: 13px; }

/* ───────── 아래 메뉴 ───────── */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(100%, 480px); height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .08);
  z-index: 50;
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 11.5px; font-weight: 700; color: #1f2230; line-height: 1.2;
  text-align: center; letter-spacing: -.02em; padding: 0 3px; word-break: keep-all;
}
.tabbar a svg { width: 26px; height: 26px; }
.tabbar a.on { color: var(--main); }

/* ───────── 홈: 큰 광고판 ───────── */
.hero { position: relative; margin-top: calc(-1 * var(--head-h)); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; scroll-snap-align: start;
  height: min(74vh, 620px); min-height: 420px;
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  background: linear-gradient(165deg, var(--c1), var(--c2));
}
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide > img + .slide-text { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.slide-deco span { position: absolute; line-height: 1; user-select: none; }
.slide-deco .d1 { font-size: 220px; right: -40px; top: 18%; filter: blur(1px); opacity: .9; }
.slide-deco .d2 { font-size: 110px; left: -20px; top: 22%; filter: blur(5px); opacity: .55; }
.slide-deco .d3 { font-size: 70px; right: 34%; top: 12%; filter: blur(8px); opacity: .45; }
.slide-deco .d4 { font-size: 46px; left: 18%; bottom: 36%; filter: blur(2px); opacity: .6; }
.slide-deco::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, .7) 100%);
}
.slide-text { position: relative; z-index: 2; padding: 0 24px 70px; }
.slide-text h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.slide-text p { font-size: 15px; margin-top: 6px; color: #3a3d4c; }
.slide > img + .slide-text p { color: #fff; }
.more {
  display: inline-block; margin-top: 20px; padding: 12px 22px; border-radius: 10px;
  background: linear-gradient(135deg, var(--main), color-mix(in srgb, var(--main) 75%, #ffc94d));
  color: #fff; font-weight: 700; font-size: 14px; text-shadow: none;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--main) 35%, transparent);
}
.dots { position: absolute; left: 24px; bottom: 30px; display: flex; gap: 6px; z-index: 3; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, .18); transition: width .25s, background .25s; }
.dots i.on { width: 20px; background: var(--main); }

/* ───────── 홈: 공통 구역 ───────── */
.sec { padding: 26px 16px 6px; }
.sec-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; white-space: pre-line; }
.sec-sub { font-size: 14px; color: var(--sub); margin-top: 4px; }
.sec-head { margin-bottom: 14px; }

.weather {
  display: flex; justify-content: space-between; align-items: center;
  border-radius: 20px; padding: 18px 22px; color: #fff;
  background: linear-gradient(135deg, var(--main), color-mix(in srgb, var(--main) 60%, #ffc94d));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--main) 30%, transparent);
}
.w-name { font-size: 14px; font-weight: 600; opacity: .9; }
.w-temp { display: block; font-size: 34px; font-weight: 800; line-height: 1.15; margin-top: 2px; }
.w-desc { font-size: 14px; opacity: .95; }
.w-icon { font-size: 54px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .12)); }

.quick { display: grid; gap: 10px; }
.quick a {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow);
}
.quick .q-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: color-mix(in srgb, var(--main) 13%, #fff); }
.quick .q-ico.med { background: #ffeef3; }
.quick b { display: block; font-size: 15px; }
.quick small { display: block; font-size: 13px; color: var(--sub); margin-top: 2px; }
.quick .arrow { margin-left: auto; color: #b5b7c4; }

/* 옆으로 넘기는 가게 줄 */
.hscroll {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity;
  margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hcard { flex: 0 0 158px; scroll-snap-align: start; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.hcard .info { padding: 10px 12px 12px; }
.hcard b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard p { font-size: 12.5px; color: var(--sub); margin-top: 3px; height: 34px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.38; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px; font-size: 12px; color: #555869; }
.meta .price { color: var(--main); font-weight: 700; }

/* 사진 자리 (사진이 없으면 색 + 그림) */
.ph {
  width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 30%, #fff), var(--c));
}
.ph span { font-size: 46px; line-height: 1; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .15)); }
img.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #ddd; }

/* 키워드 동그라미 */
.kw { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 6px; }
.kw a { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; text-align: center; }
.kw .circ { width: 62px; height: 62px; }

/* 추천 (말풍선 + 카드, 두 줄 엇갈림) */
.rec-cols { columns: 2; column-gap: 14px; }
.rec { display: block; break-inside: avoid; margin-bottom: 18px; }
.bubble {
  position: relative; background: #fff; border-radius: 14px; padding: 10px 12px;
  font-size: 12.5px; line-height: 1.45; color: #3a3d4c; box-shadow: var(--shadow); margin-bottom: 12px;
}
.bubble::after {
  content: ""; position: absolute; left: 20px; bottom: -6px; width: 13px; height: 13px;
  background: #fff; transform: rotate(45deg); border-radius: 2px;
}
.rec-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.rec-card .ph, .rec-card img.photo { aspect-ratio: var(--ar, 4 / 3); }
.rec-info { padding: 10px 12px 12px; position: relative; }
.rec-info b { display: block; font-size: 14.5px; padding-right: 54px; }
.rec-info span { font-size: 12px; color: var(--sub); }
.pill-price { position: absolute; right: 10px; top: 10px; background: #eef0f6; color: #555869; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }

/* ───────── 카테고리 동그라미 줄 ───────── */
.chips {
  display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none;
  padding: 14px 16px 12px;
  background: rgba(245, 245, 248, .96);
}
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #4a4d5c; text-align: center; word-break: keep-all; }
.circ {
  width: 58px; height: 58px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; font-size: 26px; line-height: 1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .08); border: 2.5px solid transparent;
  background-image: radial-gradient(circle at 35% 30%, #fff, color-mix(in srgb, var(--c, #ccd) 28%, #fff));
}
.circ.all { font-size: 14px; font-weight: 900; color: var(--main); background: #fff; }
.chip.on { color: var(--main); }
.chip.on .circ { border-color: var(--main); box-shadow: 0 0 0 3px color-mix(in srgb, var(--main) 18%, transparent); }

.list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.list-head b { font-size: 15px; }
.count-msg { font-size: 13px; color: var(--sub); }
.count-msg b { color: var(--main); font-weight: 800; font-size: 14px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gcard { background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.gcard .info { padding: 10px 12px 13px; }
.gcard b { display: block; font-size: 15px; }
.gcard p { font-size: 12.5px; color: var(--sub); margin-top: 3px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--sub); }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: #9a9cab; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.on { color: #20b26b; }

/* ───────── 지도 ───────── */
.map { height: 52vh; min-height: 300px; background: #e9eef3; position: relative; z-index: 1; }
.map-fail { height: 100%; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--sub); }
.pin {
  width: 38px; height: 38px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: #fff; border: 3px solid var(--c); display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
}
.pin span { transform: rotate(45deg); font-size: 18px; line-height: 1; }
.leaflet-container { font-family: inherit; }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content { margin: 12px 14px; min-width: 170px; }
.pop b { display: block; font-size: 15px; }
.pop p { margin: 4px 0 6px !important; color: var(--sub); font-size: 12.5px; }
.pop .meta { margin-top: 0; }
.pop a.go { display: block; margin-top: 10px; text-align: center; background: var(--main); color: #fff !important; border-radius: 9px; padding: 8px; font-weight: 700; }

/* ───────── 가게 자세히 ───────── */
.detail-photo { position: relative; }
.detail-photo .ph, .detail-photo img.photo { aspect-ratio: 4 / 3.2; }
.detail-photo .ph span { font-size: 96px; }
.back {
  position: absolute; top: 14px; left: 14px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); display: grid; place-items: center; box-shadow: var(--shadow);
}
.detail-body { position: relative; margin-top: -26px; background: var(--bg); border-radius: 26px 26px 0 0; padding: 26px 20px 10px; }
.cat-tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--main); background: color-mix(in srgb, var(--main) 12%, #fff); padding: 4px 10px; border-radius: 20px; }
.detail-body h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 10px; }
.detail-body .desc { font-size: 15px; color: #4a4d5c; margin-top: 6px; }
.facts { list-style: none; background: #fff; border-radius: 18px; padding: 6px 18px; margin-top: 20px; box-shadow: var(--shadow); }
.facts li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts li:last-child { border-bottom: 0; }
.facts li > span { color: var(--sub); flex-shrink: 0; }
.facts li > b { text-align: right; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.facts a { color: var(--main); }
.story { margin-top: 18px; font-size: 14.5px; line-height: 1.7; color: #3a3d4c; background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px; border-radius: 14px; font-weight: 700; font-size: 14.5px; background: #fff; box-shadow: var(--shadow); }
.btn.primary { background: var(--main); color: #fff; }

/* ───────── 맨 아래 정보 ───────── */
.foot { margin-top: 36px; padding: 28px 20px 10px; text-align: center; font-size: 12.5px; color: #6c6f7e; line-height: 1.75; border-top: 1px solid var(--line); }
.foot > b { display: block; font-size: 15px; color: #33364a; }
.foot .copy { margin-top: 12px; font-size: 11.5px; color: #9a9cab; }
.foot-btns { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.fbtn { padding: 8px 18px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: #4a4d5c; }

/* ───────── 첫 화면 (언어 고르기) ───────── */
.intro {
  position: fixed; inset: 0; z-index: 100; overflow: hidden;
  background: linear-gradient(180deg, #0a1430 0%, #14275a 52%, #26407c 100%);
  display: flex; flex-direction: column; align-items: center;
  transition: opacity .45s ease;
}
.intro.bye { opacity: 0; pointer-events: none; }
.intro .star {
  position: absolute; border-radius: 50%; background: #fff3c4;
  animation: twinkle var(--d) ease-in-out var(--dl) infinite;
}
.intro .star.gold {
  border-radius: 0; background: #ffd65e;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 6px rgba(255, 214, 94, .8));
}
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
.crescent {
  position: absolute; top: 5%; left: 7%; width: clamp(54px, 15vw, 92px); height: clamp(54px, 15vw, 92px); border-radius: 50%;
  box-shadow: 22px 10px 0 0 #f4cd55; filter: drop-shadow(0 0 22px rgba(244, 205, 85, .55));
  transform: rotate(-10deg);
}
.shoot {
  position: absolute; width: 140px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .85), transparent);
  transform: rotate(-32deg); opacity: 0;
  animation: shoot 7s linear infinite;
}
.shoot.s2 { animation-delay: 3.4s; }
@keyframes shoot {
  0% { opacity: 0; translate: 0 0; }
  4% { opacity: 1; }
  14% { opacity: 0; translate: -260px 160px; }
  100% { opacity: 0; translate: -260px 160px; }
}
.fullmoon {
  position: absolute; left: 50%; bottom: -18vh; transform: translateX(-50%);
  width: min(96vw, 680px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 44% 38%, #fffdf0 0%, #f3ecd2 55%, #ddd2ad 100%);
  box-shadow: 0 0 140px 70px rgba(255, 208, 110, .42), 0 0 300px 120px rgba(255, 190, 90, .18);
}
.fullmoon::before, .fullmoon::after { content: ""; position: absolute; border-radius: 50%; background: rgba(200, 188, 150, .35); }
.fullmoon::before { width: 14%; height: 14%; left: 26%; top: 22%; }
.fullmoon::after { width: 9%; height: 9%; left: 60%; top: 30%; }
.town { position: absolute; left: 0; bottom: 0; width: 100%; height: 24vh; }

.intro-face { position: relative; z-index: 2; margin-top: 11vh; text-align: center; transition: opacity .3s, transform .3s; padding: 0 16px; }
.intro-title { font-family: "Jua", "Pretendard", sans-serif; font-weight: 400; line-height: 1.12; }
.intro-title .t1, .intro-title .t2 {
  display: block;
  text-shadow:
    3px 0 #fff, -3px 0 #fff, 0 3px #fff, 0 -3px #fff,
    2px 2px #fff, -2px -2px #fff, 2px -2px #fff, -2px 2px #fff,
    0 6px 14px rgba(0, 0, 0, .35);
}
.intro-title .t1 { font-size: 26px; color: #ff4f98; }
.intro-title .t2 { font-size: clamp(38px, 11vw, 52px); color: #2f6bff; margin-top: 4px; }
.intro-tag { margin-top: 16px; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .03em; }
.lang-btn {
  margin-top: 42px; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; border-radius: 30px; color: #fff; font-weight: 700; letter-spacing: .05em;
  background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .25);
}
.lang-btn::after { content: ""; border: 6px solid transparent; border-top: 8px solid #fff; border-bottom: 0; }
.lang-btn:hover { background: rgba(255, 255, 255, .3); }

.lang-dim { position: absolute; inset: 0; z-index: 3; background: rgba(5, 10, 30, .25); opacity: 0; pointer-events: none; transition: opacity .3s; }
.lang-list {
  position: absolute; z-index: 4; top: 50%; left: 50%;
  width: min(84vw, 260px); background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  transform: translate(-50%, -46%) scale(.96); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.lang-list button { display: flex; align-items: center; width: 100%; padding: 4px; border-bottom: 1px solid #e9e9ee; }
.lang-list button:last-child { border-bottom: 0; }
.lang-list button:hover { background: #f4f5fb; }
.lang-list svg { width: 72px; height: 48px; border-radius: 2px; }
.lang-list span { flex: 1; text-align: center; font-weight: 700; font-size: 14px; color: #222; }
.intro.open .intro-face { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.intro.open .lang-dim { opacity: 1; pointer-events: auto; }
.intro.open .lang-list { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }

@media (prefers-reduced-motion: reduce) {
  .intro .star, .shoot { animation: none; }
  .slides { scroll-behavior: auto; }
}

/* ───────── 로고 그림 ───────── */
.logo-img { height: 56px; width: auto; max-width: 100%; object-fit: contain; }
.intro-logo {
  margin: 16px auto 0; width: min(76vw, 300px);
  background: #fff; border-radius: 28px; padding: 20px 24px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .22), 0 18px 44px rgba(0, 0, 0, .35);
}
.intro-logo img { width: 100%; height: auto; }
.foot-logo { height: 72px; width: auto; margin: 0 auto 12px; }

/* ───────── 시장소개 ───────── */
.about { background: #fff; border-radius: 22px; padding: 22px 20px; box-shadow: var(--shadow); }
.about-text { margin-top: 10px; font-size: 14.5px; line-height: 1.75; color: #3a3d4c; white-space: pre-line; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.fact { background: color-mix(in srgb, var(--main) 7%, #fff); border-radius: 14px; padding: 12px 14px; }
.fact-ico { font-size: 20px; line-height: 1; }
.fact small { display: block; margin-top: 6px; font-size: 12px; color: var(--sub); }
.fact b { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.35; }
.sec-head.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.see-all { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; color: var(--main); white-space: nowrap; }
.see-all svg { width: 15px; height: 15px; }

/* ───────── 행사/이벤트 ───────── */
.ev-mini { flex: 0 0 220px; scroll-snap-align: start; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.ev-mini-ph, .ev-ph { position: relative; }
.ev-mini-ph .ph, .ev-mini-ph img.photo { aspect-ratio: 16 / 9; }
.ev-mini .info { padding: 10px 12px 12px; }
.ev-mini b { display: block; font-size: 14.5px; }
.ev-mini span { font-size: 12px; color: var(--sub); }
.ev-st { position: absolute; left: 10px; top: 10px; font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 20px; color: #fff; background: #9a9cab; }
.ev-st.st-ongoing { background: var(--main); }
.ev-st.st-upcoming { background: #3c8de0; }
.seg { display: flex; gap: 6px; background: #ebecf2; padding: 4px; border-radius: 14px; margin-bottom: 16px; }
.seg-btn { flex: 1; text-align: center; padding: 9px 4px; border-radius: 11px; font-size: 13px; font-weight: 700; color: #6c6f7e; }
.seg-btn.on { background: #fff; color: var(--main); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.ev-list { display: grid; gap: 16px; }
.ev { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.ev-ph .ph, .ev-ph img.photo { aspect-ratio: 16 / 8; }
.ev-ph .ph span { font-size: 64px; }
.ev-body { padding: 16px 18px 18px; }
.ev-body h3 { font-size: 18px; font-weight: 800; }
.ev-desc { margin-top: 6px; font-size: 14px; line-height: 1.6; color: #4a4d5c; }
.ev-meta { list-style: none; margin-top: 12px; border-top: 1px solid var(--line); }
.ev-meta li { display: flex; gap: 12px; padding: 9px 0 0; font-size: 13.5px; }
.ev-meta li span { width: 40px; flex-shrink: 0; color: var(--sub); }
.ev-meta li b { font-weight: 600; }
.ev-link { margin-top: 14px; }

/* ───────── 오시는길/편의시설 ───────── */
.chip .circ img { width: 70%; height: 70%; object-fit: contain; }
.map-info { padding-top: 18px; }
.way-card { background: #fff; border-radius: 20px; padding: 18px 18px; box-shadow: var(--shadow); }
.way-card h3 { font-size: 18px; font-weight: 800; }
.way-addr { margin: 8px 0 14px; font-size: 14px; color: #3a3d4c; line-height: 1.5; }
.info-h { font-size: 16px; font-weight: 800; margin: 22px 0 10px; }
.map-info > .info-h:first-child { margin-top: 0; }
.info-h small { font-size: 12px; color: #fff; background: #b9bccb; border-radius: 20px; padding: 2px 8px; margin-left: 4px; vertical-align: 2px; }
.trans { list-style: none; background: #fff; border-radius: 20px; padding: 4px 18px; box-shadow: var(--shadow); }
.trans li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.trans li:last-child { border-bottom: 0; }
.t-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: color-mix(in srgb, var(--main) 12%, #fff); }
.trans b { font-size: 14.5px; }
.trans p { font-size: 13.5px; color: #4a4d5c; margin-top: 2px; line-height: 1.5; white-space: pre-line; }
.fac-list { display: grid; gap: 8px; }
.fac { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.fac:hover { background: #fffaf3; }
.fac-emo { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: #f2f3f8; }
.fac b { display: block; font-size: 14.5px; }
.fac small { display: block; font-size: 12.5px; color: var(--sub); margin-top: 1px; }
.fac .arrow { margin-left: auto; color: #b5b7c4; }
.pin.big { width: 52px; height: 52px; border-width: 4px; }
.pin.big span { font-size: 22px; }
.pin img { width: 34px; height: 34px; object-fit: contain; }

/* ───────── 관리자 모드 ───────── */
.admin-link { display: block; width: max-content; margin: 26px auto 0; padding: 6px 12px; font-size: 12px; color: #a3a5b3; border-radius: 20px; }
.admin-link:hover { background: #fff; color: var(--sub); }

.adm { background: #fff; border: 2px solid color-mix(in srgb, var(--main) 45%, #fff); border-radius: 18px; padding: 14px 14px 12px; margin-bottom: 18px; box-shadow: var(--shadow); }
.adm-top { display: flex; justify-content: space-between; align-items: center; }
.adm-top b { font-size: 15px; color: var(--main); }
.adm-out { font-size: 12.5px; color: var(--sub); padding: 5px 10px; border-radius: 20px; background: #f1f2f6; }
.adm-state { margin-top: 10px; font-size: 13px; line-height: 1.5; padding: 9px 11px; border-radius: 12px; }
.adm-state.warn { background: #fff4e5; color: #8a4b00; }
.adm-state.warn small { color: #a8702e; }
.adm-state.ok { background: #eaf8f0; color: #1d7a4a; }
.adm-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.adm-btns .btn { padding: 12px 8px; font-size: 14px; box-shadow: none; border: 1px solid var(--line); }
.adm-btns .btn.primary { border-color: var(--main); }
.adm-links { display: flex; gap: 14px; justify-content: center; margin-top: 10px; font-size: 12.5px; }
.adm-links a, .adm-links button { color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }
.adm-hint { margin-top: 8px; text-align: center; font-size: 12px; color: var(--sub); }

.gwrap { position: relative; display: flex; flex-direction: column; }
.gwrap > .gcard { flex: 1; padding-bottom: 40px; }
.edit-fab { position: absolute; left: 10px; right: 10px; bottom: 10px; text-align: center; padding: 7px 0; border-radius: 10px; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--main) 12%, #fff); color: var(--main); }
.edit-fab:hover { background: var(--main); color: #fff; }
.st-tag { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 20px; color: #fff; background: #3c8de0; }
.st-tag.new { background: #20b26b; }
.adm-edit-btn { margin-top: 12px; border: 2px dashed color-mix(in srgb, var(--main) 50%, #fff); color: var(--main); box-shadow: none; }

.adm-page { padding-top: 18px; }
.adm-card { background: #fff; border-radius: 20px; padding: 26px 20px 20px; box-shadow: var(--shadow); text-align: center; }
.adm-lock { font-size: 40px; }
.adm-card h2 { font-size: 20px; font-weight: 800; margin: 6px 0 6px; }
.adm-card .adm-form { text-align: left; margin-top: 18px; }

.adm-form { display: flex; flex-direction: column; gap: 14px; }
.adm-form.edit { background: #fff; border-radius: 20px; padding: 16px 16px 20px; box-shadow: var(--shadow); }
.form-head { display: flex; align-items: center; gap: 6px; margin: -4px 0 2px; }
.form-head h2 { font-size: 19px; font-weight: 800; }
.form-back { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #f1f2f6; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lbl { font-size: 13.5px; font-weight: 700; color: #3a3d4d; }
.lbl i { color: #e5484d; font-style: normal; }
.adm-form input:not([type=checkbox]):not([type=file]), .adm-form select, .adm-form textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 11px 12px; border: 1.5px solid #dfe1ea; border-radius: 12px; background: #fff; color: var(--text);
}
.adm-form input:focus, .adm-form select:focus, .adm-form textarea:focus { outline: none; border-color: var(--main); box-shadow: 0 0 0 3px color-mix(in srgb, var(--main) 18%, transparent); }
.adm-form input:disabled { background: #f3f4f7; color: #aaa; }
.adm-form textarea { resize: vertical; line-height: 1.5; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2.hours label { display: flex; flex-direction: column; gap: 4px; }
.row2.hours small { font-size: 12px; color: var(--sub); }
.hint { font-size: 12px; color: var(--sub); line-height: 1.5; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 19px; height: 19px; accent-color: var(--main); }
.check.big { flex-wrap: wrap; padding: 12px; border-radius: 12px; background: #fff8ec; font-weight: 700; }
.check.big small { font-weight: 400; color: var(--sub); font-size: 12px; }
.btn.small { padding: 10px 6px; font-size: 13.5px; box-shadow: none; border: 1px solid var(--line); cursor: pointer; }
.btn.big { padding: 16px; font-size: 16px; }
.adm-form .btn { box-shadow: none; border: 1px solid var(--line); }
.adm-form .btn.primary { border-color: var(--main); }
.btn.danger { color: #e5484d; border-color: #f6c6c7 !important; margin-top: 6px; }
.emap { height: 240px; border-radius: 14px; overflow: hidden; border: 1.5px solid #dfe1ea; z-index: 0; }
.form-err { background: #fdecec; color: #c0352f; font-size: 13.5px; padding: 10px 12px; border-radius: 12px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px); transform: translate(-50%, 20px); width: max-content; max-width: min(440px, calc(100vw - 32px));
  background: rgba(31, 34, 48, .94); color: #fff; font-size: 14px; line-height: 1.45; padding: 12px 16px; border-radius: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 3000; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 만든 곳 (후원사 로고) — 시장 로고 옆 */
.foot-logos { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 14px; }
.foot-logos .foot-logo { margin: 0; }
.foot-sep { width: 1px; height: 56px; background: #d6d8e1; }
.maker { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.maker span { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: #a3a5b3; }
.maker img { height: 70px; width: auto; }

.fac.no-pin small { color: #b08a5a; }

/* 시장 구역 (지도 색칠) */
.zone-legend { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px 2px; scrollbar-width: none; }
.zone-legend::-webkit-scrollbar { display: none; }
.zl { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); color: #3a3d4c; }
.zl i { width: 12px; height: 12px; border-radius: 3px; background: color-mix(in srgb, var(--c) 45%, #fff); border: 1.5px solid var(--c); }
.zl.area i { border-style: dashed; background: color-mix(in srgb, var(--c) 12%, #fff); }
.leaflet-tooltip.zone-label { background: rgba(255, 255, 255, .92); border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 8px; color: #333; }
.leaflet-tooltip.zone-label::before { display: none; }
.zone-labels-off .zone-label { display: none; }

/* 가게 사진 여러 장 (자세히 보기) */
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img.photo { flex: 0 0 100%; scroll-snap-align: start; }
.g-count { position: absolute; right: 14px; top: 14px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.g-dots { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; justify-content: center; gap: 2px; pointer-events: none; }
.g-dots button { pointer-events: auto; position: relative; width: 19px; height: 22px; padding: 0; }
.g-dots button::after { content: ""; position: absolute; left: 6px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 3px rgba(0, 0, 0, .3); transition: .2s; }
.g-dots button.on { width: 30px; }
.g-dots button.on::after { width: 18px; border-radius: 4px; background: #fff; }
.gallery { cursor: zoom-in; outline: none; }
.gallery.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.gallery img.photo { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.g-nav {
  position: absolute; top: calc(50% - 13px); transform: translateY(-50%); z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .9); color: #2a2d3a; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); transition: opacity .2s;
}
.g-nav.prev { left: 12px; }
.g-nav.next { right: 12px; }
.g-nav:disabled { opacity: 0; pointer-events: none; }
.g-zoom { position: absolute; right: 14px; bottom: 40px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .4); color: #fff; pointer-events: none; }
.gallery:focus-visible { box-shadow: inset 0 0 0 3px var(--main); }
@media (hover: none) { .g-nav { display: none; } }   /* 휴대폰은 손가락으로 밀어서 */

/* 사진 크게 보기 */
.viewer { position: fixed; inset: 0; z-index: 500; background: #0b0c11; opacity: 0; transition: opacity .2s; }
.viewer.show { opacity: 1; }
.v-track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.v-track::-webkit-scrollbar { display: none; }
.v-track.dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.v-slide { flex: 0 0 100%; display: grid; place-items: center; scroll-snap-align: start; padding: 64px 12px 40px; min-width: 0; }
.v-slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.v-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 18px; }
.v-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); color: #fff; transition: opacity .2s; }
.v-nav.prev { left: 14px; }
.v-nav.next { right: 14px; }
.v-nav:disabled { opacity: .2; pointer-events: none; }
.v-count { position: absolute; top: calc(24px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.v-close:hover, .v-nav:hover { background: rgba(255, 255, 255, .28); }
@media (hover: none) { .v-nav { display: none; } }


/* 쉬는 날·영업시간 메모, 대표 메뉴 */
.fact-note { flex-basis: 100%; text-align: right; font-size: 12px; font-weight: 400; color: var(--sub); line-height: 1.45; }
.menu-box { margin-top: 18px; background: #fff; border-radius: 18px; padding: 16px 18px 8px; box-shadow: var(--shadow); }
.menu-box h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 4px; }
.menu-list { list-style: none; }
.menu-list li { display: flex; align-items: baseline; gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.menu-list li:last-child { border-bottom: 0; }
.menu-list li span { flex: 1; }
.menu-list li b { color: var(--main); font-weight: 800; white-space: nowrap; }

/* 관리자: 사진 칸, 메뉴 줄, 메모 */
.lbl-sub { font-weight: 400; font-size: 12px; color: var(--sub); margin-left: 4px; }
.pslots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pslot { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #f3f4f7; }
.pslot img { width: 100%; height: 100%; object-fit: cover; }
.pslot.add { cursor: pointer; border: 1.5px dashed #cfd2dc; display: grid; place-items: center; }
.pslot.add .ph { position: absolute; inset: 0; aspect-ratio: auto; opacity: .55; }
.pslot.add .ph span { font-size: 40px; }
.p-add { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: #4a4d5c; background: rgba(255, 255, 255, .9); padding: 6px 10px; border-radius: 10px; }
.p-add small { font-weight: 400; color: var(--sub); font-size: 11px; }
.p-badge, .p-first { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 20px; }
.p-badge { background: var(--main); color: #fff; }
.p-first { background: rgba(255, 255, 255, .92); color: #3a3d4c; }
.p-del { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; display: grid; place-items: center; }
.mrows { display: flex; flex-direction: column; gap: 8px; }
.mrow { display: grid; grid-template-columns: 1.4fr 1fr 32px; gap: 6px; align-items: center; }
.mrow input { padding: 10px !important; font-size: 14px !important; }
.mdel { width: 32px; height: 32px; border-radius: 50%; background: #f1f2f6; color: #888; }
.memo-field textarea { background: #fffbea !important; }
.memo-tag { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 20px; color: #8a4b00; background: #ffe7b8; }
.adm-memo { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: #fffbea; color: #6b5200; font-size: 13px; line-height: 1.5; }
.adm-state.stale { margin-top: 8px; background: #fdecec; color: #a12d27; }
.adm-state.stale small { color: #b4544e; }

/* ───────── 꿈돌이·꿈순이 ───────── */
.intro img[aria-hidden] { -webkit-user-select: none; user-select: none; pointer-events: none; }
.floater { position: absolute; z-index: 1; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); animation: bob 5.5s ease-in-out infinite; }
.floater.f1 { width: clamp(64px, 19vw, 96px); top: 4%; right: 5%; --r: -8deg; }
.floater.f2 { width: clamp(60px, 17vw, 88px); top: 58%; left: 5%; --r: 6deg; animation-duration: 6.5s; animation-delay: -2s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(calc(var(--r, 0deg) * -0.6)); } }
.moon-pair {
  position: absolute; z-index: 1; left: 50%; transform: translateX(-50%);
  bottom: calc(min(96vw, 680px) - 18vh - 8px);
  display: flex; align-items: flex-end; gap: 2px;
}
.moon-pair img { height: clamp(58px, 16vw, 84px); width: auto; }
.moon-pair .mp-dori { animation: sway 4s ease-in-out infinite; transform-origin: 50% 100%; }
.moon-pair .mp-sooni { animation: sway 4s ease-in-out -2s infinite; transform-origin: 50% 100%; }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@media (max-height: 700px) { .floater.f2, .moon-pair { display: none; } }

/* 날씨 칸 위로 빼꼼 */
.w-sec.has-peek { position: relative; padding-top: 50px; }
.w-sec .weather { position: relative; z-index: 1; }
.w-peek { position: absolute; z-index: 0; right: 92px; top: 4px; width: 60px; animation: peek 6s ease-in-out infinite; }
@keyframes peek { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-5px) rotate(-4deg); } 90% { transform: translateY(0) rotate(3deg); } }

/* 오시는 길 카드 */
.way-card { position: relative; }
.way-kkum { position: absolute; right: 12px; top: -34px; width: 58px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .1)); }
.map-info { padding-top: 34px; }

/* 빈 화면 */
.empty-kkum { display: block; width: 92px; margin: 0 auto 12px; opacity: .95; }
.res-kkum { display: block; width: 52px; margin: 2px auto 6px; }

/* 불러오는 화면 */
.loader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-content: center; gap: 14px; justify-items: center;
  background: #f5f5f8; opacity: 0; animation: ld-in .3s ease .35s forwards;
}
.loader img { width: 74px; animation: bob 1.6s ease-in-out infinite; }
.loader span { width: 34px; height: 6px; border-radius: 50%; background: rgba(0, 0, 0, .08); animation: ld-shadow 1.6s ease-in-out infinite; }
.loader.done { opacity: 0 !important; visibility: hidden; transition: opacity .3s, visibility 0s .3s; animation: none; }
@keyframes ld-in { to { opacity: 1; } }
@keyframes ld-shadow { 50% { transform: scaleX(.7); opacity: .6; } }

@media (prefers-reduced-motion: reduce) {
  .floater, .moon-pair img, .w-peek, .loader img, .loader span { animation: none; }
}

/* 저장 파일 받기 창 */
.sv-dim { position: fixed; inset: 0; z-index: 600; background: rgba(20, 22, 32, .45); display: grid; place-items: center; padding: 16px; }
.sv-box { width: min(380px, 100%); background: #fff; border-radius: 20px; padding: 22px 18px 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); display: flex; flex-direction: column; gap: 8px; }
.sv-box h3 { font-size: 18px; font-weight: 800; }
.sv-sub { font-size: 13.5px; color: var(--sub); line-height: 1.5; margin-bottom: 4px; }
.sv-btn { width: 100%; margin-top: 6px; box-shadow: none; border: 1px solid var(--line); }
.sv-btn.primary { border-color: var(--main); }
.sv-btn:disabled { opacity: .6; }
.sv-hint { font-size: 12px; color: var(--sub); line-height: 1.45; padding: 0 2px; }
.sv-msg { font-size: 13px; line-height: 1.5; padding: 10px 12px; border-radius: 12px; margin-top: 4px; }
.sv-msg.ok { background: #eaf8f0; color: #1d7a4a; }
.sv-msg.warn { background: #fff4e5; color: #8a4b00; }
.sv-msg.err { background: #fdecec; color: #c0352f; }
.sv-close { align-self: center; margin-top: 6px; font-size: 13px; color: var(--sub); padding: 6px 12px; }

/* 📍 위치 바로잡기 화면 */
.fix-title { font-size: 21px; font-weight: 800; }
.fix-sub { margin-top: 6px; font-size: 13.5px; color: #4a4d5c; line-height: 1.6; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.fix-mapwrap { position: relative; margin: 12px -16px 0; }
.fixmap { height: 62vh; min-height: 340px; }
.fix-sat { position: absolute; right: 10px; top: 10px; z-index: 500; background: #fff; border-radius: 10px; padding: 7px 10px; font-size: 13px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.fix-bar { position: sticky; bottom: calc(var(--nav-h) + 6px); z-index: 600; margin-top: 10px; background: #3b2618; color: #fff; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.fix-bar b { font-size: 13.5px; }
.fix-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fix-btns .btn { box-shadow: none; border: 0; background: rgba(255,255,255,.16); color: #fff; }
.fix-count { margin: 14px 2px 6px; font-size: 13px; font-weight: 700; color: var(--main); }
.fix-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fx-row { display: flex; align-items: center; gap: 8px; text-align: left; background: #fff; border-radius: 12px; padding: 8px 9px; box-shadow: var(--shadow); border: 2px solid transparent; }
.fx-row.on { border-color: var(--main); }
.fx-emo { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: color-mix(in srgb, var(--c) 35%, #fff); }
.fx-tx { min-width: 0; flex: 1; line-height: 1.25; }
.fx-tx b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-tx small { font-size: 11px; color: var(--sub); }
.fx-st { flex: 0 0 auto; font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 10px; color: #fff; }
.fx-st.moved { background: #FE8100; }
.fx-st.ok { background: #21A675; }
.fx-st.none { background: #b9bccb; }
.leaflet-marker-icon.fx-on .pin { transform: scale(1.3); filter: drop-shadow(0 0 4px #FE8100); }
.fix-send { width: 100%; margin-top: 16px; }
.fix-out { margin-top: 12px; background: #fff; border-radius: 14px; padding: 12px; box-shadow: var(--shadow); font-size: 13.5px; }
.fix-out textarea { width: 100%; margin: 8px 0; font: 12px/1.4 monospace; border: 1.5px solid #dfe1ea; border-radius: 10px; padding: 8px; }
.fix-out .row2 .btn { box-shadow: none; border: 1px solid var(--line); }
.fix-reset { display: block; margin: 18px auto 0; font-size: 12.5px; color: var(--sub); text-decoration: underline; }
