/* ============================================================
   연내골 풀빌라·펜션 — 메인 CSS
   프리미엄 한국 펜션 감성 디자인
   Mobile-First 반응형
   ============================================================ */

/* ─────────────────── CSS 변수 ─────────────────── */
:root {
  --primary:         #1a1a1a;
  --primary-light:   #3a3a3a;
  --primary-dark:    #0a0a0a;
  --accent:          #8b7355;
  --accent-light:    #a89070;
  --accent-dark:     #6a5840;
  --white:           #ffffff;
  --cream:           #faf8f3;
  --off-white:       #f5f3ee;
  --bg-light:        #f2f0eb;
  --bg-sage:         #f0ede8;
  --text-dark:       #1a1a1a;
  --text-body:       #3d3d3d;
  --text-muted:      #757575;
  --text-light:      #aaaaaa;
  --border:          #ddd8ce;
  --border-light:    #ece9e2;
  --shadow-sm:       0 2px 8px rgba(0,0,0,.06);
  --shadow-md:       0 6px 24px rgba(0,0,0,.10);
  --shadow-lg:       0 12px 40px rgba(0,0,0,.14);
  --shadow-hero:     0 20px 60px rgba(0,0,0,.30);
  --radius-sm:       6px;
  --radius-md:       14px;
  --radius-lg:       24px;
  --radius-pill:     999px;
  --transition:      all .28s cubic-bezier(.4,0,.2,1);
  --transition-slow: all .5s cubic-bezier(.4,0,.2,1);
  --header-h:        76px;
  --container-max:   1200px;
}

/* ─────────────────── 리셋 & 베이스 ─────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  outline: none;
}

/* ─────────────────── 레이아웃 ─────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 720px; }

/* ─────────────────── 버튼 ─────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: var(--radius-pill);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.24);
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-white {
  border: 2px solid rgba(255,255,255,.85);
  color: var(--white);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.22);
  border-color: var(--white);
}
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-danger  { background: #c0392b; color: var(--white); }
.btn-danger:hover { background: #962d22; }
.btn-block   { display: flex; width: 100%; }
.btn-lg      { padding: 16px 44px; font-size: 1.02rem; }
.btn-sm      { padding: 7px 16px; font-size: .82rem; border-radius: var(--radius-sm); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-sm.btn-detail { background: var(--primary-light); color: var(--white); }
.btn-sm.btn-cancel { background: #c0392b; color: var(--white); }

/* ─────────────────── 섹션 공통 ─────────────────── */
section { padding: 96px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-block;
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .28em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Noto Serif KR', 'Noto Sans KR', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.3;
  letter-spacing: .02em;
}
.section-desc {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: .95rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* 구분선 장식 */
.section-header::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--border);
  margin: 24px auto 0;
}

