/*
 * HikingEngine Frontend Styles
 * All classes prefixed .hiking-* to avoid theme collisions.
 * Loads ONLY on hiking_trail / hiking_course / hiking_mountain pages.
 */

/* ── Variables ────────────────────────────────────────────────────── */
:root {
	--he-green:       #2d6a4f;
	--he-green-dark:  #1b4332;
	--he-green-light: #52b788;
	--he-amber:       #f4a261;
	--he-red:         #e63946;
	--he-bg:          #f8f9fa;
	--he-card-bg:     #ffffff;
	--he-text:        #2d2d2d;
	--he-text-muted:  #6c757d;
	--he-border:      #dee2e6;
	--he-radius:      12px;
	--he-shadow:      0 2px 12px rgba(0,0,0,.08);
	--he-sidebar-w:   300px;
	--he-gap:         28px;

	/* Astra의 컨테이너 폭을 그대로 상속 — 없으면 1200px 폴백.
	   Astra 커스터마이저에서 사이트 폭을 바꾸면 자동으로 반영됨. */
	--he-max-width: var(--ast-container-max-width, 1200px);
	--he-gutter: 20px;
}

/* ── Reset (scoped) ───────────────────────────────────────────────── */
.hiking-hero *,
.hiking-main *,
.hiking-archive-hero *,
.hiking-archive-main * {
	box-sizing: border-box;
}

/* ── Overflow guard: prevent horizontal scroll from plugin elements ── */
/* hero/archive-hero는 full-width 의도이므로 max-width: 100% 허용 */
.hiking-hero,
.hiking-archive-hero {
	max-width: 100%;
	overflow-x: hidden;
}
/* main/archive-main은 max-width:1200px를 유지하고 overflow만 제어 */
.hiking-main,
.hiking-archive-main {
	overflow-x: hidden;
}

/* ================================================================
   HERO
================================================================ */
.hiking-hero {
	position: relative;
	min-height: 360px;
	display: flex;
	align-items: flex-end;
	background: var(--he-green-dark);
	overflow: hidden;
}

.hiking-hero__bg {
	position: absolute;
	inset: 0;
}

.hiking-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hiking-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0,0,0,.1) 0%,
		rgba(0,0,0,.55) 100%
	);
}

.hiking-hero__content {
	position: relative;
	z-index: 2;
	padding: 40px 20px;
	color: #fff;
}

.hiking-hero--no-image .hiking-hero__content {
	min-height: 200px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hiking-hero__tag {
	display: inline-block;
	background: var(--he-green-light);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 20px;
	margin-bottom: 10px;
	letter-spacing: .3px;
}

.hiking-hero__title {
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	font-weight: 800;
	color: #fff !important;
	line-height: 1.3;
	margin: 0 0 10px;
	text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

.hiking-hero__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	color: rgba(255,255,255,.85);
	font-size: 14px;
	margin: 0;
}

/* ================================================================
   MAIN GRID (article-left + sidebar-right)
   .hiking-main is rendered OUTSIDE Astra's .ast-container, so it
   manages its own max-width / centering.
================================================================ */
.hiking-main {
	display: grid;
	grid-template-columns: 1fr var(--he-sidebar-w);
	grid-template-areas: "article sidebar";
	gap: var(--he-gap);
	align-items: start;
	width: 100%;
	max-width: var(--he-max-width);
	margin: 0 auto;
	padding: 36px var(--he-gutter) 60px;
	box-sizing: border-box;
}

.hiking-article {
	grid-area: article;
	min-width: 0;
}

.hiking-sidebar {
	grid-area: sidebar;
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: sticky;
	top: 80px;
	min-width: 0;
}

/* ── Tablet (860px 이하): 1열, 본문 먼저 ── */
@media (max-width: 860px) {
	.hiking-main {
		grid-template-columns: 1fr;
		grid-template-areas:
			"article"
			"sidebar";
		padding: 24px 16px 48px;
		gap: 20px;
	}

	.hiking-sidebar {
		position: static;
	}

	.hiking-hero {
		min-height: 260px;
	}

	.hiking-hero__content {
		padding: 28px 16px;
	}
}

/* ── 모바일 (480px 이하) ── */
@media (max-width: 480px) {
	.hiking-main {
		padding: 16px 12px 40px;
		gap: 16px;
	}

	.hiking-hero {
		min-height: 200px;
	}

	.hiking-hero__title {
		font-size: 1.4rem;
	}

	.hiking-card {
		padding: 14px;
	}

	.hiking-fact dt,
	.hiking-fact dd {
		font-size: 13px;
	}

	.hiking-content {
		font-size: 15px;
	}

	.hiking-content h2 {
		font-size: 1.2rem;
	}
}

/* ================================================================
   ARTICLE CONTENT
================================================================ */
.hiking-alert {
	border-left: 4px solid var(--he-amber);
	background: #fff8ee;
	border-radius: 6px;
	padding: 14px 18px;
	margin-bottom: 28px;
	font-size: 15px;
	color: var(--he-text);
}

.hiking-alert--closed {
	border-color: var(--he-red);
	background: #fff0f0;
}

.hiking-content {
	font-size: 16px;
	line-height: 1.9;
	color: var(--he-text);
}

.hiking-content h2 {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--he-green-dark);
	margin: 2em 0 .75em;
	padding-bottom: .4em;
	border-bottom: 2px solid var(--he-green-light);
}

