/* 파크픽 공유 링크 페이지 — 구장 페이지 / 초대 페이지 공용
   시니어 친화: 본문 17px 이상, 버튼 최소 높이 56px, 고대비 (CLAUDE.md 디자인 원칙) */
:root {
  color-scheme: light dark;
  --bg: #F4F1EE;
  --ink: #1C1917;
  --muted: #57534E;
  --faint: #8A837C;
  --card: #FFFFFF;
  --line: #E7E5E4;
  --forest: #0F2D1E;
  --forest-mid: #1B4332;
  --mint: #D8F3DC;
  --coral: #FF8A65;
  --lock-bg: #F0EDEA;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14140f; --ink: #ece9e4; --muted: #b7b2ab; --faint: #8d8880;
    --card: #1f1f18; --line: #3a382f; --mint: #24361f; --lock-bg: #26261e;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.6; word-break: keep-all; overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
  /* 하단 고정 CTA에 본문이 가리지 않도록 */
  padding-bottom: 108px;
}
a { color: inherit; }

/* ── 헤더 ── */
.top {
  background: radial-gradient(120% 100% at 50% -20%, #1B4332 0%, #0F2D1E 60%, #0a1f14 100%);
  color: #fff; padding: 20px 20px 26px; text-align: center;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; color: #fff;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.brand span { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; }

/* ── 빵부스러기(구장 페이지: 홈 › 지역 › 구장명) ── */
.crumbs {
  max-width: 460px; margin: 10px auto 0; padding: 0 16px;
  font-size: 13.5px; color: var(--faint);
}
.crumbs a { text-decoration: underline; }
.crumbs .sep { margin: 0 4px; }
.crumbs [aria-current="page"] { color: var(--muted); }

/* ── 본문 카드 ── */
.wrap { max-width: 460px; margin: 0 auto; padding: 0 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  margin-top: -14px; padding: 24px 20px; position: relative;
  box-shadow: 0 10px 26px rgba(0,0,0,0.07);
}
@media (prefers-color-scheme: dark) {
  .card { box-shadow: 0 10px 26px rgba(0,0,0,0.35); }
}
h1 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.5px;
  margin: 0 0 10px; line-height: 1.3;
}
.meta {
  font-size: 17px; color: var(--forest-mid); font-weight: 700; margin: 0 0 4px;
}
@media (prefers-color-scheme: dark) { .meta { color: #9fd8b4; } }
.addr { font-size: 16px; color: var(--muted); margin: 10px 0 0; }

.specs { margin: 18px 0 0; border-top: 1px solid var(--line); }
.spec {
  display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.spec:last-child { border-bottom: none; }
.spec dt { flex: 0 0 78px; color: var(--faint); margin: 0; }
.spec dd { flex: 1; margin: 0; font-weight: 600; }

/* ── 액션 버튼 ── */
.actions { display: flex; gap: 10px; margin-top: 20px; }
.btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 56px; padding: 12px; border-radius: 14px;
  font-size: 17px; font-weight: 700; text-decoration: none;
  border: 1.5px solid var(--forest); color: var(--forest); background: transparent;
}
@media (prefers-color-scheme: dark) {
  .btn { border-color: #6fae8a; color: #9fd8b4; }
}
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }

/* ── 잠긴 항목 (앱 전용 기능) ── */
.locked { margin-top: 24px; }
.locked-title {
  font-size: 14px; font-weight: 700; color: var(--faint);
  margin: 0 0 10px; letter-spacing: 0.2px;
}
.locked ul { list-style: none; margin: 0; padding: 0; }
.locked li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; margin-bottom: 8px; border-radius: 12px;
  background: var(--lock-bg); color: var(--muted);
  font-size: 16px; font-weight: 600;
}
.locked li:last-child { margin-bottom: 0; }
.locked li svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.55; }

.note {
  margin: 18px 0 0; font-size: 13.5px; color: var(--faint); text-align: center;
}

/* ── 하단 고정 설치 CTA ── */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.cta-inner { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 7px; }
.install {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 58px; border-radius: 15px; text-decoration: none;
  background: var(--forest); color: #fff; font-size: 18px; font-weight: 800;
  box-shadow: 0 6px 18px rgba(15,45,30,0.28);
}
@media (prefers-color-scheme: dark) {
  .install { background: #2d6a4f; }
}
.install svg { width: 21px; height: 21px; }
.install.disabled { background: #6b6b63; box-shadow: none; pointer-events: none; }
.cta-sub { text-align: center; font-size: 13px; color: var(--faint); margin: 0; }
.cta-sub .free { color: var(--coral); font-weight: 800; }

/* ── 푸터 ── */
footer {
  padding: 26px 16px 12px; text-align: center; font-size: 13px; color: var(--faint);
}
footer a { margin: 0 6px; }

/* ── 초대 페이지 전용 ── */
.invite-hero { padding: 56px 20px 40px; text-align: center; }
.invite-hero .brand img { width: 76px; height: 76px; border-radius: 20px; }
.invite-hero h1 { font-size: 27px; margin: 22px 0 12px; }
.invite-hero p { font-size: 17px; color: #cfe8da; margin: 0 auto; max-width: 340px; }
.invite-points {
  list-style: none; margin: 26px auto 0; padding: 0; max-width: 340px; text-align: left;
}
.invite-points li {
  display: flex; align-items: center; gap: 11px; padding: 11px 0;
  font-size: 16.5px; color: #e4f2ea; font-weight: 600;
}
.invite-points li svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--coral); }

/* 예약 안내 — booking_note 원문(433곳 보유). 스펙 표에 넣기엔 긴 서술형이라
   별도 블록으로 둔다. 검색엔진이 읽는 본문 분량을 늘리는 역할도 겸한다. */
.bnote { margin: 18px 0 0; }
.bnote h2 {
  font-size: 15px; font-weight: 700; color: var(--faint);
  margin: 0 0 6px; letter-spacing: -0.01em;
}
.bnote p {
  margin: 0; font-size: 16px; line-height: 1.62; color: var(--ink);
  word-break: keep-all;
}

/* ── 자주 묻는 질문 — FAQPage 구조화 데이터와 짝이 되는 화면 표시분.
   구조화 데이터는 화면에 없는 내용을 담으면 안 되므로 항상 이 블록과 세트로 생성된다. */
.faq { margin-top: 22px; }
.faq h2 {
  font-size: 15px; font-weight: 700; color: var(--faint);
  margin: 0 0 8px; letter-spacing: -0.01em;
}
.faq details {
  border-top: 1px solid var(--line); padding: 11px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  font-size: 16px; font-weight: 700; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+ '; color: var(--coral); }
.faq details[open] summary::before { content: '– '; }
.faq p { margin: 8px 0 0; font-size: 15.5px; color: var(--muted); line-height: 1.6; word-break: keep-all; }

/* ── 지역별 구장 디렉토리(/courses) ── */
.region-nav {
  display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 16px auto 0;
  max-width: 720px; padding: 0 16px;
}
.region-nav a {
  font-size: 13.5px; font-weight: 700; color: var(--forest-mid);
  background: var(--mint); padding: 5px 11px; border-radius: 999px; text-decoration: none;
}
@media (prefers-color-scheme: dark) { .region-nav a { color: #9fd8b4; } }
.directory { max-width: 720px; margin: 0 auto; padding: 24px 16px 8px; }
.region-group { margin-bottom: 26px; }
.region-group h2 {
  font-size: 19px; font-weight: 800; margin: 0 0 10px;
  display: flex; align-items: baseline; gap: 8px;
}
.region-group .count { font-size: 13px; font-weight: 600; color: var(--faint); }
.course-list { list-style: none; margin: 0; padding: 0; }
.course-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 16px;
}
.course-list a { text-decoration: none; font-weight: 600; }
.course-list a:hover { text-decoration: underline; }
.course-list .n { font-size: 13.5px; color: var(--faint); flex-shrink: 0; }