/* ─────────────────── 카드 ─────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.card-title {
  font-family: 'Noto Serif KR', serif;
  font-size: .92rem;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: .03em;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}
.card-desc { font-size: .92rem; color: var(--text-muted); margin-bottom: 20px; }

/* ─────────────────── 폼 요소 ─────────────────── */
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 7px;
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 13px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  background: var(--cream);
  transition: var(--transition);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.04);
}
.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: var(--accent-light);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(139,115,85,.13), inset 0 1px 3px rgba(0,0,0,.03);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
  font-size: .9rem;
}
.form-group textarea { resize: vertical; }
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b7355' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.field-error { display: block; font-size: .78rem; color: #c0392b; margin-top: 5px; }
.field-hint  { display: block; font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
.form-error  { display: block; font-size: .86rem; color: #c0392b; margin-top: 12px; font-weight: 600; }
.required    { color: #c0392b; }

/* ─────────────────── 알림 ─────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 20px;
}
.alert-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #c8e6c9; }
.alert-error   { background: #fdecea; color: #7f1d1d; border: 1px solid #f5c6c3; }

/* ═══════════════════════════════════════════════
   헤더 — 투명(히어로 위) → 스크롤시 화이트
   ═══════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background .4s ease, box-shadow .4s ease, border-color .4s ease;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

/* 히어로 최상단 — 더 얇고 투명하게 */
.site-header:not(.scrolled) {
  background: rgba(255,255,255,.88);
  border-bottom-color: rgba(230,228,222,.7);
}

/* 스크롤 후 / 내부 페이지 */
.site-header.scrolled,
.reservation-page .site-header,
.simple-page .site-header,
.admin-page .site-header {
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 20px rgba(0,0,0,.06);
  border-bottom-color: var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 32px;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* 로고 */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-emblem {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.site-header:not(.scrolled):not(.reservation-page .site-header) .logo-emblem {
  background: rgba(255,255,255,.20);
  border: 1.5px solid rgba(255,255,255,.5);
}
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-main {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.08rem;
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: .08em;
  transition: color .35s ease;
}
.logo-sub {
  font-size: .66rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: .12em;
  transition: color .35s ease;
}

/* 헤더는 항상 흰 배경 — 글자색 통일 */
.logo-main  { color: var(--text-dark); }
.logo-sub   { color: var(--text-muted); }
.main-nav a { color: var(--text-dark); }

/* 네비 */
.main-nav ul { display: flex; gap: 2px; align-items: center; }
.main-nav a {
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 0;
  transition: opacity .25s ease;
  color: var(--text-dark);
  opacity: .75;
}
.main-nav a:hover { opacity: 1; background: none; color: inherit; }
.main-nav .btn-reserve {
  opacity: 1;
  border: 1px solid var(--text-dark);
  padding: 8px 20px;
  margin-left: 12px;
  color: var(--text-dark);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: var(--transition);
}
.main-nav .btn-reserve:hover {
  background: var(--text-dark);
  color: var(--white);
}

/* 히어로 위 예약 버튼도 다크 스타일 */
.site-header:not(.scrolled) .main-nav .btn-reserve {
  border-color: var(--text-dark);
  color: var(--text-dark);
}
.site-header:not(.scrolled) .main-nav .btn-reserve:hover {
  background: var(--text-dark);
  color: var(--white);
}

/* 햄버거 */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ═══════════════════════════════════════════════
   히어로 — 풀스크린 슬라이더
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 슬라이더 */
.hero-slider {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero-slide.active img { transform: scale(1); }

/* 오버레이 — 하단으로 갈수록 어두워지는 자연스러운 그라데이션 */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.08) 0%,
    rgba(0,0,0,.05) 40%,
    rgba(0,0,0,.55) 100%
  );
  z-index: 1;
}

/* 콘텐츠 — 좌하단 고정 */
.hero-content {
  position: absolute;
  z-index: 2;
  bottom: 88px;
  left: 60px;
  color: var(--white);
  max-width: 520px;
}

.hero-text-slide {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  animation: heroFadeUp 1s ease forwards;
}
.hero-text-slide.active { display: flex; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 서브타이틀·설명·버튼은 히어로에서 숨김 */
.hero-sub   { display: none; }
.hero-desc  { display: none; }
.hero-btns  { display: none; }

.hero-title {
  font-family: 'Noto Serif KR', 'Noto Sans KR', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: .02em;
  text-shadow: 0 1px 12px rgba(0,0,0,.18);
}

/* 슬라이드 카운터 (우하단) */
.hero-counter {
  position: absolute;
  bottom: 52px;
  right: 48px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.75);
  font-size: .72rem;
  letter-spacing: .14em;
  font-weight: 300;
}
.hero-counter-line {
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,.50);
}
.hero-counter-current { color: var(--white); font-weight: 400; }
.hero-counter-total   { color: rgba(255,255,255,.55); }

/* 슬라이더 화살표 — 숨김 처리 */
.hero-prev,
.hero-next {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.35);
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: var(--transition);
}
.hero-prev { left: 28px; }
.hero-next { right: 28px; }
.hero-prev:hover,
.hero-next:hover {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.7);
  transform: translateY(-50%) scale(1.06);
}

/* 슬라이더 도트 */
.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.hero-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width .3s ease, background .3s ease, border-radius .3s ease;
}
.hero-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--white);
}

/* 스크롤 인디케이터 — 중앙 하단 */
.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.55);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 300;
}
.scroll-arrow {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.5);
  position: relative;
  animation: scrollLine 1.4s ease infinite;
}
.scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid rgba(255,255,255,.55);
  border-bottom: 1px solid rgba(255,255,255,.55);
  transform: rotate(45deg);
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ═══════════════════════════════════════════════
   소개 섹션 (히어로 바로 아래) — 화이트 에디토리얼
   ═══════════════════════════════════════════════ */
.intro-strip {
  background: var(--white);
  padding: 100px 0;
  border-top: none;
}
.intro-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
}
.intro-strip-item {
  padding: 0 48px;
  border-right: 1px solid var(--border-light);
  color: var(--text-body);
}
.intro-strip-item:last-child { border-right: none; }
.intro-strip-item strong {
  display: block;
  font-family: 'Noto Serif KR', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: .04em;
}
.intro-strip-item span {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.8;
  letter-spacing: .01em;
  font-weight: 300;
}

/* ═══════════════════════════════════════════════
   객실 그리드
   ═══════════════════════════════════════════════ */