.hiking-content h3 {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 1.6em 0 .5em;
}

.hiking-content p {
	margin-bottom: 1.2em;
}

.hiking-content ul,
.hiking-content ol {
	padding-left: 1.6em;
	margin-bottom: 1.2em;
}

.hiking-content li {
	margin-bottom: .4em;
}

.hiking-content strong {
	color: var(--he-green-dark);
}

/* ── Content overflow guards ── */
.hiking-content img {
	max-width: 100%;
	height: auto;
	display: block;
}

.hiking-content table {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	display: block;
}

.hiking-content pre,
.hiking-content code {
	max-width: 100%;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-word;
}

.hiking-article__footer {
	margin-top: 40px;
	padding-top: 16px;
	border-top: 1px solid var(--he-border);
}

.hiking-source-note {
	font-size: 12px;
	color: var(--he-text-muted);
	margin: 0;
}

/* ================================================================
   SIDEBAR CARDS
================================================================ */
.hiking-card {
	background: var(--he-card-bg);
	border-radius: var(--he-radius);
	box-shadow: var(--he-shadow);
	padding: 20px;
	border: 1px solid var(--he-border);
}

.hiking-card__title {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: var(--he-green-dark) !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
	border: none !important;
	letter-spacing: .2px;
}

/* ── Quick Facts ── */
.hiking-facts {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.hiking-fact {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 9px 0;
	border-bottom: 1px solid var(--he-border);
	gap: 8px;
}

.hiking-fact:last-child {
	border-bottom: none;
}

.hiking-fact dt {
	font-size: 13px;
	color: var(--he-text-muted);
	font-weight: 500;
	flex-shrink: 0;
}

.hiking-fact dd {
	font-size: 14px;
	font-weight: 600;
	color: var(--he-text);
	text-align: right;
	margin: 0;
}

.hiking-fact--risk dd {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}

/* Risk bar */
.hiking-risk-bar {
	width: 100px;
	height: 6px;
	background: #e9ecef;
	border-radius: 3px;
	overflow: hidden;
}

.hiking-risk-bar__fill {
	height: 100%;
	background: linear-gradient(to right, var(--he-green-light), var(--he-amber));
	border-radius: 3px;
	transition: width .4s ease;
}

.hiking-risk-label {
	font-size: 12px;
	color: var(--he-text-muted);
}

/* ── Difficulty badges ── */
.hiking-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	padding: 2px 9px;
	border-radius: 20px;
	letter-spacing: .3px;
}

