/* 너울 NEOUL — 공통 스타일 */
:root {
  --paper: #f2f4f6;
  --surface: #ffffff;
  --ink: #18202e;
  --muted: #5a6474;
  --line: #d6dce3;
  --swell: #2c5d8a;
  --accent: #2c5d8a;
  --accent-soft: #e3ebf3;
  --display: "Gowun Batang", "Noto Serif KR", serif;
  --body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --gap: 1.25rem;
  --radius-sm: 6px;
  --radius-lg: 14px;
}
body.darak  { --accent: #b9761f; --accent-soft: #f6ead7; }
body.lounge { --accent: #8a3b52; --accent-soft: #f2e3e8; }
body.studio { --accent: #2f7f7a; --accent-soft: #dfefed; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.wrap { max-width: 40rem; margin: 0 auto; padding: 0 1.25rem; }

/* 상단 바 */
.topbar { padding: 1rem 0 0; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: baseline; }
.brand { font-family: var(--display); font-weight: 700; font-size: var(--step-1); color: var(--ink); text-decoration: none; letter-spacing: 0.02em; }
.brand small { font-family: var(--body); font-weight: 500; font-size: var(--step--1); color: var(--muted); margin-left: 0.35rem; letter-spacing: 0.08em; }
.topbar nav a { font-size: var(--step--1); color: var(--muted); text-decoration: none; margin-left: 0.9rem; }
.topbar nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* 물결 — 너울의 상징 */
.swell { display: block; width: 100%; height: 40px; color: var(--accent); }
.swell path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }





/* 홈 */
.home-hero { padding-top: 3.5rem; padding-bottom: 1rem; }
.home-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(5rem, 30vw, 10rem);
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.02em;
}
.home-hero p { font-size: var(--step-1); color: var(--muted); margin: 1rem 0 0; max-width: 22em; }
.home-hero p strong { color: var(--ink); font-weight: 600; }

.places { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.places li { border-top: 1px solid var(--line); }
.places li:last-child { border-bottom: 1px solid var(--line); }
.places a { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1rem; padding: 1.4rem 0; color: var(--ink); text-decoration: none; }
.places .name { font-family: var(--display); font-weight: 700; font-size: var(--step-3); line-height: 1.1; }
.places .where { align-self: end; font-size: var(--step--1); color: var(--muted); text-align: right; }
.places .what { grid-column: 1 / -1; color: var(--muted); }
.places a:hover .name { color: var(--swell); }
.places .dot { display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; margin-right: 0.45em; vertical-align: 0.15em; }

.note { color: var(--muted); font-size: var(--step--1); }

/* 공간 페이지 머리 */
.space-head { padding-top: 2.5rem; padding-bottom: 0.5rem; }
.space-head h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 12vw, 3.6rem); line-height: 1.05; margin: 0; }
.space-head .lead { font-size: var(--step-1); color: var(--muted); margin: 0.6rem 0 0; }

.keyfacts { background: var(--surface); border-radius: var(--radius-lg); padding: 0.4rem 1.1rem; margin: 1.5rem 0 0; border-left: 5px solid var(--accent); }
.keyfacts div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.75rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.keyfacts div:last-child { border-bottom: 0; }
.keyfacts dt { color: var(--muted); font-size: var(--step--1); padding-top: 0.15rem; }
.keyfacts dd { margin: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.1rem 0 0; }
.btn { display: inline-block; padding: 0.7rem 1.1rem; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; font-size: var(--step--1); border: 1.5px solid var(--accent); color: var(--accent); background: transparent; }
.btn.primary { background: var(--accent); color: #fff; }

/* 바로가기 */
.jump { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); margin-top: 1.8rem; }
.jump ul { list-style: none; margin: 0; padding: 0.6rem 0; display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; }
.jump ul::-webkit-scrollbar { display: none; }
.jump a { display: block; white-space: nowrap; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: var(--step--1); border: 1px solid var(--line); }
.jump a:hover { border-color: var(--accent); }

/* 본문 섹션 */
main section { padding: 2.2rem 0 0.4rem; }
main h2 { font-family: var(--display); font-weight: 700; font-size: var(--step-2); margin: 0 0 0.9rem; }
main h3 { font-size: var(--step-0); margin: 1.4rem 0 0.4rem; }
main p { margin: 0 0 0.8rem; }
main ul.plain { margin: 0 0 0.8rem; padding-left: 1.1rem; }
main ul.plain li { margin: 0.25rem 0; }

table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; font-size: var(--step--1); }
th, td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--accent-soft); font-weight: 600; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
th small, td small { display: block; color: var(--muted); font-weight: 400; }

.callout { background: var(--accent-soft); border-radius: var(--radius-lg); padding: 0.9rem 1.1rem; margin: 1rem 0; }
.callout p:last-child { margin-bottom: 0; }

