:root {
  --bg: #ffffff; --bg-alt: #f4f6fa; --text: #12213f; --muted: #4f5d78; --line: #dde3ee;
  --accent: #1b5ef7; --accent-ink: #ffffff; --accent-soft: #e8efff; --card: #ffffff; --err: #c42b2b; --ok: #137a3f;
  --radius: 12px; --max: 1200px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1626; --bg-alt: #151e31; --text: #e8edf7; --muted: #a7b3c9; --line: #2a3650;
  --accent: #5b8cff; --accent-ink: #0b1020; --accent-soft: #1c2a4a; --card: #18223a; --err: #ff8a8a; --ok: #6fd69a;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1626; --bg-alt: #151e31; --text: #e8edf7; --muted: #a7b3c9; --line: #2a3650;
    --accent: #5b8cff; --accent-ink: #0b1020; --accent-soft: #1c2a4a; --card: #18223a; --err: #ff8a8a; --ok: #6fd69a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
/* 숨김 상태는 레이아웃 클래스(display:grid/flex)보다 우선합니다. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  font-size: 17px; line-height: 1.65; word-break: keep-all; overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .6em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; top: 40px; }
.draft-bar { background: #fff4d6; color: #5a4100; font-size: 14px; text-align: center; padding: 6px 12px; border-bottom: 1px solid #ecd9a0; }
:root[data-theme="dark"] .draft-bar { background: #3a3014; color: #ffe7a6; border-color: #57481c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .draft-bar { background: #3a3014; color: #ffe7a6; border-color: #57481c; } }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 64px; max-height: 72px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--text); white-space: nowrap; }
.wordmark strong { font-size: 1.15rem; letter-spacing: .06em; }
.wordmark span { font-size: .85rem; color: var(--muted); }
.wordmark.small strong { font-size: 1rem; }
.nav-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 15px; padding: 10px 0; }
.nav-links a:hover { color: var(--accent); }
.nav nav { margin-left: auto; }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.theme-toggle { min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-block { width: 100%; }

.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; margin: 0 0 12px; }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.02em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.lead strong { color: var(--text); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.hero-points { display: flex; gap: 8px 18px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 15px; }
.hero-points li::before { content: "\2713"; color: var(--accent); margin-right: 6px; font-weight: 700; }
.hero-media { margin: 0; }
.hero-media img, .sample-card img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
figcaption, .photo-note { font-size: 13px; color: var(--muted); margin-top: 8px; }

.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); max-width: 680px; margin-bottom: 28px; }
.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sample-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.sample-card h3 { margin: 4px 0 0; }
.sample-card .tag { font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; align-self: flex-start; }
.sample-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.sample-card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.sample-card[hidden] { display: none; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.sub { font-size: 1.15rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "\2713"; color: var(--accent); margin-right: 10px; font-weight: 700; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; }
.steps span { color: var(--muted); font-size: 15px; }
.price-box { display: flex; justify-content: space-between; align-items: center; gap: 32px; border: 2px solid var(--accent); border-radius: var(--radius); padding: 40px; background: var(--card); }
.amount { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; margin: 0; color: var(--text); }
.amount small { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: 4px; }
.vat { margin: 0 0 16px; color: var(--muted); }
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 0 20px; }
summary { cursor: pointer; font-weight: 700; min-height: 44px; padding: 14px 0; list-style-position: outside; }
details p { margin: 0 0 16px; color: var(--muted); }

.test-notice { background: var(--accent-soft); border-radius: var(--radius); padding: 14px 18px; font-size: 15px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full, .form .full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 15px; }
.req, .opt { font-size: 12px; font-weight: 600; margin-left: 4px; }
.req { color: var(--accent); }
.opt { color: var(--muted); }
input[type="text"], input[type="tel"], select, textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--card); min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); width: 100%;
}
textarea { resize: vertical; }
[aria-invalid="true"] { border-color: var(--err) !important; }
.err { color: var(--err); font-size: 14px; min-height: 1.2em; margin: 0; }
.hint { color: var(--muted); font-size: 14px; margin: 0; grid-column: 1 / -1; }
.consent { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 6px 10px; }
.consent input { width: 22px; height: 22px; margin: 0; }
.consent .err { grid-column: 1 / -1; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 12px 0 0; font-weight: 700; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.fail { color: var(--err); }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 15px; }
.site-footer p { margin: 6px 0; }
.muted { color: var(--muted); }
.credits { margin-top: 16px; }
.credits ul { margin: 0 0 16px; padding-left: 18px; font-size: 14px; color: var(--muted); }

@media (max-width: 960px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .cards.three { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .hero { padding: 32px 0 40px; }
  .hero h1 br { display: none; }
  .cards.three, .steps, .form { grid-template-columns: 1fr; }
  .price-box { flex-direction: column; align-items: flex-start; padding: 28px; }
  .section { padding: 52px 0; }
  .wordmark span { display: none; }
  .cta-row .btn { flex: 1 1 auto; }
}
@media (max-width: 390px) {
  .nav { gap: 8px; }
  .nav-actions .btn-sm { padding: 0 12px; }
  .theme-toggle { padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== 샘플 페이지 공통 ===== */
.sample-bar { background: var(--text); color: var(--bg); font-size: 14px; }
.sample-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.sample-bar a { color: inherit; font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.sample-badge { font-weight: 700; border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; }
.s-main { min-height: 60vh; }
.s-hero { position: relative; }
.s-hero img { width: 100%; object-fit: cover; }
.s-section { padding: 48px 0; }
.s-status { background: var(--accent-soft); color: var(--text); border-radius: var(--radius); padding: 12px 16px; margin-top: 12px; min-height: 1.4em; }
.s-status:empty { display: none; }
.s-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.s-actions button { font: inherit; }
.s-cta { background: var(--bg-alt); padding: 40px 0; text-align: center; }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.menu-item p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 15px; }
.menu-item .p { font-weight: 700; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; margin: 0; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }

/* 음식점: 어두운 따뜻한 톤, 명조 제목, 전체폭 사진 위 제목 */
.s-restaurant { --bg: #1d1611; --bg-alt: #261d16; --text: #f3e9dc; --muted: #c8b6a0; --line: #4a3a2c; --card: #2a2018; --accent: #e0a45a; --accent-ink: #1d1611; --accent-soft: #3a2b1d; color-scheme: dark; }
.s-restaurant h1, .s-restaurant h2 { font-family: "Nanum Myeongjo", "AppleMyungjo", "Batang", serif; font-weight: 700; }
.s-restaurant .s-hero img { height: min(62vh, 520px); filter: brightness(.55); }
.s-restaurant .s-hero .over { position: absolute; inset: auto 0 0 0; padding: 40px 0; }
.s-restaurant .s-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0; }

/* 카페: 밝은 크림 톤, 좌우 분할, 둥근 갤러리 */
.s-cafe { --bg: #fbf7f0; --bg-alt: #f2eadc; --text: #3b2f25; --muted: #7a6a5a; --line: #e3d6c3; --card: #fffdf8; --accent: #8a5a3b; --accent-ink: #fffdf8; --accent-soft: #efe2d2; color-scheme: light; }
.s-cafe .s-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: var(--max); margin: 0 auto; padding: 48px 24px; }
.s-cafe .s-hero figure { margin: 0; }
.s-cafe .s-hero img { aspect-ratio: 1 / 1; height: auto; border-radius: 120px 120px var(--radius) var(--radius); }
.s-cafe h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; letter-spacing: -0.03em; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 3 / 4; height: auto; object-fit: cover; border-radius: var(--radius); width: 100%; }
.cafe-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