.hiking-badge--easy   { background: #d8f3dc; color: #1b4332; }
.hiking-badge--medium { background: #fff3cd; color: #7d5a00; }
.hiking-badge--hard   { background: #ffe0e0; color: #9b1c1c; }

/* ── TOC ── */
.hiking-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: toc;
}

.hiking-toc__list li {
	counter-increment: toc;
	margin-bottom: 0;
}

.hiking-toc__list li a {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	padding: 7px 0;
	font-size: 13px;
	color: var(--he-text);
	border-bottom: 1px solid var(--he-border);
	transition: color .15s;
}

.hiking-toc__list li:last-child a {
	border-bottom: none;
}

.hiking-toc__list li a::before {
	content: counter(toc) ".";
	flex-shrink: 0;
	color: var(--he-green-light);
	font-weight: 700;
	font-size: 12px;
	margin-top: 1px;
}

.hiking-toc__list li a:hover,
.hiking-toc__list li a.active {
	color: var(--he-green);
}

/* ── Related ── */
.hiking-related__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hiking-related__link {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--he-text);
	font-size: 13px;
	font-weight: 500;
	transition: color .15s;
}

.hiking-related__link:hover {
	color: var(--he-green);
}

.hiking-related__thumb {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
}

/* ================================================================
   ARCHIVE PAGE
================================================================ */
.hiking-archive-hero {
	background: linear-gradient(135deg, var(--he-green-dark) 0%, var(--he-green) 100%);
	padding: 48px 0 40px;
	color: #fff;
}

.hiking-archive-hero__title {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-weight: 800;
	margin: 0 0 8px;
	color: #fff;
}

.hiking-archive-hero__desc {
	font-size: 15px;
	color: rgba(255,255,255,.8);
	margin: 0;
}

.hiking-archive-main {
	padding-top: 52px;
	padding-bottom: 64px;
}

/* Card grid */
.hiking-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 40px;
}

@media (max-width: 860px) {
	.hiking-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.hiking-card-grid {
		grid-template-columns: 1fr;
	}
}

/* Trail card */
.hiking-trail-card {
	background: var(--he-card-bg);
	border-radius: var(--he-radius);
	box-shadow: var(--he-shadow);
	border: 1px solid var(--he-border);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}

.hiking-trail-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.hiking-trail-card__thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.hiking-trail-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}

.hiking-trail-card:hover .hiking-trail-card__thumb img {
	transform: scale(1.04);
}

.hiking-trail-card__thumb--empty {
	background: linear-gradient(135deg, var(--he-green-dark), var(--he-green));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
}

.hiking-trail-card__body {
	padding: 16px;
}

.hiking-trail-card__body .hiking-badge {
	margin-bottom: 8px;
}

.hiking-trail-card__title {
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	margin: 0 0 8px !important;
	border: none !important;
	padding: 0 !important;
}

.hiking-trail-card__title a {
	color: var(--he-text);
	transition: color .15s;
}

.hiking-trail-card__title a:hover {
	color: var(--he-green);
}

.hiking-trail-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 12px;
	color: var(--he-text-muted);
	margin-bottom: 10px;
}

.hiking-trail-card__excerpt {
	font-size: 13px;
	color: var(--he-text-muted);
	line-height: 1.6;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Pagination */
.hiking-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
}

.hiking-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 6px;
	border: 1px solid var(--he-border);
	font-size: 14px;
	color: var(--he-text);
	transition: all .15s;
}

.hiking-pagination .page-numbers.current,
.hiking-pagination .page-numbers:hover {
	background: var(--he-green);
	border-color: var(--he-green);
	color: #fff;
}

.hiking-no-posts {
	text-align: center;
	color: var(--he-text-muted);
	padding: 60px 0;
}

/* ================================================================
   WIDTH CONSISTENCY: Astra theme may apply padding/max-width to
   .entry-content globally. Override within our layout to keep
   gear section and footer visually aligned with body text.
================================================================ */
.hiking-article .entry-content {
	padding-left: 0 !important;
	padding-right: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

.hiking-article__footer {
	width: 100%;
	box-sizing: border-box;
}

/* ================================================================
   MAP LINK CARD (sidebar, mountain pages)
================================================================ */
.hiking-map-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hiking-map-btn {
	display: block;
	text-align: center;
	padding: 9px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	background: var(--he-green);
	color: #fff;
	transition: background .15s;
}

.hiking-map-btn:hover {
	background: var(--he-green-dark);
	color: #fff;
	text-decoration: none;
}

.hiking-map-btn--forest {
	background: #4b7c53;
}

.hiking-map-btn--forest:hover {
	background: #3a6040;
}

/* ================================================================
   MOUNTAIN MAP (Leaflet container + fallback)
================================================================ */
.hiking-mountain-map-container {
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	margin: 24px 0;
	border: 1px solid var(--he-border);
}

.hiking-mountain-map-fallback {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 28px 20px;
	background: var(--he-bg);
	border: 1px solid var(--he-border);
	border-radius: 8px;
	margin: 24px 0;
	text-align: center;
}

.hiking-mountain-map-fallback p {
	margin: 0;
	color: var(--he-text-muted);
	font-size: 14px;
}

.hiking-mountain-map-fallback .hiking-map-btn {
	min-width: 200px;
}

.hiking-mountain-map-fallback__icon {
	font-size: 2rem;
	line-height: 1;
}

/* ================================================================
   FAQ (details/summary — he-mountain-faq)
================================================================ */
.he-mountain-faq {
	margin: 2em 0 1em;
}

.he-mountain-faq h2 {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--he-green-dark);
	margin: 0 0 .75em;
	padding-bottom: .4em;
	border-bottom: 2px solid var(--he-green-light);
}