/* 퇴실 체크리스트 */
.checklist { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius-lg); }
.checklist li { border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist label { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.85rem 1rem; cursor: pointer; }
.checklist input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--accent); flex: none; }
.checklist .fee { margin-left: auto; color: var(--muted); font-size: var(--step--1); white-space: nowrap; }
.checklist input:checked ~ span:first-of-type { color: var(--muted); text-decoration: line-through; }
.check-status { font-size: var(--step--1); color: var(--muted); margin: 0.6rem 0 0; min-height: 1.4em; }

/* FAQ */
details { background: var(--surface); border-radius: var(--radius-sm); margin: 0 0 0.5rem; }
summary { cursor: pointer; padding: 0.85rem 1rem; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "−"; }
details > div { padding: 0 1rem 0.9rem; color: var(--ink); }
details > div p:last-child { margin-bottom: 0; }

/* 연습실 방 목록 */
.rooms { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius-lg); }
.rooms li { padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 1rem; }
.rooms li:last-child { border-bottom: 0; }
.rooms .room { font-weight: 600; }
.rooms .price { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rooms .gear { grid-column: 1 / -1; color: var(--muted); font-size: var(--step--1); }

footer { margin-top: 3rem; padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--step--1); }
footer p { margin: 0 0 0.4rem; }
footer a { color: var(--muted); }
table + .note { margin-top: 0.6rem; }
a[href^="tel:"] { white-space: nowrap; }

/* 입체 물결 + 바다 구역 (홈) */
.sea { background: #1c3b5a; color: #e8eef4; padding: 0.5rem 0 3rem; }
.sea .places li { border-color: rgba(255,255,255,0.16); }
.sea .places a { color: #fff; }
.sea .places .where, .sea .places .what { color: #b8c8d8; }
.sea .places a:hover .name { color: #cfe0f0; }
.sea .places .dot { box-shadow: 0 0 0 3px rgba(255,255,255,0.15); }
.map-title { font-family: var(--display); font-weight: 700; font-size: var(--step-2); color: #fff; margin: 2.5rem 0 0.9rem; }
.map { height: 340px; border-radius: var(--radius-lg); overflow: hidden; background: #2a4d70; box-shadow: 0 18px 40px -20px rgba(0,0,0,0.6); }
.map-note, .sea-note { font-size: var(--step--1); color: #b8c8d8; margin: 0.7rem 0 0; }
.sea-note { margin-top: 1.5rem; }
.home + footer, body.home footer { border-top: 0; margin-top: 0; }
.pin { background: none; border: 0; }
.pin-dot { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.35); }
.pin-label { position: absolute; top: -13px; white-space: nowrap; background: #fff; color: #18202e; font: 600 13px/1 var(--body); padding: 6px 8px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.pin-right .pin-label { left: 14px; }
.pin-left .pin-label { right: 14px; }
.leaflet-popup-content { font-family: var(--body); font-size: 14px; line-height: 1.6; }

/* 공간 페이지 물결: 두 겹 */
.swell .far { stroke-opacity: 0.35; }
.map .leaflet-tile-pane { filter: grayscale(0.55) contrast(0.95) brightness(1.03); }
.kit { list-style: none; margin: 0 0 0.6rem; padding: 0; background: var(--surface); border-radius: var(--radius-lg); columns: 2; column-gap: 0; }
.kit li { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.55rem 0.9rem; border-bottom: 1px solid var(--line); break-inside: avoid; font-size: var(--step--1); }
.kit .qty { color: var(--muted); white-space: nowrap; }
@media (max-width: 30rem) { .kit { columns: 1; } }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.5rem; margin: 1rem 0 0; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); display: block; background: var(--line); }
.gallery { margin: 1.2rem 0 0.8rem; }
.gallery a { display: block; }
.gallery a:focus-visible { outline-offset: 3px; }


/* 홈 물결: 움직임 없는 세 겹 곡선 */
.swell-3d { display: block; width: 100%; height: clamp(70px, 11vw, 150px); margin-top: 1.5rem; }
.swell-3d + .sea { margin-top: -2px; }
/* 연습실 시설과 비품 */
.facts { display: grid; grid-template-columns: 8rem 1fr; margin: 0; background: var(--surface); border-radius: var(--radius-lg); padding: 0.3rem 1.1rem; }
.facts dt, .facts dd { padding: 0.75rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { font-weight: 600; font-size: var(--step--1); padding-right: 1rem; padding-top: 0.85rem; }
.facts dt:nth-last-of-type(1), .facts dd:last-of-type { border-bottom: 0; }
@media (max-width: 30rem) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0.1rem; } .facts dd { padding-top: 0.1rem; } }
.gallery.wide { grid-template-columns: repeat(3, 1fr); }