/* 숙박: 차분한 회청색, 중앙 정렬, 객실 카드 가로 배치 */
.s-stay { --bg: #f5f7f6; --bg-alt: #e8edeb; --text: #1f2b2a; --muted: #5b6b69; --line: #cfd9d6; --card: #ffffff; --accent: #2f6f68; --accent-ink: #ffffff; --accent-soft: #dcebe8; color-scheme: light; }
.s-stay .s-hero img { height: min(70vh, 600px); }
.s-stay .s-hero .over { text-align: center; padding: 36px 24px 0; }
.s-stay h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 300; letter-spacing: .08em; }
.rooms { display: grid; gap: 16px; }
.room { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.room h3 { margin: 0; }
.room p { margin: 0; color: var(--muted); }
.room .p { font-weight: 700; font-size: 1.1rem; }
.info-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.info-table th { width: 30%; }

@media (max-width: 760px) {
  .menu-grid, .s-cafe .s-hero { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .room { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ===== 판매 화면 보강 ===== */
.draft-bar a { color: inherit; font-weight: 700; }
.draft-bar[hidden] { display: none; }
.model { margin-top: 40px; gap: 32px; }
.model p, .scope-cards p { color: var(--muted); }
.scope-cards .card { display: flex; flex-direction: column; gap: 8px; }
.scope-cards h3 { margin: 0 0 4px; }
.scope-cards .check-list li { padding: 8px 0; font-size: 15px; }
.dash-list { margin: 0; padding-left: 18px; color: var(--text); }
.dash-list li { padding: 6px 0; }
.small { font-size: 14px; color: var(--muted); }
.plain-note { margin: 24px 0 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.ready-list { margin: 0; padding-left: 22px; }
.ready-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ready-list strong { display: inline-block; min-width: 96px; }
.guide-table { margin: 8px 0 20px; border: 1px solid var(--line); }
.mail-cta { font-size: 1.1rem; font-weight: 700; }
.form-fields { display: contents; border: 0; margin: 0; padding: 0; min-width: 0; }
.form-fields:disabled input, .form-fields:disabled select, .form-fields:disabled textarea, .form-fields:disabled button { opacity: .6; cursor: not-allowed; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.biz { color: var(--muted); font-size: 14px; }

/* ===== 이용안내·개인정보·제안서 문서 페이지 ===== */
.doc { padding: 40px 0 64px; }
.doc h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 8px; }
.doc h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--text); }
.doc .status-box { background: var(--accent-soft); border-radius: var(--radius); padding: 14px 18px; margin: 16px 0 8px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.doc th { width: 28%; background: var(--bg-alt); }
.print-only { display: none; }
@media print {
  .site-header, .draft-bar, .no-print, .theme-toggle, .skip { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .doc { padding: 0; }
  .doc h2 { break-after: avoid; }
  .doc table, .doc li { break-inside: avoid; }
  a { color: #000; }
}

/* ===== 관리자 ===== */
.admin-body { background: var(--bg-alt); }
.admin-top { background: var(--card); border-bottom: 1px solid var(--line); }
.admin-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.admin-wrap { max-width: 1400px; margin: 0 auto; padding: 20px; }
.admin-grid { display: grid; grid-template-columns: minmax(320px, 440px) 1fr; gap: 20px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel h2 { font-size: 1.15rem; margin: 0 0 12px; }
.panel h3 { font-size: 1rem; margin: 20px 0 8px; }
.admin-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.admin-filters .full { grid-column: 1 / -1; }
.admin-filters input, .admin-filters select, .panel input[type="url"], .panel input[type="date"], .panel .login-input {
  font: inherit; font-size: 15px; color: var(--text); background: var(--card); min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); width: 100%;
}
.counts { font-size: 14px; color: var(--muted); margin: 6px 0 10px; }
.row-list { list-style: none; margin: 0; padding: 0; }
.row-list li { border-bottom: 1px solid var(--line); }
.row-btn { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; width: 100%; text-align: left; background: none; border: 0; color: var(--text); font: inherit; padding: 12px 6px; cursor: pointer; min-height: 44px; }
.row-btn:hover, .row-btn[aria-current="true"] { background: var(--accent-soft); }
.row-btn .sub { font-size: 13px; color: var(--muted); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; word-break: break-all; }
.inline-form { display: grid; gap: 8px; margin: 8px 0; }
.inline-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-grid { display: grid; gap: 6px; }
.check-grid label { font-weight: 500; display: flex; gap: 8px; align-items: flex-start; }
.check-grid input { width: 20px; height: 20px; margin-top: 2px; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.timeline li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.timeline .when { color: var(--muted); display: block; font-size: 13px; }
.cr-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 8px 0; }
.msg { min-height: 1.4em; font-weight: 700; margin: 8px 0; }
.msg.ok { color: var(--ok); }
.msg.fail { color: var(--err); }
.empty, .loading { color: var(--muted); padding: 16px 0; }
.warn-box { background: #fff4d6; color: #5a4100; border-radius: var(--radius); padding: 10px 14px; font-size: 14px; }
:root[data-theme="dark"] .warn-box { background: #3a3014; color: #ffe7a6; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .admin-filters, .inline-form .two, .kv { grid-template-columns: 1fr; } }