.rooms-section { background: var(--cream); }

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.room-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
}
.room-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hero);
}

.room-card__img {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
}
.room-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, transparent 30%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
  z-index: 1;
}
.room-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.room-card:hover .room-card__img img { transform: scale(1.06); }

.room-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.92);
  color: var(--text-dark);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}

.room-card__body { padding: 32px 28px; }
.room-card__title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}
.room-card__desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}
.room-card__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}
.room-card__amenities li {
  font-size: .73rem;
  background: var(--off-white);
  color: var(--text-body);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  font-weight: 400;
  letter-spacing: .02em;
}

.room-card__price { display: flex; gap: 20px; margin-bottom: 22px; }
.price-item       { flex: 1; }
.price-label {
  font-size: .73rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 5px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.price-value       { font-size: 1.12rem; font-weight: 700; color: var(--text-dark); }
.price-value.accent { color: var(--accent-dark); }
.price-value small  { font-size: .75rem; font-weight: 400; color: var(--text-muted); }
.no-data           { text-align: center; color: var(--text-muted); padding: 60px; }

/* ═══════════════════════════════════════════════
   시설 안내
   ═══════════════════════════════════════════════ */
.facilities-section { background: var(--bg-light); }

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.facility-item {
  text-align: center;
  padding: 44px 28px 36px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
}
.facility-item:hover {
  background: var(--text-dark);
  border-color: var(--text-dark);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.facility-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--primary);
  margin-bottom: 24px;
  transition: all .35s ease;
}
.facility-icon svg {
  transition: transform .35s ease;
}
.facility-item:hover .facility-icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.facility-item:hover .facility-icon svg {
  transform: scale(1.1);
}
.facility-item h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
  transition: color .28s;
}
.facility-item p {
  font-size: .85rem;
  line-height: 1.75;
  color: var(--text-muted);
  transition: color .28s;
}
.facility-item:hover h3 { color: var(--white); }
.facility-item:hover p  { color: rgba(255,255,255,.78); }

/* ═══════════════════════════════════════════════
   갤러리
   ═══════════════════════════════════════════════ */
.gallery-section { background: var(--text-dark); padding: 96px 0 0; }
.gallery-section .section-title  { color: var(--white); }
.gallery-section .section-label  { color: var(--accent-light); }
.gallery-section .section-header::after { background: var(--accent-light); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 4px;
  margin-top: 56px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}
.gallery-item:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  aspect-ratio: auto;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
}
.gallery-overlay span {
  color: var(--white);
  font-size: 2rem;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  transform: scale(.7);
}
.gallery-item:hover .gallery-overlay { background: rgba(0,0,0,.38); }
.gallery-item:hover .gallery-overlay span { opacity: 1; transform: scale(1); }

/* 라이트박스 */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.94);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-content { max-width: 90vw; max-height: 90vh; text-align: center; }
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
#lb-caption { color: rgba(255,255,255,.65); font-size: .85rem; margin-top: 14px; }
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,.12);
  color: var(--white);
  border-radius: 50%;
  transition: var(--transition);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close { top: 22px; right: 22px; width: 46px; height: 46px; }
.lightbox-prev  { left: 22px; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox-next  { right: 22px; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--primary); }

/* ═══════════════════════════════════════════════
   CTA 배너
   ═══════════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.cta-inner { text-align: center; padding: 20px 0; position: relative; }
.cta-inner h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.9rem;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-inner p   { color: rgba(255,255,255,.75); margin-bottom: 28px; font-size: .95rem; }
.cta-inner .btn-accent { background: var(--accent); font-size: 1rem; }
.cta-inner .btn-accent:hover { background: var(--accent-dark); }

/* ═══════════════════════════════════════════════
   오시는 길
   ═══════════════════════════════════════════════ */
.location-section { background: var(--cream); }
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.info-item { display: flex; gap: 18px; margin-bottom: 28px; }
.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.info-item strong { display: block; font-size: .9rem; color: var(--text-dark); margin-bottom: 5px; font-weight: 700; }
.info-item p  { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }
.info-item a  { color: var(--primary); }
.info-item a:hover { text-decoration: underline; }
.location-map { border-radius: var(--radius-md); overflow: hidden; min-height: 320px; box-shadow: var(--shadow-md); }
.map-placeholder {
  background: var(--bg-light);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 320px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: .9rem;
}

/* ═══════════════════════════════════════════════
   푸터
   ═══════════════════════════════════════════════ */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.7);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand p { font-size: .85rem; line-height: 1.7; }
