/* 호텔다이어리 — 버건디 + 따뜻한 흰색, 반쪽 사진 첫 화면, SUIT */
:root {
  --ink: #221a1c;
  --ink-2: #463a3d;
  --muted: #6a5d60;
  --line: #e6dcdc;
  --bg: #fcfaf9;
  --bg-soft: #f4ecea;
  --main: #7a1b37;
  --main-dark: #5c1229;
  --main-soft: #f3e1e6;
  --radius: 8px;
  --wrap: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "SUIT Variable", SUIT, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 17px; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--main); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; display: block; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s; }
.btn-main { background: var(--main); color: #fff; }
.btn-main:hover { background: var(--main-dark); }
.btn-line { background: #fff; color: var(--main-dark); border-color: var(--main); }
.btn-line:hover { background: var(--main-soft); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .95rem; }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 2px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo-mark { width: 34px; height: 34px; fill: var(--main); }

.logo-text { display: flex; flex-direction: column; font-weight: 800; font-size: 1.2rem; line-height: 1.15; }
.logo-sub { font-size: .8rem; font-weight: 600; color: var(--muted); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 8px 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .98rem; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--main-dark); border-bottom-color: var(--main); }
.main-nav .nav-cta { display: none; }
.menu-toggle { display: none; align-items: center; gap: 6px; margin-left: auto; height: 42px; padding: 0 12px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }

/* 첫 화면: 왼쪽 글, 오른쪽 끝까지 붙은 사진 */
.hero { background: var(--bg-soft); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; min-height: min(60svh, 600px); }
.hero-text { padding: 56px 48px 56px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(2rem, 3.9vw, 3rem); white-space: nowrap; margin-bottom: .4em; color: var(--main-dark); }
.hero-lead { font-size: 1.1rem; color: var(--ink-2); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; height: 100%; max-height: 600px; object-fit: cover; }

/* 쿠폰 목록: 번호 없는 가로 줄 */
.code-rows { list-style: none; padding: 0; margin: 0; }
.code-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 2px solid var(--line); }
.code-rows li:first-child { border-top: 2px solid var(--line); }
.cr-no { display: none; }
.cr-body h3 { margin: 0 0 .15em; font-size: 1.12rem; }
.cr-body h3 a { color: var(--ink); text-decoration: none; }
.cr-body h3 a:hover { text-decoration: underline; }
.cr-rate { margin: 0; }
.cr-brief { margin: 0; color: var(--muted); font-size: .98rem; }
.cr-rate { font-weight: 700; color: var(--main); }

