/* 2027 JW 국제대회 예약 — event-booking 디자인 시스템 기반 */
:root {
  --ink: #171717;
  --brown: #231815;
  --gold: #C2984E;
  --bg: #f7f8f9;
  --card: #ffffff;
  --line: #ececee;
  --muted: #8b8f94;
  --green: #16a34a;
  --green-bg: #e7f6ec;
  --red: #dc2626;
  --red-bg: #fdecea;
  --amber: #a16207;
  --amber-bg: #fdf3d7;
  --shadow: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px -1px rgba(0,0,0,.07);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, Helvetica, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ---------- 시작(코드 입력)/로그인 ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px;
  background: #fff url('img/login_bg.webp') center/cover no-repeat;
}
.login-card {
  background: var(--card);
  border-radius: 24px;
  padding: 48px 36px;
  width: 100%; max-width: 440px;
  box-shadow: 0 10px 40px rgba(35, 24, 21, .18);
  text-align: center;
}
.login-logo { width: 120px; margin: 0 auto 18px; display: block; }
.login-card h1 { font-size: 28px; color: var(--brown); font-weight: 700; letter-spacing: -0.5px; }
.login-sub { color: var(--muted); font-size: 14px; margin: 12px 0 32px; line-height: 1.7; }
.login-card form { text-align: left; }
.login-card label { display: block; font-size: 14px; margin-bottom: 18px; font-weight: 600; color: var(--ink); }
.login-card input {
  width: 100%; margin-top: 8px; padding: 14px 16px;
  border: 1px solid var(--gold); border-radius: 12px; font-size: 16px;
  background: #fdfcfa; outline: none;
}
.login-card input:focus { border-width: 2px; padding: 13px 15px; }
.login-card .btn-block { margin-top: 6px; }
.login-help { margin-top: 22px; font-size: 13px; color: var(--muted); }
.login-help a { color: var(--muted); }
.login-copy { margin-top: 26px; font-size: 12px; color: var(--muted); letter-spacing: 1px; }
#code-input { text-transform: uppercase; letter-spacing: 2px; font-weight: 700; text-align: center; }

/* ---------- 공통 요소 ---------- */
.btn {
  border: none; border-radius: 12px; padding: 13px 22px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  background: #f0f0f2; color: var(--ink);
  transition: filter .15s;
  font-family: inherit;
}
.btn:hover { filter: brightness(.96); }
.btn-primary { background: var(--brown); color: var(--gold); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; padding: 15px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

input, select, textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
}
textarea { width: 100%; resize: vertical; margin-top: 8px; }

