/*
Theme Name:   파크골프맵 (GeneratePress Child)
Description:  전국 파크골프 정보 포털용 GeneratePress 자식 테마 — 자체 머리글·바닥글과 디자인 시스템(PG-UXUI-001)을 사용하고, GeneratePress는 본문 템플릿 뼈대로만 활용합니다. 핵심 기능은 '파크골프맵 코어' 플러그인에 있습니다.
Template:     generatepress
Version:      2.1.2
Requires PHP: 7.4
Text Domain:  parkgolf-gp
License:      GPLv2 or later
*/

:root {
	--pg-primary: #1F4E37;
	--pg-primary-press: #173D2B;
	--pg-deep: #0F2E20;
	--pg-secondary: #EAF0EC;
	--pg-bg: #FAFBFC;
	--pg-surface: #FFFFFF;
	--pg-text: #191F28;
	--pg-text-2: #4E5968;
	--pg-text-sub: #5F6B78;
	--pg-gray: #8B95A1;
	--pg-line: #D1D6DB;
	--pg-line-soft: #EEF0F3;
	--pg-input: #F2F4F6;
	--pg-alert: #E56D41;
	--pg-sun: #F2B705;
	--pgt-header-h: 64px;
	--pgt-max: 1200px;
}

/* ---------- 기본 (GP 기본 스타일을 쓰지 않으므로 여기서 정리) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--pgt-header-h) + 12px); }
html.pgt-lock, html.pgt-lock body { overflow: hidden; }
body {
	margin: 0;
	font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--pg-text);
	background: var(--pg-bg);
	word-break: keep-all;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
@media (min-width: 1024px) { body { font-size: 18px; } }
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5 { color: var(--pg-text); font-weight: 700; letter-spacing: -0.025em; line-height: 1.35; margin: 0 0 0.5em; }
h1 { font-size: clamp(28px, 4.2vw, 40px); letter-spacing: -0.03em; }
h2 { font-size: clamp(21px, 3vw, 26px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
a { color: var(--pg-primary); text-underline-offset: 3px; }
a:hover { color: var(--pg-primary-press); }
small { font-size: 16px; }
hr { border: 0; border-top: 1px solid var(--pg-line-soft); margin: 2em 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 3px solid var(--pg-sun) !important;
	outline-offset: 2px;
}
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.pgt-skip:focus { clip: auto; clip-path: none; width: auto; height: auto; left: 12px; top: 12px; z-index: 1000; padding: 12px 20px; background: var(--pg-text); color: #fff; border-radius: 12px; }
.pgt-ico { width: 22px; height: 22px; flex: none; }

/* ---------- 버튼·입력 (블록 편집기 콘텐츠 포함) ---------- */
button, input[type="button"], input[type="reset"], input[type="submit"], a.button, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 0 24px; border-radius: 12px; border: 0;
	font: inherit; font-size: 17px; font-weight: 600; line-height: 1.2;
	background: var(--pg-primary); color: #fff; cursor: pointer; text-decoration: none;
	transition: transform .2s ease-in-out, opacity .2s ease-in-out, background-color .2s ease-in-out;
	-webkit-tap-highlight-color: transparent;
}
button:hover, input[type="submit"]:hover, a.button:hover, .wp-block-button__link:hover { background: var(--pg-primary-press); color: #fff; }
button:active, input[type="submit"]:active, a.button:active, .wp-block-button__link:active { transform: scale(0.97); opacity: .88; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="number"], select, textarea {
	min-height: 52px; width: 100%; font: inherit; font-size: 17px; color: var(--pg-text);
	border: 1.5px solid transparent; border-radius: 12px; padding: 12px 16px; background: var(--pg-input);
	transition: border-color .2s, background-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--pg-primary); background: #fff; outline: none; }
::placeholder { color: var(--pg-gray); }

/* ---------- 머리글 ---------- */
.pgt-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.admin-bar .pgt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .pgt-header { top: 0; } }
.pgt-header.is-scrolled { border-bottom-color: var(--pg-line-soft); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04); }
.pgt-header__in { max-width: var(--pgt-max); height: var(--pgt-header-h); margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 24px; }
.pgt-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pg-text); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; flex: none; }
.pgt-logo:hover { color: var(--pg-text); }
.pgt-logo img { width: 36px; height: 36px; border-radius: 10px; display: block; }
.pgt-logo .custom-logo { max-height: 40px; width: auto; }
.pgt-nav { display: none; flex: 1; min-width: 0; }
.pgt-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.pgt-nav__list a { display: flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 10px; color: var(--pg-text-2); font-weight: 600; font-size: 17px; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.pgt-nav__list a:hover { background: var(--pg-input); color: var(--pg-text); }
.pgt-nav__list .current-menu-item > a, .pgt-nav__list .current-menu-ancestor > a, .pgt-nav__list .current_page_item > a { color: var(--pg-primary); background: var(--pg-secondary); }
.pgt-header__tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.pgt-hbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 10px; border-radius: 12px; background: transparent; color: var(--pg-text); font-size: 15px; font-weight: 600; text-decoration: none; }
.pgt-hbtn:hover { background: var(--pg-input); color: var(--pg-text); }
.pgt-hbtn--search span { display: none; }
.pgt-hbtn--menu span, .pgt-drawer__head .pgt-hbtn span { font-size: 15px; }
@media (min-width: 768px) { .pgt-header__in { padding: 0 24px; } }
@media (min-width: 1100px) {
	.pgt-nav { display: block; }
	.pgt-hbtn--menu { display: none; }
	.pgt-hbtn--search { padding: 0 18px; background: var(--pg-primary); color: #fff; }
	.pgt-hbtn--search:hover { background: var(--pg-primary-press); color: #fff; }
	.pgt-hbtn--search span { display: inline; font-size: 16px; }
	.pgt-hbtn--search .pgt-ico { width: 20px; height: 20px; }
}

/* 전체 메뉴(드로어) */
.pgt-drawer { position: fixed; inset: 0; z-index: 200; background: rgba(25, 31, 40, 0); transition: background-color .2s ease; }
.pgt-drawer.is-open { background: rgba(25, 31, 40, 0.45); }
.pgt-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); overflow-y: auto; background: #fff; padding: 0 20px calc(32px + env(safe-area-inset-bottom)); transform: translateX(24px); opacity: 0; transition: transform .2s ease, opacity .2s ease; }
.pgt-drawer.is-open .pgt-drawer__panel { transform: none; opacity: 1; }
.pgt-drawer__head { display: flex; align-items: center; justify-content: space-between; height: var(--pgt-header-h); }
.pgt-drawer__search { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 6px 0 16px; margin: 8px 0 16px; border-radius: 12px; background: var(--pg-input); color: var(--pg-gray); }
.pgt-drawer__search input[type="search"] { flex: 1; min-width: 0; min-height: 0; height: 100%; padding: 0; border: 0; background: transparent; }
.pgt-drawer__search button { min-height: 44px; border-radius: 12px; padding: 0 18px; font-size: 16px; }
.pgt-drawer__list, .pgt-drawer__list ul { list-style: none; margin: 0; padding: 0; }
.pgt-drawer__list > li { border-bottom: 1px solid var(--pg-line-soft); }
.pgt-drawer__list > li > a { display: flex; align-items: center; justify-content: space-between; min-height: 60px; font-size: 20px; font-weight: 700; color: var(--pg-text); text-decoration: none; letter-spacing: -0.02em; }
.pgt-drawer__list > li > a::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--pg-gray); border-top: 2px solid var(--pg-gray); transform: rotate(45deg); margin-right: 6px; }
.pgt-drawer__list .sub-menu { padding: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.pgt-drawer__list .sub-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; background: var(--pg-input); color: var(--pg-text-2); font-weight: 600; font-size: 16px; text-decoration: none; }
.pgt-drawer__label { margin: 24px 0 10px; font-size: 15px; font-weight: 700; color: var(--pg-text-sub); }
.pgt-drawer__regions ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pgt-drawer__regions a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; background: var(--pg-secondary); color: var(--pg-primary); font-weight: 700; text-decoration: none; }
.pgt-drawer__sub { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pgt-drawer__sub a { display: inline-block; padding: 8px 0; color: var(--pg-text-sub); font-size: 16px; text-decoration: none; }

/* ---------- 본문 레이아웃 (GP 마크업) ---------- */
.site.grid-container { max-width: none; margin: 0; padding: 0; }
.site-content { display: block; }
.content-area { width: 100%; }
.site-main { max-width: var(--pgt-max); margin: 0 auto; padding: 24px 16px 64px; }
body.pg-page .site-main { max-width: 860px; }
body.pg-app .site-main { max-width: 1000px; }
body.pg-app .inside-article { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
body.pg-app .entry-header { margin-bottom: 12px; }
body.pg-app .entry-content { font-size: 17px; line-height: 1.65; color: var(--pg-text-2); }
body.pg-app .entry-content > .pg { padding: 0; margin-top: 24px; }
body.pg-full .site-main { max-width: none; padding: 0; }
body.pg-full .inside-article { background: transparent; padding: 0; box-shadow: none; border-radius: 0; }
body.pg-full .entry-content { margin: 0; }
body.pg-full .entry-content > .pg { padding-left: 16px; padding-right: 16px; }
.inside-article { background: var(--pg-surface); border-radius: 16px; padding: 32px 20px 40px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04); }
@media (min-width: 768px) { .inside-article { padding: 56px 64px 64px; } .site-main { padding-top: 56px; padding-bottom: 120px; } }
.entry-header { margin-bottom: 28px; }
.entry-title { margin: 0; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-meta { margin-top: 10px; color: var(--pg-text-sub); font-size: 16px; }
.entry-meta a { color: var(--pg-text-sub); }
.page-header { margin: 0 0 24px; }
.page-title { margin: 0; }
.taxonomy-description { color: var(--pg-text-2); }
article + article { margin-top: 16px; }
.entry-summary p:last-child { margin-bottom: 0; }

/* 읽기 좋은 본문 (가이드·소식·안내 페이지) */
.entry-content { line-height: 1.8; font-size: 18px; }
@media (min-width: 1024px) { .entry-content { font-size: 19px; } }
.entry-content > * { margin-top: 0; margin-bottom: 1.1em; }
.entry-content > h2 { margin-top: 2.2em; padding-top: 0.2em; font-size: clamp(22px, 3vw, 27px); }
.entry-content > h3 { margin-top: 1.8em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > ul, .entry-content > ol { padding-left: 1.3em; }
.entry-content > ul > li + li, .entry-content > ol > li + li { margin-top: 0.4em; }
.entry-content > ul > li::marker, .entry-content > ol > li::marker { color: var(--pg-primary); font-weight: 700; }
.entry-content strong { font-weight: 700; }
.entry-content > blockquote, .entry-content > .wp-block-quote { margin-left: 0; margin-right: 0; border-left: 4px solid var(--pg-primary); background: var(--pg-secondary); border-radius: 0 12px 12px 0; padding: 18px 24px; font-style: normal; }
.entry-content > blockquote p:last-child { margin-bottom: 0; }
.entry-content > table, .entry-content .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content > table th, .entry-content > table td, .entry-content .wp-block-table th, .entry-content .wp-block-table td { border: 0; border-bottom: 1px solid var(--pg-line-soft); padding: 12px 10px; text-align: left; vertical-align: top; }
.entry-content > table thead th, .entry-content .wp-block-table thead th { background: var(--pg-bg); color: var(--pg-text-2); font-weight: 700; }
.entry-content img { border-radius: 12px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 16px; color: var(--pg-text-sub); }

/* 이전·다음 글 */
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.post-navigation a { display: block; height: 100%; padding: 16px; border-radius: 12px; background: var(--pg-bg); text-decoration: none; color: var(--pg-text); font-weight: 600; }
.post-navigation .nav-next { text-align: right; }
footer.entry-meta { margin-top: 0; }
.cat-links, .tags-links, .comments-link { display: none; }
.paging-navigation, .posts-navigation { margin-top: 24px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nav-links a, .nav-links span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 14px; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.04); font-weight: 600; text-decoration: none; color: var(--pg-text-2); }
.nav-links .current { background: var(--pg-primary); color: #fff; }

/* 광고 영역 — 정보·공식 예약 버튼과 혼동되지 않게 구분 */
.pg-ad { border: 1px dashed var(--pg-line); border-radius: 12px; padding: 12px; margin: 24px 0; background: #fafafa; position: relative; }
.pg-ad::before { content: "광고"; display: inline-block; font-size: 13px; font-weight: 700; color: #6b716e; background: #eceeed; border-radius: 4px; padding: 1px 8px; margin-bottom: 8px; }

/* ---------- 바닥글 ---------- */
.pgt-footer { margin-top: 0; background: #12171E; color: #B0B8C1; font-size: 16px; }
.pgt-footer a { color: #E5E8EB; text-decoration: none; }
.pgt-footer a:hover { color: #fff; text-decoration: underline; }
.pgt-footer__in { max-width: var(--pgt-max); margin: 0 auto; padding: 48px 20px 32px; display: grid; gap: 36px; }
.pgt-logo--light, .pgt-logo--light:hover { color: #fff; }
.pgt-footer__tag { margin: 16px 0; line-height: 1.7; }
.pgt-footer__report { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; background: rgba(255,255,255,0.08); font-weight: 600; }
.pgt-footer__report:hover { background: rgba(255,255,255,0.14); text-decoration: none !important; }
.pgt-footer__report .pgt-ico { width: 20px; height: 20px; color: var(--pg-sun); }
.pgt-footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
.pgt-footer__h { margin: 0 0 12px; color: #fff; font-weight: 700; font-size: 16px; }
.pgt-footer__cols ul { list-style: none; margin: 0; padding: 0; }
.pgt-footer__cols li a { display: inline-block; padding: 7px 0; }
.pgt-footer__bottom { max-width: var(--pgt-max); margin: 0 auto; padding: 24px 20px calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,0.08); font-size: 15px; color: #8B95A1; }
.pgt-footer__bottom p { margin: 0 0 8px; max-width: 760px; }
@media (min-width: 900px) {
	.pgt-footer__in { grid-template-columns: 1.1fr 1.9fr; padding-top: 64px; }
	.pgt-footer__cols { grid-template-columns: repeat(3, 1fr); }
}

/* 맨 위로 */
.pgt-top { position: fixed; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--pg-text); box-shadow: 0 6px 20px rgba(0,0,0,0.12); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.pgt-top.is-shown { opacity: 1; pointer-events: auto; transform: none; }
@media (min-width: 768px) { .pgt-top { bottom: 32px; right: 24px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .pgt-header, .pgt-footer, .pgt-top, .pgt-drawer { display: none !important; } body { background: #fff; } .inside-article { box-shadow: none; padding: 0; } }
