/* =============================================
   한배미마을 · 주월리 — 공용 스타일
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;600;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* --- 변수 --- */
:root {
  --primary:       #3a5f3e;
  --primary-dark:  #2b4630;
  --primary-light: #5a8561;
  --accent:        #c07d3a;
  --accent-light:  #e09a55;
  --bg:            #faf7f0;
  --bg-alt:        #f0ebe0;
  --bg-dark:       #2b2620;
  --text:          #2a2520;
  --text-muted:    #6e6660;
  --border:        #d8d0c0;
  --white:         #ffffff;
  --radius:        10px;
  --shadow:        0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover:  0 8px 32px rgba(0,0,0,0.14);
  --transition:    0.25s ease;
}

/* --- 리셋 --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- 공용 --- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--primary-dark); color: var(--white); }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(192,125,58,0.1);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.8;
}

/* --- 버튼 --- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn--outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

.btn--outline-white {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
  background: transparent;
}
.btn--outline-white:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

.btn--sm { padding: 9px 20px; font-size: 0.88rem; }

/* --- 이미지 플레이스홀더 --- */
.img-ph {
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}
.img-ph::before {
  content: '📷';
  font-size: 2rem;
}

/* --- 실제 사진 (그림 삽입용) --- */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  filter: saturate(1.05);
  backface-visibility: hidden;
}
.photo:hover img { transform: scale(1.04); }

/* 이미지 위에 살짝 어두운 오버레이 (호버 시) */
.photo--hover-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.photo--hover-overlay:hover::after { opacity: 1; }

/* 갤러리 카드 — 부드러운 둥근 모서리 + 그림자 */
.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}

/* 히어로 우측 사진 — 어둡게 톤다운 */
.hero__right .photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(43,70,48,0.35) 0%, rgba(43,70,48,0.05) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* 그림21을 4분할로 보여주기 위한 컨테이너 */
.facility-photo {
  height: 180px;
  background-image: url('../images/facilities.png');
  background-size: 400% 100%;
  background-repeat: no-repeat;
  position: relative;
  transition: transform 0.4s ease;
}
.facility-photo--pool   { background-position:   0% center; }
.facility-photo--fish   { background-position:  33.33% center; }
.facility-photo--bbq    { background-position:  66.66% center; }
.facility-photo--parking{ background-position: 100% center; }
.facility-card:hover .facility-photo { transform: scale(1.06); }
.facility-card {
  overflow: hidden;
}

/* =============================================
   헤더 / 네비게이션
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.1); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo {
  display: flex;
  align-items: center;
  line-height: 1;
  transition: opacity var(--transition);
}
.nav__logo:hover { opacity: 0.85; }
.nav__logo img {
  height: 44px;
  width: auto;
  display: block;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__item a {
  display: inline-block;
  padding: 9px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  border-radius: 8px;
  border: 1.5px solid var(--accent);
  background: transparent;
  transition: transform 0.25s ease,
              background 0.25s ease,
              color 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  will-change: transform;
}
.nav__item a:hover {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 16px rgba(192,125,58,0.28);
}
.nav__item.active a {
  color: var(--white);
  font-weight: 700;
  background: var(--accent);
  border-color: var(--accent);
}
.nav__item.active a:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px) scale(1.06);
}

.nav__cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  border-color: var(--accent) !important;
}
.nav__cta:hover {
  background: var(--accent-light) !important;
  border-color: var(--accent-light) !important;
  color: var(--white) !important;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 16px rgba(192,125,58,0.35);
}
.nav__item.active .nav__cta {
  background: var(--accent-light) !important;
  border-color: var(--accent-light) !important;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =============================================
   히어로 (index.html)
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  padding-top: 68px;
}
.hero__left {
  flex: 0 0 55%;
  display: flex;
  align-items: center;
  background: linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 60%, #4d7a52 100%);
  padding: 80px 60px 80px 80px;
}
.hero__right {
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;
}
.hero__right .img-ph {
  position: absolute;
  inset: 0;
  border: none;
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  background: linear-gradient(135deg, #2b4630 0%, #4a7550 100%);
}
.hero__right .img-ph::before { font-size: 3rem; color: rgba(255,255,255,0.3); }

.hero__content { max-width: 480px; }
.hero__badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  border: 1px solid var(--accent-light);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero__title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 20px;
}
.hero__desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 36px;
}
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- 통계 띠 --- */
.stats-bar {
  background: var(--accent);
  padding: 28px 0;
}
.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,0.3);
}
.stat-item:last-child { border-right: none; }
.stat-item__num {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-item__label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
}

