:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --ink: #1b2420;
  --muted: #5d6963;
  --line: #e3dfd4;
  --chip: #ece8dd;
  --brand: #1f5c4a;
  --brand-ink: #ffffff;
  --accent: #d0583f;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 6px 18px rgba(20, 30, 25, .07);
  --r: 14px;
  /* 종류 색 */
  --t12: #2f7d5b; --t14: #6a5acd; --t15: #d0583f; --t25: #b7791f;
  --t28: #2b7bb9; --t32: #8b5e3c; --t38: #c2417a; --t39: #e08a1e;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121714; --surface: #1a211d; --ink: #e8ece9; --muted: #a2ada7; --line: #2c3530; --chip: #252d28;
    --brand: #4fae8a; --brand-ink: #0d1411; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -.01em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* 머리 */
.top { position: sticky; top: 0; z-index: 1000; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand svg rect { fill: var(--brand); }
.brand svg path { stroke: #fff; stroke-width: 2.4; fill: none; stroke-linecap: round; }
.brand svg circle { fill: #e8735a; }
.brand b { color: var(--brand); font-weight: 700; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; white-space: nowrap; font-size: 15px; }
.nav a:hover { color: var(--ink); background: var(--chip); }
.nav a.on { color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }
@media (max-width: 640px) {
  .top-in { height: auto; flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
  .nav { margin: 4px -8px 6px; }
  .nav a { padding: 6px 10px; font-size: 14px; }
}

/* 첫 화면 */
.hero {
  position: relative; color: #fff; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(10,20,16,.15) 0%, rgba(10,20,16,.55) 55%, rgba(10,20,16,.82) 100%), var(--hero, linear-gradient(135deg, #1f5c4a, #2f7d63)) center/cover no-repeat;
}
.hero-in { padding-top: 64px; padding-bottom: 28px; }
.eyebrow { margin: 0 0 6px; font-weight: 600; opacity: .9; letter-spacing: .02em; }
.hero h1 { margin: 0; font-size: clamp(32px, 6vw, 56px); font-weight: 800; }
.lead { margin: 10px 0 20px; font-size: clamp(15px, 2vw, 18px); opacity: .92; max-width: 640px; }
.hero-cap { margin: 0 auto; padding-bottom: 12px; font-size: 12px; opacity: .75; }

/* 검색 */
.search { display: flex; gap: 6px; }
.search input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; }
.search input:focus { outline: 2px solid color-mix(in srgb, var(--brand) 50%, transparent); outline-offset: 1px; }
.search button { height: 42px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.search.big { max-width: 620px; }
.search.big input { height: 52px; font-size: 16px; border: 0; box-shadow: 0 4px 18px rgba(0,0,0,.2); }
.search.big button { height: 52px; padding: 0 22px; }

/* 지역·종류 */
.regions, .types { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 4px 0 8px; }
.regions { margin-top: 20px; }
@media (min-width: 900px) { .regions { flex-wrap: wrap; overflow: visible; } }
.regions a, .types a {
  flex: none; text-decoration: none; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.regions a small, .types a small { color: var(--muted); font-weight: 400; font-size: 12px; }
.regions a:hover, .types a:hover { border-color: var(--brand); }
.regions a.on, .types a.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.regions a.on small, .types a.on small { color: inherit; opacity: .8; }
.regions a.all { font-weight: 600; }
.types { padding-top: 2px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--muted); }
.t12 { --c: var(--t12); } .t14 { --c: var(--t14); } .t15 { --c: var(--t15); } .t25 { --c: var(--t25); }
.t28 { --c: var(--t28); } .t32 { --c: var(--t32); } .t38 { --c: var(--t38); } .t39 { --c: var(--t39); }
.dot[class*=" t"] { background: var(--c); }
.types a.on .dot { background: #fff; }

/* 목록 머리 */
.bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 18px 0 14px; }
.bar .count { margin: 0; font-size: 20px; font-weight: 700; flex: 1 1 auto; }
.bar .count b { color: var(--brand); }
.bar .search { flex: 0 1 300px; }
.tools { display: flex; gap: 8px; align-items: center; }
.tools select { height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 10px; font: inherit; font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg a { text-decoration: none; padding: 0 14px; line-height: 40px; font-size: 14px; font-weight: 500; }
.seg a.on { background: var(--brand); color: var(--brand-ink); }
@media (max-width: 640px) {
  .bar .count { flex-basis: 100%; }
  .bar .search { flex: 1 1 100%; }
  .tools { width: 100%; }
  .tools select { flex: 1; }
}

/* 카드 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.grid.four { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 520px) { .grid, .grid.four { grid-template-columns: 1fr 1fr; gap: 12px; } }
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,30,25,.08), 0 12px 28px rgba(20,30,25,.12); }
.card .ph { position: relative; aspect-ratio: 4 / 3; background: var(--chip); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; background: repeating-linear-gradient(45deg, var(--chip), var(--chip) 10px, color-mix(in srgb, var(--chip) 70%, var(--surface)) 10px, color-mix(in srgb, var(--chip) 70%, var(--surface)) 20px); }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: var(--c, var(--brand)); }
.card .badge { position: absolute; left: 10px; top: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.card .km { position: absolute; right: 10px; top: 10px; padding: 3px 8px; border-radius: 999px; font-size: 12px; background: rgba(0,0,0,.6); color: #fff; }
.card .bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.card h3 { margin: 0; font-size: 16px; font-weight: 700; }
.card .sub { margin: 0; font-size: 13px; color: var(--brand); font-weight: 500; }
.card .dates { font-size: 13px; color: var(--t15); font-weight: 600; }
.card .addr { margin: 2px 0 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 520px) {
  .card .bd { padding: 10px 11px 12px; }
  .card h3 { font-size: 15px; }
  .card .badge { left: 8px; top: 8px; font-size: 11px; padding: 2px 7px; }
}

.block { margin: 22px 0 6px; }
.block-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.block-h h2 { margin: 0; font-size: 20px; }
.block-h a { font-size: 14px; color: var(--brand); text-decoration: none; font-weight: 600; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 260px); gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.rail .card { scroll-snap-align: start; }

.empty { padding: 48px 0; text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 30px 0 10px; }
.pager a, .pager b, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 10px; text-decoration: none; font-size: 14px; }
.pager a { background: var(--surface); border: 1px solid var(--line); }
.pager a:hover { border-color: var(--brand); }
.pager b { background: var(--brand); color: var(--brand-ink); }
.pager .off { color: var(--muted); opacity: .5; }
.pager .gap { min-width: 20px; padding: 0; }

/* 지도 */
.map-big { height: min(72vh, 720px); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: var(--chip); }
.map-small { height: 240px; border-radius: 10px; overflow: hidden; margin-top: 14px; background: var(--chip); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.pin { width: 16px; height: 16px; border-radius: 50%; background: var(--c, var(--brand)); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.leaflet-popup-content { margin: 10px 12px; font: 14px/1.4 "Pretendard Variable", Pretendard, sans-serif; }
.pop { display: block; width: 200px; text-decoration: none; color: #1b2420; }
.pop img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.pop b { display: block; font-size: 15px; }
.pop small { color: #5d6963; }

/* 장소 */
.place { padding-top: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs > * + *::before { content: "›"; margin-right: 6px; opacity: .6; }
.crumbs a:hover { color: var(--brand); }
.place-h { margin: 12px 0 18px; }
.place-h h1 { margin: 6px 0 4px; font-size: clamp(26px, 4.4vw, 40px); font-weight: 800; }
.place-h .addr { margin: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.chip { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; background: var(--chip); color: var(--muted); font-weight: 500; }
.when { margin: 4px 0; font-size: 18px; font-weight: 700; color: var(--t15); }
.ended { margin-left: 8px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--chip); color: var(--muted); vertical-align: middle; }

.gallery .main { margin: 0; border-radius: var(--r); overflow: hidden; background: #0d1210; position: relative; }
.gallery .main img { width: 100%; max-height: 560px; object-fit: contain; margin: 0 auto; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 14px 10px; font-size: 12px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; }
.thumbs button { flex: none; width: 96px; height: 66px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--chip); opacity: .7; }
.thumbs button.on, .thumbs button:hover { border-color: var(--brand); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; margin-top: 22px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.sec { background: var(--surface); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.sec h2 { margin: 0 0 12px; font-size: 19px; }
.sec h2 small { color: var(--muted); font-weight: 500; font-size: 14px; }
.prose { color: var(--ink); line-height: 1.8; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); margin: 0; }
.kv dt, .kv dd { padding: 10px 0; border-top: 1px solid var(--line); margin: 0; }
.kv dt { color: var(--muted); font-size: 14px; font-weight: 600; padding-right: 12px; }
.kv dd { font-size: 15px; }
.kv dt:first-of-type, .kv dt:first-of-type + dd { border-top: 0; }
.kv a { color: var(--brand); }
@media (max-width: 520px) {
  .sec { padding: 16px; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { padding-bottom: 0; }
  .kv dd { border-top: 0; padding-top: 2px; }
}
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.flags span { padding: 4px 10px; border-radius: 8px; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); font-size: 13px; font-weight: 600; }
.flags.small span { font-size: 12px; padding: 2px 8px; }
.rooms { display: grid; gap: 14px; }
.room { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.room:first-child { border-top: 0; padding-top: 0; }
.room:not(:has(img)) { grid-template-columns: 1fr; }
.room img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.room h3 { margin: 0 0 4px; font-size: 16px; }
.room .meta { margin: 0; color: var(--muted); font-size: 14px; }
.fees { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0; font-size: 13px; color: var(--muted); }
.fees b { color: var(--ink); }
.room .intro { margin: 6px 0; font-size: 14px; }
@media (max-width: 520px) { .room { grid-template-columns: 1fr; } }
.course { margin: 0; padding: 0; list-style: none; counter-reset: c; }
.course li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); position: relative; }
.course li:first-child { border-top: 0; padding-top: 0; }
.course li:not(:has(img)) { grid-template-columns: 1fr; }
.course img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.course h3 { margin: 0 0 4px; font-size: 16px; counter-increment: c; }
.course h3::before { content: counter(c); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--t25); color: #fff; font-size: 12px; margin-right: 8px; vertical-align: 2px; }
.course p { margin: 0; font-size: 14px; color: var(--muted); }
.course a { color: var(--brand); }

.side { position: sticky; top: 76px; }
@media (max-width: 900px) { .side { position: static; } }
.info-card { background: var(--surface); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.info-card dl { margin: 0; }
.info-card dt { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 12px; }
.info-card dt:first-child { margin-top: 0; }
.info-card dd { margin: 2px 0 0; font-size: 15px; }
.info-card dd a { color: var(--brand); }
.info-card small { color: var(--muted); }
.maplinks { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.maplinks a { text-decoration: none; font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--chip); font-weight: 500; }
.maplinks a:hover { background: color-mix(in srgb, var(--brand) 14%, var(--chip)); }
.src { font-size: 12px; color: var(--muted); margin: 10px 4px; }

/* 사진 */
.page-h { padding: 26px 0 0; }
.page-h h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.page-h p { margin: 6px 0 0; color: var(--muted); }
.photos { columns: 3 300px; column-gap: 16px; }
.photos figure { margin: 0 0 16px; break-inside: avoid; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.photos button { display: block; width: 100%; padding: 0; border: 0; background: var(--chip); cursor: zoom-in; }
.photos img { width: 100%; height: auto; }
.photos figcaption { padding: 10px 12px 12px; display: flex; flex-direction: column; font-size: 14px; }
.photos figcaption span { color: var(--muted); font-size: 12px; }
@media (max-width: 520px) { .photos { columns: 2 140px; column-gap: 10px; } .photos figure { margin-bottom: 10px; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(5, 8, 6, .88); }
.lightbox img { max-width: 96vw; max-height: 84vh; margin: 0 auto; border-radius: 8px; }
.lightbox .cap { color: #e8ece9; text-align: center; font-size: 14px; margin: 10px 0 0; }
.lightbox .x { position: fixed; right: 14px; top: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

/* 바닥 */
.foot { margin-top: 56px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot p { margin: 0 0 6px; max-width: 860px; }
.foot b { color: var(--ink); }
