/* ───────── 계절 테마 ─────────
   html[data-season] 값만 바꾸면 색·배경이 바뀜. 새 계절 색은 여기에만 추가 */
:root {
  --bg: #faf5ec; --surface: #fff; --surface-2: #f4ecdf; --surface-3: #ebe0cf;
  --ink: #2b2118; --ink-2: #54463a; --ink-3: #85766a; --line: #ebdfcc;
  --pet: #d0652f; --good: #2f7a4f; --warn: #b7791f; --bad: #b83a2a; --info: #2c6ba0;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(43,33,24,.05), 0 8px 24px rgba(43,33,24,.07);
  --shadow-lg: 0 2px 4px rgba(43,33,24,.06), 0 24px 48px rgba(43,33,24,.14);
  --header-h: 68px;
}
:root[data-season="autumn"] {
  --brand: #b24a22; --brand-hover: #963b19; --brand-soft: #fbe8d8;
  --sky-1: #2a1d30; --sky-2: #6b3130; --sky-3: #d9793f; --sky-4: #f2bd72;
  --m-far: #a25a3c; --m-mid: #8a3a22; --m-near: #4d2217; --tree-dark: #33170f;
  --p-1: #d9622b; --p-2: #e8a33d; --p-3: #b8402a; --p-4: #c9852f;
  --orb: radial-gradient(circle, #ffe2a6 0%, #f7b765 60%, #f2a257 100%); --orb-glow: rgba(247,183,101,.35);
  --map-0: #f6ead6; --map-1: #f1c68e; --map-2: #e6934f; --map-3: #c95a2a; --map-4: #8e3219;
}
:root[data-season="spring"] {
  --brand: #b83b62; --brand-hover: #9a2d50; --brand-soft: #fbe4ec;
  --sky-1: #5a7fb8; --sky-2: #9bb8e0; --sky-3: #f3c9d6; --sky-4: #fbe6d8;
  --m-far: #9fbf8a; --m-mid: #6f9a5d; --m-near: #45703c; --tree-dark: #2f5230;
  --p-1: #f7b6c8; --p-2: #fcd3de; --p-3: #f09bb4; --p-4: #fff0f4;
  --orb: radial-gradient(circle, #fffbe8 0%, #fff1c2 70%, #ffe7a3 100%); --orb-glow: rgba(255,244,200,.45);
  --map-0: #fbeef2; --map-1: #f5c6d4; --map-2: #e98fac; --map-3: #c9577d; --map-4: #8f2f51;
}
:root[data-season="summer"] {
  --brand: #13795b; --brand-hover: #0d5f47; --brand-soft: #dcf3ea;
  --sky-1: #0b3b5c; --sky-2: #1f6f99; --sky-3: #53a9c9; --sky-4: #bfe6ea;
  --m-far: #3f8f6c; --m-mid: #2a7454; --m-near: #16503a; --tree-dark: #0e3a29;
  --p-1: #fff6b3; --p-2: #e6ffcf; --p-3: #fffbd9; --p-4: #d9ffe8;
  --orb: radial-gradient(circle, #fffef0 0%, #fff4b8 65%, #ffe27a 100%); --orb-glow: rgba(255,240,170,.4);
  --map-0: #e6f4ee; --map-1: #a9dcc5; --map-2: #5fb894; --map-3: #2a8a64; --map-4: #125a40;
}
:root[data-season="winter"] {
  --brand: #2c5d8f; --brand-hover: #214a73; --brand-soft: #e1ecf7;
  --sky-1: #121c33; --sky-2: #25365c; --sky-3: #5d7aa6; --sky-4: #b9c9df;
  --m-far: #8fa3bf; --m-mid: #c9d6e6; --m-near: #eef3f9; --tree-dark: #2b3d52;
  --p-1: #ffffff; --p-2: #eef4ff; --p-3: #dbe7f7; --p-4: #ffffff;
  --orb: radial-gradient(circle, #ffffff 0%, #eef3ff 70%, #d7e2f5 100%); --orb-glow: rgba(220,232,255,.35);
  --map-0: #edf2f8; --map-1: #bfd0e4; --map-2: #86a5c9; --map-3: #4e76a6; --map-4: #274b77;
}

/* 히어로 나무 색 */
:root[data-season="autumn"] { --t-1: #d9622b; --t-2: #e8a33d; --t-3: #b8402a; }
:root[data-season="spring"] { --t-1: #f4a7bf; --t-2: #fbd0dc; --t-3: #6f9a5d; }
:root[data-season="summer"] { --t-1: #2f8f5b; --t-2: #4aa36b; --t-3: #1f6e46; }
:root[data-season="winter"] { --t-1: #dfe8f2; --t-2: #f5f8fc; --t-3: #b8c8da; }

/* ───────── 기본 ───────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, system-ui, sans-serif;
  background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; letter-spacing: -0.01em; word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ───────── 버튼 ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 15px; transition: background .2s, color .2s, border-color .2s, transform .1s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-soft:hover { background: var(--brand); color: #fff; }
.btn-line { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn-line:hover { border-color: var(--ink-3); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { height: 38px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); transition: box-shadow .2s, background .2s; }
.icon-btn:hover { box-shadow: var(--shadow); }

/* ───────── 헤더 ───────── */
header.site { position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--header-h); transition: background .3s, box-shadow .3s, color .3s; color: var(--ink); background: rgba(250,245,236,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
body.on-hero header.site:not(.scrolled) { background: transparent; box-shadow: none; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; flex-shrink: 0; }
.logo-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--brand); display: grid; place-items: center; }
.nav-links { display: flex; gap: 6px; font-size: 15px; font-weight: 600; }
.nav-links a { padding: 8px 12px; border-radius: 10px; opacity: .92; display: flex; align-items: center; gap: 6px; }
.nav-links a:hover { background: rgba(127,127,127,.12); }
.nav-links a.on { background: var(--brand-soft); color: var(--brand); opacity: 1; }
body.on-hero header.site:not(.scrolled) .nav-links a.on { background: rgba(255,255,255,.18); color: #fff; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.count-dot { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.season-btn { height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(127,127,127,.3); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.season-menu { position: absolute; top: 60px; right: 24px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; display: none; min-width: 180px; }
.season-menu.open { display: block; }
.season-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; text-align: left; }
.season-menu button:hover { background: var(--surface-2); }
.season-menu button.on { background: var(--brand-soft); color: var(--brand); }

/* 모바일 하단 메뉴 */
.tabbar { display: none; }
@media (max-width: 720px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0; z-index: 1000; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 4px 0; position: relative; }
  .tabbar a.on { color: var(--brand); }
  .tabbar a .count-dot { position: absolute; top: 0; right: 22%; min-width: 17px; height: 17px; font-size: 11px; }
  body { padding-bottom: 68px; }
  .nav-links { display: none; }
}

/* ───────── 히어로 ───────── */
.hero { position: relative; z-index: 5; min-height: 680px; color: #fff; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 38%, var(--sky-3) 72%, var(--sky-4) 100%); }
.orb { position: absolute; right: 18%; bottom: 30%; width: 120px; height: 120px; border-radius: 50%; background: var(--orb); box-shadow: 0 0 120px 40px var(--orb-glow); }
.hero-bg svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 62%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,14,12,.55) 0%, rgba(20,14,12,.18) 55%, transparent 80%); }
.particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.particle { position: absolute; top: -40px; animation: fall linear infinite; }
@keyframes fall {
  0% { transform: translate3d(0, -40px, 0) rotate(0deg); }
  50% { transform: translate3d(60px, 50vh, 0) rotate(200deg); }
  100% { transform: translate3d(-20px, 110vh, 0) rotate(400deg); }
}
.particle.float { top: auto; bottom: -20px; animation-name: rise; }
@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate3d(40px, -70vh, 0); opacity: 0; }
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero .hero-inner { padding-top: calc(var(--header-h) + 32px); padding-bottom: 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); font-size: 14px; font-weight: 600; backdrop-filter: blur(8px); }
.hero h1 { font-size: clamp(38px, 6vw, 66px); line-height: 1.14; font-weight: 800; letter-spacing: -0.04em; margin: 20px 0 16px; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero h1 em { font-style: normal; color: var(--p-2); }
:root[data-season="winter"] .hero h1 em { color: #cfe2ff; }
:root[data-season="summer"] .hero h1 em { color: #c8f7de; }
.hero p.lead { font-size: 18px; max-width: 560px; line-height: 1.65; color: rgba(255,255,255,.92); }
.hero-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.hero-quick a, .hero-quick button { padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: 14px; font-weight: 600; backdrop-filter: blur(6px); transition: background .2s; }
.hero-quick a:hover, .hero-quick button:hover { background: rgba(255,255,255,.26); }
.hero-stats { display: flex; gap: 36px; margin-top: 28px; font-size: 14px; color: rgba(255,255,255,.88); }
.hero-stats b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: #fff; }

/* 검색 + 자동완성 */
.search { position: relative; margin-top: 30px; background: var(--surface); color: var(--ink); border-radius: 999px; display: flex; align-items: stretch; box-shadow: var(--shadow-lg); max-width: 820px; padding: 8px; }
.search .field { flex: 1; padding: 10px 24px; border-radius: 999px; display: flex; flex-direction: column; justify-content: center; min-width: 0; transition: background .2s; }
.search .field:hover { background: var(--surface-2); }
.search .field + .field { border-left: 1px solid var(--line); }
.search label { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.search input, .search select { border: 0; outline: 0; font-size: 16px; color: var(--ink-2); background: transparent; width: 100%; appearance: none; -webkit-appearance: none; }
.search input::placeholder { color: var(--ink-3); }
.search-btn { display: flex; align-items: center; gap: 8px; padding: 0 30px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: 16px; transition: background .2s; }
.search-btn:hover { background: var(--brand-hover); }
.suggest { position: absolute; left: 8px; top: calc(100% + 8px); width: min(520px, calc(100% - 16px)); background: var(--surface); color: var(--ink); border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 8px; display: none; z-index: 20; max-height: 420px; overflow: auto; }
.suggest.open { display: block; }
.suggest .grp { font-size: 12px; font-weight: 700; color: var(--ink-3); padding: 8px 12px 4px; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.suggest a:hover, .suggest a.act { background: var(--surface-2); }
.suggest .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; overflow: hidden; font-size: 18px; }
.suggest .ic img { width: 100%; height: 100%; object-fit: cover; }
.suggest b { display: block; font-weight: 700; font-size: 15px; }
.suggest small { color: var(--ink-3); font-size: 13px; }
.suggest mark { background: none; color: var(--brand); }

/* ───────── 섹션 공통 ───────── */
section.block { padding: 80px 0 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.kicker { font-size: 14px; font-weight: 700; color: var(--brand); margin-bottom: 6px; display: block; }
.sec-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.25; }
.sec-head p { color: var(--ink-2); margin-top: 6px; font-size: 16px; }
.sec-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.see-all { font-weight: 700; color: var(--brand); font-size: 15px; padding: 8px 4px; }
.page { padding-top: calc(var(--header-h) + 28px); min-height: 70vh; }
.crumbs { font-size: 14px; color: var(--ink-3); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.crumbs a:hover { color: var(--brand); }
.page-title { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.25; }

/* ───────── 지도(홈 코로플레스) ───────── */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.card-box { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; }
.map-card { position: relative; padding: 16px 16px 76px; display: flex; flex-direction: column; }
.map-modes { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; align-self: flex-start; position: relative; z-index: 2; }
.map-modes button { padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.map-modes button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
#kmap { width: 100%; height: auto; display: block; margin-top: -8px; }
#kmap path.region { stroke: #fff; stroke-width: 1.2; cursor: pointer; transition: filter .2s, opacity .2s, fill .3s; }
#kmap path.region:hover { filter: brightness(1.06) drop-shadow(0 4px 10px rgba(40,20,10,.25)); }
#kmap.has-sel path.region:not(.sel) { opacity: .45; }
#kmap path.region.sel { stroke: var(--ink); stroke-width: 2.2; }
#kmap text { pointer-events: none; font-family: inherit; text-anchor: middle; }
#kmap .lbl-name { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
#kmap .lbl-count { font-size: 14px; font-weight: 600; }
#kmap .on-dark { fill: #fff; }
#kmap .on-light { fill: var(--ink); }
#kmap .pill rect { fill: #fff; stroke: var(--line); }
#kmap .pill text { font-size: 13px; font-weight: 700; fill: var(--ink); }
#kmap .pill .n { fill: var(--brand); }
#kmap .leader { stroke: var(--ink-3); stroke-width: 1; }
#kmap .dot { fill: var(--ink); stroke: #fff; stroke-width: 1.5; }
.legend { position: absolute; left: 24px; bottom: 22px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); }
.legend b { display: block; font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.legend .row { display: flex; gap: 4px; }
.legend .sw { width: 38px; }
.legend .sw i { display: block; height: 10px; border-radius: 3px; }
.legend .sw span { display: block; font-size: 11px; margin-top: 3px; color: var(--ink-3); text-align: center; }
.map-tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; white-space: nowrap; opacity: 0; transform: translate(-50%, -130%); transition: opacity .15s; z-index: 3; }
.panel { padding: 26px; display: flex; flex-direction: column; gap: 20px; }
.panel .crumb { font-size: 14px; color: var(--ink-3); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.panel .crumb button { color: var(--brand); font-weight: 700; font-size: 14px; }
.panel h3 { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; margin-top: 4px; line-height: 1.2; }
.panel h3 small { font-size: 18px; font-weight: 700; color: var(--brand); margin-left: 6px; letter-spacing: -0.02em; }
.mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mini div { background: var(--surface-2); border-radius: 14px; padding: 12px 10px; text-align: center; }
.mini b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.mini span { font-size: 13px; color: var(--ink-2); }
.sub-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.sgg { display: flex; flex-wrap: wrap; gap: 6px; }
.sgg a { font-size: 14px; padding: 6px 11px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-weight: 600; }
.sgg a:hover { background: var(--brand-soft); }
.sgg a b { color: var(--brand); margin-left: 4px; }
.rank { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.rank button { display: grid; grid-template-columns: 38px 1fr 40px; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 8px; text-align: left; font-size: 14px; }
.rank button:hover, .rank button.sel { background: var(--surface-2); }
.rank button.sel { font-weight: 800; }
.rank .bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.rank .bar i { display: block; height: 100%; border-radius: 4px; background: var(--map-2); }
.rank .num { text-align: right; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wx-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wx-table th { font-size: 13px; color: var(--ink-3); font-weight: 600; text-align: center; padding: 4px; }
.wx-table th:first-child { text-align: left; }
.wx-table td { padding: 7px 4px; border-top: 1px solid var(--line); text-align: center; font-variant-numeric: tabular-nums; }
.wx-table td:first-child { text-align: left; font-weight: 700; }
.wx-table tr { cursor: pointer; }
.wx-table tr:hover td, .wx-table tr.sel td { background: var(--surface-2); }
.wx-table .rain { color: var(--info); font-weight: 700; }
.panel-cta { margin-top: auto; }

/* ───────── 테마 타일 ───────── */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.theme { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; align-items: center; gap: 14px; transition: transform .2s, box-shadow .2s, border-color .2s; text-align: left; }
.theme:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.theme .ic { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--surface-2); }
.theme b { display: block; font-size: 17px; font-weight: 700; }
.theme span { font-size: 14px; color: var(--ink-3); }

/* ───────── 카드 ───────── */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.rail::-webkit-scrollbar { display: none; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card { scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; position: relative; }
.card .img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: linear-gradient(140deg, var(--surface-3), var(--map-1) 60%, var(--map-2)); display: block; }
.card .img img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .img img { transform: scale(1.05); }
.ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.9); }
.card .badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; right: 56px; }
.badge { padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.94); color: var(--ink); }
.badge.pet { background: var(--pet); color: #fff; }
.badge.off { background: var(--ink); color: #fff; }
.badge.pub { background: var(--good); color: #fff; }
.fav { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.94); display: grid; place-items: center; z-index: 2; transition: transform .15s; color: var(--ink-2); }
.fav:hover { transform: scale(1.08); }
.fav.on { color: #e0413a; }
.fav.on svg { fill: currentColor; }
.card .dist { position: absolute; bottom: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(20,14,12,.72); color: #fff; font-size: 13px; font-weight: 700; }
.card .body { padding: 14px 4px 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card .loc { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card h3 a:hover { color: var(--brand); }
.card .intro { font-size: 15px; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 45px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.tag { font-size: 13px; padding: 4px 9px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); font-weight: 600; }
.card .go { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 15px; transition: background .2s, color .2s; }
.card .go:hover { background: var(--brand); color: #fff; }
.card .go.alt { background: var(--surface-2); color: var(--ink-2); }
.card .go.alt:hover { background: var(--ink); color: #fff; }
.card .go small { font-weight: 600; opacity: .8; font-size: 13px; }
.card .go span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ───────── 목록 + 필터 ───────── */
.list-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; scrollbar-width: thin; }
.filters h3 { font-size: 18px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filters h3 button { font-size: 14px; color: var(--brand); font-weight: 700; }
.fgroup { padding: 16px 0; border-top: 1px solid var(--line); }
.fgroup:first-of-type { border-top: 0; }
.fgroup > b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.fgroup > b small { font-weight: 500; color: var(--ink-3); font-size: 12px; margin-left: 4px; }
.fgroup select { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--surface); font-size: 15px; }
.fgroup select + select { margin-top: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--surface); transition: all .15s; }
.opt:hover { border-color: var(--ink-3); }
.opt.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt small { opacity: .65; margin-left: 3px; font-weight: 500; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 15px; cursor: pointer; }
.toggle input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--surface-3); position: relative; cursor: pointer; transition: background .2s; flex-shrink: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.toggle input:checked { background: var(--brand); }
.toggle input:checked::after { transform: translateX(18px); }
.list-top { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.list-top .q { flex: 1; min-width: 220px; position: relative; }
.list-top .q input { width: 100%; height: 48px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 0 14px 0 44px; font-size: 15px; }
.list-top .q svg { position: absolute; left: 14px; top: 14px; color: var(--ink-3); }
.list-top select { height: 48px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 0 12px; font-size: 15px; }
.filter-open { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; align-items: center; }
.active-filters .pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 700; }
.active-filters .pill:hover { background: var(--brand); color: #fff; }
.result-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 10px; flex-wrap: wrap; }
.result-line p { font-size: 16px; color: var(--ink-2); }
.result-line p b { color: var(--ink); font-size: 20px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 64px 16px; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line); border-radius: 22px; }
.empty .big { font-size: 40px; margin-bottom: 8px; }
.empty b { display: block; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.more { display: block; margin: 36px auto 0; }
.drawer-bg { display: none; }
.filters .close-drawer { display: none; }

/* ───────── 지도 페이지 ───────── */
.mapview { position: fixed; inset: var(--header-h) 0 0; display: grid; grid-template-columns: 400px minmax(0, 1fr); }
.mapview .side { background: var(--bg); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.mapview .side-head { padding: 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.mapview .side-head .row { display: flex; gap: 8px; }
.mapview .side-head .q { flex: 1; position: relative; }
.mapview .side-head .q input { width: 100%; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 0 12px 0 40px; font-size: 15px; }
.mapview .side-head .q svg { position: absolute; left: 12px; top: 12px; color: var(--ink-3); }
.mapview .side-head p { font-size: 14px; color: var(--ink-2); }
.mapview .side-head p b { color: var(--ink); }
.mapview .side-list { overflow: auto; flex: 1; padding: 8px; }
.mini-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 16px; cursor: pointer; transition: background .15s; }
.mini-card:hover, .mini-card.act { background: var(--surface); box-shadow: var(--shadow); }
.mini-card .thumb { width: 92px; height: 72px; border-radius: 12px; overflow: hidden; position: relative; background: linear-gradient(140deg, var(--surface-3), var(--map-1)); }
.mini-card .thumb img { width: 100%; height: 100%; object-fit: cover; position: relative; }
.mini-card .thumb .ph svg { width: 26px; height: 26px; }
.mini-card b { display: block; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-card small { display: block; font-size: 13px; color: var(--ink-3); }
.mini-card .mtags { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.mini-card .mtags span { font-size: 12px; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); font-weight: 600; }
#lmap { width: 100%; height: 100%; background: #e8e4dc; }
.map-float { position: absolute; z-index: 500; }
.map-float.tr { top: 14px; right: 14px; display: flex; flex-direction: column; gap: 8px; }
.map-float .icon-btn { width: 46px; height: 46px; box-shadow: var(--shadow); }
.mk { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--brand); transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); display: grid; place-items: center; }
.mk i { width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.mk.off { background: #8a8a8a; }
.mk.act { background: var(--ink); transform: rotate(-45deg) scale(1.2); }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #2c6ba0; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(44,107,160,.25); }
.cl { border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; border: 3px solid rgba(255,255,255,.9); box-shadow: 0 2px 10px rgba(0,0,0,.25); font-size: 14px; }
.leaflet-popup-content-wrapper { border-radius: 16px; padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 260px !important; font-family: inherit; }
.pop img { width: 100%; height: 140px; object-fit: cover; }
.pop .pb { padding: 12px 14px 14px; }
.pop small { color: var(--ink-3); font-size: 13px; }
.pop b { display: block; font-size: 16px; margin: 2px 0 10px; color: var(--ink); }
.pop .row { display: flex; gap: 6px; }
.pop .row a { flex: 1; height: 38px; font-size: 14px; }
.leaflet-container .pop a.btn-primary { color: #fff; }
.leaflet-container .pop a.btn-line { color: var(--ink); }
.leaflet-container { font-family: inherit; }
.mapview .toggle-side { display: none; }

/* ───────── 상세 ───────── */
.detail-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.detail-head .sub { font-size: 17px; color: var(--ink-2); margin-top: 6px; }
.detail-head .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.detail-head .badge { background: var(--surface-2); }
.detail-head .badge.pet { background: var(--pet); }
.detail-head .badge.off { background: var(--ink); }
.detail-head .badge.pub { background: var(--good); }
.head-actions { display: flex; gap: 8px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.hero-img { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 9; background: linear-gradient(140deg, var(--surface-3), var(--map-1) 60%, var(--map-2)); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; position: relative; }
.hero-img .ph svg { width: 64px; height: 64px; }
.dsec { padding: 32px 0; border-bottom: 1px solid var(--line); }
.dsec:last-child { border-bottom: 0; }
.dsec h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.dsec h2 small { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.fact span { display: block; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.fact b { display: block; font-size: 16px; font-weight: 700; margin-top: 2px; }
.intro-text { font-size: 16.5px; line-height: 1.85; color: var(--ink-2); white-space: pre-line; }
.intro-text.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.more-link { margin-top: 10px; color: var(--brand); font-weight: 700; font-size: 15px; }
.feat-line { margin-top: 14px; font-size: 15px; color: var(--ink-2); background: var(--surface-2); padding: 12px 14px; border-radius: 12px; }
.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.icons div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 8px; text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.icons div i { display: block; font-style: normal; font-size: 24px; margin-bottom: 4px; }
.chips-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-list span { padding: 8px 12px; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; font-size: 15px; }
.kv dt { color: var(--ink-3); font-weight: 600; }
.kv dd { color: var(--ink); }
.site-bars { display: flex; flex-direction: column; gap: 8px; }
.site-bars div { display: grid; grid-template-columns: 70px 1fr 50px; gap: 10px; align-items: center; font-size: 14px; }
.site-bars .bar { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.site-bars .bar i { display: block; height: 100%; background: var(--brand); border-radius: 5px; }
.site-bars b { text-align: right; }
#dmap { height: 320px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.addr { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 12px; flex-wrap: wrap; font-size: 15px; }
.aside-card { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.aside-card h3 { font-size: 18px; font-weight: 800; }
.aside-card .how { font-size: 14px; color: var(--ink-2); background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.aside-card .btn { width: 100%; }
.aside-card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aside-card .note { font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.mobile-cta { display: none; }

/* 날씨 */
.wx-now { display: flex; align-items: center; gap: 16px; background: linear-gradient(120deg, var(--brand-soft), var(--surface)); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; margin-bottom: 12px; flex-wrap: wrap; }
.wx-now .big { font-size: 44px; line-height: 1; }
.wx-now .t { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.wx-now .d { color: var(--ink-2); font-size: 15px; }
.wx-now .sun { margin-left: auto; text-align: right; font-size: 14px; color: var(--ink-2); }
.wx-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wx-day { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 6px; text-align: center; font-size: 14px; }
.wx-day.we { border-color: var(--brand); background: var(--brand-soft); }
.wx-day b { display: block; font-size: 14px; }
.wx-day .e { font-size: 28px; margin: 4px 0; }
.wx-day .hi { font-weight: 800; }
.wx-day .lo { color: var(--info); font-weight: 700; }
.wx-day .pp { font-size: 12.5px; color: var(--info); margin-top: 2px; }
.wx-tips { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.wx-tips div { font-size: 15px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); }
.wx-tips div.warn { background: #fdf0dc; color: #7a4a0c; }
.wx-src { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 16px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ───────── 검색엔진용 미리 만든 페이지 (자바스크립트가 뜨기 전·검색 로봇이 보는 내용) ───────── */
.seo h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; margin: 32px 0 12px; }
.seo .sub { font-size: 17px; color: var(--ink-2); margin-top: 8px; }
.seo .seo-img { width: 100%; max-width: 720px; height: auto; border-radius: 20px; margin-top: 20px; }
.seo .seo-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.seo-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 20px; }
.seo-list a, .seo-camps a { color: var(--brand); font-weight: 600; }
.seo-camps { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.seo-camps li { line-height: 1.6; }
.seo p { line-height: 1.7; margin-top: 8px; }

/* ───────── 토스트 · 푸터 ───────── */
.toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; opacity: 0; transition: all .25s; z-index: 2000; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
footer.site { margin-top: 110px; padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; line-height: 1.8; }
footer.site .logo { color: var(--ink); font-size: 17px; margin-bottom: 12px; }
footer.site .links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
footer.site .links a { color: var(--ink-2); font-weight: 600; }
body.full footer.site { display: none; }

/* ───────── 반응형 ───────── */
@media (max-width: 1100px) {
  /* 한 줄 배치에선 사진 → 예약 카드 → 본문 순서 */
  .detail-grid { grid-template-columns: 1fr; gap: 0; }
  #main { display: contents; }
  .detail-grid .hero-img { order: 0; }
  .aside-card { position: static; order: 1; margin-top: 20px; }
  #body { order: 2; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .map-wrap { grid-template-columns: 1fr; }
  .themes { grid-template-columns: repeat(2, 1fr); }
  .rail { grid-auto-columns: calc((100% - 40px) / 3); }
  .list-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 0 0 auto; width: min(380px, 92vw); max-height: none; top: 0; border-radius: 0; z-index: 1100; transform: translateX(100%); transition: transform .25s; padding-top: 24px; }
  .filters.open { transform: none; }
  .drawer-bg.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 1050; }
  .filter-open { display: inline-flex; }
  .filters .close-drawer { display: inline-flex; }
  .mapview { grid-template-columns: 1fr; }
  .mapview .side { position: absolute; inset: auto 0 0; height: 46%; z-index: 600; border-radius: 22px 22px 0 0; border: 1px solid var(--line); box-shadow: var(--shadow-lg); transition: height .25s; }
  .mapview .side.min { height: 118px; }
  .mapview .toggle-side { display: block; width: 48px; height: 5px; border-radius: 3px; background: var(--surface-3); margin: 8px auto 0; }
}
@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .wrap { padding: 0 16px; }
  .season-btn span.t { display: none; }
  .hero { min-height: 640px; }
  .hero p.lead { font-size: 16px; }
  .orb { width: 80px; height: 80px; right: 8%; }
  .search { flex-direction: column; border-radius: 24px; }
  .search .field { padding: 12px 16px; }
  .search .field + .field { border-left: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .search-btn { justify-content: center; padding: 14px; margin-top: 6px; }
  .suggest { top: 64px; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 22px; }
  .sec-head h2 { font-size: 24px; }
  .sec-head .arrows { display: none; }
  .page-title { font-size: 27px; }
  .map-card { padding: 8px 8px 72px; border-radius: 20px; }
  .legend { left: 12px; bottom: 12px; }
  .panel { padding: 20px; border-radius: 20px; }
  .rank { grid-template-columns: 1fr; }
  .mini { grid-template-columns: repeat(2, 1fr); }
  .themes { grid-template-columns: 1fr 1fr; }
  .theme { padding: 14px; gap: 10px; }
  .theme .ic { width: 40px; height: 40px; font-size: 20px; }
  .rail { grid-auto-columns: 78%; }
  .grid, .grid.cols-3 { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .card .intro, .card .tags { display: none; }
  .card .body { gap: 2px; }
  .card .go { margin-top: 10px; font-size: 14px; padding: 10px 12px; }
  .card .go small { display: none; }
  .card h3 { font-size: 16px; }
  .fav { width: 36px; height: 36px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .wx-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kv { grid-template-columns: 96px 1fr; }
  .mobile-cta { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 64px; padding: 10px 16px; background: rgba(250,245,236,.96); border-top: 1px solid var(--line); z-index: 900; }
  .mobile-cta .btn { flex: 1; }
  .mapview { inset: var(--header-h) 0 64px; }
  .toast { bottom: 88px; }
  footer.site { margin-top: 80px; }
}
