/* 호수카라반캠핑장 — 모바일 우선 */
:root {
  --brand: #54432a;
  --brand-deep: #3b2f1d;
  --cream: #f7f1e5;
  --paper: #fffdf8;
  --line: #e4d9c4;
  --ink: #2c2416;
  --muted: #74684f;
  --ember: #c8611c;
  --ember-deep: #a94e12;
  --glow: #f0a23c;
  --lake: #2f6464;
  --warn-bg: #fdf0df;
  --radius: 14px;
  --bar-h: 68px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  word-break: keep-all;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lake); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
.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: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.center { text-align: center; }

.demo-banner { background: #b3261e; color: #fff; text-align: center; font-size: 13px; padding: 6px 12px; }

/* 상단 */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; min-height: 52px;
  background: var(--brand); color: #f3e6cc;
}
.brand { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.topnav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { color: #e9dcc0; text-decoration: none; font-size: 14px; padding: 8px 8px; border-radius: 8px; white-space: nowrap; }
.topnav a:hover { background: rgba(255, 255, 255, .1); }
.call {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  background: #f3e6cc; color: var(--brand-deep); text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 8px 12px; border-radius: 999px;
}
@media (max-width: 560px) {
  .topnav { display: none; }
  .call { margin-left: auto; }
}

/* 히어로: 대표사진을 원본 비율 그대로 보여 인물이 잘리지 않게 한다.
   좁은 화면은 사진 아래 제목·상품, 넓은 화면은 왼쪽 사진·오른쪽 제목+상품. */
.landing { max-width: 1180px; margin: 0 auto; padding: 12px 0 0; }
.hero { color: var(--brand-deep); }
.hero-frame {
  position: relative;
  aspect-ratio: var(--hero-ratio, 1201 / 1310);
  width: 100%;
  max-width: min(100%, calc(78vh * var(--hero-w, 1201) / var(--hero-h, 1310)));
  margin: 0 auto;
  background: #1a140c;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(60, 45, 20, .18);
}
.hero-frame picture { display: block; position: absolute; inset: 0; }
.hero-frame img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.hero-text { padding: 16px 4px 8px; }
.hero-en { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #8a7a5c; }
.hero h1 { font-size: clamp(28px, 7vw, 42px); letter-spacing: -0.03em; line-height: 1.2; color: var(--brand-deep); }
.hero-copy { font-size: clamp(16px, 4.2vw, 22px); margin-top: 6px; color: var(--ember-deep); font-weight: 700; }
.hero-sub { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* 예약 플로우 */
main { max-width: 1180px; margin: 0 auto; padding: 0 12px; }
main > .info { max-width: 760px; margin-left: auto; margin-right: auto; }
.booking { position: relative; z-index: 2; }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 14px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(84, 67, 42, .06);
}
.step h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 10px; letter-spacing: -0.02em; }
.step h3 small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.step-no {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); color: #f3e6cc; font-size: 13px; font-weight: 700; flex: none;
}
.hint { font-size: 13px; color: var(--muted); margin: 6px 0; }
.notice { font-size: 14px; background: #eef4f1; border: 1px solid #cfe0da; color: #234; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.notice-warn { background: var(--warn-bg); border-color: #f0cfa3; color: #6b3a09; }
.notice a { font-weight: 700; }

/* 상품 카드: 모바일 2열(숙박은 한 줄 전체), 넓은 화면 3 + 2 */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.product {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; min-width: 0;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 10px 8px; background: #fff; cursor: pointer;
}
.product:first-child { grid-column: 1 / -1; }
.product:hover { border-color: #b9a888; }
.product[aria-pressed="true"] { border-color: var(--brand); background: #fbf5e8; box-shadow: inset 0 0 0 1px var(--brand); }
.product-name { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-weight: 700; font-size: 15.5px; letter-spacing: -0.02em; line-height: 1.3; }
.product-tag { font-size: 11.5px; font-weight: 700; color: var(--brand-deep); background: #ece2cd; border-radius: 999px; padding: 1px 7px; white-space: nowrap; letter-spacing: 0; }
.product[aria-pressed="true"] .product-tag { background: var(--brand); color: #f3e6cc; }
.product-facts { display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.product:first-child .product-facts { flex-direction: row; flex-wrap: wrap; }
.product:first-child .product-facts span + span::before { content: "\00a0· "; }
.product-price { font-size: 13.5px; font-weight: 700; color: var(--ember-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 640px) {
  .products { grid-template-columns: repeat(6, 1fr); gap: 8px; }
  .product { grid-column: span 2; padding: 12px; }
  .product:first-child { grid-column: span 2; }
  .product:nth-child(n+4) { grid-column: span 3; }
  .product:first-child .product-facts { flex-direction: column; gap: 0; }
  .product:first-child .product-facts span + span::before { content: none; }
  .product-name { font-size: 16px; }
  .product-facts { font-size: 13px; }
}

@media (min-width: 960px) {
  /* 왼쪽을 화면 끝까지 사진으로 채운다. 비율은 유지해 인물이 잘리지 않게 한다. */
  :root { --topbar-h: 52px; --demo-h: 0px; }
  body:has(#demo-banner:not([hidden])) { --demo-h: 32px; }

  main { max-width: none; padding: 0; }
  main > .info { max-width: 760px; padding: 0 24px; }
  .landing {
    display: grid;
    grid-template-columns: auto minmax(400px, 1fr);
    grid-template-rows: minmax(20px, 1fr) auto auto minmax(20px, 1fr);
    column-gap: 48px;
    row-gap: 0;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    --hero-avail: calc(100dvh - var(--demo-h) - var(--topbar-h) - var(--bar-h) - env(safe-area-inset-bottom, 0px));
    min-height: var(--hero-avail);
    align-items: stretch;
  }
  .hero, .booking { display: contents; }
  .hero-frame {
    grid-column: 1;
    grid-row: 1 / 5;
    align-self: start;
    width: auto;
    height: min(var(--hero-avail), calc(58vw * var(--hero-h, 1310) / var(--hero-w, 1201)));
    max-width: 58vw;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .hero-text {
    grid-column: 2;
    grid-row: 2;
    padding: 8px 56px 16px 0;
    align-self: end;
  }
  .hero h1 { font-size: clamp(34px, 3.8vw, 48px); }
  .hero-copy { font-size: 22px; }
  .hero-sub { font-size: 16px; }
  .booking > h2,
  .booking > noscript,
  #load-error { grid-column: 2; grid-row: 2; }
  #step-product {
    grid-column: 2;
    grid-row: 3;
    margin: 0 56px 0 0;
    align-self: start;
  }
  /* 옆 칸에서는 숙박을 한 줄 전체, 나머지는 2열 */
  #step-product .products { grid-template-columns: 1fr 1fr; }
  #step-product .product,
  #step-product .product:first-child,
  #step-product .product:nth-child(n+4) { grid-column: auto; }
  #step-product .product:first-child { grid-column: 1 / -1; }
  #step-product .product:first-child .product-facts { flex-direction: row; flex-wrap: wrap; }
  #step-product .product:first-child .product-facts span + span::before { content: "\00a0· "; }
  #step-date, #step-addons, #step-info, #step-total, #step-pay {
    grid-column: 1 / -1;
    max-width: 760px;
    width: calc(100% - 48px);
    justify-self: center;
    margin-top: 24px;
  }
}

/* 달력 */
.picked { font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.picked b { color: var(--brand-deep); }
.cal-help { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; background: #faf4e7; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin-bottom: 10px; min-height: 58px; }
.cal-help strong { display: block; font-size: 16px; letter-spacing: -0.02em; color: var(--brand-deep); }
.cal-help small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.link-btn { flex: none; border: 0; background: none; color: var(--lake); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 2px; min-height: 32px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-head strong { font-size: 16px; }
.cal-nav { width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px 0; text-align: center; }
.cal-dow { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.sun { color: #b3402b; } .sat { color: #2c5c8a; }
.cal-grid button {
  position: relative; height: 50px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 10px; background: none; cursor: pointer; font-size: 15px; padding: 0 0 9px; line-height: 1.2;
}
.cal-grid button:hover:not(:disabled) { background: #f1e7d3; }
.cal-grid button:disabled { color: #c3b9a4; cursor: default; }
.cal-grid button.today { border-color: var(--line); font-weight: 700; }
/* 날짜 아래 표시: 점(예약 가능/불가) 또는 글자(입실·퇴실·이용·마감) */
.cal-grid button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; margin: 0 auto; width: 5px; height: 5px; border-radius: 50%; }
.cal-grid button.ok::after { background: var(--ember); }
.cal-grid button.no { color: #9a8f78; }
.cal-grid button.no:disabled { color: #b9ae97; }
.cal-grid button.no::after { background: #d5cbb6; }
.cal-grid button.out::after { background: none; }
.cal-grid button[data-tag]::after { content: attr(data-tag); width: auto; height: auto; bottom: 3px; background: none; border-radius: 0; font-size: 10px; font-weight: 700; line-height: 1.2; }
/* 범위: 입실·퇴실은 진하게, 사이 날짜는 옅게 이어 칠한다 */
.cal-grid button.in-range, .cal-grid button.in-range:hover:not(:disabled) { background: #eadcbd; border-radius: 0; color: var(--brand-deep); }
.cal-grid button.in-range:disabled { color: var(--brand-deep); }
.cal-grid button.in-range::after { background: none; }
.cal-grid button.sel-start, .cal-grid button.sel-end, .cal-grid button.sel-one,
.cal-grid button.sel-start:hover:not(:disabled), .cal-grid button.sel-end:hover:not(:disabled), .cal-grid button.sel-one:hover:not(:disabled) { background: var(--brand); color: #fff; font-weight: 700; }
.cal-grid button.sel-start { border-radius: 10px 0 0 10px; }
.cal-grid button.sel-end { border-radius: 0 10px 10px 0; }
.cal-grid button.sel-start.sel-open, .cal-grid button.sel-one { border-radius: 10px; }
.cal-grid button.pre-end, .cal-grid button.pre-end:hover:not(:disabled) { background: #cdb88b; border-radius: 0 10px 10px 0; color: var(--brand-deep); font-weight: 700; }
.cal-legend { font-size: 12px; color: var(--muted); margin-top: 8px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 0 4px 1px 0; }
.dot-ok { background: var(--ember); } .dot-no { background: #d5cbb6; margin-left: 10px; }
.range-total { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fbf5e8; border: 1.5px solid var(--brand); font-size: 14.5px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.range-total b { font-size: 18px; color: var(--ember-deep); font-variant-numeric: tabular-nums; margin-left: auto; }
.range-total small { font-size: 12px; color: var(--muted); }

/* 수량 */
.row-stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row-stepper small, .addons small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; flex: none; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; border-radius: 50%; }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 44px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.addons { list-style: none; margin: 0; padding: 0; }
.addons li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.addons li:last-child { border-bottom: 0; padding-bottom: 0; }
#addons-note { margin: 10px 0 0; }
.addon-name { font-weight: 700; }
.addon-price { color: var(--ember-deep); font-weight: 700; font-size: 14px; }

/* 폼 */
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.field label em { font-style: normal; color: var(--ember-deep); font-size: 12px; margin-left: 2px; }
.field .opt { color: var(--muted); font-size: 12px; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font-size: 16px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(240, 162, 60, .35); }
.field .invalid { border-color: #b3261e; }
.field small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.agree { display: grid; gap: 8px; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; background: #faf4e7; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }

/* 합계 */
.summary dl { margin: 0; }
.summary .sum-head { font-weight: 700; margin-bottom: 6px; }
.summary .sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 0; }
.summary .sum-row dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary .sum-total { border-top: 1.5px solid var(--brand); margin-top: 8px; padding-top: 10px; font-size: 17px; font-weight: 800; }
.summary .sum-total dd { color: var(--ember-deep); font-size: 21px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 50px; padding: 0 18px; border-radius: 12px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--ember); color: #fff; width: 100%; margin-top: 10px; }
.btn-primary:hover { background: var(--ember-deep); }
.btn-primary:disabled { background: #cbbfa8; cursor: not-allowed; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--brand-deep); font-size: 15px; min-height: 46px; }

#payment-method, #agreement { margin: 0 -6px; }

/* 안내 섹션 */
.info { padding: 26px 4px 6px; }
.info h2 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 10px; color: var(--brand-deep); }
.info .lead { font-size: 15px; color: var(--muted); }
.info-small { font-size: 13px; color: var(--muted); }
.info-small h2 { font-size: 15px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 12px 0; }
.tags li { background: #ece2cd; color: var(--brand-deep); font-size: 13px; padding: 4px 10px; border-radius: 999px; }
/* 갤러리: 모바일은 같은 높이의 가로 스와이프(사진 비율 유지), 800px 이상은 넓은 메이슨리 그리드 */
.gallery-hint { margin-bottom: 2px; }
.gallery {
  --gh: min(70vw, 340px);
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 0 -12px; padding: 4px 12px 12px; scroll-padding: 0 12px; -webkit-overflow-scrolling: touch;
}
.g-item {
  flex: none; display: block; height: var(--gh); aspect-ratio: var(--ar, 1); max-width: 86vw;
  border-radius: 12px; overflow: hidden; scroll-snap-align: center; background: #e6dcc7; cursor: zoom-in;
}
.g-item picture, .g-item img { display: block; width: 100%; height: 100%; }
.g-item img { object-fit: cover; object-position: center; }
@media (min-width: 800px) {
  .gallery-hint { display: none; }
  .gallery {
    display: block; overflow: visible; columns: 2; column-gap: 14px;
    width: min(1120px, calc(100vw - 48px)); margin: 14px 0 0 50%; transform: translateX(-50%); padding: 0;
  }
  .g-item { height: auto; max-width: none; width: 100%; margin: 0 0 14px; break-inside: avoid; border-radius: 14px; transition: filter .15s, box-shadow .15s; }
  .g-item img { height: auto; object-fit: initial; }
  .g-item:hover { filter: brightness(1.06); box-shadow: 0 6px 20px rgba(60, 45, 20, .22); }
}
@media (min-width: 1000px) { .gallery { columns: 3; } }

/* 라이트박스 */
.lb { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(20, 15, 8, .93); touch-action: pan-y; }
.lb figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; padding: 52px 12px 44px; }
.lb img { max-width: min(100%, 1400px); max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); background: #2a2114; }
.lb figcaption { color: #eadfc8; font-size: 14px; margin-top: 10px; text-align: center; }
.lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb button:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 10px; right: 12px; }
.lb-prev { left: 12px; top: 50%; margin-top: -24px; }
.lb-next { right: 12px; top: 50%; margin-top: -24px; }
.lb-count { position: absolute; top: 22px; left: 16px; color: #eadfc8; font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .lb-prev, .lb-next { top: auto; bottom: 8px; margin: 0; } .lb figure { padding-bottom: 64px; } }
body.lb-open { overflow: hidden; }
.times { margin: 0 0 12px; display: grid; gap: 6px; }
.times div { display: flex; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.times dt { font-weight: 700; width: 78px; flex: none; }
.times dd { margin: 0; }
.times small { display: block; color: var(--muted); font-size: 12.5px; }
.bullets { margin: 0; padding-left: 18px; font-size: 14.5px; }
.bullets li { margin-bottom: 6px; }
.bullets b { color: var(--brand-deep); margin-right: 4px; }
.refund { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 12px; font-size: 15px; }
.refund th, .refund td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.refund thead th { background: #ece2cd; font-size: 13px; }
.refund td { font-weight: 700; color: var(--ember-deep); text-align: right; }
.refund tbody th { font-weight: 500; }
.refund tr:last-child th, .refund tr:last-child td { border-bottom: 0; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; }
summary { padding: 12px 14px; font-weight: 700; cursor: pointer; font-size: 15px; }
details p { padding: 0 14px 12px; font-size: 14.5px; color: #4a4030; }
address { font-style: normal; font-size: 15px; }
.map-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 6px; }

.footer { background: var(--brand-deep); color: #d9cdb3; margin-top: 30px; padding: 24px 16px 28px; font-size: 13px; }
.footer > * { max-width: 736px; margin-left: auto; margin-right: auto; }
.footer-brand { font-weight: 700; color: #f3e6cc; font-size: 15px; margin-bottom: 8px; }
.footer dl { margin-top: 0; margin-bottom: 12px; }
.footer dl div { display: flex; gap: 8px; padding: 1px 0; }
.footer dt { width: 96px; flex: none; opacity: .75; }
.footer dd { margin: 0; }
.footer a { color: #f3e6cc; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* 하단 고정 요약 */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  min-height: var(--bar-h); padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(60, 45, 20, .1);
}
.bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.bar-text span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-text strong { font-size: 18px; color: var(--ember-deep); font-variant-numeric: tabular-nums; }
.bar .btn { width: auto; margin: 0; flex: none; min-width: 128px; }
@media (min-width: 800px) { .bar { padding-left: calc(50% - 368px); padding-right: calc(50% - 368px); } }

/* 결제 결과 페이지 */
.result { max-width: 560px; margin: 0 auto; padding: 24px 14px 40px; }
.result-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; }
.result h1 { font-size: 22px; margin-bottom: 6px; letter-spacing: -0.02em; }
.result .bookno { font-size: 26px; font-weight: 800; color: var(--ember-deep); letter-spacing: .04em; margin: 6px 0 14px; }
.result dl { margin: 0; }
.result dl div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.result dt { color: var(--muted); flex: none; }
.result dd { margin: 0; text-align: right; }
.spinner { width: 36px; height: 36px; border: 4px solid var(--line); border-top-color: var(--ember); border-radius: 50%; animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
body.plain { padding-bottom: 0; }

/* 예약 조회·취소 페이지 */
.res-h { font-size: 18px; margin: 20px 0 10px; color: var(--brand-deep); }
.result .refund tr.tier-now th, .result .refund tr.tier-now td { background: #fbefd9; font-weight: 800; }
.result .summary { margin: 4px 0 14px; }
.result .summary .sum-row { border-bottom: 0; }
.result .summary .sum-total { border-top: 1.5px solid var(--brand); }
.result .check { margin: 4px 0 6px; }
.res-notes { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.result .btn-link { width: 100%; margin-top: 8px; }
.notice-done { background: #f1efe9; border-color: #d9d2c2; color: #3b3326; }
.refund-now { font-size: 17px; font-weight: 800; color: var(--ember-deep); background: #fbefd9; border: 1px solid #f0cfa3; border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; }
.confirm-box { margin-top: 12px; border: 2px solid var(--ember); background: #fff8ee; border-radius: 12px; padding: 14px; }
.confirm-box .confirm-title { font-size: 17px; font-weight: 800; margin: 0 0 6px; color: var(--brand-deep); }
.confirm-box p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.55; }
.confirm-actions { display: flex; gap: 8px; }
.confirm-actions .btn { flex: 1; margin: 0; width: auto; }
.btn-danger { background: #b3261e; color: #fff; }
.btn-danger:disabled { opacity: .6; }
@media (min-width: 800px) { .result { max-width: 640px; padding-top: 36px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner { animation-duration: 3s; }
}

/* 대표사진 낮·밤 전환: 새 사진을 위에 겹쳐 서서히 보이게 한다 */
.hero-frame picture.hero-in { animation: hero-fade 1.2s ease both; }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-frame picture.hero-in { animation: none; } }