/* 코드 고르기 */
.picker-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-bottom: 16px; }
.picker-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .95rem; }
.picker-form label:last-child { grid-column: 1 / -1; }
.picker-form select, .picker-form input { font: inherit; font-weight: 500; min-height: 46px; padding: 0 10px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; }
.picker-form select:focus, .picker-form input:focus { outline: 3px solid var(--main-soft); border-color: var(--main); }
.picker-list { list-style: none; padding: 0; margin: 0; }
.picker-list li { display: grid; grid-template-columns: 3.4em auto 1fr; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 2px solid var(--line); }
.picker-list li.best .pk-rate { color: var(--main); }
.pk-rate { font-weight: 700; font-size: 1.2rem; }
.picker-list a { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 700; color: var(--ink); }
.pk-note { color: var(--muted); font-size: .95rem; }
.pk-none { margin: 0; color: var(--ink-2); }
.pk-unsure { margin: 12px 0 0; font-size: .95rem; color: var(--muted); }
.picker-out:empty::before { content: "카드와 날짜를 고르면 코드가 나옵니다."; color: var(--muted); }
.part-picker .picker { max-width: 720px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* 섹션 */
.section { padding: 56px 0; }
.section + .section { border-top: 2px solid var(--line); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; color: var(--muted); }

/* 코드 카드 */
.code-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.code-card { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.cc-photo img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.cc-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cc-body h3 { margin: 0; font-size: 1.15rem; }
.cc-body h3 a { color: var(--ink); text-decoration: none; }
.cc-rate { font-size: 1.5rem; font-weight: 800; color: var(--main-dark); margin: 0; }
.cc-brief { color: var(--muted); margin: 0 0 12px; }
.cc-body .btn { margin-top: auto; }
.kcode { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 700; background: var(--main-soft); color: var(--main-dark); padding: 2px 8px; border-radius: 4px; font-size: .95em; }

/* 표 */
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.info-table th, .info-table td, .code-table th, .code-table td { overflow-wrap: normal; }
.table-scroll { -webkit-overflow-scrolling: touch; }
.info-table, .code-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.info-table th, .info-table td, .code-table th, .code-table td { text-align: left; padding: 12px 14px; border-bottom: 2px solid var(--line); vertical-align: top; }
.info-table thead th, .code-table thead th { background: var(--bg-soft); color: var(--ink); font-weight: 700; white-space: nowrap; }
.info-table tbody th { font-weight: 700; }
.split-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
.split-in > * { min-width: 0; }

/* 글 */
.text-block { margin-bottom: 2.2em; }
.text-block:last-child { margin-bottom: 0; }
.text-photo { margin: 0 0 1.2em; }
.text-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.plain-list, .num-list { padding-left: 1.3em; margin: 0 0 1em; }
.plain-list li, .num-list li { margin-bottom: .4em; }
.block-go { margin-top: 1em; }

/* 단계 · 확인 순서 */
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px 0; border-bottom: 2px solid var(--line); }
.steps li:first-child { padding-top: 0; }
.step-no { width: 40px; height: 40px; border-radius: var(--radius); background: var(--main); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--ink-2); }
.checklist { padding-left: 1.4em; margin: 0; }
.checklist li { padding: 10px 0 12px; border-bottom: 2px solid var(--line); }
.checklist h3 { font-size: 1.05rem; margin-bottom: .2em; }
.checklist p { margin: 0; color: var(--ink-2); }

/* 자주 묻는 질문 */
.faq { border-bottom: 2px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.05rem; }
.faq[open] .ico { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--ink-2); }