.error-msg { color: var(--red); font-size: 13px; margin-top: 12px; min-height: 20px; text-align: center; white-space: pre-line; }
.error-msg.ok { color: var(--green); }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0; line-height: 1.7; }
code { background: #f0f0f2; padding: 2px 7px; border-radius: 6px; font-size: 12px; }

/* ---------- 레이아웃 ---------- */
.container { max-width: 960px; margin: 0 auto; padding: 0 20px 80px; }
/* 관리자 화면은 창 너비를 그대로 사용 (예약 현황 표를 한눈에) */
#view-admin .container { max-width: none; }
h3 { font-size: 14px; margin: 4px 0 14px; font-weight: 700; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.page-head {
  display: flex; align-items: center; justify-content: center;
  position: relative; height: 58px;
  margin: 0 -20px 20px; padding: 0 20px;
  background: var(--card); border-bottom: 1px solid var(--line);
}
.page-title { font-size: 16px; font-weight: 700; }
.back-btn {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 8px;
  color: var(--ink); font-size: 20px;
}

/* ---------- 폼 배치 ---------- */
.form-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.form-row label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- 행사 헤더 ---------- */
.event-head-card { border-top: 4px solid var(--gold); text-align: center; padding: 32px 24px; }
.event-code-badge {
  display: inline-block; background: var(--brown); color: var(--gold);
  font-weight: 700; letter-spacing: 2px; font-size: 13px;
  padding: 4px 14px; border-radius: 999px; margin-bottom: 14px;
}
.event-head-card h2 {
  font-size: 30px; color: var(--brown); font-weight: 800;
  letter-spacing: -0.5px; line-height: 1.35;
}
.event-desc { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.7; }
@media (max-width: 640px) { .event-head-card h2 { font-size: 24px; } }

/* ---------- 날짜 선택 캘린더 ---------- */
.cal-month { margin: 16px 0 6px; }
.cal-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; color: var(--brown); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.cal-wd:first-child { color: var(--red); }
.cal-wd:last-child { color: #2563eb; }
.cal-day {
  min-height: 48px; border: 1px solid var(--line); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; background: #fff; font-size: 14px; font-weight: 600;
  transition: background .1s, border-color .1s;
  user-select: none;
}
.cal-day:hover:not(.disabled):not(.empty) { border-color: var(--gold); }
.cal-day.empty { border: none; background: transparent; cursor: default; }
.cal-day.disabled { background: #f3f3f5; color: #c6c8cc; cursor: default; }
.cal-day.sun .cal-num { color: var(--red); }
.cal-day.sat .cal-num { color: #2563eb; }
.cal-day.disabled .cal-num { color: #c6c8cc; }
.cal-day.in-range { background: #f6efe1; border-color: #e5d3ab; }
.cal-day.sel-start, .cal-day.sel-end {
  background: var(--brown); border-color: var(--brown);
}
.cal-day.sel-start .cal-num, .cal-day.sel-end .cal-num { color: var(--gold); }
.cal-day.sel-start .cal-sub, .cal-day.sel-end .cal-sub { color: var(--gold); }
.cal-sub { font-size: 10px; line-height: 1.2; color: var(--red); font-weight: 700; }
.cal-day .cal-sub:empty { display: none; }
.cal-summary { font-size: 15px; font-weight: 700; color: var(--brown); margin: 12px 0 4px; }
@media (max-width: 640px) {
  .cal-day { min-height: 42px; font-size: 13px; border-radius: 8px; }
}

/* ---------- 객실 선택 카드 ---------- */
.room-opt {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 2px solid var(--line); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 10px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.room-opt:hover { border-color: var(--gold); }
.room-opt.selected { border-color: var(--gold); background: #fdfaf4; }
.room-opt.soldout { opacity: .55; cursor: not-allowed; }
.room-opt .r-name { font-weight: 700; font-size: 15px; }
.room-opt .r-desc { font-size: 13px; color: var(--muted); }
.room-opt .r-price { font-weight: 700; text-align: right; white-space: nowrap; }
.room-opt .r-remain { font-size: 12px; color: var(--muted); text-align: right; }
.room-opt .r-remain.low { color: var(--red); font-weight: 700; }
.total-line { font-size: 17px; font-weight: 700; margin-top: 14px; text-align: right; color: var(--brown); }

/* ---------- 예약 완료 ---------- */
.done-check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--green-bg); color: var(--green);
  font-size: 34px; line-height: 64px; text-align: center;
}
.done-box {
  background: #faf8f4; border: 1px solid var(--gold); border-radius: 14px;
  padding: 18px; text-align: left; font-size: 14px;
}
.done-box .ref { font-size: 22px; font-weight: 700; color: var(--brown); letter-spacing: 1px; text-align: center; margin-bottom: 12px; }
.done-box dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.done-box dt { color: var(--muted); }
.done-box dd { font-weight: 600; }

/* ---------- 탭 ---------- */
.tabbar { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted);
  font-family: inherit;
}
.tab.active { background: var(--brown); color: var(--gold); border-color: var(--brown); }

/* ---------- 테이블 ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th, table.tbl td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.tbl th { color: var(--muted); font-weight: 600; background: #fafafa; position: sticky; top: 0; }
table.tbl td.num, table.tbl th.num { text-align: right; }

/* ---------- 상태 배지 ---------- */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.ok { background: var(--green-bg); color: var(--green); }
.badge.off { background: var(--red-bg); color: var(--red); }
.badge.amber { background: var(--amber-bg); color: var(--amber); }
.badge.code { background: var(--brown); color: var(--gold); letter-spacing: 1px; }

/* ---------- 행사 목록 카드 ---------- */
.event-item { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: flex-start; }
.event-item .e-main { flex: 1; min-width: 240px; }
.event-item .e-name { font-size: 17px; font-weight: 700; margin: 6px 0 2px; }
.event-item .e-meta { font-size: 13px; color: var(--muted); }
.event-item .e-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- 모달 ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 30px 16px; overflow-y: auto;
}
.modal {
  background: var(--bg); border-radius: 18px; padding: 20px;
  width: 100%; max-width: 860px;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 16px; }

/* ---------- 가용 달력(게스트) ---------- */
.avail-mini { margin-top: 14px; }
.avail-mini caption { text-align: left; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.avail-mini td.soldout { color: var(--red); font-weight: 700; }

/* ---------- 관리자 배정 캘린더 ---------- */
.al-monthnav { display: flex; align-items: center; gap: 10px; }
.al-monthnav b { font-size: 15px; min-width: 90px; text-align: center; }
.al-cal {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  margin: 14px 0 6px;
}
.al-wd { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.al-wd.sun { color: var(--red); }
.al-wd.sat { color: #2563eb; }
.al-cell {
  min-height: 66px; border: 1px solid var(--line); border-radius: 10px;
  padding: 5px 6px; cursor: pointer; background: #f7f7f9;
  font-size: 12px; line-height: 1.35; user-select: none;
  transition: border-color .1s, box-shadow .1s;
}
.al-cell:hover:not(.empty):not(.al-past) { border-color: var(--gold); }
.al-cell.empty { border: none; background: transparent; cursor: default; }
.al-cell.al-has { background: #fff; }
.al-cell.al-full { background: var(--red-bg); }
.al-cell.al-past { opacity: .45; cursor: default; }
.al-cell.al-sel { border: 2px solid var(--brown); box-shadow: 0 0 0 1px var(--brown); padding: 4px 5px; }
.al-day { font-weight: 700; font-size: 13px; }
.al-day.sun { color: var(--red); }
.al-day.sat { color: #2563eb; }
.al-price { color: var(--brown); font-weight: 700; }
.al-count { color: var(--muted); }
.al-count small { font-size: 10px; }
.al-tag { color: var(--red); font-weight: 700; font-size: 11px; }
.al-bf { color: var(--amber); font-size: 11px; font-weight: 600; }
.al-none { color: #c6c8cc; }
.al-applyrow { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .al-cell { min-height: 58px; font-size: 10px; padding: 4px; }
  .al-day { font-size: 12px; }
}

.admin-head { justify-content: flex-start; }
@media (max-width: 640px) {
  .card { padding: 18px; }
  .login-card { padding: 36px 24px; }
}

/* ================================================================ JW 전용 — 예약자 화면 */
body.guest { background: #f4f2ee; }
.container.narrow { max-width: 560px; }
.g-top { background: var(--brown); position: sticky; top: 0; z-index: 20; }
.g-top-inner {
  max-width: 960px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.g-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.g-logo { width: 38px; height: 38px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; flex: none; }
.g-brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.g-brand-text b { color: var(--gold); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-brand-text small { color: #cdbfa6; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-toggle { display: flex; border: 1px solid rgba(194,152,78,.6); border-radius: 999px; overflow: hidden; flex: none; }
.lang-toggle button {
  background: transparent; color: #d9cbb0; border: none; padding: 7px 13px;
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.lang-toggle button.active { background: var(--gold); color: var(--brown); }

/* 메인 배너: 좌측 텍스트 + 우측 호텔 사진(자동 전환) */
.hero {
  margin: 20px 0 0; border-radius: var(--radius); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  min-height: 380px;
  background: radial-gradient(120% 120% at 0% 0%, #4a372d 0%, #2c1f1a 55%, #231815 100%);
  color: #fff; box-shadow: 0 10px 30px rgba(35, 24, 21, .18);
}
.hero-text { padding: 40px 34px 36px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.hero-event { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .4px; line-height: 1.5; }
.hero-dates { color: #d9cbb0; font-size: 12.5px; margin-top: 4px; line-height: 1.5; }
.hero-hotel {
  font-size: 36px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2;
  margin: 18px 0 8px; padding-top: 16px; border-top: 1px solid rgba(194, 152, 78, .45);
}
.hero-addr { color: #e9e1d2; font-size: 13px; line-height: 1.6; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-venue {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  background: var(--gold); color: var(--brown); font-weight: 700; font-size: 13px; line-height: 1.4;
}
.hero-map {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(233, 225, 210, .55); color: #f3ede2; font-size: 13px; font-weight: 700; text-decoration: none;
}
.hero-map:hover { background: rgba(255, 255, 255, .08); }
.hero-photo { position: relative; min-height: 100%; overflow: hidden; background: #2c1f1a; }
.hero-photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(90deg, #2c1f1a 0%, rgba(44, 31, 26, .55) 14%, rgba(44, 31, 26, 0) 38%),
    linear-gradient(0deg, rgba(20, 14, 12, .55) 0%, rgba(20, 14, 12, 0) 30%);
}
.hp-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 7s ease-out;
}
.hp-img.on { opacity: 1; transform: scale(1); }
.hp-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; padding: 12px 16px;
}
.hp-cap { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .3px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.hp-dots { display: flex; gap: 6px; }
.hp-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .5); transition: width .3s, background .3s;
}
.hp-dot.on { width: 22px; border-radius: 4px; background: var(--gold); }
@media (prefers-reduced-motion: reduce) { .hp-img { transition: none; transform: none; } }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; height: 230px; }
  .hero-photo::after {
    background: linear-gradient(0deg, #2c1f1a 0%, rgba(44, 31, 26, .35) 22%, rgba(44, 31, 26, 0) 45%);
  }
  .hp-bar { bottom: 6px; }
  .hero-text { padding: 20px 22px 28px; }
  .hero-hotel { font-size: 27px; margin-top: 12px; padding-top: 12px; }
}

.only-banner {
  margin: 12px 0 20px; padding: 12px 16px; border-radius: 12px;
  background: #fff; border-left: 5px solid var(--gold); font-size: 14px; box-shadow: var(--shadow);
}
body.branch-incheon .hero-venue { background: #e9e1d2; }
body.branch-incheon .only-banner { border-left-color: #6b4f3a; }
.admin-banner, .closed-banner {
  margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
}
.admin-banner { background: #e8f0fe; color: #1d4ed8; }
.closed-banner { background: var(--amber-bg); color: var(--amber); text-align: center; font-size: 15px; }

.sec-title { font-size: 17px; color: var(--brown); font-weight: 800; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.step {
  display: inline-flex; width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--brown); color: var(--gold); font-size: 13px; align-items: center; justify-content: center;
}
.policy-list { list-style: none; display: grid; gap: 0; }
.policy-list li { font-size: 13.5px; line-height: 1.65; display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.policy-list li:last-child { border-bottom: none; }
.policy-list li b { color: var(--brown); }
@media (max-width: 640px) { .policy-list li { grid-template-columns: 1fr; gap: 2px; } }

.cal-day.in-window:not(.disabled) { background: #fffdf8; }
.cal-day.disabled.in-window { background: #faf7f0; }
.cal-day.disabled.in-window .cal-num { color: #b9b2a3; }
.cal-day.in-range { background: #f6efe1 !important; border-color: #e5d3ab; }
.cal-day.in-range .cal-num { color: var(--ink) !important; }

.room-opt .r-main { min-width: 0; }
.room-opt .r-bf { font-size: 12px; color: var(--green); font-weight: 700; margin-top: 2px; }
.room-opt .r-side { text-align: right; }
.room-opt .r-price small { font-weight: 400; color: var(--muted); font-size: 12px; }
.room-opt .r-total { font-size: 12px; color: var(--muted); }
.room-opt.selected { box-shadow: 0 0 0 1px var(--gold); }
@media (max-width: 640px) {
  .room-opt { flex-direction: column; align-items: stretch; }
  .room-opt .r-side, .room-opt .r-price, .room-opt .r-remain { text-align: left; }
}
#guest-count { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
#guest-count select { min-width: 110px; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 10px 0; cursor: pointer; line-height: 1.55; }
.check-line input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brown); }
.price-box { margin-top: 14px; background: #faf8f4; border: 1px solid #eadfca; border-radius: 12px; padding: 12px 16px; }
.price-box .pl { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; }
.price-box .pl.total { border-top: 1px solid #e5d8bd; margin-top: 4px; padding-top: 10px; font-size: 17px; color: var(--brown); }
.price-box .pl.sub { font-size: 12.5px; color: var(--muted); padding: 2px 0; }

.form-grid .span2 { grid-column: 1 / -1; }
.form-grid input, .form-grid select { width: 100%; }
.block-label { display: block; margin-top: 14px; font-size: 13px; font-weight: 600; }
.card-input-wrap { position: relative; display: block; }
.card-input-wrap input { width: 100%; padding-right: 96px; letter-spacing: 1px; }
.card-brand { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 800; color: var(--brown); }
.hint.warn { color: var(--amber); background: var(--amber-bg); border-radius: 10px; padding: 8px 12px; }
.secure-note { font-size: 12px; }
.privacy-detail { font-size: 12.5px; color: var(--muted); margin: 0 0 6px 28px; }
.privacy-detail summary { cursor: pointer; }
.privacy-detail p { margin-top: 6px; line-height: 1.7; }

.center { text-align: center; }
.page-h1 { font-size: 24px; color: var(--brown); font-weight: 800; margin-bottom: 8px; }
.btn-row { display: flex; gap: 10px; margin-top: 18px; }
.btn-row .btn { flex: 1; }
.next-steps { text-align: left; margin-top: 18px; font-size: 13.5px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.next-steps ol { margin: 8px 0 0 18px; line-height: 1.8; color: #4b4f54; }
.done-box .hint { margin-top: 10px; }
#v-done .card, #v-lookup .card, #v-cancel .card { margin-top: 24px; }
.stack-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.lookup-link { text-align: center; margin: 6px 0 20px; font-size: 14px; }
.lookup-link a { color: var(--brown); }
.notice-card { margin-top: 40px; text-align: center; }
.notice-card h1 { font-size: 24px; color: var(--brown); margin-bottom: 12px; }
.notice-card p { color: #4b4f54; margin-bottom: 20px; line-height: 1.8; }
.g-foot { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.9; padding: 10px 20px 40px; }
.g-foot b { color: var(--brown); }
.g-foot a { color: var(--muted); }
@media (max-width: 640px) {
  .g-brand-text small { display: none; }
  .btn-row { flex-direction: column-reverse; }
}

/* ================================================================ JW 전용 — 관리자 */
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 0; }
.admin-top h1 { font-size: 18px; color: var(--brown); }
.admin-top .who { font-size: 13px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .k-label { font-size: 12px; color: var(--muted); }
.kpi .k-val { font-size: 22px; font-weight: 800; color: var(--brown); margin-top: 2px; }
.kpi .k-sub { font-size: 12px; color: var(--muted); }
.pick-tbl td, .pick-tbl th { text-align: center !important; }
.pick-tbl td:first-child, .pick-tbl th:first-child { text-align: left !important; }
.pick-tbl .pc-main { font-weight: 700; }
.pick-tbl .pc-sub { font-size: 11px; color: var(--muted); }
.pick-tbl .pc-full { background: var(--red-bg); }
.pick-tbl tr.tot td { background: #faf8f4; font-weight: 700; }
table.tbl td.wrap { white-space: normal; min-width: 160px; }
table.tbl select.inline { padding: 4px 6px; font-size: 12px; border-radius: 8px; }
.exp-bad { color: var(--red); font-weight: 700; }
.branch-tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; }
.branch-tag.kintex { background: var(--brown); color: var(--gold); }
.branch-tag.incheon { background: #e9e1d2; color: #6b4f3a; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.settings-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.settings-grid label.span-all { grid-column: 1 / -1; }
.guide-edit { font-family: inherit; font-size: 13px; line-height: 1.6; min-height: 260px; }
.muted { color: var(--muted); }
.sub-h { font-size: 15px; color: var(--brown); margin: 6px 0 12px; }
.cal-day.sel-start, .cal-day.sel-end { background: var(--brown) !important; border-color: var(--brown) !important; }
.cal-day.sel-start .cal-num, .cal-day.sel-end .cal-num, .cal-day.sel-start .cal-sub, .cal-day.sel-end .cal-sub { color: var(--gold) !important; }

/* 오시는 길 */
.loc-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.map-wrap { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #eee; aspect-ratio: 4 / 3; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.loc-name { font-size: 17px; font-weight: 800; color: var(--brown); }
.loc-addr { font-size: 14px; margin-top: 4px; }
.loc-phone { font-size: 13px; color: var(--muted); margin-top: 4px; }
.loc-phone a { color: var(--muted); }
.loc-lines { margin-top: 12px; }
.loc-lines li { grid-template-columns: 150px 1fr; font-size: 13px; gap: 10px; }
.loc-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.loc-btns .btn { text-decoration: none; display: inline-block; }
#location { scroll-margin-top: 76px; }
@media (max-width: 760px) {
  .loc-grid { grid-template-columns: 1fr; }
  .map-wrap { aspect-ratio: 16 / 11; }
  .loc-lines li { grid-template-columns: 1fr; }
  .loc-btns .btn { flex: 1 1 100%; text-align: center; }
}

/* 예약 확인·변경·취소 */
.g-top-right { display: flex; align-items: center; gap: 8px; flex: none; }
.top-manage {
  background: transparent; border: 1px solid rgba(194, 152, 78, .6); color: #f3ede2;
  border-radius: 999px; padding: 7px 13px; font-size: 12.5px; font-weight: 700; cursor: pointer;
  font-family: inherit; white-space: nowrap;
}
.top-manage:hover { background: rgba(255, 255, 255, .08); }
.top-manage .lbl-short { display: none; }
@media (max-width: 640px) {
  .top-manage .lbl-full { display: none; }
  .top-manage .lbl-short { display: inline; }
  .top-manage { padding: 7px 10px; }
}
.edit-banner {
  margin: 0 0 20px; padding: 14px 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
  background: #fdf3d7; color: #7c4a03; border: 1px solid #f1d58a; scroll-margin-top: 76px;
}
.edit-banner a { color: #7c4a03; margin-left: 6px; white-space: nowrap; }
.card-current { background: #faf8f4; border: 1px solid #eadfca; border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.card-current .check-line { margin: 8px 0 0; font-weight: 400; }
body.editing #agree-box { display: none; }
.btn-outline-danger { background: #fff; color: var(--red); border: 1px solid var(--red); }
.btn-row.keep { flex-direction: row; }
@media (max-width: 640px) { .btn-row.keep { flex-direction: column; } }
.before-line { margin-top: 10px; background: #f3f4f6; border-radius: 8px; padding: 8px 10px; color: #4b4f54; }

/* 배너 사진이 없을 때 / 객실 카드 사진 */
.hero.no-photo { grid-template-columns: 1fr; }
.room-opt .r-thumb { width: 108px; height: 80px; object-fit: cover; border-radius: 10px; flex: none; background: #eee; }
.room-opt .r-main { flex: 1; }
@media (max-width: 640px) { .room-opt .r-thumb { width: 100%; height: 150px; } }

/* 관리자 — 사진 관리 */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ph-item { border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.ph-item img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; display: block; }
.ph-tag { font-size: 13px; font-weight: 700; margin: 6px 2px; }
.ph-ctrl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ph-ctrl select, .ph-ctrl input { padding: 5px 8px; font-size: 12px; border-radius: 8px; }