.footer-social { display: flex; gap: 14px; margin-top: 20px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
}
.footer-links h4,
.footer-policy h4 {
  font-size: .82rem;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-links ul li,
.footer-policy ul li {
  font-size: .82rem;
  margin-bottom: 10px;
  color: rgba(255,255,255,.55);
}
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: .78rem; }
.footer-biz { color: rgba(255,255,255,.35); }
.site-footer--simple { padding: 28px 0; }
.site-footer--simple p { text-align: center; font-size: .85rem; color: rgba(255,255,255,.55); }
.site-footer--simple a { color: var(--accent-light); }

/* ═══════════════════════════════════════════════
   서브 페이지 공통 — 예약·확인·결제
   ═══════════════════════════════════════════════ */
.reservation-page,
.simple-page { background: var(--bg-sage); }

/* 페이지 히어로 헤드 */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: calc(var(--header-h) + 52px) 0 44px;
  text-align: center;
}
.page-label {
  display: inline-block;
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .3em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.page-hero h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: .02em;
  line-height: 1.3;
}
.page-hero p {
  color: var(--text-muted);
  margin-top: 10px;
  font-size: .92rem;
}

/* ═══════════════════════════════════════════════
   예약 페이지
   ═══════════════════════════════════════════════ */
.reservation-main { padding-top: 48px; padding-bottom: 72px; }
.page-header { margin-bottom: 32px; }
.page-header h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: .02em;
}
.page-header p { color: var(--text-muted); margin-top: 8px; font-size: .92rem; }

