/* ============================================================
   Everglow Studio — design system + layout
   Violet identity carried over from the print rate card,
   refined for screen. One stylesheet for the whole app.
   ============================================================ */

:root {
  --ink: #1A1330;
  --ink-soft: #4A3E68;
  --ink-mute: #8A82A0;
  --line: #E8E2EE;
  --line-strong: #D0C5DC;
  --cream: #FAF8FC;
  --cream-deep: #F2ECF8;
  --accent: #5A2E8C;
  --accent-deep: #3A155F;
  --accent-bright: #7B4BC4;
  --accent-soft: #E8DEEF;
  --gold: #C9A24B;
  --shadow-sm: 0 1px 2px rgba(40, 20, 70, .06), 0 2px 8px rgba(40, 20, 70, .05);
  --shadow-md: 0 4px 14px rgba(40, 20, 70, .09), 0 10px 36px rgba(40, 20, 70, .08);
  --shadow-lg: 0 12px 48px rgba(40, 20, 70, .16);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --font: 'Noto Sans KR', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font);
  color: var(--ink);
  background: #EDE7F4;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ===================== APP SHELL ===================== */
.app { min-height: 100vh; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 0 22px; height: 60px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand-lockup { display: flex; align-items: center; gap: 11px; }
.topbar .brand-lockup img { width: 32px; height: 32px; border-radius: 50%; }
.topbar .brand-lockup .bname { font-weight: 800; letter-spacing: -.01em; font-size: 16px; }
.topbar .brand-lockup .bname small { display: block; font-size: 9px; font-weight: 600; letter-spacing: .22em; color: var(--accent); text-transform: uppercase; }

.mode-switch { display: flex; gap: 4px; background: var(--cream-deep); padding: 4px; border-radius: 999px; }
.mode-switch button {
  border: 0; background: transparent; padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink-mute); transition: all .15s;
}
.mode-switch button.active { background: #fff; color: var(--accent-deep); box-shadow: var(--shadow-sm); }
.mode-switch button:hover:not(.active) { color: var(--ink-soft); }

.spacer { flex: 1; }

.btn {
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-soft);
  padding: 9px 15px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px; transition: all .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-deep); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.tiny { padding: 5px 9px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: default; }

.lang-pill {
  border: 1px solid var(--line-strong); background: #fff; border-radius: 999px;
  padding: 8px 14px; font-size: 12px; font-weight: 700; color: var(--accent-deep);
  letter-spacing: .04em; transition: all .15s;
}
.lang-pill:hover { background: var(--accent-soft); }

