/* ⛳ chartup /GOLF/ 페이지 기본 스타일 — 로컬 AI 골프 화면(style.css·golf.css·local.css)에서 골프장 정보에 필요한 것만 옮김
   ★ 원본: Chart Update/golf/courses/site/site.css (sync_courses.py 가 chartup/GOLF/ 로 복사) */
:root {
  --bg: #f5f8fb; --surface: #ffffff; --text: #14202b; --muted: #627485; --line: #e1e9f0;
  --accent: #1c97e6; --accent-soft: #e4f2fd;
  --turf: #2f9e6a; --turf-soft: #e1f4ea; --warn: #e08a2e; --warn-soft: #fdf0e1; --bad: #dc4a4a; --bad-soft: #fde6e6;
  --shadow: 0 4px 18px rgba(20, 70, 120, .07); --shadow-lg: 0 14px 40px rgba(20, 70, 120, .14); --radius: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d141b; --surface: #151f29; --text: #e6eef6; --muted: #8fa3b5; --line: #24323f;
    --accent: #4fb4f5; --accent-soft: #14324a; --turf: #4cc78e; --turf-soft: #143528;
    --warn: #f2a65c; --warn-soft: #3b2a17; --bad: #f27b7b; --bad-soft: #3d1c1c;
    --shadow: 0 4px 18px rgba(0, 0, 0, .35); --shadow-lg: 0 14px 40px rgba(0, 0, 0, .45); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d141b; --surface: #151f29; --text: #e6eef6; --muted: #8fa3b5; --line: #24323f;
  --accent: #4fb4f5; --accent-soft: #14324a; --turf: #4cc78e; --turf-soft: #143528;
  --warn: #f2a65c; --warn-soft: #3b2a17; --bad: #f27b7b; --bad-soft: #3d1c1c;
  --shadow: 0 4px 18px rgba(0, 0, 0, .35); --shadow-lg: 0 14px 40px rgba(0, 0, 0, .45); color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font-family: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 10px; }
.brand { font-weight: 800; font-size: 1.1rem; text-decoration: none; color: var(--text); white-space: nowrap; }
.brand small { color: var(--muted); font-weight: 600; font-size: .78rem; margin-left: 6px; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.home-link { font-size: .84rem; font-weight: 700; text-decoration: none; color: var(--muted); white-space: nowrap; }
.home-link:hover { color: var(--accent); }
.ghost { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.ghost:hover { border-color: var(--accent); }
.ghost.icon { padding: 6px 10px; }
.g-main { padding-top: 20px; padding-bottom: 40px; min-height: 70vh; }
.site-footer { color: var(--muted); font-size: .8rem; text-align: center; padding: 30px 16px 40px; }

h2.g-sec { font-size: 1.08rem; margin: 28px 0 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
h2.g-sec small { color: var(--muted); font-weight: 500; font-size: .82rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.card + .card { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.link { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); font-weight: 700; cursor: pointer; }
.empty { text-align: center; color: var(--muted); padding: 34px 10px; }
.fine { font-size: .78rem; color: var(--muted); line-height: 1.6; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); }
.tile span { font-size: .8rem; color: var(--muted); font-weight: 700; }
.tile b { display: block; font-size: 1.7rem; letter-spacing: -.02em; line-height: 1.25; }
.tile b small { font-size: .85rem; color: var(--muted); font-weight: 600; margin-left: 2px; }
.tile em { font-style: normal; font-size: .78rem; color: var(--muted); }

.optgroup { margin-bottom: 14px; }
.optgroup > span { display: block; font-size: .8rem; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: inherit; font-size: .86rem; font-weight: 700; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 13px; cursor: pointer; transition: all .12s; }
.seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent); }

.g-sheet { width: min(560px, 94vw); max-height: 90vh; border: 0; border-radius: 24px; padding: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.g-sheet::backdrop { background: rgba(10, 25, 40, .45); backdrop-filter: blur(3px); }
.g-sheet header { position: sticky; top: 0; background: var(--surface); padding: 18px 22px 10px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; z-index: 1; }
.g-sheet header h2 { margin: 0; font-size: 1.15rem; }
.g-sheet .sheet-body { padding: 16px 22px 22px; }

.banner { position: relative; border-radius: 22px; overflow: hidden; min-height: 210px; display: flex; align-items: flex-end;
  background: linear-gradient(135deg, #1f3c88, #0e1a36); color: #fff; box-shadow: var(--shadow-lg); margin-bottom: 18px; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,10,25,0) 25%, rgba(5,10,25,.78) 100%); }
.banner .in { position: relative; z-index: 1; padding: 22px 24px 20px; max-width: 760px; }
.banner .eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .14em; opacity: .85; margin: 0 0 4px; }
.banner h1 { margin: 0 0 6px; font-size: clamp(1.35rem, 3.6vw, 2rem); line-height: 1.3; letter-spacing: -.01em; }
.banner p { margin: 0; opacity: .92; font-size: .95rem; line-height: 1.6; }
.banner.golfb { background: linear-gradient(135deg, #1c97e6, #2f9e6a); }

@media (max-width: 760px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .card { padding: 16px; }
  .banner { min-height: 180px; }
  .banner .in { padding: 16px 16px 14px; }
  .brand small, .home-link span { display: none; }
}