/* 스텝 인디케이터 */
.reservation-steps {
  display: flex; align-items: center;
  margin-bottom: 32px;
  background: var(--white);
  padding: 18px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.step { display: flex; align-items: center; gap: 12px; }
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 600; flex-shrink: 0;
  transition: var(--transition);
}
.step.active .step-num {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(26,26,26,.2);
}
.step.completed .step-num {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.step span { font-size: .8rem; color: var(--text-light); font-weight: 400; letter-spacing: .04em; }
.step.active span { color: var(--text-dark); font-weight: 600; }
.step.completed span { color: var(--accent); }
.step-line { flex: 1; height: 2px; background: var(--border-light); margin: 0 16px; border-radius: 1px; }

.reservation-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.reservation-right {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  max-height: calc(100vh - var(--header-h) - 24px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.reservation-right::-webkit-scrollbar { width: 4px; }
.reservation-right::-webkit-scrollbar-track { background: transparent; }
.reservation-right::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* 객실 선택 */
.room-select-grid { display: grid; gap: 12px; }
.room-select-item { cursor: pointer; }
.room-select-item input { display: none; }
.room-select-content {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.room-select-item:hover .room-select-content {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.room-select-item input:checked + .room-select-content {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(26,26,26,.07), var(--shadow-sm);
}
/* 썸네일 영역 */
.room-select-thumb {
  width: 100px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: var(--off-white);
}
.room-select-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.room-select-item:hover .room-select-thumb img { transform: scale(1.06); }
.room-select-thumb-empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--border);
}
/* 체크 뱃지 */
.room-select-check {
  position: absolute; inset: 0;
  background: rgba(26,26,26,.55);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  opacity: 0;
  transition: var(--transition);
}
.room-select-check svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.room-select-item input:checked + .room-select-content .room-select-check { opacity: 1; }
/* 텍스트 정보 */
.room-select-info { padding: 16px 18px; flex: 1; min-width: 0; }
.room-select-name {
  font-family: 'Noto Serif KR', serif;
  font-weight: 400;
  font-size: .97rem;
  color: var(--text-dark);
  margin-bottom: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.room-select-price { font-size: .82rem; color: var(--text-muted); margin-bottom: 5px; }
.room-select-price strong { color: var(--text-dark); font-weight: 600; }
.room-select-guests {
  display: flex; align-items: center; gap: 4px;
  font-size: .76rem; color: var(--text-light);
}

/* 캘린더 */
.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.calendar-nav h3 { font-size: 1.02rem; font-weight: 700; color: var(--text-dark); }
.calendar-nav button {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--off-white);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.calendar-nav button:hover { background: var(--primary); color: var(--white); }
.calendar-loading { text-align: center; padding: 40px; color: var(--text-muted); font-size: .9rem; }
.hidden { display: none !important; }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-header { text-align: center; font-size: .76rem; font-weight: 700; color: var(--text-muted); padding: 8px 0; }
.cal-header.sun { color: #c0392b; }
.cal-header.sat { color: #2980b9; }
.cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: .86rem;
  transition: var(--transition);
  cursor: default;
  position: relative;
}
.cal-day.available  { cursor: pointer; color: var(--text-dark); }
.cal-day.available:hover { background: var(--primary-light); color: var(--white); }
.cal-day.reserved   { background: #fde8e8; color: #c0392b; font-size: .7rem; }
.cal-day.blocked    { background: var(--border-light); color: var(--text-light); }
.cal-day.past       { color: var(--text-light); }
.cal-day.selected-checkin  { background: var(--primary); color: var(--white); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.cal-day.selected-checkout { background: var(--primary); color: var(--white); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.cal-day.selected-range    { background: rgba(44,95,46,.1); color: var(--primary); border-radius: 0; }
.cal-day.selected-single   { background: var(--primary); color: var(--white); }
.cal-day.sunday   { color: #c0392b; }
.cal-day.saturday { color: #2980b9; }
/* 오늘 날짜 표시 */
.cal-day.today {
  font-weight: 700;
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: var(--radius-sm);
  color: var(--accent-dark);
}
.cal-day.today.selected-checkin,
.cal-day.today.selected-checkout,
.cal-day.today.selected-single { outline-color: transparent; }
/* 선택 범위 — 연결된 바 느낌 */
.cal-day.selected-range {
  background: rgba(139,115,85,.12);
  color: var(--accent-dark);
  border-radius: 0;
}

.calendar-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: .76rem; color: var(--text-muted); }
.legend-item { display: flex; align-items: center; gap: 5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.available { background: var(--primary-light); }
.dot.reserved  { background: #c0392b; }
.dot.blocked   { background: var(--border); }
.dot.selected  { background: var(--primary); }

.reservation-summary {
  overflow: hidden;
  padding: 0 !important;
}
.reservation-summary::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
}

/* ── 예약 요약 내부 구조 ── */
.sum-header {
  padding: 20px 24px 16px;
}
.sum-title {
  font-family: 'Noto Serif KR', serif;
  font-size: .88rem;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.sum-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  border-top: 1px solid var(--border-light);
}
.sum-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  background: var(--off-white);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-dark);
}
.sum-label {
  font-size: .77rem;
  color: var(--text-muted);
  width: 52px;
  flex-shrink: 0;
}
.sum-val {
  font-size: .86rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: right;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sum-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--primary);
  margin-top: 4px;
}
.sum-total > span {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  font-weight: 400;
}
.sum-total > strong {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: .02em;
}

/* ── 폼 2열 그리드 ── */
.form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-2col .form-group { margin-bottom: 20px; }

/* ── 안내 박스 ── */
.form-notice {
  background: var(--off-white);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-light);
  padding: 14px 18px;
  margin-bottom: 24px;
}
.form-notice-list { list-style: none; padding: 0; margin: 0; }
.form-notice-list li {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.9;
  padding-left: 18px;
  position: relative;
}
.form-notice-list li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: .75rem;
}

/* ── 결제 버튼 ── */
#pay-btn:disabled {
  background: var(--border-light);
  color: var(--text-light);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 1;
}
#pay-btn:not(:disabled) {
  box-shadow: 0 4px 20px rgba(26,26,26,.22);
  letter-spacing: .06em;
}
#pay-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,26,26,.28);
}

/* ─────────────────── 예약 확인/취소 ─────────────────── */
.simple-main { padding-top: 48px; padding-bottom: 72px; }
.page-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: .02em;
  margin-bottom: 28px;
}
.check-form .btn-primary { margin-top: 8px; }
.reservation-detail .detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.reservation-detail .detail-header h2 { font-size: 1.2rem; font-weight: 700; }
.status-badge { padding: 5px 14px; border-radius: var(--radius-pill); font-size: .8rem; font-weight: 700; }
.status-confirmed { background: #e8f5e9; color: #1b5e20; }
.status-pending   { background: #fff8e1; color: #7d5a00; }
.status-cancelled { background: #fdecea; color: #7f1d1d; }

.detail-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.detail-table th,
.detail-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-light); text-align: left; }
.detail-table th { width: 35%; color: var(--text-muted); font-weight: 500; }
.detail-table .total-row td { font-size: 1.1rem; color: var(--accent-dark); }

.cancel-section { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.cancel-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.cancel-notice     { font-size: .86rem; color: var(--text-muted); margin-bottom: 16px; }
.cancel-notice-box { background: #fff8e1; border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 20px; font-size: .86rem; color: #7d5a00; }
.detail-actions { display: flex; gap: 12px; margin-top: 24px; }

/* ─────────────────── 관리자 ─────────────────── */
.admin-layout  { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px;
  background: var(--primary-dark);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-logo    { padding: 24px 20px 16px; font-size: 1rem; font-weight: 700; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-nav     { padding: 16px 0; }
.admin-nav a   { display: block; padding: 12px 20px; font-size: .88rem; color: rgba(255,255,255,.7); transition: var(--transition); border-left: 3px solid transparent; }
.admin-nav a:hover,
.admin-nav a.active { background: rgba(255,255,255,.08); color: var(--white); border-left-color: var(--accent); }
.admin-main    { flex: 1; padding: 32px; background: var(--bg-light); overflow-y: auto; }
.admin-header  { margin-bottom: 28px; }
.admin-header h1 { font-size: 1.55rem; font-weight: 700; }
.admin-date    { font-size: .83rem; color: var(--text-muted); margin-top: 4px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card  { background: var(--white); border-radius: var(--radius-md); padding: 20px; border-left: 4px solid; box-shadow: var(--shadow-sm); }
.stat-confirmed { border-color: var(--primary); }
.stat-pending   { border-color: var(--accent); }
.stat-cancelled { border-color: #c0392b; }
.stat-revenue   { border-color: #7c3aed; }
.stat-num   { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.stat-label { font-size: .8rem; color: var(--text-muted); }

.admin-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.admin-filter select,
.admin-filter input[type=date] { padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .86rem; background: var(--white); width: auto; }

.admin-table-wrap { background: var(--white); border-radius: var(--radius-md); overflow: auto; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.admin-table th { background: var(--off-white); padding: 12px 14px; text-align: left; font-size: .78rem; color: var(--text-muted); font-weight: 700; white-space: nowrap; border-bottom: 2px solid var(--border); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--off-white); }
.admin-table td small { color: var(--text-muted); display: block; }
.admin-table .no-data { text-align: center; padding: 40px; color: var(--text-muted); }

.badge { padding: 4px 10px; border-radius: var(--radius-pill); font-size: .76rem; font-weight: 700; }
.badge-confirmed { background: #e8f5e9; color: #1b5e20; }
.badge-pending   { background: #fff8e1; color: #7d5a00; }
.badge-cancelled { background: #fdecea; color: #7f1d1d; }
.badge-draft     { background: var(--border); color: var(--text-muted); }
.badge-sent      { background: #dbeafe; color: #1e3a8a; }
.badge-failed    { background: #fdecea; color: #7f1d1d; }
.badge-text      { background: #ede9fe; color: #4c1d95; }
.badge-image     { background: #fce7f3; color: #9d174d; }
.badge-email     { background: #dbeafe; color: #1e3a8a; }

.pagination { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: .86rem; color: var(--text-dark); transition: var(--transition); }
.pagination a.active,
.pagination a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal { background: var(--white); border-radius: var(--radius-md); padding: 28px; max-width: 580px; width: 90%; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-close  { position: absolute; top: 14px; right: 14px; font-size: 1.4rem; color: var(--text-muted); }
.modal-title  { font-size: 1.12rem; font-weight: 700; margin-bottom: 20px; padding-right: 30px; }

.block-form .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.block-form .form-group { margin-bottom: 0; }
.card-head-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.card-head-row .card-title { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.inline-filter { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-filter input[type=month],
.inline-filter select { padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .83rem; background: var(--white); width: auto; }

.marketing-form  { margin-bottom: 20px; }
.gen-result      { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.gen-result h3   { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.result-textarea { width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .88rem; line-height: 1.6; resize: vertical; color: var(--text-dark); }
.result-actions  { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.preview-img     { max-width: 100%; max-height: 400px; object-fit: contain; border-radius: var(--radius-sm); margin: 12px 0; }
.uploaded-grid   { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 12px; }
.uploaded-item img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 6px; }
.uploaded-item input { font-size: .73rem; padding: 5px; border: 1px solid var(--border); border-radius: 4px; }
.send-result-msg { display: block; margin-top: 12px; font-size: .9rem; font-weight: 600; }
.text-success { color: #1b5e20; }
.text-error   { color: #7f1d1d; }
.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════
   반응형
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .stat-cards    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .gallery-grid  { grid-template-columns: repeat(3, 1fr); }
  .gallery-item:first-child { grid-column: 1 / 3; grid-row: 1 / 2; }
  .intro-strip-inner { grid-template-columns: 1fr; }
  .intro-strip-inner .intro-strip-item { border-right: none; border-bottom: 1px solid var(--border-light); padding: 0 24px 40px; }
  .intro-strip-inner .intro-strip-item:last-child { border-bottom: none; padding-bottom: 0; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  section { padding: 64px 0; }
  .section-title { font-size: 1.65rem; }

  .header-inner  { padding: 0 20px; }
  .hamburger     { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px);
    padding: 20px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: var(--transition);
  }
  .main-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .main-nav ul   { flex-direction: column; gap: 4px; }
  .main-nav a    { padding: 12px 18px; border-radius: var(--radius-sm); color: var(--text-dark) !important; }
  .main-nav .btn-reserve {
    background: var(--accent) !important;
    color: var(--white) !important;
    border: none !important;
    margin-top: 6px;
  }

  /* 히어로 콘텐츠 — 모바일에서 위치 조정 */
  .hero-content { left: 24px; bottom: 80px; max-width: calc(100% - 48px); }
  .hero-title   { font-size: 1.8rem; }
  .hero-counter { right: 24px; bottom: 44px; }
  .hero-scroll  { display: flex; }

  .reservation-layout  { grid-template-columns: 1fr; }
  .reservation-right   { position: static; max-height: none; overflow: visible; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:first-child { grid-column: 1 / -1; grid-row: 1; }

  .footer-grid   { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }

  .admin-layout   { flex-direction: column; }
  .admin-sidebar  { width: 100%; height: auto; position: static; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 8px; }
  .admin-nav      { display: flex; padding: 0; flex-wrap: wrap; }
  .admin-nav a    { padding: 8px 12px; border-left: none; border-bottom: 3px solid transparent; font-size: .78rem; }
  .admin-nav a.active { border-bottom-color: var(--accent); }
  .admin-logo     { display: none; }
  .admin-main     { padding: 16px; }
  .stat-cards     { grid-template-columns: repeat(2, 1fr); }
  .reservation-steps { padding: 14px 16px; }
  .step span      { display: none; }
  .room-select-thumb { width: 80px; }
  .detail-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-title  { font-size: 2.3rem; }
  .hero-btns   { flex-direction: column; align-items: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: auto; }
  .stat-cards  { grid-template-columns: 1fr; }
  .admin-filter { flex-direction: column; }
  .admin-filter select,
  .admin-filter input { width: 100%; }
  .hero-prev,
  .hero-next   { display: none; }
}

/* ═══════════════════════════════════════════════
   그누보드 테마 통합
   ═══════════════════════════════════════════════ */
body.pension-page #gnb,
body.pension-page #header,
body.pension-page #hd,
body.pension-page .gnb-wrap,
body.pension-page #topMenu,
body.pension-page #nav,
body.pension-page #lnb,
body.pension-page #hd_wrap,
body.pension-page #footer,
body.pension-page #ft,
body.pension-page .footer-wrap,
body.pension-page #bottom_wrap { display: none !important; }

body.pension-page #wrap,
body.pension-page #container,
body.pension-page #content,
body.pension-page main#content { margin: 0 !important; padding: 0 !important; max-width: none !important; }

body.pension-page { background: var(--white) !important; }
body.pension-page.reservation-page,
body.pension-page.simple-page { background: var(--bg-sage) !important; }

body.admin-page #wrap,
body.admin-page #container { margin: 0; padding: 0; }
/* ═══════════════════════════════════════════════
   그누보드 로그인/회원가입 페이지 (통일된 프리미엄 디자인 적용)
   ═══════════════════════════════════════════════ */
#mb_login, #mb_login form, #mb_login fieldset,
#fregister, #fregisterform { 
  background: transparent !important; 
  border: none !important; 
  margin: 0 auto; 
}
#mb_login h1, #fregister h1, #mbskin h1 { 
  font-family: 'Noto Serif KR', serif; 
  font-size: 1.8rem; 
  font-weight: 300; 
  text-align: center; 
  margin-bottom: 24px; 
  color: var(--text-dark); 
}
.mbskin {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  margin: 40px auto;
  max-width: 460px;
  border: 1px solid var(--border-light);
  font-family: 'Noto Sans KR', sans-serif;
}
#fregister .mbskin,
#fregisterform .mbskin { max-width: 720px; }

.mbskin label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 7px;
  display: block;
}
.mbskin input[type=text],
.mbskin input[type=password],
.mbskin input[type=email],
.mbskin input[type=tel] {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--text-dark);
  background: var(--cream);
  margin-bottom: 16px;
  transition: var(--transition);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.04);
}
.mbskin input[type=text]:hover,
.mbskin input[type=password]:hover,
.mbskin input[type=email]:hover,
.mbskin input[type=tel]:hover {
  border-color: var(--accent-light);
  background: var(--white);
}
.mbskin input:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(139,115,85,.13), inset 0 1px 3px rgba(0,0,0,.03);
}
.mbskin input::placeholder {
  color: var(--text-light);
  font-size: .9rem;
}

/* 폼 버튼 통일 */
.mbskin .btn_submit,
#mb_login .btn_submit {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  padding: 16px;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  margin-top: 12px;
}
.mbskin .btn_submit:hover { 
  background: var(--primary-light); 
  transform: translateY(-2px); 
  box-shadow: 0 8px 24px rgba(0,0,0,.15); 
}

/* 기타 링크 세팅 (ID/PW 찾기, 회원가입 등) */
#mb_login .login_info { 
  display: flex; 
  justify-content: space-between; 
  margin-top: 20px; 
  font-size: .85rem; 
}
#mb_login .login_info a { color: var(--text-muted); transition: color .2s; }
#mb_login .login_info a:hover { color: var(--primary); text-decoration: underline; }

/* 소셜 로그인 묶음 */
#mb_sns_login { 
  margin-top: 32px; 
  border-top: 1px solid var(--border-light); 
  padding-top: 24px; 
}
#mb_sns_login h3 { display: none; }
#mb_sns_login .sns-wrap { display: flex; gap: 10px; justify-content: center; }

/* 회원가입 테이블, 약관 */
.tbl_frm01 { width: 100%; border-collapse: collapse; }
.tbl_frm01 th, .tbl_frm01 td { padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.tbl_frm01 th { text-align: left; font-size: 0.9rem; color: var(--text-dark); width: 140px; font-weight: 600; }
#fregister_chk textarea { 
  width: 100%; 
  border: 1.5px solid var(--border); 
  border-radius: var(--radius-sm); 
  padding: 16px; 
  font-size: .85rem; 
  height: 160px; 
  background: var(--bg-light); 
  resize: none; 
  margin-bottom: 12px; 
}
#fregister_chk .chk_box { margin-bottom: 30px; display: block; font-weight: 600; }

body:not(.pension-page) { background: var(--bg-sage); }

/* ── 그누보드 회원 페이지 (register/register_form에서 gnuboard 레이아웃 숨김) ── */
body.pm-page { background: var(--bg-sage) !important; }
body.pm-page #hd,
body.pm-page #gnb,
body.pm-page #gnb_all,
body.pm-page #gnb_all_bg,
body.pm-page #ft,
body.pm-page #aside,
body.pm-page #skip_to_container,
body.pm-page #top_btn,
body.pm-page h2#container_title { display: none !important; }
body.pm-page #wrapper  { margin-top: 0 !important; padding-top: 0 !important; }
body.pm-page #container_wr { padding: 0 !important; }
body.pm-page #container { max-width: 100% !important; padding: 0 !important; min-height: 100vh; }

/* ── pm-wrap : 로그인/회원가입 공통 페이지 래퍼 ── */
.pm-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-sage);
}
.pm-wrap .simple-main { flex: 1; }

/* ── 로그인 추가 UI ── */
.pm-login-opts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 20px;
  font-size: .82rem;
}
.pm-chk-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  cursor: pointer;
}
.pm-chk-label input[type=checkbox] {
  width: auto;
  margin: 0;
  accent-color: var(--primary);
}
.pm-find-link { color: var(--text-muted); transition: color .2s; }
.pm-find-link:hover { color: var(--primary); text-decoration: underline; }
.pm-register-link {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: .88rem;
  color: var(--text-muted);
}
.pm-register-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

/* ── 약관 동의 ── */
.pm-terms-section {
  margin-bottom: 28px;
}
.pm-terms-section h3 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.pm-terms-textarea {
  width: 100%;
  height: 140px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: .82rem;
  color: var(--text-body);
  background: var(--bg-light);
  resize: none;
  margin-bottom: 10px;
  line-height: 1.6;
}
.pm-terms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  margin-bottom: 10px;
}
.pm-terms-table th,
.pm-terms-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}
.pm-terms-table th { background: var(--bg-light); font-weight: 600; color: var(--text-dark); }
.pm-terms-chk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
}
.pm-terms-chk input { width: auto; accent-color: var(--primary); }
.pm-terms-chkall {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--text-dark);
  cursor: pointer;
  margin-bottom: 24px;
}
.pm-terms-chkall input { width: auto; accent-color: var(--primary); }
.pm-cancel-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: .85rem;
  color: var(--text-muted);
}
.pm-cancel-link:hover { color: var(--primary); text-decoration: underline; }

/* ── 회원가입 폼 ── */
.pm-reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.pm-reg-grid .form-group:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 600px) { .pm-reg-grid { grid-template-columns: 1fr; } }

/* ── 완료 메시지 ── */
.pm-result-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  text-align: center;
}
.pm-result-msg {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 8px;
}
.pm-result-desc {
  text-align: center;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ── 비밀번호 찾기 ── */
.pm-find-desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}