.he-mountain-faq details {
	border: 1px solid var(--he-border);
	border-radius: 8px;
	margin-bottom: 8px;
	overflow: hidden;
}

.he-mountain-faq details summary {
	cursor: pointer;
	padding: 14px 18px;
	font-weight: 600;
	font-size: 15px;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--he-bg);
	user-select: none;
}

.he-mountain-faq details summary::-webkit-details-marker {
	display: none;
}

.he-mountain-faq details summary::after {
	content: '+';
	font-size: 1.2rem;
	color: var(--he-green-light);
	flex-shrink: 0;
}

.he-mountain-faq details[open] summary::after {
	content: '−';
}

.he-mountain-faq details[open] summary {
	border-bottom: 1px solid var(--he-border);
	color: var(--he-green);
}

.he-mountain-faq details p {
	padding: 14px 18px;
	margin: 0;
	font-size: 15px;
	line-height: 1.8;
	color: var(--he-text);
}

/* ================================================================
   SEASON BADGES  (봄 / 여름 / 가을 / 겨울)
================================================================ */
.he-season {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 14px 4px 10px;
	border-radius: 20px;
	font-weight: 700;
	font-size: 0.92em;
	line-height: 1.6;
	white-space: nowrap;
	vertical-align: middle;
	margin: 2px 0;
}

.he-season--spring {
	background: #fde8f0;
	color: #b5004e;
	border: 1.5px solid #f5a7c8;
}

.he-season--summer {
	background: #e6f7e9;
	color: #0d6b2e;
	border: 1.5px solid #7ecb96;
}

.he-season--autumn {
	background: #fff3e0;
	color: #8b3a00;
	border: 1.5px solid #f4a261;
}

.he-season--winter {
	background: #e3f0ff;
	color: #0a3d8f;
	border: 1.5px solid #7eaef4;
}

/* ================================================================
   BREADCRUMB
================================================================ */
.he-breadcrumb {
	background: #f8f9fa;
	border-bottom: 1px solid var(--he-border);
	padding: 10px 0;
	font-size: 0.83em;
	color: var(--he-text-muted);
}

.he-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.he-breadcrumb__list li + li::before {
	content: '›';
	margin-right: 4px;
	color: var(--he-text-muted);
}

.he-breadcrumb__list a {
	color: var(--he-green);
	text-decoration: none;
}

.he-breadcrumb__list a:hover {
	text-decoration: underline;
}

.he-breadcrumb__list [aria-current="page"] {
	color: var(--he-text-muted);
}

/* Rank Math breadcrumb override — match our style */
.he-breadcrumb .rank-math-breadcrumb p {
	margin: 0;
	font-size: inherit;
}

.he-breadcrumb .rank-math-breadcrumb a {
	color: var(--he-green);
	text-decoration: none;
}

/* ================================================================
   TL;DR 요약 박스 — 산(he-tldr) + 트레일(he-trail-summary) 공통
================================================================ */
.he-tldr,
.he-trail-summary {
	background: linear-gradient(135deg, #f0faf4 0%, #e8f5e9 100%);
	border-left: 5px solid var(--he-green);
	border-radius: 0 10px 10px 0;
	padding: 18px 22px;
	margin: 0 0 2em;
	box-shadow: 0 2px 10px rgba(45,106,79,.10);
}

/* 트레일 요약 박스: "💡 한눈에 보기" 레이블 CSS로 삽입 */
.he-trail-summary::before {
	content: '💡 한눈에 보기';
	display: block;
	font-size: 0.78em;
	font-weight: 800;
	letter-spacing: .08em;
	color: var(--he-green);
	margin-bottom: 8px;
}

.he-tldr__label {
	font-size: 0.78em;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--he-green);
	margin: 0 0 8px;
}