.save-state { font-size: 12px; color: var(--ink-mute); display: flex; align-items: center; gap: 6px; }
.save-dot { width: 7px; height: 7px; border-radius: 50%; background: #5BB36A; }
.save-dot.busy { background: var(--gold); }

/* ===================== EDITOR ===================== */
.editor-split { display: grid; grid-template-columns: minmax(360px, 460px) 1fr; height: calc(100vh - 60px); }
.editor-pane { overflow-y: auto; border-right: 1px solid var(--line); background: #fff; }
.editor-inner { padding: 22px 22px 120px; }
.preview-pane { overflow-y: auto; background: #EDE7F4; padding: 30px; }
.preview-frame { max-width: 820px; margin: 0 auto; }

.editor-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.acc { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden; background: #fff; }
.ed-cat-group { margin-top: 26px; padding-top: 4px; }
.ed-cat-head { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); padding: 11px 14px; margin-bottom: 12px; background: var(--cream-deep); border: 1px solid var(--line); border-radius: var(--r-sm); }
.ed-cat-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.ed-cat-dot.re { background: var(--accent); }
.ed-cat-dot.com { background: var(--gold); }
.ed-cat-dot.common { background: var(--ink-mute); }
.acc-head-wrap { display: flex; align-items: stretch; }
.acc-mover { display: flex; align-items: center; gap: 4px; padding: 0 10px; background: var(--cream); border-left: 1px solid var(--line); }
.acc-mover-lbl { font-size: 10px; color: var(--ink-mute); font-weight: 600; }
.acc-head {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
  padding: 14px 16px; border: 0; background: var(--cream); text-align: left;
}
.acc-head:hover { background: var(--cream-deep); }
.acc-head .chev { transition: transform .2s; color: var(--ink-mute); font-size: 12px; }
.acc-head.open .chev { transform: rotate(90deg); }
.acc-head .ttl { font-weight: 700; font-size: 14px; flex: 1; }
.acc-head .count { font-size: 11px; color: var(--ink-mute); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.acc-body { padding: 16px; border-top: 1px solid var(--line); }

.field { margin-bottom: 13px; }
.field > label { display: block; font-size: 11px; font-weight: 700; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 9px 11px; font-family: inherit; font-size: 13.5px; color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-row.p1u2 { grid-template-columns: 1fr 1.3fr; }

.card-edit { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; margin-bottom: 12px; background: var(--cream); }
.card-edit.featured-edit { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.card-edit-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card-edit-head .idx { width: 24px; height: 24px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.card-edit-head .nm { font-weight: 700; font-size: 13.5px; flex: 1; }
.row-tools { display: flex; gap: 4px; }
.icon-btn { border: 1px solid var(--line-strong); background: #fff; width: 28px; height: 28px; border-radius: 6px; color: var(--ink-mute); font-size: 13px; display: grid; place-items: center; transition: all .12s; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn.danger:hover { border-color: #C0392B; color: #C0392B; }

.line-edit { display: flex; gap: 6px; align-items: flex-start; margin-bottom: 7px; }
.badge-edit { display: flex; gap: 6px; align-items: center; margin-bottom: 7px; }
.badge-edit input { flex: 1; min-width: 0; }
.badge-edit select { flex: 0 0 96px; padding: 8px 6px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; font: inherit; font-size: 12.5px; color: var(--ink-soft); }
.line-edit textarea { flex: 1; min-height: 38px; }
.add-line { font-size: 12.5px; color: var(--accent); background: var(--accent-soft); border: 0; padding: 7px 12px; border-radius: var(--r-sm); font-weight: 600; transition: background .15s; }
.add-line:hover { background: #DCCDEA; }
.toggle-field { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.toggle-field input { width: 18px; height: 18px; accent-color: var(--accent); }
.toggle-field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }

/* ===================== RATE CARD (shared doc) ===================== */
.ratecard { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.ratecard.web { border-radius: 0; box-shadow: none; background: transparent; }

/* hero */
.rc-hero {
  position: relative; color: #fff; padding: 56px 52px 48px;
  background: radial-gradient(120% 140% at 80% -10%, #6E3CB0 0%, var(--accent-deep) 45%, #220B3C 100%);
  overflow: hidden;
}
.rc-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1.4px 1.4px at 20% 30%, rgba(255,255,255,.7), transparent), radial-gradient(1.4px 1.4px at 65% 18%, rgba(255,255,255,.5), transparent), radial-gradient(1.2px 1.2px at 84% 60%, rgba(255,255,255,.6), transparent), radial-gradient(1.6px 1.6px at 40% 75%, rgba(255,255,255,.45), transparent), radial-gradient(1.1px 1.1px at 12% 80%, rgba(255,255,255,.5), transparent); pointer-events: none; }
.rc-hero > * { position: relative; z-index: 1; }
.rc-hero-top { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
.rc-hero-top img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 8px 24px rgba(0,0,0,.35); }
.rc-hero-top .lock { line-height: 1.2; }
.rc-hero-top .lock b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.rc-hero-mark { font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: #D9C4F2; }
.rc-hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; margin: 6px 0 14px; max-width: 14ch; }
.rc-hero .tagline { font-size: 16px; color: #E4D6F4; font-weight: 300; }
.rc-hero-meta { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); flex-wrap: wrap; gap: 16px; }
.rc-hero-meta .doc { font-size: 20px; font-weight: 700; }
.rc-hero-meta .doc small { display: block; font-size: 12px; font-weight: 400; color: #C9B4E4; margin-top: 3px; }
.rc-hero-meta .yr { font-size: 13px; color: #C9B4E4; text-align: right; }
.rc-hero-meta .yr b { display: block; font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.rc-prepared { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 7px 15px; border-radius: 999px; font-size: 13px; }
.rc-prepared b { font-weight: 700; }
.rc-prepared .lbl { color: #D9C4F2; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }

/* body sections */
.rc-body { padding: 44px 52px 50px; }
.rc-section { margin-bottom: 46px; scroll-margin-top: 80px; }
.rc-section:last-child { margin-bottom: 0; }
.rc-sec-head { margin-bottom: 22px; }
.rc-sec-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 11px; border-radius: 999px; margin-bottom: 9px; }
.rc-sec-title { font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.rc-sec-sub { font-size: 13.5px; color: var(--ink-mute); margin-top: 5px; }

/* rate group */
.rc-group { margin-bottom: 26px; }
.rc-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--accent-soft); }
.rc-group-head .ltr { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 800; display: grid; place-items: center; }
.rc-group-head .gname { font-size: 18px; font-weight: 700; }
.rc-group-head .gname small { font-weight: 500; color: var(--ink-mute); margin-left: 8px; font-size: 13px; }

/* item row = notion toggle */
.rc-item { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 9px; overflow: hidden; background: #fff; transition: box-shadow .18s, border-color .18s; }
.rc-item.open { box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.rc-item-head { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; background: transparent; padding: 16px 18px; text-align: left; transition: background .15s; }
.rc-item-head:hover { background: var(--cream); }
.rc-item-head .chev { color: var(--accent); font-size: 13px; transition: transform .22s cubic-bezier(.4,0,.2,1); flex-shrink: 0; }
.rc-item.open .chev { transform: rotate(90deg); }
.rc-item-name { flex: 1; font-size: 15.5px; font-weight: 600; }
.rc-item-name small { display: block; font-size: 11.5px; font-weight: 400; color: var(--ink-mute); margin-top: 2px; }
.rc-item-hook { display: block; font-size: 12.5px; font-weight: 600; font-style: normal; color: var(--accent); margin-top: 3px; white-space: pre-line; line-height: 1.4; }
.rc-item-price { text-align: right; font-size: 18px; font-weight: 800; color: var(--accent-deep); white-space: nowrap; flex-shrink: 0; }
.rc-item-price small { display: block; font-size: 10.5px; font-weight: 500; color: var(--ink-mute); }
.rc-item-body { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.rc-item.open .rc-item-body { max-height: 680px; }
.rc-item-detail { padding: 2px 18px 18px 44px; }
.rc-item-detail li { position: relative; padding-left: 18px; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 6px; }
.rc-item-detail li:last-child { margin-bottom: 0; }
.rc-item-detail li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-bright); }
.rc-hint { font-size: 11px; color: var(--ink-mute); margin-left: auto; padding-left: 10px; opacity: .7; flex-shrink: 0; }

/* packages */
.rc-cat-switch { display: flex; gap: 14px; margin-bottom: 38px; flex-wrap: wrap; }
.rc-cat-btn {
  position: relative; flex: 1 1 240px; display: flex; flex-direction: column; gap: 5px;
  text-align: left; cursor: pointer; border: 1.5px solid var(--line-strong); background: #fff;
  border-radius: var(--r-md); padding: 19px 46px 19px 26px; overflow: hidden;
  transition: transform .2s cubic-bezier(.4,0,.2,1), border-color .18s, box-shadow .2s, background .2s;
}
.rc-cat-btn::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--accent); opacity: 0; transition: opacity .2s, width .2s;
}
.rc-cat-btn:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.rc-cat-btn:hover::before { opacity: .5; }
.rc-cat-btn.active {
  border-color: var(--accent-deep);
  background: linear-gradient(150deg, var(--accent-bright) 0%, var(--accent-deep) 100%);
  box-shadow: var(--shadow-md);
}
.rc-cat-btn.active::before { opacity: 0; }
.rc-cat-idx {
  position: absolute; top: 15px; right: 17px; font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace);
  font-size: 12px; font-weight: 700; color: var(--line-strong); letter-spacing: .04em; transition: color .2s;
}
.rc-cat-btn.active .rc-cat-idx { color: rgba(255,255,255,.6); }
.rc-cat-name { font-size: 18px; font-weight: 800; letter-spacing: -.015em; color: var(--ink-soft); transition: color .2s; }
.rc-cat-btn.active .rc-cat-name { color: #fff; }
.rc-cat-tag { font-size: 11.5px; font-weight: 600; color: var(--ink-mute); letter-spacing: .01em; transition: color .2s; }
.rc-cat-btn.active .rc-cat-tag { color: rgba(255,255,255,.82); }

.rc-pkg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.rc-pkg { border: 1px solid var(--line-strong); border-radius: var(--r-md); background: #fff; position: relative; overflow: hidden; transition: box-shadow .18s, border-color .18s; }
.rc-pkg:hover { box-shadow: var(--shadow-md); }
.rc-pkg.featured { background: linear-gradient(170deg, #FBF8FE, #F3EBFB); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
.rc-pkg-toggle { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 22px 22px 18px; }
.rc-pkg-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; min-height: 26px; }
.rc-pkg-badges { display: flex; flex-wrap: nowrap; gap: 6px; flex-shrink: 0; justify-content: flex-end; }
.rc-badge { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: .015em; padding: 4px 10px; border-radius: 999px; line-height: 1.25; white-space: nowrap; }
.rc-badge-rec { background: linear-gradient(135deg, #E7C871, var(--gold)); color: #463109; box-shadow: 0 1px 5px rgba(201,162,75,.45); }
.rc-badge-save { background: var(--accent); color: #fff; }
.rc-badge-fast { background: var(--accent-soft); color: var(--accent-deep); }
.rc-badge-feature { background: var(--cream-deep); color: var(--ink-soft); border: 1px solid var(--line); }
.rc-pkg.featured .rc-badge-feature { background: #fff; }
.rc-pkg-cat { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--accent); text-transform: uppercase; flex: 1; min-width: 0; padding-top: 3px; line-height: 1.4; }
.rc-pkg.featured .rc-pkg-cat { color: var(--accent-deep); }
.rc-pkg-name { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.rc-pkg-sample { position: absolute; top: 52px; right: 22px; z-index: 3; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 62px; height: 62px; padding: 6px; border-radius: 14px; background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 700; letter-spacing: 0; line-height: 1.18; text-align: center; text-decoration: none; box-shadow: var(--shadow-sm); transition: background .16s, transform .16s, box-shadow .16s; }
.rc-pkg-sample:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.rc-pkg-sample-ico { font-size: 16px; line-height: 1; }
.rc-pkg.has-sample .rc-pkg-name, .rc-pkg.has-sample .rc-pkg-vol { padding-right: 74px; }
.rc-pkg-vol { font-size: 13px; color: var(--ink-mute); margin: 4px 0 12px; }
.rc-pkg-hook { font-size: 13.5px; font-weight: 600; color: var(--accent-deep); line-height: 1.45; margin-bottom: 14px; padding-left: 12px; border-left: 3px solid var(--gold); white-space: pre-line; }
.rc-pkg-price { display: flex; align-items: baseline; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.rc-pkg-tiers { display: flex; flex-direction: column; gap: 0; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.rc-pkg-tier { display: flex; align-items: baseline; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.rc-pkg-tier:last-child { border-bottom: 0; }
.rc-pkg-tier span { font-size: 13px; color: var(--ink-mute); font-weight: 600; }
.rc-pkg-tier b { font-size: 20px; font-weight: 800; color: var(--accent-deep); letter-spacing: -.01em; }
.rc-pkg.featured .rc-pkg-tier b { color: var(--accent-deep); }
.rc-pkg-list { font-size: 16px; color: var(--ink-mute); text-decoration: line-through; }
.rc-pkg-final { font-size: 30px; font-weight: 800; color: var(--accent-deep); }
.rc-pkg-final small { font-size: 14px; font-weight: 600; color: var(--ink-mute); }
.rc-pkg-more { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.rc-pkg-more .chev { font-size: 11px; transition: transform .22s cubic-bezier(.4,0,.2,1); }
.rc-pkg.open .rc-pkg-more .chev { transform: rotate(90deg); }
.rc-pkg-body { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.rc-pkg.open .rc-pkg-body { max-height: 960px; }
.rc-pkg-inner { padding: 4px 22px 22px; }
.rc-pkg-complbl { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 5px; }
.rc-pkg-comp { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; line-height: 1.5; }
.rc-pkg-benefits li { position: relative; padding-left: 22px; font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.rc-pkg-benefits li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--gold); font-size: 12px; }

/* travel zones — compact table */
.rc-ztable { border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; margin-bottom: 12px; background: #fff; }
.rc-ztable-row { display: grid; grid-template-columns: minmax(140px, 1fr) 2.3fr auto; gap: 18px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.rc-ztable-row:last-child { border-bottom: 0; }
.rc-ztable-head { background: var(--cream); padding-top: 11px; padding-bottom: 11px; }
.rc-ztable-head span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.rc-ztable-zone { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; color: var(--accent-deep); }
.rc-ztable-area { font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; }
.rc-ztable-fee { font-size: 20px; font-weight: 800; color: var(--ink); white-space: nowrap; text-align: right; }
.rc-ztable-fee small { font-size: 11.5px; font-weight: 500; color: var(--ink-mute); margin-left: 4px; }
.rc-ztable-head .rc-ztable-zone, .rc-ztable-head .rc-ztable-fee { font-size: 11px; font-weight: 700; color: var(--ink-mute); }
.rc-ztable-head .rc-ztable-fee { text-align: right; }

/* travel details toggle */
.rc-traveldetails .rc-item-name { font-weight: 700; }
.rc-traveldetails.open .rc-item-body { max-height: 460px; }
.rc-traveldetails-inner { padding: 2px 18px 18px 44px; }
.rc-td-policy { font-size: 13px; color: var(--ink-soft); line-height: 1.65; margin: 0 0 11px; }
.rc-td-list { margin: 0; padding-left: 18px; }
.rc-td-list li { font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 5px; }
.rc-td-list b { color: var(--accent-deep); font-weight: 700; }
.rc-zone-note { font-size: 11.5px; color: var(--ink-mute); margin-top: 9px; font-style: italic; line-height: 1.55; }

/* terms */
.rc-terms { border-top: 1px solid var(--line); }
.rc-term { display: grid; grid-template-columns: 168px 1fr; gap: 18px; padding: 15px 4px; border-bottom: 1px solid var(--line); }
.rc-term-lbl { font-size: 14px; font-weight: 700; color: var(--accent-deep); }
.rc-term-lbl small { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-mute); margin-top: 2px; }
.rc-term-content { font-size: 13.5px; color: var(--ink-soft); }
.rc-terms-more-body { overflow: hidden; max-height: 0; transition: max-height .32s ease; }
.rc-terms-more.open .rc-terms-more-body { max-height: 1600px; }
.rc-terms-toggle { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: center; border: 0; background: var(--cream); color: var(--accent); font-size: 13px; font-weight: 700; padding: 13px; border-radius: var(--r-sm); margin-top: 12px; transition: background .15s; }
.rc-terms-toggle:hover { background: var(--cream-deep); }
.rc-terms-toggle .chev { font-size: 11px; transition: transform .22s; }
.rc-terms-more.open .rc-terms-toggle .chev { transform: rotate(90deg); }

/* zone map */
.rc-zonemap .rc-item-name { font-weight: 700; }
.rc-zonemap.open .rc-item-body { max-height: 560px; }
.rc-zonemap-inner { padding: 4px 16px 18px; }
.rc-zonemap-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; font-size: 12.5px; color: var(--ink-soft); }
.rc-zonemap-legend span { display: inline-flex; align-items: center; gap: 7px; }
.zdot { width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0; }
.zdot.a { background: rgba(90,46,140,.45); border: 2px solid var(--accent); }
.zdot.b { background: rgba(138,130,160,.30); border: 1.5px solid var(--ink-mute); }
.zdot.c { background: transparent; border: 1.5px dashed var(--ink-mute); }
.zdot.s { background: var(--gold); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--gold); }
.rc-zonemap-canvas { height: 340px; width: 100%; border-radius: var(--r-sm); border: 1px solid var(--line-strong); overflow: hidden; background: #EDE7F4; }
.rc-zonemap-canvas .leaflet-container { font: inherit; }

/* footer */
.rc-footer { background: var(--accent-deep); color: #fff; padding: 32px 52px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.rc-footer .f-brand { display: flex; align-items: center; gap: 12px; }
.rc-footer .f-brand img { width: 40px; height: 40px; border-radius: 50%; }
.rc-footer .f-brand b { font-size: 17px; font-weight: 800; }
.rc-footer .f-brand .tg { font-size: 12px; color: #C9B4E4; }
.rc-footer .f-contact { font-size: 13px; color: #E4D6F4; text-align: right; line-height: 1.7; }
.rc-footer .f-contact a { color: #fff; text-decoration: none; }

/* ===================== CLIENT VIEW chrome ===================== */
.cv-wrap { max-width: 920px; margin: 0 auto; padding: 28px 20px 60px; }
.cv-nav { position: sticky; top: 60px; z-index: 30; display: flex; gap: 6px; padding: 10px; margin: 0 auto 18px; max-width: 920px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); width: fit-content; }
.cv-nav button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-soft); transition: all .15s; }
.cv-nav button:hover { background: var(--cream-deep); }
.cv-nav button.active { background: var(--accent); color: #fff; }

/* expand-all hint bar in view */
.cv-tip { text-align: center; font-size: 12.5px; color: var(--accent-deep); background: var(--accent-soft); border-radius: 999px; padding: 8px 16px; margin: 0 auto 20px; width: fit-content; }

/* ===================== EMPTY / MISC ===================== */
.muted { color: var(--ink-mute); }
.center-msg { text-align: center; padding: 60px 20px; color: var(--ink-mute); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .editor-split { grid-template-columns: 1fr; height: auto; }
  .editor-pane { border-right: 0; border-bottom: 1px solid var(--line); max-height: 60vh; }
  .preview-pane { padding: 16px; }
  .rc-pkg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .rc-ztable-head { display: none; }
  .rc-ztable-row { grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 5px; }
  .rc-ztable-area { grid-column: 1 / -1; order: 3; }
  .rc-traveldetails-inner { padding-left: 18px; }
  .rc-hero { padding: 36px 24px 30px; }
  .rc-hero h1 { font-size: 30px; }
  .rc-body { padding: 30px 22px; }
  .rc-footer { padding: 26px 24px; }
  .rc-term { grid-template-columns: 1fr; gap: 4px; }
  .rc-item-price { font-size: 16px; }
  .topbar { gap: 10px; padding: 0 12px; }
  .topbar .brand-lockup .bname { font-size: 14px; }
}