/* 요약 · 안내 목록 */
.digest-item { padding: 16px 0; border-bottom: 2px solid var(--line); }
.digest-item h3 { margin-bottom: .3em; }
.digest-item h3 a { color: var(--ink); }
.digest-item h3 span { color: var(--main-dark); font-size: .95rem; margin-left: 6px; }
.digest-item p { margin: 0; color: var(--ink-2); }
.directory { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.directory li { padding: 14px 0; border-bottom: 2px solid var(--line); }
.directory a { font-weight: 700; font-size: 1.08rem; }
.directory p { margin: .2em 0 0; color: var(--muted); font-size: .98rem; }

/* 메뉴 · 상세 페이지 */
.breadcrumb { padding: 14px 0 0; font-size: .95rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.page-head { padding: 28px 0 40px; }
.page-head-in { display: grid; gap: 40px; }
.page-head.has-photo .page-head-in { grid-template-columns: 1.2fr 1fr; align-items: center; }
.page-head h1, .detail-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.page-lead { font-size: 1.1rem; color: var(--ink-2); max-width: 40em; }
.page-head-photo, .detail-photo { margin: 0; }
.page-head-photo img, .detail-photo img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.detail-head-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.detail-rate { font-size: 1.4rem; font-weight: 800; color: var(--main-dark); }
.related-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.related-list li { padding: 10px 0; border-bottom: 2px solid var(--line); }
.related-list span { color: var(--muted); }
.back-link { margin-top: 1.4em; font-weight: 700; }
.cta-strip { background: var(--main-dark); color: #fff; }
.cta-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-strip p { margin: 0; font-size: 1.1rem; font-weight: 600; }
.cta-strip .btn-main { background: #fff; color: var(--main-dark); }
.more-menu ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.more-menu a { font-weight: 700; }
.notfound { text-align: center; padding: 100px 0; }

/* 푸터 */
.site-footer { background: #2a1219; color: #e3d3d6; padding: 48px 0 32px; margin-top: 0; font-size: .95rem; }
.site-footer .logo { color: #fff; }
.site-footer .logo-mark { fill: #e7b7c4; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-brand p { margin-top: 12px; }
.footer-nav { display: flex; flex-direction: column; gap: 6px; }
.footer-title { font-weight: 700; color: #fff; margin: 0 0 4px; }
.footer-nav a { color: #e3d3d6; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-nav a.strong { font-weight: 800; color: #fff; }
.disclaimer { color: #c9b4b9; font-size: .92rem; }
.to-top { color: #fff; font-weight: 700; }

@media (max-width: 1000px) {
  .main-nav a { padding: 8px 6px; font-size: .92rem; }
  .code-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .menu-toggle { margin-left: 8px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; background: #fff; border-bottom: 2px solid var(--line); padding: 8px 20px 16px; }
  .site-header.nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px 0; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
  .hero-in, .split-in, .detail-head-in, .page-head.has-photo .page-head-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-in { padding-top: 32px; padding-bottom: 36px; }
  .hero-in { min-height: 0; }
  .hero-text { padding: 36px 20px 32px; }
  .hero-photo img { max-height: 420px; }
  .directory { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .logo-sub { display: none; }
  .code-cards { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  h2 { font-size: 1.4rem; }
  .hero h1 { font-size: clamp(1.7rem, 8.4vw, 2.3rem); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 379px) {
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .main-nav .nav-cta { display: block; color: var(--main-dark); font-weight: 800; }
}
@media (max-width: 560px) {
  .info-table thead th, .code-table thead th { white-space: normal; }
  .info-table th, .info-table td, .code-table th, .code-table td { padding-left: 8px; padding-right: 8px; }
  .info-table, .code-table { font-size: .9rem; }
  .spec-table { font-size: 1rem; }
}
.detail-head-in.no-photo { grid-template-columns: minmax(0, 1fr); }
.detail-head-in.no-photo .detail-text { max-width: 820px; }
@media (max-width: 560px) {
  .stack-table, .stack-table tbody, .stack-table tr, .stack-table th, .stack-table td { display: block; width: 100%; }
  .stack-table thead { display: none; }
  .stack-table tr { padding: 12px 0; border-bottom: 2px solid var(--line); }
  .stack-table tbody th, .stack-table td { border: 0; padding: 2px 0; background: none; }
  .stack-table tbody th { font-size: 1.05rem; margin-bottom: 4px; }
  .stack-table td::before { content: attr(data-label); display: inline-block; min-width: 5.2em; font-weight: 700; margin-right: 8px; }
}
@media (max-width: 379px) {
  .stack-sm, .stack-sm tbody, .stack-sm tr, .stack-sm th, .stack-sm td { display: block; width: 100%; }
  .stack-sm thead { display: none; }
  .stack-sm tr { padding: 10px 0; border-bottom: 2px solid var(--line); }
  .stack-sm tbody th, .stack-sm td { border: 0; padding: 2px 0; background: none; }
  .stack-sm td::before { content: attr(data-label); display: inline-block; min-width: 5.2em; font-weight: 700; margin-right: 8px; }
}

@media (max-width: 860px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .hero-text { padding: 28px 16px 24px; }
  .hero-photo img { max-height: 300px; }
  .code-rows li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .code-rows .btn { justify-self: start; }
}
@media (max-width: 560px) {
  .picker-form { grid-template-columns: 1fr; }
  .picker-list li { grid-template-columns: 3em 1fr; }
  .pk-note { grid-column: 2; }
}

/* 헤더 버튼 한 줄 유지 */
.header-cta, .menu-toggle { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 430px) {
  .header-inner { gap: 8px; }
  .header-cta { padding: 0 10px; font-size: .9rem; }
  .menu-toggle { padding: 0 8px; }
  .logo-text { font-size: 1.08rem; }
}