/* =============================================
   마을 소개 섹션 (index)
   ============================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__img { height: 420px; border-radius: var(--radius); overflow: hidden; }
.about__img .img-ph { height: 100%; border-radius: var(--radius); }
.about__text p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 14px;
}
.about__highlights {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about__highlight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
}
.about__highlight-icon { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }

/* =============================================
   사계절 체험 미리보기 (index)
   ============================================= */
.seasons__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.season-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.season-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.season-card__img {
  height: 180px;
  position: relative;
}
.season-card__img .img-ph { height: 100%; border: none; border-radius: 0; }
.season-card__season-tag {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  color: var(--white);
}
.season-card__season-tag.spring  { background: #7cb563; }
.season-card__season-tag.summer  { background: #3a9bd5; }
.season-card__season-tag.autumn  { background: #d4782a; }
.season-card__season-tag.winter  { background: #7a9bbf; }

.season-card__body { padding: 20px; }
.season-card__period { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.season-card__name {
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.season-card__desc { font-size: 0.86rem; color: var(--text-muted); line-height: 1.6; }
.season-card__sub { display:block; margin-top:3px; font-size:0.82rem; font-weight:400; color:var(--text-muted); }

/* =============================================
   숙소 미리보기 (index)
   ============================================= */
.stay-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.stay-preview-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.stay-preview-card:hover { box-shadow: var(--shadow-hover); }
.stay-preview-card__img { flex: 0 0 140px; }
.stay-preview-card__img .img-ph { height: 140px; border: none; border-radius: 0; }
.stay-preview-card__body { padding: 20px 20px 20px 0; }
.stay-preview-card__name {
  font-family: 'Noto Serif KR', serif;
  font-weight: 700;
  margin-bottom: 6px;
}
.stay-preview-card__info { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }
.stay-preview-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(58,95,62,0.1);
  color: var(--primary);
  margin-top: 8px;
  margin-right: 4px;
}

/* =============================================
   공지사항 미리보기 (index)
   ============================================= */
.notices-preview-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.notice-list { margin-top: 16px; }
.notice-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--transition);
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { opacity: 0.75; }
.notice-item__cat {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-alt);
  color: var(--text-muted);
}
.notice-item__title { flex: 1; font-size: 0.92rem; }
.notice-item__date { font-size: 0.78rem; color: var(--text-muted); flex-shrink: 0; }

/* =============================================
   페이지 히어로 (서브 페이지 공용)
   ============================================= */
.page-hero {
  padding-top: 68px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding-bottom: 56px;
  padding-top: calc(68px + 56px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50px;
  background: var(--bg);
  clip-path: ellipse(60% 100% at 50% 100%);
}
.page-hero__label { color: var(--accent-light); }
.page-hero__title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero__desc { color: rgba(255,255,255,0.75); font-size: 1rem; }

/* =============================================
   체험 프로그램 페이지
   ============================================= */
.season-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.season-tab {
  padding: 10px 24px;
  border-radius: 30px;
  border: 2px solid var(--border);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  color: var(--text-muted);
}
.season-tab:hover { border-color: var(--primary); color: var(--primary); }
.season-tab.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

.program-panel { display: none; }
.program-panel.active { display: block; }

.program-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.program-detail__img { border-radius: var(--radius); overflow: hidden; }
.program-detail__img .img-ph { height: 340px; border-radius: var(--radius); }

.program-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.program-meta-item {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 14px 16px;
}
.program-meta-item__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.program-meta-item__value { font-size: 0.92rem; font-weight: 600; }

.program-detail__title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.program-detail__desc {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 24px;
}
.program-detail__items { margin-bottom: 24px; }
.program-detail__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.program-detail__item:last-child { border-bottom: none; }
.program-detail__item-icon { color: var(--primary); }

/* --- 예약 폼 --- */
.reservation-section { background: var(--bg-alt); }
.reservation-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--full { grid-column: 1 / -1; }
.form-label { font-size: 0.88rem; font-weight: 500; }
.form-label .required { color: var(--accent); margin-left: 3px; }
.form-input, .form-select, .form-textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.92rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

/* 날짜 입력 — 클릭으로만 선택 */
.form-input--date {
  cursor: pointer;
  caret-color: transparent;
}
.form-input--date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.form-input--date:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}
.form-input--date:hover {
  border-color: var(--primary);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-count { display: flex; align-items: center; gap: 10px; }
.form-count input { width: 70px; text-align: center; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; }
.form-check input { width: 16px; height: 16px; accent-color: var(--primary); }

/* =============================================
   숙소 페이지
   ============================================= */
.stay-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.stay-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stay-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.stay-card__img .img-ph { height: 240px; border: none; border-radius: 0; }
.stay-card__body { padding: 28px; }
.stay-card__name {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.stay-card__capacity { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; }
.stay-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.stay-card__feature {
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(58,95,62,0.1);
  color: var(--primary);
}
.stay-card__desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; }

/* =============================================
   공지사항 페이지
   ============================================= */
.notice-filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.notice-filter-tab {
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}
.notice-filter-tab:hover { color: var(--primary); }
.notice-filter-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }

.notice-table { width: 100%; border-collapse: collapse; }
.notice-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-bottom: 2px solid var(--border);
}
.notice-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  vertical-align: middle;
}
.notice-table tr:hover td { background: rgba(58,95,62,0.04); cursor: pointer; }
.notice-table .cat-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.cat-badge.notice  { background: rgba(58,95,62,0.12); color: var(--primary); }
.cat-badge.exp     { background: rgba(192,125,58,0.15); color: var(--accent); }
.cat-badge.stay    { background: rgba(60,120,200,0.12); color: #3a78c8; }

/* =============================================
   오시는 길 페이지
   ============================================= */
.directions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.map-area {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-area .img-ph { height: 400px; border-radius: var(--radius); border: none; }
.map-area iframe { width: 100%; height: 400px; border: none; display: block; }

.directions-info {}
.direction-method {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.direction-method__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.direction-method__icon { font-size: 1.4rem; }
.direction-method__title { font-weight: 700; font-size: 1rem; }
.direction-method__steps { display: flex; flex-direction: column; gap: 8px; }
.direction-step {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.direction-step-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 2px;
}
.address-box {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 0.92rem;
  line-height: 1.8;
}
.address-box strong { font-weight: 700; color: var(--text); }

/* =============================================
   마을소개 페이지
   ============================================= */
.village-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.village-story--reverse { direction: rtl; }
.village-story--reverse > * { direction: ltr; }
.village-story__img { border-radius: var(--radius); overflow: hidden; }
.village-story__img .img-ph { height: 360px; border-radius: var(--radius); }
.village-story__text p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 14px;
}

/* =============================================
   푸터
   ============================================= */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}
.footer__brand-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.footer__brand-sub { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer__brand-desc { font-size: 0.85rem; line-height: 1.8; }
.footer__col-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--accent-light); }
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.footer__contact-icon { flex-shrink: 0; color: var(--accent-light); margin-top: 2px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* =============================================
   모달
   ============================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 48px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-icon { font-size: 3rem; margin-bottom: 16px; }
.modal-title { font-family: 'Noto Serif KR', serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.modal-desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }

/* =============================================
   반응형
   ============================================= */
@media (max-width: 900px) {
  .hero { flex-direction: column; min-height: auto; }
  .hero__left { flex: none; padding: 60px 32px; }
  .hero__right { flex: none; height: 260px; }
  .about__grid, .program-detail, .directions-grid,
  .village-story, .stay-preview__grid { grid-template-columns: 1fr; gap: 32px; }
  .village-story--reverse { direction: ltr; }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .seasons__grid { grid-template-columns: repeat(2, 1fr); }
  .stay-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* 반응형 grid 클래스 */
.facility-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.gallery-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.cta-grid      { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

@media (max-width: 900px) {
  .facility-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
}

/* 네비게이션 햄버거 전환 (태블릿 포함) */
@media (max-width: 900px) {
  .nav__menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 6px 0;
    gap: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 100;
  }
  .nav__menu.open { display: flex; }
  .nav__item { width: 100%; }
  .nav__item a {
    display: block;
    padding: 11px 24px;
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--bg);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    background: transparent;
    transform: none !important;
    box-shadow: none !important;
  }
  .nav__item a:hover,
  .nav__item.active a {
    background: var(--bg);
    color: var(--accent);
    border-color: var(--bg);
  }
  .nav__item .nav__cta,
  .nav__item.active .nav__cta {
    background: transparent !important;
    color: var(--accent) !important;
    border: none !important;
  }
  .nav__toggle { display: flex; }
}

/* 소형 모바일 추가 조정 */
@media (max-width: 640px) {
  .hero__left { padding: 48px 24px; }
  .section { padding: 56px 0; }
  .seasons__grid { grid-template-columns: 1fr; }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .reservation-box { padding: 28px 20px; }
  .facility-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid  { grid-template-columns: 1fr; }
  .cta-grid      { grid-template-columns: 1fr; }
}

/* ==============================================
   로그인 / 관리자 스타일
   ============================================== */

/* 로그인 박스 */
.login-box {
  max-width: 440px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

/* 관리자 메시지 배너 */
.admin-msg {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
}
.admin-msg--success {
  background: #eaf4eb;
  color: #2d6a31;
  border: 1px solid #b2d9b5;
}
.admin-msg--error {
  background: #fdecea;
  color: #b71c1c;
  border: 1px solid #f5b3ae;
}

/* 관리자 테이블 전용 */
.admin-table__title {
  text-align: left;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-table__actions {
  display: flex;
  gap: 6px;
  justify-content: center;
  white-space: nowrap;
}
.btn--danger {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}
.btn--danger:hover {
  background: #c0392b;
  border-color: #c0392b;
}

/* =============================================
   문의 (Inquiry) 스타일
   ============================================= */

/* 상태 배지 */
.iq-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}
.iq-badge--done {
  background: rgba(58,95,62,0.12);
  color: var(--primary);
}
.iq-badge--wait {
  background: rgba(192,125,58,0.12);
  color: var(--accent);
}

/* 문의 행 */
.inquiry-row {
  cursor: pointer;
  transition: background 0.15s;
}
.inquiry-row:hover td {
  background: rgba(58,95,62,0.04);
}

/* 상세 펼침 영역 */
.inquiry-detail-wrap {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  animation: fadeSlideDown 0.18s ease;
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 관리자 답변 박스 */
.inquiry-reply {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 12px;
}

/* =============================================
   문의 작성 폼
   ============================================= */
.iq-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 24px;
}
.iq-form-heading {
  font-family: 'Noto Serif KR', serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 20px;
}
.iq-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.iq-form .form-input,
.iq-form .form-textarea {
  width: 100%;
  box-sizing: border-box;
}
.iq-form-textarea {
  min-height: 120px;
}
.iq-form-btns {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}

/* =============================================
   공지/문의 테이블 공통 column 너비
   ============================================= */
.notice-th--num  { width: 60px; }
.notice-th--cat  { width: 80px; }
.notice-th--date { width: 110px; }

/* =============================================
   notice.html 관리자 바 (클래스화)
   ============================================= */
.notice-admin-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 16px;
  gap: 10px;
  flex-wrap: wrap;
}
.notice-admin-bar__email {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.notice-admin-bar__actions {
  display: flex;
  gap: 8px;
}

/* =============================================
   notice.html 로그인 패널 (클래스화)
   ============================================= */
.notice-admin-login-link {
  text-align: right;
  margin-top: 20px;
}
.notice-admin-login-btn {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--text-muted);
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.notice-admin-login-btn:hover { color: var(--text); border-color: var(--text); background: var(--bg); }

.notice-login-panel {
  margin-top: 8px;
}
.notice-login-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: 360px;
  margin-left: auto;
}
.notice-login-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.notice-login-input {
  font-size: 0.85rem;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.notice-login-btns {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}

/* =============================================
   모바일 카드형 공지/문의 테이블
   ============================================= */
@media (max-width: 640px) {

  /* 공지 테이블 → 카드형 */
  .notice-table thead { display: none; }
  .notice-table,
  .notice-table tbody,
  .notice-table tr,
  .notice-table td { display: block; width: 100%; }

  .notice-table tr.notice-row {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  }
  .notice-table tr.notice-row td { border: none; padding: 2px 0; }
  .notice-table tr.notice-row td:first-child { display: none; } /* 번호 숨김 */
  .notice-table tr.notice-row td:last-child {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
  }

  /* 문의 테이블 → 카드형 */
  .inquiry-table thead { display: none; }
  .inquiry-table,
  .inquiry-table tbody,
  .inquiry-table tr,
  .inquiry-table td { display: block; width: 100%; }

  .inquiry-table tr.inquiry-row {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  }
  .inquiry-table tr.inquiry-row td { border: none; padding: 2px 0; }
  .inquiry-table tr.inquiry-row td:first-child { display: none; } /* 번호 숨김 */

  /* 접힌 상세 행은 카드 내부로 */
  .inquiry-table tr[id^="iq-detail-"] td { padding: 0; }
}