/* 요약 본문 5줄 고정 — 트레일·산 공통 */
.he-tldr__body,
.he-trail-summary p:first-child {
	font-size: 0.97em;
	line-height: 1.8;
	color: var(--he-text);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 트레일 요약: 두 번째 문단 이후 숨김 */
.he-trail-summary p + p {
	display: none;
}

/* ================================================================
   SEASON CARDS  — 계절별 등산 가이드 섹션 카드
================================================================ */
.he-season-card {
	border-radius: 12px;
	overflow: hidden;
	margin: 1.4em 0;
	box-shadow: 0 3px 14px rgba(0,0,0,.09);
	border: 1.5px solid transparent;
}

.he-season-card__header {
	display: flex;
	align-items: center;
	padding: 13px 20px;
	font-size: 1.08em;
	font-weight: 800;
	letter-spacing: -.01em;
}

/* 카드 헤더 안에서는 pill 배지 스타일 해제 — 헤더 자체가 배경 제공 */
.he-season-card__header .he-season {
	background: transparent;
	border: none;
	padding: 0;
	font-size: 1em;
	font-weight: 800;
	white-space: normal;
	vertical-align: baseline;
	margin: 0;
	gap: 6px;
}

.he-season-card__body {
	padding: 16px 20px;
	background: #fff;
	font-size: 0.96em;
	line-height: 1.85;
	color: var(--he-text);
}

.he-season-card__body p:first-child { margin-top: 0; }
.he-season-card__body p:last-child  { margin-bottom: 0; }

/* 봄 */
.he-season-card--spring { border-color: #f5a7c8; }
.he-season-card--spring .he-season-card__header { background: #fde8f0; color: #b5004e; }

/* 여름 */
.he-season-card--summer { border-color: #7ecb96; }
.he-season-card--summer .he-season-card__header { background: #e6f7e9; color: #0d6b2e; }

/* 가을 */
.he-season-card--autumn { border-color: #f4a261; }
.he-season-card--autumn .he-season-card__header { background: #fff3e0; color: #8b3a00; }

/* 겨울 */
.he-season-card--winter { border-color: #7eaef4; }
.he-season-card--winter .he-season-card__header { background: #e3f0ff; color: #0a3d8f; }

/* ================================================================
   NUMBERED STEP LEAD  — (1) (2) … at line start: bold + larger
================================================================ */
.he-step-lead {
	font-size: 1.08em;
	font-weight: 800;
	color: var(--he-green-dark);
	letter-spacing: -0.01em;
}

/* ================================================================
   MOUNTAIN ARTICLE WIDTH — ensure full-width within article column
================================================================ */
.hiking-article .hiking-content {
	width: 100%;
	min-width: 0;
}

.hiking-article__footer {
	width: 100%;
	box-sizing: border-box;
}

/* ================================================================
   MOBILE RESPONSIVE — mountain-specific additions
   (main grid collapse already handled by existing media queries)
================================================================ */
@media (max-width: 860px) {
	/* Map in article: shorter height on tablet */
	.hiking-mountain-map-container {
		height: 280px !important;
	}

	/* Sidebar map card becomes horizontal on tablet */
	.hiking-map-card {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.hiking-map-card .hiking-map-btn {
		flex: 1 1 140px;
	}
}

@media (max-width: 480px) {
	/* Map: smaller on mobile */
	.hiking-mountain-map-container {
		height: 230px !important;
		margin: 16px 0;
	}

	/* Sidebar map: stack buttons */
	.hiking-map-card {
		flex-direction: column;
	}

	.hiking-map-card .hiking-map-btn {
		width: 100%;
	}

	/* FAQ on mobile */
	.he-mountain-faq details summary {
		padding: 12px 14px;
		font-size: 14px;
	}

	.he-mountain-faq details p {
		padding: 12px 14px;
		font-size: 14px;
	}

	/* Gear section on mobile */
	.he-gear-section {
		padding: 16px 14px 14px;
	}

	/* Map fallback on mobile */
	.hiking-mountain-map-fallback {
		padding: 20px 14px;
	}

	.hiking-mountain-map-fallback .hiking-map-btn {
		width: 100%;
		min-width: 0;
	}
}

/* ================================================================
   PAGE HEADER  — 일반 WP 페이지 상단 헤더 (season / courses 등)
================================================================ */
.he-page-header {
	background: var(--he-green-dark);
	color: #fff;
	padding: 48px 20px 40px;
}

.he-page-header__eyebrow {
	font-size: .8rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .8;
	margin: 0 0 8px;
	color: #fff;
}

.he-page-header__title {
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	font-weight: 800;
	margin: 0 0 10px;
	color: #fff;
}

.he-page-header__desc {
	font-size: 1rem;
	opacity: .85;
	margin: 0;
	line-height: 1.6;
	color: #fff;
}

.he-page-body {
	padding: 40px 0 56px;
}

/* ================================================================
   HOME PAGE  (.he-home-*)
================================================================ */

/* ── Hero ──────────────────────────────────────────────────────── */
.he-home-hero {
	position: relative;
	min-height: 520px;
	display: flex;
	align-items: center;
	background: linear-gradient(135deg, var(--he-green-dark) 0%, #1a4a35 50%, #0d2b1f 100%);
	overflow: hidden;
}

.he-home-hero__bg {
	position: absolute;
	inset: 0;
}

.he-home-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.he-home-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.35) 100%);
}

.he-home-hero__content {
	position: relative;
	z-index: 1;
	padding: 80px 20px;
	color: #fff;
	max-width: 680px;
}

.he-home-hero__eyebrow {
	font-size: .85rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .85;
	margin: 0 0 12px;
	color: #fff;
}

.he-home-hero__title {
	font-size: clamp(2rem, 5vw, 3.2rem);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 16px;
	color: #fff;
}

.he-home-hero__desc {
	font-size: 1.1rem;
	opacity: .9;
	margin: 0 0 32px;
	line-height: 1.6;
	color: #fff;
}

.he-home-hero__cta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.he-home-btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	transition: transform .15s, box-shadow .15s;
	cursor: pointer;
}

.he-home-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.he-home-btn--primary {
	background: var(--he-green-light);
	color: #fff;
}

.he-home-btn--outline {
	background: rgba(255,255,255,.15);
	color: #fff;
	border: 2px solid rgba(255,255,255,.55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

/* ── Quick Nav ─────────────────────────────────────────────────── */
.he-home-quicknav {
	background: #fff;
	box-shadow: 0 4px 16px rgba(0,0,0,.07);
	position: relative;
	z-index: 2;
}

.he-home-quicknav__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.he-home-quicknav__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	text-align: center;
	text-decoration: none;
	color: var(--he-text);
	border-right: 1px solid var(--he-border);
	transition: background .15s;
}

.he-home-quicknav__card:last-child {
	border-right: none;
}

.he-home-quicknav__card:hover {
	background: var(--he-bg);
}

.he-home-quicknav__icon {
	font-size: 1.8rem;
	margin-bottom: 8px;
	line-height: 1;
}

.he-home-quicknav__label {
	font-size: .95rem;
	font-weight: 700;
	color: var(--he-green-dark);
	display: block;
}

.he-home-quicknav__sub {
	font-size: .78rem;
	color: var(--he-text-muted);
	margin-top: 4px;
	display: block;
}

/* ── Sections ──────────────────────────────────────────────────── */
.he-home-section {
	padding: 56px 0;
}

.he-home-section--finder {
	background: var(--he-bg);
}

.he-home-section__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 8px;
}

.he-home-section__title {
	font-size: clamp(1.4rem, 3vw, 1.8rem);
	font-weight: 800;
	color: var(--he-green-dark);
	margin: 0;
}

.he-home-section__more {
	font-size: .9rem;
	color: var(--he-green-light);
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
}

.he-home-section__more:hover {
	text-decoration: underline;
}

.he-home-section__desc {
	color: var(--he-text-muted);
	margin: -16px 0 20px;
	font-size: .95rem;
}

/* ── Stats Banner ──────────────────────────────────────────────── */
.he-home-stats {
	background: var(--he-green-dark);
	padding: 48px 20px;
	color: #fff;
}

.he-home-stats__grid {
	display: flex;
	justify-content: center;
	gap: 56px;
	flex-wrap: wrap;
}

.he-home-stats__item {
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.he-home-stats__num {
	font-size: 2.4rem;
	font-weight: 800;
	color: var(--he-green-light);
	line-height: 1;
}

.he-home-stats__label {
	font-size: .85rem;
	opacity: .8;
}

/* ── Home Responsive ────────────────────────────────────────────── */
@media (max-width: 860px) {
	.he-home-quicknav__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.he-home-quicknav__card {
		border-bottom: 1px solid var(--he-border);
	}

	.he-home-quicknav__card:nth-child(odd) {
		border-right: 1px solid var(--he-border);
	}

	.he-home-quicknav__card:nth-child(even) {
		border-right: none;
	}

	.he-home-quicknav__card:nth-last-child(-n+2) {
		border-bottom: none;
	}

	.he-home-stats__grid {
		gap: 32px;
	}
}

@media (max-width: 480px) {
	.he-home-hero {
		min-height: 420px;
	}

	.he-home-section {
		padding: 40px 0;
	}

	.he-home-stats__num {
		font-size: 2rem;
	}
}

/* ================================================================
   GLOBAL RESPONSIVE — 모든 플러그인 페이지 공통
   (헤더·푸터 너비와 콘텐츠 너비 일치 + 모바일 반응형)
================================================================ */

/* ── 태블릿 (860px 이하) ── */
@media (max-width: 860px) {

	/* ─ gutter 줄이기 ─ */
	:root { --he-gutter: 16px; }

	/* ─ 아카이브 히어로 ─ */
	.hiking-archive-hero         { padding: 36px 0 28px; }
	.hiking-archive-hero__title  { font-size: 1.6rem; }
	.hiking-archive-main         { padding-top: 36px; padding-bottom: 48px; }

	/* ─ 페이지 헤더 (season 등) ─ */
	.he-page-header              { padding: 36px var(--he-gutter) 28px; }
	.he-page-header__title       { font-size: 1.6rem; }
	.he-page-body                { padding: 32px 0 48px; }

	/* ─ 홈 히어로 ─ */
	.he-home-hero                { min-height: 400px; }
	.he-home-hero__content       { padding: 56px var(--he-gutter); }

	/* ─ 홈 섹션 ─ */
	.he-home-section             { padding: 44px 0; }
	.he-home-section__title      { font-size: 1.4rem; }

	/* ─ 홈 스탯 ─ */
	.he-home-stats               { padding: 40px var(--he-gutter); }
	.he-home-stats__grid         { gap: 32px; }
}

/* ── 모바일 (600px 이하) ── */
@media (max-width: 600px) {

	/* ─ gutter 최소화 ─ */
	:root { --he-gutter: 14px; }

	/* ─ 아카이브 히어로 ─ */
	.hiking-archive-hero         { padding: 28px 0 22px; }
	.hiking-archive-hero__title  { font-size: 1.4rem; }
	.hiking-archive-main         { padding-top: 24px; padding-bottom: 36px; }

	/* ─ 페이지 헤더 ─ */
	.he-page-header              { padding: 28px var(--he-gutter) 22px; }
	.he-page-header__title       { font-size: 1.35rem; }
	.he-page-header__desc        { font-size: .9rem; }
	.he-page-body                { padding: 24px 0 36px; }

	/* ─ 홈 히어로 ─ */
	.he-home-hero                { min-height: 320px; }
	.he-home-hero__content       { padding: 40px var(--he-gutter); max-width: 100%; }
	.he-home-hero__title         { font-size: 1.75rem; }
	.he-home-hero__desc          { font-size: .95rem; margin-bottom: 24px; }
	.he-home-hero__eyebrow       { font-size: .78rem; }
	.he-home-btn                 { padding: 12px 20px; font-size: .9rem; }
	.he-home-hero__cta           { gap: 8px; }

	/* ─ 퀵네비 2열 → 모바일에서도 2열 유지, 글자만 줄임 ─ */
	.he-home-quicknav__icon      { font-size: 1.4rem; }
	.he-home-quicknav__label     { font-size: .85rem; }
	.he-home-quicknav__sub       { font-size: .72rem; }
	.he-home-quicknav__card      { padding: 18px 10px; }

	/* ─ 홈 섹션 ─ */
	.he-home-section             { padding: 28px 0; }
	.he-home-section__title      { font-size: 1.2rem; }
	.he-home-section__header     { margin-bottom: 16px; }

	/* ─ 홈 스탯 ─ */
	.he-home-stats               { padding: 32px var(--he-gutter); }
	.he-home-stats__grid         { gap: 20px; }
	.he-home-stats__num          { font-size: 1.8rem; }
	.he-home-stats__label        { font-size: .78rem; }

	/* ─ 카드 그리드 1열 ─ */
	.hiking-card-grid            { grid-template-columns: 1fr; gap: 16px; }

	/* ─ 페이지네이션 ─ */
	.hiking-pagination           { gap: 4px; }
}
