/* 문화탐방 공통 디자인 레이어 — 기존 페이지 위에 일관된 시각 규칙을 적용합니다. */
:root {
  --brand-950: #172b25;
  --brand-900: #213b32;
  --brand-700: #2d604e;
  --brand-600: #36745d;
  --brand-100: #e5efe9;
  --paper: #fffdf8;
  --paper-warm: #f7f1e7;
  --ink: #20312b;
  --muted: #68736f;
  --line: #ded8cd;
  --accent: #d87149;
  --gold: #e1a74d;
  --stage: #55344f;
  --radius-sm: 10px;
  --radius-md: 18px;
  --shadow-soft: 0 12px 34px rgba(31, 53, 45, .08);
  --shadow-lift: 0 20px 42px rgba(31, 53, 45, .14);
}

html { scroll-behavior: smooth; }
body { color: var(--ink); background: var(--paper); letter-spacing: -.01em; }
::selection { color: #fff; background: var(--brand-700); }
.container { width: min(100%, 1240px); }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 9999; padding: 9px 14px; color: #fff; background: var(--brand-950); transform: translateY(-160%); text-decoration: none; }
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header { border-color: rgba(32, 49, 43, .12); box-shadow: 0 4px 22px rgba(23, 43, 37, .045); }
.logo a { color: var(--brand-900); letter-spacing: -.045em; }
.logo-mark { display: inline-grid; width: 29px; height: 29px; place-items: center; border-radius: 9px 9px 9px 2px; color: #fff; background: var(--brand-700); font-family: CultureDisplay, "Noto Sans KR", sans-serif; font-size: .82rem; line-height: 1; }
.main-menu a { position: relative; color: #4d5b56; }
.main-menu a::after { content: ""; position: absolute; right: 5px; bottom: -7px; left: 5px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s ease; }
.main-menu a:hover,.main-menu a.active { color: var(--brand-700); }
.main-menu a:hover::after,.main-menu a.active::after { transform: scaleX(1); }
.mobile-menu a.active { color: var(--accent); background: #fff9f2; }
.hamburger-button { color: var(--brand-700); border-radius: 9px; }
.hamburger-button:hover { background: var(--brand-100); }

/* Shared typography and links */
.section-heading { align-items: center; }
.section-heading h2,.category-grid h2,.region-grid-section h2 { font-family: CultureDisplay, "Noto Sans KR", sans-serif; letter-spacing: -.045em; }
.section-heading > a,.performance-home-note a,.category-guide-more a { text-decoration: none; }
.section-heading > a:hover,.performance-home-note a:hover { color: var(--accent); }
.eyebrow { letter-spacing: .13em; }

/* Card links must never inherit old article underline rules. */
.festival-card a,.performance-card a,.citytour-card a,.forest-card a,.tourist-route-card a,.grid-item a,.related-card,.nearby-culture-grid a,.curation-item a,.guide-card,.best-card,.region-card,.list-card a,.discovery-routes a,.link-chip-list a,.festival-quick-links a,.home-archive-links a,.footer-hub a,.footer-links a { text-decoration: none !important; }

/* Home discovery routes */
.discovery-routes { position: relative; z-index: 2; margin-top: -34px; padding: 0 0 54px; }
.discovery-routes .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid rgba(32, 49, 43, .12); border-radius: var(--radius-md); background: var(--line); box-shadow: var(--shadow-soft); }
.discovery-routes a { position: relative; display: flex; min-width: 0; min-height: 142px; flex-direction: column; padding: 24px; color: var(--ink); background: #fff; transition: background .2s ease, color .2s ease; }
.discovery-routes a:hover { color: #fff; background: var(--brand-700); }
.discovery-routes span { margin-bottom: 16px; color: var(--accent); font-size: .73rem; font-weight: 800; letter-spacing: .12em; }
.discovery-routes strong { font-family: CultureDisplay, "Noto Sans KR", sans-serif; font-size: 1.08rem; }
.discovery-routes small { margin-top: 7px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.discovery-routes a:hover small { color: #dfeae5; }

/* Home section rhythm */
.home-performance-halls,.home-festivals,.category-grid,.region-grid-section { padding: 78px 0; }
.home-performance-halls { background: #f5eff3; }
.home-festivals { background: var(--paper-warm); }
.category-grid { background: var(--paper); }
.region-grid-section { background: #edf3ef; }
.grid { gap: 16px; }
.grid-item { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; box-shadow: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.grid-item:hover { transform: translateY(-4px); border-color: #bfb6a8; box-shadow: var(--shadow-lift); }
.grid-item .icon { filter: saturate(.8); }
.grid-item .detail-button { color: var(--brand-700); }

/* Festival and performance cards share proportion, spacing and motion. */
.festival-card,.performance-card { border-radius: var(--radius-sm); box-shadow: 0 8px 26px rgba(31, 53, 45, .055); }
.festival-card:hover,.performance-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.festival-card-link,.performance-card > a { padding: 22px; }
.festival-card h3,.performance-card h3 { font-size: 1.13rem; line-height: 1.43; }
.festival-more,.performance-more { letter-spacing: -.01em; }
.festival-card a:focus-visible,.performance-card a:focus-visible,.grid-item a:focus-visible,.discovery-routes a:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

/* 확장 탐방 카드도 축제·공연장과 같은 형태와 상호작용을 사용합니다. */
.citytour-card,.forest-card,.tourist-route-card { overflow: hidden; border-radius: var(--radius-sm); box-shadow: 0 8px 26px rgba(31, 53, 45, .055); }
.citytour-card:hover,.forest-card:hover,.tourist-route-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.citytour-card>a,.forest-card>a,.tourist-route-card>a { padding: 22px; }
.citytour-card h3,.forest-card h3,.tourist-route-card h3 { font-size: 1.13rem; line-height: 1.43; }
.citytour-card a:focus-visible,.forest-card a:focus-visible,.tourist-route-card a:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.citytour-filter,.forest-filter,.tourist-route-filter { border-radius: var(--radius-sm); box-shadow: 0 7px 22px rgba(31, 53, 45, .045); }
.citytour-city-links a,.tourist-route-city-links a { text-decoration: none; }

/* Breadcrumbs remain one compact line on phones even for very long titles. */
.breadcrumbs,.breadcrumb-nav { overflow: hidden; flex-wrap: nowrap; min-width: 0; }
.breadcrumbs > *,.breadcrumb-nav > * { flex: none; }
.breadcrumbs > :last-child,.breadcrumb-nav > :last-child { min-width: 0; overflow: hidden; flex: 1; white-space: nowrap; text-overflow: ellipsis; }

/* Detail pages */
.festival-detail-hero,.performance-detail-hero,.citytour-detail-hero,.forest-detail-hero,.tourist-route-detail-hero,.detail-page-header { border-radius: var(--radius-md); }
.festival-detail-layout,.performance-detail-layout { gap: clamp(34px, 5vw, 65px); }
.performance-location-section { margin: 42px 0 0; padding: 28px; border: 1px solid var(--stage-line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-soft); }
.performance-location-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.performance-location-heading .eyebrow { margin-bottom: 5px; }
.performance-location-heading h2 { margin: 0; color: var(--stage-plum-dark); font-family: CultureDisplay, "Noto Sans KR", sans-serif; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.04em; }
.performance-location-heading > a { flex: none; color: var(--stage-plum); font-weight: 800; text-decoration: none; }
.performance-map-embed { width: 100%; height: clamp(300px, 42vw, 460px); overflow: hidden; border-radius: 12px; background: var(--stage-rose); }
.performance-map-embed .google-map-frame { display: block; width: 100%; height: 100%; border: 0; }
.performance-map-note { margin: 12px 0 0; color: var(--muted); font-size: .82rem; }
.festival-detail-main,.performance-detail-layout > article { min-width: 0; }
.festival-story,.performance-story,.detail-seo-summary { max-width: 760px; }
.festival-story > p:not(.eyebrow),.performance-story p,.detail-seo-summary p { color: #394942; line-height: 1.88; }
.festival-detail-aside,.performance-detail-aside,.citytour-detail-aside,.forest-detail-aside,.tourist-route-detail-aside { border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); }
.festival-info-list,.performance-info { border-color: var(--brand-900); }
.festival-info-list div,.performance-info > div { align-items: start; }
.official-button,.performance-map-button,.citytour-official-button,.forest-official-button,.detail-button { border-radius: 8px; transition: transform .18s ease, filter .18s ease; }
.official-button:hover,.performance-map-button:hover,.citytour-official-button:hover,.forest-official-button:hover,.detail-button:hover { transform: translateY(-1px); filter: brightness(.96); }
.nearby-culture-grid a,.related-card { border-radius: var(--radius-sm); background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.nearby-culture-grid a:hover,.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.forest-location-section,.tourist-route-location-section { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-soft); }
.forest-map-embed,.tourist-route-map-embed { overflow: hidden; border-radius: 12px; }
.tourist-route-location-actions { display: flex; max-width: 48%; align-items: flex-end; flex-direction: column; gap: 7px; color: var(--muted); font-size: .88rem; text-align: right; }
.tourist-route-location-actions a { color: var(--route-olive); font-weight: 800; text-decoration: none; }
.facility-tourist-route-links { margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--route-line); }
.facility-tourist-route-links .tourist-route-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facility-tourist-route-links .tourist-route-card>a { min-height: 205px; }
.data-credit a { color: var(--brand-700); font-weight: 750; text-underline-offset: 3px; }
.source-next-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.source-next-links>a:not(.official-button) { color: var(--brand-700); font-weight: 800; text-decoration: none; }

/* Legacy list/detail pages */
.list-page-header,.detail-page-header { background: linear-gradient(125deg, var(--brand-950), var(--brand-700)); }
.detail-page-header h1 { color: #fff; overflow-wrap: anywhere; }
.detail-page-header .address-text { color: var(--brand-100); overflow-wrap: anywhere; }
.filter-bar,.hours-card,.seo-summary,.info-section,.list-card { border-radius: var(--radius-sm); }
.list-card { border-color: var(--line); box-shadow: 0 7px 22px rgba(31, 53, 45, .05); }
.list-card:hover { box-shadow: var(--shadow-soft); }
.link-chip-list a { border-radius: 999px; }

/* Footer */
footer { color: #ccd7d2; background: var(--brand-950); }
.footer-brand { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: 0 0 30px; margin-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.13); }
.footer-brand strong { display: flex; align-items: center; gap: 10px; color: #fff; font-family: CultureDisplay, "Noto Sans KR", sans-serif; font-size: 1.35rem; }
.footer-brand strong span { display: inline-grid; width: 30px; height: 30px; place-items: center; border-radius: 9px 9px 9px 2px; color: var(--brand-950); background: #f1bd70; font-size: .8rem; }
.footer-brand p { margin: 8px 0 0; color: #9fb0a9; font-size: .9rem; }
.footer-brand > a { flex: none; color: #f1bd70; font-weight: 800; text-decoration: none; }
.footer-chip-list a { display: inline-block; padding: 4px 0; }
.footer-chip-list a:hover { color: #f1bd70; text-decoration: none; }
.footer-links { line-height: 2; }

@media (min-width: 1051px) {
  .site-header { height: 67px; padding: 12px 0; }
  .site-header .container { padding-right: 28px; padding-left: 28px; }
  .logo a { font-size: 1.38rem; }
  .main-menu ul { gap: 19px; }
  .main-menu a { font-size: .93rem; }
  .page-wrap { margin-top: 67px; }
}

@media (min-width: 1250px) {
  .main-menu ul { gap: 20px; }
  .main-menu a { font-size: .94rem; }
}

@media (max-width: 980px) {
  .discovery-routes .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .performance-card-grid,.festival-card-grid { gap: 14px; }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  .container { padding-right: 18px; padding-left: 18px; }
  .site-header { position: static; height: 52px; padding: 7px 0; }
  .site-header .container { padding-right: 10px; padding-left: 14px; }
  .page-wrap { margin-top: 0; }
  .logo a { font-size: 1.08rem; }
  .logo-mark { width: 27px; height: 27px; }
  .culture-hero { padding-top: 62px !important; padding-bottom: 78px !important; }
  .culture-hero h1 { font-size: clamp(2.25rem, 11vw, 2.8rem) !important; }
  .culture-hero > div > p:not(.eyebrow) { font-size: 1rem; line-height: 1.65; }
  .discovery-routes { margin-top: -25px; padding-bottom: 40px; }
  .discovery-routes .container { grid-template-columns: 1fr 1fr; padding: 0; border-radius: 13px; }
  .discovery-routes a { min-height: 124px; padding: 18px 16px; }
  .discovery-routes span { margin-bottom: 10px; }
  .discovery-routes strong { font-size: .98rem; }
  .discovery-routes small { display: none; }
  .home-performance-halls,.home-festivals,.category-grid,.region-grid-section { padding: 56px 0; }
  .section-heading { align-items: flex-start; }
  .breadcrumbs,.breadcrumb-nav { padding-top: 17px; padding-bottom: 17px; margin: 0; min-height: 52px; }
  .breadcrumbs > :last-child,.breadcrumb-nav > :last-child { max-width: 42vw; }
  .festival-detail-hero,.performance-detail-hero { border-radius: 12px; }
  .festival-detail-hero h1,.performance-detail-hero h1 { font-size: clamp(2rem, 9.2vw, 2.55rem); }
  .festival-detail-layout,.performance-detail-layout { padding-top: 34px; }
  .performance-location-section { margin-top: 24px; padding: 18px; border-radius: 12px; }
  .performance-location-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 15px; }
  .performance-map-embed { height: 300px; }
  .forest-location-section,.tourist-route-location-section { padding: 18px; border-radius: 12px; }
  .tourist-route-location-actions { max-width: none; align-items: flex-start; text-align: left; }
  .facility-tourist-route-links .tourist-route-card-grid { grid-template-columns: 1fr; }
  .festival-detail-aside,.performance-detail-aside { position: static; }
  .festival-info-list div,.performance-info > div { grid-template-columns: 82px minmax(0, 1fr); }
  .footer-brand { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .discovery-routes a { min-height: 112px; padding: 15px 13px; }
  .discovery-routes strong { font-size: .91rem; }
  .festival-card-link,.performance-card > a { padding: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
