/* 고정 사이드 예약 카드형 — 잡지 기사 같은 소개 + 오른쪽에 붙어 다니는 카드. Noto Serif KR + Pretendard, 흰 바탕에 테라코타 */
@font-face {
  font-family: 'Pretendard Variable';
  src: url('/fonts/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 45 920; font-style: normal; font-display: swap;
}
:root {
  --bg: #FFFFFF;
  --paper: #FAF7F3;
  --ink: #23201C;
  --soft: #716A61;
  --line: #E8E2D9;
  --red: #B4472F;
  --red-deep: #8F3622;
  --red-soft: #F8E9E4;
  --serif: 'Noto Serif KR', serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif; letter-spacing: -0.2px; word-break: keep-all; }
body.is-locked { overflow: hidden; }
a { color: inherit; }
button, select, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3 { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.small { font-size: 13.5px; color: var(--soft); }

.top__in { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; text-decoration: none; }
.brand__mark { width: 22px; height: 22px; border-radius: 50%; background: var(--red); box-shadow: inset -7px -5px 0 #E3B49F; }
.top__owner { font-size: 14px; font-weight: 600; color: var(--red); text-decoration: none; }

.cover { margin: 0; border-radius: 6px; overflow: hidden; }
.cover svg { display: block; width: 100%; height: 240px; }

.page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; padding-top: 36px; }

/* 왼쪽 소개 */
.title__where { margin: 0 0 6px; font-size: 13.5px; color: var(--soft); }
.title h1 { font-family: var(--serif); font-size: 38px; line-height: 1.25; font-weight: 700; letter-spacing: -1px; }
.title__facts { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 14px 0 0; font-size: 14.5px; }
.title__facts span { padding-right: 14px; margin-right: 14px; border-right: 1px solid var(--line); }
.title__facts span:last-child { border: 0; color: var(--red); font-weight: 600; }

.tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 26px; margin-top: 28px; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 14px 0 12px; font-size: 15px; font-weight: 600; color: var(--soft); text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a:first-child { color: var(--ink); border-bottom-color: var(--ink); }
.tabs a:hover { color: var(--ink); }

.sec { padding: 36px 0 8px; scroll-margin-top: 56px; }
.sec h2 { font-family: var(--serif); font-size: 23px; font-weight: 700; margin-bottom: 14px; }
.sec p { margin: 0 0 12px; color: #3C3832; }
.sec__sub { font-size: 16px; margin: 26px 0 6px; }
.mrow { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.mrow:first-child { border-top: 1px solid var(--line); }
.mrow h3 { font-size: 17px; }
.mrow p { margin: 4px 0 0; font-size: 14.5px; color: var(--soft); }
.mrow__p { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.mrow__p span { font-size: 13px; color: var(--soft); }
.mrow__p b { font-size: 17px; }
.mrow__p b i { font-style: normal; font-weight: 400; font-size: 13px; color: var(--soft); }
.mrow__go { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--red); font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.passes { margin: 0 0 10px; padding: 0; list-style: none; }
.passes li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dotted var(--line); font-size: 15px; }
.passes i { font-style: normal; color: var(--soft); font-size: 13px; margin-left: 6px; }
.kit { margin: 16px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kit li { padding: 16px; background: var(--paper); border-radius: 6px; }
.kit b { display: block; font-size: 15px; }
.kit span { font-size: 13.5px; color: var(--soft); }
.faq { margin: 0; }
.faq dt { font-weight: 700; padding-top: 14px; }
.faq dd { margin: 4px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: #3C3832; font-size: 15px; }
.visit { display: grid; grid-template-columns: 60px 1fr; gap: 8px 12px; margin: 0; font-size: 15px; }
.visit dt { color: var(--soft); }
.visit dd { margin: 0; }
.maker { margin: 36px 0 0; padding: 18px 20px; background: var(--paper); border-radius: 6px; font-size: 14px; }
.maker p { margin: 0 0 8px; color: #4A453E; line-height: 1.7; }
.maker a { color: var(--red); font-weight: 700; text-decoration: none; }

/* 오른쪽 카드 */
.rc { position: sticky; top: 20px; }
.rc__card { padding: 22px 22px 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(60, 40, 20, .09); }
.rc__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.rc__head h2 { font-family: var(--serif); font-size: 19px; font-weight: 700; }
.rc__close { display: none; width: 36px; height: 36px; border: 0; background: none; font-size: 24px; color: var(--soft); cursor: pointer; }
.rc__two { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; }
.sel { position: relative; display: block; margin-bottom: 8px; padding: 7px 12px 6px; border: 1px solid #D6CEC2; border-radius: 6px; }
.sel:focus-within { border-color: var(--ink); }
.sel span { display: block; font-size: 11.5px; font-weight: 700; color: var(--soft); }
.sel select { -webkit-appearance: none; appearance: none; width: 100%; padding: 0 16px 0 0; border: 0; background: transparent; font-size: 15px; font-weight: 600; outline: none; cursor: pointer; text-overflow: ellipsis; }
.sel::after { content: ''; position: absolute; right: 13px; bottom: 15px; width: 6px; height: 6px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.rc__result { margin-top: 8px; }
.rc__note { margin: 4px 0 8px; font-size: 13.5px; color: var(--soft); }
.rc__none { margin: 12px 0 8px; font-size: 14px; }
.rc__warn { margin: 0 0 10px; padding: 8px 10px; background: var(--red-soft); color: var(--red-deep); font-size: 13.5px; border-radius: 4px; }
.chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.chip { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 42px; padding: 6px 2px; border: 0; border-radius: 5px; background: var(--red); color: #fff; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; line-height: 1.2; }
button.chip:hover { background: var(--red-deep); }
.chip--sm { display: inline-flex; min-height: 32px; padding: 4px 10px; margin: 4px 2px 0 0; font-size: 13.5px; }
span.chip { background: #F2EEE8; color: #A39B8F; font-weight: 500; cursor: default; }
span.chip s { text-decoration: none; font-size: 13px; }
span.chip i { font-style: normal; font-size: 10.5px; }
.chip--taken s { text-decoration: line-through !important; }
.chip--blocked { background: repeating-linear-gradient(135deg, #F2EEE8 0 5px, #E9E3DA 5px 6px) !important; }
.chip--past { opacity: .6; }
.rc__price { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.rc__price span { color: var(--soft); font-size: 13px; }
.rc__owner { margin: 12px 4px 0; font-size: 13px; color: var(--soft); }
.rc__owner a { color: var(--red); font-weight: 600; }

.back { padding: 0; margin-bottom: 10px; border: 0; background: none; color: var(--soft); font-size: 14px; cursor: pointer; }
.rc__pick { margin: 0 0 14px; padding: 10px 12px; background: var(--paper); border-radius: 6px; font-size: 14px; }
.field { display: block; margin-bottom: 10px; }
.field span { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 600; }
.field i { font-style: normal; font-weight: 400; color: var(--soft); }
.field input, .field textarea { width: 100%; padding: 9px 11px; border: 1px solid #D6CEC2; border-radius: 6px; font-size: 16px; resize: vertical; background: #fff; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.error { min-height: 1em; margin: 0 0 8px; color: var(--red-deep); font-size: 13.5px; }
.btn { display: block; width: 100%; padding: 12px; border: 0; border-radius: 6px; background: var(--red); color: #fff; font-size: 15px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--red-deep); }
.btn--line { margin-top: 8px; background: #fff; color: var(--ink); border: 1px solid #D6CEC2; }
.btn--line:hover { background: var(--paper); }
#formView .small, #doneView .small { margin: 10px 0 12px; }
.badge { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 99px; background: #FBEFC6; color: #7A5B07; font-size: 12.5px; font-weight: 700; }
.done__title { font-family: var(--serif); font-size: 20px; }
.done { display: grid; grid-template-columns: 56px 1fr; gap: 4px 10px; margin: 12px 0 0; font-size: 14.5px; }
.done dt { color: var(--soft); }
.done dd { margin: 0; font-weight: 600; word-break: break-all; }

.foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--soft); }
.mbar { display: none; }

@media (max-width: 900px) {
  .wrap { padding: 0 16px; }
  .cover { margin: 0 -16px; border-radius: 0; }
  .cover svg { height: 190px; }
  .page { grid-template-columns: 1fr; gap: 0; padding-top: 22px; }
  .title h1 { font-size: 30px; }
  .title__facts { font-size: 13.5px; }
  .title__facts span { padding-right: 10px; margin-right: 10px; }
  .tabs { gap: 20px; margin-left: -16px; margin-right: -16px; padding: 0 16px; }
  .kit { grid-template-columns: 1fr; }
  .mrow { flex-direction: column; gap: 8px; }
  .mrow__p { flex-direction: row; align-items: baseline; gap: 10px; }
  .mrow__go { margin: 0 0 0 auto; }
  .rc { display: none; position: fixed; inset: 0; z-index: 1100; top: 0; overflow-y: auto; background: var(--bg); padding: 0 0 24px; }
  .rc.is-open { display: block; }
  .rc__card { border: 0; border-radius: 0; box-shadow: none; padding: 14px 16px 16px; }
  .rc__close { display: block; }
  .rc__owner { margin: 4px 16px 0; }
  .foot { flex-direction: column; gap: 6px; padding-bottom: 100px; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
  .mbar p { margin: 0; font-size: 15px; line-height: 1.35; min-width: 0; }
  .mbar span { display: block; font-size: 12.5px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar button { flex: none; padding: 12px 22px; border: 0; border-radius: 6px; background: var(--red); color: #fff; font-weight: 700; cursor: pointer; }
}
