/* ═══════════════════════════════════════════════════════════════════
   PMTP ITINERARY BUILDER — builder.css
   Point Me to Paradise Travel · Elite Paradise Planners LLC
   Agent-facing stylesheet (--b-* variables only — never client-facing)
   ═══════════════════════════════════════════════════════════════════ */

/* ── RESET ─────────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }

/* ── BUILDER PALETTE ────────────────────────────────────────────────
   Three-color role system (locked):
   Navy  = done, structural, admin anchors. NEVER client-facing.
   Teal  = active, interactive, in-progress.
   Gold  = Pearl AI assist + Expert Agent Guides ONLY.
   ──────────────────────────────────────────────────────────────────── */
:root {
  /* Structural */
  --b-navy:      #162D42;  /* admin navy — builder structural */
  --b-navy-pale: #EEF1F5;  /* done card bg, done badges */
  /* Teal scale */
  --b-teal:      #4A8B8C;  /* primary teal — active states, buttons */
  --b-teal-mid:  #7ABAB8;  /* hover borders, accents */
  --b-teal-pale: #EAF4F3;  /* teal wash — optional add-ons bg */
  --b-teal-light:#B0D8D6;  /* teal border color */
  --b-teal-deep: #3AA8A0;  /* icons, add-section, deeper teal */
  /* Gold — Pearl & Guides ONLY */
  --b-gold:      #D4BA72;  /* bright clean gold */
  --b-gold-mid:  #E8D090;  /* gold border */
  --b-gold-pale: #FBF5E4;  /* gold zone background */
  /* Ink scale */
  --b-ink:       #1E2825;  /* primary text */
  --b-ink-mid:   #4A5A58;
  --b-ink-soft:  #8A9A98;
  --b-ink-muted: #B8C4C2;
  /* Surfaces */
  --b-bg:        #F4F0EB;  /* warm sand page bg */
  --b-card:      #FFFFFF;
  --b-rule:      #E5E0D8;
  --b-border:    rgba(150,140,120,0.2);
  --b-cream-pale:#F9F5EE;  /* pill / input backgrounds */
  /* Radius */
  --r:  8px;
  --rl: 13px;
}

/* ── LAYOUT — APP SHELL ─────────────────────────────────────────────── */
body {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 14px; line-height: 1.5;
  color: var(--b-ink);
  height: 100vh; height: 100dvh;
  overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--b-bg);
}
.app-bar {
  height: 50px; flex-shrink: 0;
  background: #1C3A50; color: white;
  border-bottom: 1.5px solid rgba(212,186,114,0.35);
  padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.workspace {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
}
.editor {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.preview-col {
  width: 420px; flex-shrink: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  border-left: 1px solid var(--b-rule);
  background: #EAE4DA;
}

/* ── APP BAR ────────────────────────────────────────────────────────── */
.brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px; font-weight: 500; letter-spacing: 0.01em;
}
.bar-right { display: flex; align-items: center; gap: 6px; }
.agent-pill {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 20px; padding: 3px 10px 3px 5px; cursor: pointer;
}
.agent-av {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600;
}
.agent-nm { font-size: 12px; font-weight: 500; }

/* ── BUTTONS ────────────────────────────────────────────────────────── */
.btn {
  padding: 6px 12px; border-radius: var(--r); border: none;
  font-size: 12px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: inherit; transition: filter .15s;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: rgba(255,255,255,.18); color: white; border: 1px solid rgba(255,255,255,.3); }
.btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,.28); }
.btn-amber { background: var(--b-gold); color: white; }
.btn-amber:hover:not(:disabled) { filter: brightness(.92); }
.btn-navy { background: var(--b-navy); color: white; }
.btn-navy:hover:not(:disabled) { filter: brightness(1.15); }
.btn-teal { background: var(--b-teal); color: white; }
.btn-teal:hover:not(:disabled) { filter: brightness(.92); }
.btn-outline { background: transparent; color: var(--b-teal); border: .5px solid var(--b-teal); }
.btn-outline:hover:not(:disabled) { background: var(--b-teal-pale); }
.btn-sm { padding: 5px 10px; font-size: 11px; }
.btn-danger { background: transparent; color: #C0392B; border: .5px solid #C0392B; }
.btn-danger:hover { background: #FDF0EE; }

.btn-continue {
  padding: 8px 16px; background: rgba(255,255,255,.25); color: white;
  border: none; border-radius: 6px; font-size: 12.5px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
  transition: filter .15s;
}
.btn-continue:hover { filter: brightness(.93); }
.btn-continue.amber { background: var(--b-gold); }
.btn-back {
  padding: 8px 14px; background: transparent; color: var(--b-ink-soft);
  border: .5px solid var(--b-rule); border-radius: 7px;
  font-size: 12.5px; cursor: pointer; font-family: inherit; transition: all .15s;
}
.btn-back:hover { background: var(--b-teal-pale); color: var(--b-teal); border-color: var(--b-teal-light); }

/* ── MODE SWITCHER ──────────────────────────────────────────────────── */
.mode-switcher {
  display: inline-flex; gap: 0;
  background: rgba(255,255,255,.15); border-radius: 8px; padding: 3px;
}
.mode-tab {
  padding: 5px 14px; font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.75); background: transparent;
  border: none; border-radius: 6px; cursor: pointer;
  font-family: inherit; transition: all .15s; letter-spacing: .02em;
}
.mode-tab:hover { color: white; }
.mode-tab.active { background: white; color: var(--b-navy); font-weight: 600; }

/* ── FORMS ──────────────────────────────────────────────────────────── */
.fg { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; min-width: 0; }
.fg:last-child { margin-bottom: 0; }
.fg.full { grid-column: 1 / -1; }
label {
  font-size: 10px; color: var(--b-ink-mid); font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em;
}
label .sub {
  font-weight: 400; letter-spacing: 0; text-transform: none;
  color: var(--b-ink-soft); opacity: .75; font-size: 10px; margin-left: 3px;
}
input, select, textarea {
  padding: 7px 10px; border: .5px solid #E8DFC9; border-radius: 6px;
  font-size: 13px; background: white; color: var(--b-ink);
  width: 100%; font-family: inherit; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #B8A99A; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--b-teal);
  box-shadow: 0 0 0 2px rgba(74,139,140,.15);
}
textarea { resize: vertical; min-height: 58px; }

.fg2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.fg2 .fg { margin-bottom: 0; }
.fg2 .fg.full { grid-column: 1 / -1; }
.fg3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

/* Form labels in fg/fg2 */
.fg label, .fg2 label {
  font-size: 10.5px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--b-ink-mid);
  display: block; margin-bottom: 5px;
}
.fg label .sub, .fg2 label .sub {
  text-transform: none; letter-spacing: 0; font-weight: 400;
  color: var(--b-ink-soft); font-size: 10px;
}

/* Field group panels (sub-sections inside a card) */
.field-group {
  background: #F7F3EE; border: .5px solid var(--b-rule);
  border-radius: 8px; padding: 12px 14px; margin-bottom: 12px;
}
.field-group-label {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #D4BA72; margin-bottom: 10px;
}

/* ── CLUSTER SECTIONS ───────────────────────────────────────────────── */
.cluster-label {
  font-size: 9.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--b-navy);
  padding: 16px 4px 6px;
  display: flex; align-items: center; gap: 8px;
}
.cluster-label:first-child { padding-top: 4px; }
.cluster-label::after { content: ''; flex: 1; height: .5px; background: var(--b-rule); }

.cl-sec {
  border-radius: 10px; margin-bottom: 8px;
  border: none; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.10);
}
.s-gold  { background: #C8975A; }     /* amber — Trip Essentials */
.s-teal  { background: #4A8B8C; }     /* teal — Optional Add-ons */
.s-gray  { background: #F2EFEA; }
.s-navy  { background: #1C3A50; }     /* navy — Content & Delivery */

.cl-hd {
  padding: 10px 13px;
  display: flex; align-items: center; gap: 9px;
  cursor: pointer; user-select: none;
}
.cl-step {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.25); color: white;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .2s;
}
.cl-step-done { background: var(--b-navy) !important; }
.cl-step-gold { background: var(--b-gold) !important; }
.cl-title { font-size: 12.5px; font-weight: 600; color: white; }
.cl-meta { font-size: 10.5px; color: rgba(255,255,255,.72); margin-top: 2px; }
.cl-meta.ok { color: white; font-weight: 600; }
.cl-chev { font-size: 13px; color: rgba(255,255,255,.65); transition: transform .22s; margin-left: 4px; }
.cl-chev.open { transform: rotate(180deg); color: white; }
.cl-bd {
  background: white; border-top: none;
  padding: 13px 13px 15px; display: none;
}
.cl-bd.open { display: block; }
.s-teal .cl-bd { background: white; }
.s-navy .cl-bd { background: white; }
.s-gold .cl-bd { background: white; }

/* ── SQUARE CARD GRIDS ──────────────────────────────────────────────── */
.sq-grid { display: grid; gap: 10px; margin-bottom: 0; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }

/* Responsive: g5 falls back to g3 on narrower screens */
@media (max-width: 1100px) {
  .g5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .g5, .g4, .g3 { grid-template-columns: repeat(2, 1fr); }
}

/* ── SQUARE CARDS ───────────────────────────────────────────────────── */
.sq-card {
  border-radius: 10px; border: .5px solid #D8D4CC; background: white;
  padding: 14px 12px 12px; cursor: pointer; position: relative;
  min-height: 100px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  transition: border-color .15s, box-shadow .15s, opacity .15s;
}
.sq-card:hover { border-color: var(--b-teal); box-shadow: 0 2px 8px rgba(74,139,140,.12); }

/* States */
.sq-active-card  { border-color: var(--b-teal) !important; border-width: 1.5px !important; }
.sq-inactive-card { opacity: .38 !important; cursor: default !important; border-style: dashed !important; }
.sq-inactive-card:hover { border-color: #D8D4CC !important; box-shadow: none !important; }
.sq-done    { background: var(--b-navy-pale) !important; border-color: #B0C4D8 !important; }
.sq-done:hover { border-color: var(--b-navy) !important; }
.sq-skipped { opacity: .38; background: #F5F3F0 !important; cursor: default; }

/* Icon container */
.sq-ico-wrap {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-bottom: 2px;
}
.ico-bg-navy { background: #DDE6ED; color: var(--b-navy); }
.ico-bg-teal { background: #D6EDF0; color: var(--b-teal); }
.ico-bg-gold { background: #F5EDD8; color: var(--b-gold); }
.ico-bg-gray { background: #EDEAE4; color: var(--b-ink-soft); }
.sq-ico { font-size: 18px; }
.sq-done .sq-ico-wrap { background: #C8D8E5 !important; }

/* Card text */
.sq-lbl     { font-size: 12px; font-weight: 600; color: var(--b-ink); line-height: 1.3; }
.sq-lbl-done { color: var(--b-navy) !important; }
.sq-skipped .sq-lbl { color: var(--b-ink-muted); }
.sq-val     { font-size: 10.5px; line-height: 1.35; margin-top: 0; }
.sq-val-done { color: var(--b-teal); font-weight: 500; }
.sq-val-skip { color: var(--b-ink-muted); }
.sq-val-hint { color: var(--b-ink-muted); }

/* Done check badge — top right */
.sq-check-badge {
  position: absolute; top: 8px; right: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--b-teal);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 10px;
}

/* Skip control — bottom right */
.sq-skip-ctrl {
  position: absolute; bottom: 9px; right: 10px;
  display: flex; align-items: center; gap: 4px;
  cursor: pointer; padding: 2px 0;
}
.sq-done .sq-skip-ctrl { display: none; } /* hide skip on done cards — bug fix */
.sq-skip-ctrl:hover .sq-bubble { border-color: var(--b-teal); }
.sq-bubble {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid #C0BBC4; background: white;
  flex-shrink: 0; transition: all .12s;
}
.sb-done { background: var(--b-navy) !important; border-color: var(--b-navy) !important; }
.sb-skip { background: #E8E4DE !important; border-color: #C8C4BC !important; }
.sq-skip-lbl { font-size: 9px; font-weight: 500; color: #B8B0BC; letter-spacing: .04em; text-transform: uppercase; }

/* Cluster card tints */
#cls-ess .sq-card { background: white; }
#cls-ess .sq-card:hover:not(.sq-done):not(.sq-skipped) { background: #FBF7EE; border-color: #C8975A; }
#cls-opt .sq-card { background: white; }
#cls-opt .sq-card:hover:not(.sq-done):not(.sq-skipped) { background: #EAF4F3; border-color: var(--b-teal); }
#cls-cnt .sq-card { background: white; }
#cls-cnt .sq-card:hover:not(.sq-done):not(.sq-skipped) { background: #EEF3F8; border-color: var(--b-navy); }

/* ── CARD MODAL ─────────────────────────────────────────────────────── */
.cm-overlay {
  position: fixed; inset: 0;
  background: rgba(28,58,80,.45);
  z-index: 500;
  align-items: center; justify-content: center; padding: 20px;
  display: none;
}
.cm-overlay.open { display: flex; }
.cm-panel {
  background: white; border-radius: 12px;
  width: 100%; max-width: 660px; max-height: 88vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
}
.cm-hd {
  background: #1C3A50; padding: 13px 16px;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  border-bottom: 1.5px solid rgba(212,186,114,.3);
}
.cm-hd-ico {
  width: 30px; height: 30px; border-radius: 7px;
  background: rgba(212,186,114,.2);
  display: flex; align-items: center; justify-content: center;
  color: #D4BA72; font-size: 16px; flex-shrink: 0;
}
.cm-hd-title { font-size: 14px; font-weight: 600; color: white; }
.cm-hd-sub   { font-size: 10.5px; color: rgba(255,255,255,.5); margin-top: 1px; }
.cm-close {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none;
  color: rgba(255,255,255,.7); cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit; margin-left: auto; flex-shrink: 0;
}
.cm-close:hover { background: rgba(255,255,255,.24); }
.cm-body {
  flex: 1; overflow-y: auto; padding: 16px; min-height: 0;
}
.cm-foot {
  padding: 11px 16px;
  border-top: .5px solid var(--b-rule);
  display: flex; gap: 8px; align-items: center;
  flex-shrink: 0; background: white;
}
.cm-skip-btn {
  padding: 7px 12px; background: transparent;
  color: var(--b-ink-soft); border: .5px solid var(--b-rule);
  border-radius: 6px; font-size: 12px; cursor: pointer;
  font-family: inherit;
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.cm-skip-btn:hover { border-color: #C77; color: #C77; }
.cm-save-btn {
  flex: 1; padding: 9px; background: var(--b-navy); color: white;
  border: none; border-radius: 7px; font-size: 12.5px; font-weight: 500;
  cursor: pointer; font-family: inherit; text-align: center;
}
.cm-save-btn:hover { filter: brightness(1.18); }

/* ── ACCORDION CARDS (legacy sections — kept for compatibility) ─────── */
.card {
  background: var(--b-card); border: .5px solid var(--b-border);
  border-radius: 10px; border-left: 3px solid var(--b-teal);
  transition: box-shadow .15s, border-color .15s; flex-shrink: 0;
}
.card.open { box-shadow: 0 3px 16px rgba(120,90,60,.10); }
.card-hd {
  padding: 13px 16px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none; transition: background .15s;
}
.card-hd:hover { background: rgba(74,139,140,.04); }
.card.open .card-hd { border-bottom: .5px solid var(--b-rule); }
.card-hd-left { display: flex; align-items: center; gap: 13px; min-width: 0; flex: 1; }
.card-step {
  width: 28px; height: 28px; border-radius: 50%;
  background: #C4D8D8; color: white;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .2s;
}
.card.open .card-step  { background: var(--b-teal); color: white; }
.card.done .card-step  { background: var(--b-navy); color: white; }
.card.done .card-hd    { background: var(--b-navy-pale); }
.card.done .card-hd-chev { color: var(--b-navy); }
.card.done .card-step::before { content: "\2713"; font-size: 13px; }
.card.done .card-step span { display: none; }
.card-hd-text    { min-width: 0; flex: 1; }
.card-hd-title   { font-size: 13px; font-weight: 600; color: var(--b-ink); display: flex; align-items: center; gap: 7px; }
.card-hd-title svg { width: 15px; height: 15px; stroke: var(--b-teal); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.card-hd-title i { font-size: 16px; color: var(--b-teal); }
.card-hd-summary { font-size: 11.5px; color: var(--b-ink-soft); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-hd-chev    { width: 18px; height: 18px; color: var(--b-ink-soft); transition: transform .25s; flex-shrink: 0; margin-left: 8px; }
.card.open .card-hd-chev { transform: rotate(180deg); color: var(--b-teal); }
.card-bd { padding: 16px 20px 18px; display: none; }
.card.open .card-bd { display: block; }
.card-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 16px; border-top: .5px solid var(--b-rule); }
.card-actions.right { justify-content: flex-end; }
.card.open .card-actions { margin-top: 18px; padding-top: 14px; border-top: .5px solid var(--b-rule); }

/* ── LOCATION TABS ──────────────────────────────────────────────────── */
.loc-tabs {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  padding: 9px 14px; background: #F5EFE6;
  border-bottom: .5px solid var(--b-rule);
}
.ltab {
  padding: 4px 11px; border-radius: 20px; font-size: 12px; font-weight: 500;
  cursor: pointer; border: .5px solid var(--b-border);
  background: white; color: var(--b-ink-soft); transition: all .15s;
}
.ltab.active { background: var(--b-teal); color: white; border-color: var(--b-teal); }
.ltab:hover:not(.active) { border-color: var(--b-teal-light); color: var(--b-teal); }
.ltab-add {
  padding: 4px 9px; border-radius: 20px; font-size: 12px; cursor: pointer;
  border: .5px dashed rgba(0,0,0,.18); background: none;
  color: var(--b-ink-soft); font-family: inherit;
}
.ltab-add:hover { border-color: var(--b-teal); color: var(--b-teal); }

/* ── AI / PEARL ZONE ────────────────────────────────────────────────── */
.ai-zone {
  background: var(--b-gold-pale); border: .5px solid var(--b-gold-mid);
  border-radius: var(--r); padding: 13px; margin-top: 12px;
}
.ai-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.ai-lbl {
  font-size: 11px; font-weight: 600; color: var(--b-gold);
  text-transform: uppercase; letter-spacing: .08em;
  display: flex; align-items: center; gap: 5px;
}
.ai-lbl svg { width: 14px; height: 14px; stroke: var(--b-gold); fill: var(--b-gold-pale); stroke-width: 1.2; }
.ai-out {
  background: white; border: .5px solid var(--b-rule); border-radius: var(--r);
  padding: 11px; font-size: 12px; line-height: 1.7; color: var(--b-ink);
  max-height: 160px; overflow-y: auto; white-space: pre-wrap; margin-top: 10px;
  outline: none; cursor: text;
}

/* ── BADGES ─────────────────────────────────────────────────────────── */
.badge { font-size: 10px; padding: 2px 7px; border-radius: 20px; font-weight: 500; }
.badge-ok   { background: #DCFCE7; color: #166534; }
.badge-pend { background: #F1F5F9; color: var(--b-ink-soft); }

/* ── PAGE TOGGLE ────────────────────────────────────────────────────── */
.page { display: block; }
.page.hidden { display: none; }

/* ── FLIGHT ROWS ────────────────────────────────────────────────────── */
.flight-row {
  background: #F7F3EE; border: .5px solid var(--b-rule);
  border-radius: var(--r); padding: 12px; margin-bottom: 8px;
}
.flight-row-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.flight-lbl { font-size: 12px; font-weight: 500; color: var(--b-ink); }

/* ── TOGGLE SWITCH ──────────────────────────────────────────────────── */
.toggle-row { display: flex; align-items: center; gap: 8px; }
.tswitch { position: relative; width: 34px; height: 20px; flex-shrink: 0; }
.tswitch input { opacity: 0; width: 0; height: 0; position: absolute; }
.tslider { position: absolute; inset: 0; background: #DDD; border-radius: 20px; cursor: pointer; transition: background .2s; }
.tslider::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: white; transition: transform .2s; }
.tswitch input:checked + .tslider { background: var(--b-teal); }
.tswitch input:checked + .tslider::after { transform: translateX(14px); }
.toggle-lbl { font-size: 12px; font-weight: 500; color: var(--b-ink-mid); }

/* ── GUIDE SIDEBAR (Guides mode) ────────────────────────────────────── */
.g-workspace { flex: 1; display: flex; overflow: hidden; background: #FCFAF5; }
.g-sidebar {
  width: 260px; flex-shrink: 0;
  background: white; border-right: .5px solid var(--b-rule);
  display: flex; flex-direction: column; overflow: hidden;
}
.g-sb-hd { padding: 14px 16px; border-bottom: .5px solid var(--b-rule); display: flex; align-items: center; justify-content: space-between; }
.g-sb-title { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--b-ink-mid); }
.g-sb-new { padding: 4px 10px; background: var(--b-teal); color: white; border: none; border-radius: 5px; font-size: 11px; font-weight: 500; cursor: pointer; font-family: inherit; }
.g-sb-new:hover { filter: brightness(.93); }
.g-sb-list { flex: 1; overflow-y: auto; padding: 6px; }
.g-sb-empty { padding: 18px 12px; text-align: center; color: var(--b-ink-soft); font-size: 12px; font-style: italic; }
.g-sb-item { padding: 9px 11px; border-radius: 7px; cursor: pointer; margin-bottom: 2px; transition: background .12s; border: .5px solid transparent; }
.g-sb-item:hover { background: rgba(74,139,140,.05); }
.g-sb-item.active { background: rgba(74,139,140,.1); border-color: var(--b-teal-light); }
.g-sb-item-nm { font-size: 13px; color: var(--b-ink); font-weight: 500; line-height: 1.3; }
.g-sb-item-meta { font-size: 10.5px; color: var(--b-ink-soft); margin-top: 2px; letter-spacing: .02em; }
.g-sb-item-meta .g-status-pub  { color: #4A8B8C; font-weight: 600; }
.g-sb-item-meta .g-status-draft { color: #D4BA72; font-weight: 600; }

.g-main { flex: 1; overflow-y: auto; padding: 18px 24px; }
.g-empty { max-width: 420px; margin: 80px auto; text-align: center; color: var(--b-ink-soft); }
.g-empty-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--b-ink); margin-bottom: 8px; }
.g-empty-body { font-size: 13.5px; line-height: 1.55; }

/* Guide pill filters */
.guide-fpill {
  padding: 5px 11px; font-size: 11px; font-weight: 500;
  border: .5px solid var(--b-rule); border-radius: 20px;
  background: var(--b-cream-pale); color: var(--b-ink-soft);
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.guide-fpill.on { background: #EAF5F3; border-color: #7ACDC5; color: #0F6E56; }

/* Guide picker rows */
.guide-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: .5px solid var(--b-rule); cursor: pointer; }
.guide-row:last-child { border-bottom: none; }
.guide-check { width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid var(--b-rule); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: background .12s; }
.guide-check.on { background: #3AA8A0; border-color: #3AA8A0; color: white; }
.guide-ico { width: 32px; height: 32px; border-radius: 8px; background: #EAF5F3; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.guide-ico svg { width: 16px; height: 16px; stroke: #3AA8A0; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.guide-pill { font-size: 10px; padding: 2px 7px; border-radius: 10px; background: #EAF5F3; color: #0F6E56; font-weight: 500; }
.guide-pill.draft { background: #F1EFE8; color: #8A7A70; }
.att-chip { display: inline-flex; align-items: center; gap: 4px; background: white; border: .5px solid #7ACDC5; border-radius: 20px; padding: 3px 10px; font-size: 12px; color: #0F6E56; }
.att-chip button { background: none; border: none; color: #7ACDC5; cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }

/* ── GUIDE EDITOR ───────────────────────────────────────────────────── */
.ge-hd { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; gap: 14px; flex-wrap: wrap; }
.ge-hd-left { flex: 1; min-width: 240px; }
.ge-title { font-family: 'Cormorant Garamond', serif; font-size: 24px; color: var(--b-ink); line-height: 1.2; }
.ge-sub { font-size: 12px; color: var(--b-ink-soft); margin-top: 3px; letter-spacing: .02em; }
.ge-meta { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.ge-meta input, .ge-meta select { padding: 5px 9px; border: .5px solid #E8DFC9; border-radius: 5px; font-size: 12px; font-family: inherit; background: white; }
.ge-meta-lbl { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--b-ink-soft); }
.ge-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ge-actions button { padding: 7px 13px; border-radius: 6px; font-size: 12px; font-weight: 500; cursor: pointer; font-family: inherit; border: .5px solid var(--b-rule); background: white; color: var(--b-ink-mid); transition: all .15s; }
.ge-actions button:hover { border-color: var(--b-teal); color: var(--b-teal); }
.ge-actions button.primary { background: var(--b-teal); color: white; border-color: var(--b-teal); }
.ge-actions button.primary:hover { filter: brightness(.93); }
.ge-actions button.danger { color: #C77; }
.ge-actions button.danger:hover { border-color: #C77; color: #A55; }
.ge-status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 11px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.ge-status-pill.draft     { background: #FEF3C7; color: #92400E; }
.ge-status-pill.published { background: #DCFCE7; color: #166534; }

/* Category cards within a guide */
.ge-cats { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.ge-cat { background: white; border: .5px solid var(--b-rule); border-radius: 9px; overflow: hidden; }
.ge-cat-hd { padding: 11px 14px; background: linear-gradient(180deg,rgba(74,139,140,.06) 0%,transparent 100%); display: flex; align-items: center; justify-content: space-between; cursor: pointer; border-bottom: .5px solid transparent; }
.ge-cat.open .ge-cat-hd { border-bottom-color: var(--b-rule); }
.ge-cat-hd:hover { background: rgba(74,139,140,.08); }
.ge-cat-hd-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.ge-cat-emoji { font-size: 18px; line-height: 1; }
.ge-cat-nm { font-size: 13.5px; font-weight: 600; color: var(--b-ink); }
.ge-cat-count { font-size: 11px; color: var(--b-ink-soft); }
.ge-cat-chev { width: 16px; height: 16px; color: var(--b-ink-soft); transition: transform .2s; }
.ge-cat.open .ge-cat-chev { transform: rotate(180deg); color: var(--b-teal); }
.ge-cat-bd { display: none; padding: 13px 14px; }
.ge-cat.open .ge-cat-bd { display: block; }
.ge-cat-rm { padding: 3px 8px; font-size: 10.5px; color: #C77; background: transparent; border: .5px solid transparent; border-radius: 4px; cursor: pointer; font-family: inherit; margin-left: 6px; }
.ge-cat-rm:hover { background: #FEE; border-color: #FCC; }

/* Info sections (within a category) */
.ge-paste-wrap { margin-bottom: 12px; }
.ge-paste-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.ge-paste-lbl { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--b-ink-soft); }
.ge-paste-help { font-size: 11px; color: var(--b-teal); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ge-paste textarea { width: 100%; min-height: 90px; padding: 9px 11px; border: .5px solid #E8DFC9; border-radius: 7px; font-size: 12.5px; font-family: 'SF Mono',Menlo,monospace; color: var(--b-ink); background: #FBF7EE; line-height: 1.5; resize: vertical; }
.ge-paste textarea:focus { outline: none; border-color: var(--b-teal); box-shadow: 0 0 0 2px rgba(74,139,140,.15); }
.ge-paste-actions { display: flex; gap: 6px; margin-top: 6px; }
.ge-parse-btn { padding: 7px 14px; background: var(--b-teal); color: white; border: none; border-radius: 6px; font-size: 12px; font-weight: 500; cursor: pointer; font-family: inherit; }
.ge-parse-btn:hover { filter: brightness(.93); }
.ge-paste-clear { padding: 7px 11px; background: transparent; color: var(--b-ink-soft); border: .5px solid var(--b-rule); border-radius: 6px; font-size: 12px; cursor: pointer; font-family: inherit; }
.ge-paste-clear:hover { color: var(--b-teal); border-color: var(--b-teal); }

.ge-areas { display: flex; flex-direction: column; gap: 10px; }
.ge-area-hd { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--b-teal); margin-bottom: 5px; padding-bottom: 3px; border-bottom: .5px solid var(--b-rule); display: flex; align-items: center; justify-content: space-between; }
.ge-area-hd-name { cursor: text; }
.ge-area-hd-name:hover { color: var(--b-ink); }
.ge-area-hd-name input { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--b-teal); border: none; background: transparent; outline: none; padding: 1px 3px; font-family: inherit; width: auto; min-width: 120px; }
.ge-spots-list { display: flex; flex-direction: column; gap: 5px; }
.ge-spot { background: #FDFBF6; border: .5px solid #E8DFC9; border-radius: 7px; padding: 9px 11px; cursor: pointer; transition: all .15s; display: flex; gap: 9px; align-items: flex-start; }
.ge-spot:hover { border-color: var(--b-teal-light); background: white; }
.ge-spot-body { flex: 1; min-width: 0; }
.ge-spot-nm { font-size: 13px; color: var(--b-ink); font-weight: 500; line-height: 1.35; }
.ge-spot-meta { font-size: 11px; color: var(--b-ink-soft); margin-top: 2px; line-height: 1.35; display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.ge-spot-tag { display: inline-block; padding: 1px 6px; background: rgba(74,139,140,.1); color: var(--b-teal); border-radius: 4px; font-size: 10px; font-weight: 500; }
.ge-spot-warn { color: #C77; font-weight: 500; }
.ge-spot-actions { display: flex; gap: 4px; flex-shrink: 0; }
.ge-spot-actions button { padding: 3px 7px; font-size: 10.5px; background: transparent; border: .5px solid transparent; border-radius: 4px; color: var(--b-ink-soft); cursor: pointer; font-family: inherit; }
.ge-spot-actions button:hover { background: white; border-color: var(--b-rule); color: var(--b-ink); }
.ge-spot-actions button.del:hover { color: #C77; border-color: #FCC; background: #FFF7F7; }

.ge-spot-editor { margin-top: 8px; padding: 14px; background: #F9F4EA; border: .5px solid var(--b-teal-light); border-radius: 8px; }
.ge-spot-editor .fg { margin-bottom: 10px; }
.ge-spot-editor .fg:last-of-type { margin-bottom: 0; }
.ge-spot-editor-actions { display: flex; gap: 7px; justify-content: flex-end; margin-top: 10px; padding-top: 10px; border-top: .5px solid rgba(180,155,120,.25); }
.ge-spot-empty { padding: 18px; text-align: center; color: var(--b-ink-soft); font-size: 12.5px; font-style: italic; }

.ge-addcat { display: flex; gap: 7px; align-items: center; padding: 11px 14px; background: white; border: .5px dashed var(--b-teal-light); border-radius: 8px; }
.ge-addcat input { flex: 1; padding: 7px 11px; border: .5px solid var(--b-rule); border-radius: 6px; font-size: 13px; font-family: inherit; }
.ge-addcat-btn { padding: 7px 13px; background: var(--b-teal); color: white; border: none; border-radius: 6px; font-size: 12px; font-weight: 500; cursor: pointer; font-family: inherit; }
.ge-addcat-btn:hover { filter: brightness(.93); }

.ge-parse-result { padding: 9px 12px; border-radius: 6px; font-size: 12.5px; margin-top: 6px; line-height: 1.5; }
.ge-parse-result.success { background: #DCFCE7; color: #166534; border: .5px solid #86EFAC; }
.ge-parse-result.warn    { background: #FEF3C7; color: #92400E; border: .5px solid #FCD34D; }
.ge-parse-result.error   { background: #FEE2E2; color: #991B1B; border: .5px solid #FCA5A5; }

.ge-help-modal { position: fixed; inset: 0; background: rgba(46,40,35,.5); z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.ge-help-modal.open { display: flex; }
.ge-help-box { background: white; border-radius: 12px; max-width: 680px; width: 100%; max-height: 85vh; overflow-y: auto; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.ge-help-hd { padding: 16px 22px; border-bottom: .5px solid var(--b-rule); display: flex; justify-content: space-between; align-items: center; }
.ge-help-hd-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--b-ink); }
.ge-help-bd { padding: 18px 22px 22px; font-size: 13.5px; line-height: 1.6; color: var(--b-ink-mid); }
.ge-help-bd h4 { font-size: 13px; font-weight: 600; color: var(--b-ink); margin-top: 14px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.ge-help-bd pre { background: #FBF7EE; border: .5px solid #E8DFC9; border-radius: 7px; padding: 10px 13px; font-family: 'SF Mono',Menlo,monospace; font-size: 11.5px; line-height: 1.55; overflow-x: auto; margin: 6px 0 10px; color: var(--b-ink); white-space: pre-wrap; }
.ge-help-bd code { background: rgba(74,139,140,.1); padding: 1px 5px; border-radius: 3px; font-family: 'SF Mono',Menlo,monospace; font-size: 12px; color: var(--b-ink); }

/* ── DAY-BY-DAY ITINERARY PAGE ──────────────────────────────────────── */
.itin-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 4px 2px; }
.itin-hdr-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: var(--b-ink); }
.itin-hdr-sub { font-size: 11.5px; color: var(--b-ink-soft); margin-top: 1px; letter-spacing: .02em; }
.itin-empty { background: #FFFDF8; border: .5px dashed var(--b-rule); border-radius: 10px; padding: 30px 20px; text-align: center; color: var(--b-ink-soft); }
.itin-empty-icon { width: 36px; height: 36px; margin: 0 auto 10px; color: var(--b-teal); }
.itin-empty-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.6; }
.itin-empty-title { font-family: 'Cormorant Garamond', serif; font-size: 17px; color: var(--b-ink); margin-bottom: 5px; }
.itin-empty-body { font-size: 13px; line-height: 1.5; max-width: 340px; margin: 0 auto; }

/* Day tab strip */
.day-strip-wrap { background: white; border: .5px solid var(--b-border); border-radius: 10px; padding: 8px; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; overflow-x: auto; box-shadow: 0 1px 2px rgba(120,90,60,.04); }
.day-strip-wrap::-webkit-scrollbar { height: 5px; }
.day-strip-wrap::-webkit-scrollbar-thumb { background: #E8DFC9; border-radius: 3px; }
.day-tab { flex-shrink: 0; padding: 7px 12px; border-radius: 7px; border: .5px solid transparent; background: transparent; cursor: pointer; font-family: inherit; font-size: 12px; color: var(--b-ink-soft); transition: all .15s; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 54px; }
.day-tab:hover { background: rgba(74,139,140,.08); color: var(--b-teal); }
.day-tab.active { background: var(--b-teal); color: white; border-color: var(--b-teal); }
.day-tab-n { font-weight: 600; font-size: 11px; letter-spacing: .05em; }
.day-tab-d { font-size: 10.5px; opacity: .85; }
.day-strip-add { flex-shrink: 0; padding: 6px 9px; border-radius: 7px; border: .5px dashed var(--b-teal-light); background: transparent; cursor: pointer; font-family: inherit; font-size: 11.5px; color: var(--b-teal); transition: all .15s; white-space: nowrap; }
.day-strip-add:hover { background: rgba(74,139,140,.08); border-style: solid; }
.day-strip-spacer { flex: 1; min-width: 6px; }

/* Day card */
.day-card { background: white; border: .5px solid var(--b-border); border-radius: 10px; box-shadow: 0 1px 2px rgba(120,90,60,.04); overflow: hidden; }
.day-card-hd { padding: 13px 16px; border-bottom: .5px solid var(--b-rule); background: linear-gradient(180deg,rgba(74,139,140,.05) 0%,transparent 100%); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.day-card-hd-left { min-width: 0; flex: 1; }
.day-card-num { font-family: 'Cormorant Garamond', serif; font-size: 19px; color: var(--b-ink); line-height: 1.2; }
.day-card-date { font-size: 11.5px; color: var(--b-ink-soft); margin-top: 1px; letter-spacing: .04em; }
.day-card-title-input { margin-top: 6px; padding: 5px 8px; border: .5px solid transparent; border-radius: 5px; font-size: 13px; font-family: inherit; color: var(--b-ink); background: transparent; width: 100%; max-width: 300px; transition: border-color .15s, background .15s; }
.day-card-title-input:hover { border-color: var(--b-rule); background: white; }
.day-card-title-input:focus { outline: none; border-color: var(--b-teal); background: white; box-shadow: 0 0 0 2px rgba(74,139,140,.15); }
.day-card-title-input::placeholder { color: #B8A99A; font-style: italic; }
.day-card-del { padding: 5px 10px; background: transparent; border: .5px solid #E8DFC9; border-radius: 5px; font-size: 11px; color: var(--b-ink-soft); cursor: pointer; font-family: inherit; transition: all .15s; }
.day-card-del:hover { border-color: #D4756A; color: #D4756A; }
.day-card-bd { padding: 14px 16px 16px; }

/* Activity blocks */
.act-list { display: flex; flex-direction: column; gap: 8px; }
.act { background: #FDFBF6; border: .5px solid #E8DFC9; border-radius: 8px; padding: 11px 13px; cursor: pointer; transition: all .15s; }
.act:hover { border-color: var(--b-teal-light); background: white; box-shadow: 0 1px 3px rgba(120,90,60,.05); }
.act-h { display: flex; gap: 11px; align-items: flex-start; }
.act-ico { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: white; }
.act-ico svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Activity icon colors — semantic UX, NOT brand */
.i-fl { background: #5B8FB6; }
.i-ht { background: #7BB5A9; }
.i-ca { background: #9985B5; }
.i-to { background: #D69E5E; }
.i-fo { background: #C97B7B; }
.i-nt { background: #B8A47D; }
.act-meta { flex: 1; min-width: 0; }
.act-time { font-size: 10.5px; color: var(--b-ink-soft); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.act-title { font-size: 13.5px; color: var(--b-ink); font-weight: 500; line-height: 1.35; margin-top: 1px; }
.act-badge { font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 9px; white-space: nowrap; }
.act-body { margin-top: 8px; }
.act-detail { font-size: 12.5px; color: var(--b-ink-mid); line-height: 1.5; margin-top: 4px; }
.act-del { padding: 4px 7px; background: transparent; border: none; color: var(--b-ink-muted); cursor: pointer; font-size: 14px; line-height: 1; flex-shrink: 0; border-radius: 4px; transition: all .15s; }
.act-del:hover { background: #FEE; color: #D4756A; }
.act-empty { padding: 20px; text-align: center; color: var(--b-ink-soft); font-size: 13px; font-style: italic; }
.act-auto-badge { display: inline-block; padding: 1px 7px; background: rgba(74,139,140,.12); color: var(--b-teal); font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-radius: 9px; border: .5px solid var(--b-teal-light); }
.act-add { margin-top: 10px; width: 100%; padding: 9px; background: transparent; border: .5px dashed var(--b-teal-light); border-radius: 7px; color: var(--b-teal); font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; transition: all .15s; }
.act-add:hover { background: rgba(74,139,140,.06); border-style: solid; }

/* Pay badges */
.pay-badge { display: inline-block; padding: 1px 7px; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 9px; border: .5px solid; }
.pay-badge.pay-prepaid          { background: rgba(61,170,110,.1); color: #2D8B5A; border-color: rgba(61,170,110,.3); }
.pay-badge.pay-pay-at-pickup    { background: rgba(212,136,42,.1); color: #A66524; border-color: rgba(212,136,42,.3); }
.pay-badge.pay-deposit-only     { background: rgba(74,139,140,.1); color: var(--b-teal); border-color: var(--b-teal-light); }

/* Activity editor panel */
.act-editor { margin-top: 10px; padding: 14px; background: #F9F4EA; border: .5px solid var(--b-teal-light); border-radius: 8px; }
.act-editor-title { font-size: 11px; font-weight: 600; color: var(--b-ink-mid); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.act-icon-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 5px; margin-bottom: 12px; }
.act-icon-opt { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; padding: 5px 4px; border-radius: 7px; border: 1.5px solid transparent; transition: all .15s; min-width: 0; }
.act-icon-opt:hover { background: rgba(74,139,140,.06); }
.act-icon-opt.selected { border-color: var(--b-teal); background: rgba(74,139,140,.08); }
.act-icon-sw { width: 30px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: white; opacity: .85; transition: opacity .15s; }
.act-icon-opt:hover .act-icon-sw { opacity: 1; }
.act-icon-opt.selected .act-icon-sw { opacity: 1; box-shadow: 0 0 0 2px rgba(255,255,255,.6), 0 0 0 3px var(--b-teal); }
.act-icon-sw svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.act-icon-lbl { font-size: 9.5px; font-weight: 500; color: var(--b-ink-mid); letter-spacing: .02em; text-align: center; line-height: 1.2; }
.act-icon-opt.selected .act-icon-lbl { color: var(--b-teal); font-weight: 600; }
.act-editor-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.itin-page-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 12px 4px 4px; }

/* ── DOCS ───────────────────────────────────────────────────────────── */
.doc-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: .5px solid var(--b-rule); }
.doc-row:last-child { border-bottom: none; }
.doc-ico { width: 30px; height: 30px; border-radius: 7px; background: var(--b-teal-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-ico svg { width: 14px; height: 14px; stroke: var(--b-teal); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.doc-nm { font-size: 12px; font-weight: 500; color: var(--b-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-ct { font-size: 11px; color: var(--b-ink-soft); }
.doc-rm { background: none; border: none; cursor: pointer; color: var(--b-ink-soft); padding: 3px; border-radius: 4px; line-height: 1; }
.doc-rm:hover { color: #C0392B; }
.add-doc-form { background: #F5EFE6; border: .5px solid var(--b-rule); border-radius: var(--r); padding: 12px; margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.add-doc-actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.add-doc-btn { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; color: var(--b-teal); background: none; border: .5px dashed var(--b-teal-light); border-radius: var(--r); padding: 8px; cursor: pointer; width: 100%; margin-top: 10px; font-family: inherit; }
.add-doc-btn:hover { background: var(--b-teal-pale); }

/* Doc attach chips (inline on activities / flights) */
.doc-attach-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; padding-top: 8px; border-top: .5px dashed var(--b-rule); align-items: center; }
.doc-attach-lbl { font-size: 10.5px; font-weight: 600; color: var(--b-ink-soft); letter-spacing: .08em; text-transform: uppercase; margin-right: 4px; }
.doc-attach-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; background: transparent; border: .5px dashed var(--b-teal-light); border-radius: 5px; font-size: 11.5px; color: var(--b-teal); cursor: pointer; font-family: inherit; font-weight: 500; transition: all .15s; }
.doc-attach-btn:hover { background: rgba(74,139,140,.06); border-style: solid; }
.doc-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; background: rgba(74,139,140,.1); border: .5px solid var(--b-teal-light); border-radius: 11px; font-size: 11px; color: var(--b-ink); max-width: 200px; }
.doc-chip-nm { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-chip a { color: var(--b-teal); text-decoration: none; font-weight: 500; }
.doc-chip a:hover { text-decoration: underline; }
.doc-chip-rm { background: none; border: none; color: var(--b-ink-soft); font-size: 13px; cursor: pointer; padding: 0; line-height: 1; margin-left: 2px; }
.doc-chip-rm:hover { color: #C77; }

/* ── DRAWER (saved itineraries panel) ───────────────────────────────── */
.drawer { position: fixed; top: 50px; right: 0; bottom: 0; width: 300px; background: white; border-left: 1px solid var(--b-rule); z-index: 100; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
.drawer.open { transform: translateX(0); }
.drawer-hd { padding: 13px 15px; border-bottom: .5px solid var(--b-rule); display: flex; align-items: center; justify-content: space-between; }
.drawer-hd-title { font-size: 13px; font-weight: 500; }
.drawer-list { flex: 1; overflow-y: auto; padding: 8px; }
.saved-item { padding: 10px 12px; border-radius: var(--r); border: .5px solid var(--b-border); margin-bottom: 7px; cursor: pointer; transition: border-color .15s; }
.saved-item:hover { border-color: var(--b-teal); background: var(--b-teal-pale); }
.saved-trip { font-size: 13px; font-weight: 500; color: var(--b-ink); }
.saved-meta { font-size: 11px; color: var(--b-ink-soft); margin-top: 2px; }
.saved-dt { font-size: 10px; color: var(--b-ink-soft); margin-top: 4px; }
.drawer-empty { padding: 28px; text-align: center; color: var(--b-ink-soft); font-size: 13px; }

/* ── PREVIEW / PROGRESS PANEL ───────────────────────────────────────── */
.prev-hd { padding: 0; border-bottom: .5px solid var(--b-rule); flex-shrink: 0; display: flex; flex-direction: column; }
.prev-tabs { display: flex; }
.prev-tab { flex: 1; padding: 9px 0; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--b-ink-soft); text-align: center; cursor: pointer; border-bottom: 2px solid transparent; transition: all .15s; background: none; border-top: none; border-left: none; border-right: none; font-family: inherit; }
.prev-tab.active { color: var(--b-navy); border-bottom-color: var(--b-navy); }
.prev-tab:hover:not(.active) { color: var(--b-ink); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--b-teal); animation: pulse 2s infinite; display: inline-block; margin-right: 4px; vertical-align: middle; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.prev-scroll { flex: 1; overflow-y: auto; padding: 20px 16px; display: none; justify-content: center; align-items: flex-start; }
.prev-progress { flex: 1; overflow-y: auto; padding: 14px; display: none; }
.prev-progress.active { display: block; }
.prev-scroll.active { display: flex; }

/* Progress checklist */
.prog-hd { font-size: 9.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--b-navy); margin-bottom: 8px; padding-bottom: 8px; border-bottom: .5px solid var(--b-rule); }
.prog-bar-wrap { background: var(--b-rule); border-radius: 4px; height: 5px; margin-bottom: 14px; overflow: hidden; }
.prog-bar-fill { background: var(--b-navy); height: 100%; border-radius: 4px; transition: width .4s; }
.prog-lbl { display: flex; justify-content: space-between; font-size: 10px; color: var(--b-ink-soft); margin-bottom: 6px; }
.prog-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: .5px solid #F0EDE8; font-size: 12px; color: var(--b-ink); }
.prog-item:last-child { border-bottom: none; }
.prog-item.dim { color: var(--b-ink-soft); }
.prog-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.pd-navy { background: var(--b-navy); }
.pd-teal { background: var(--b-teal); }
.pd-gray { background: #D0CBC4; }
.pd-gold { background: var(--b-gold); }
.prog-tag { font-size: 9px; font-weight: 500; padding: 1px 6px; border-radius: 8px; margin-left: auto; white-space: nowrap; }
.pt-done    { background: var(--b-navy-pale); color: var(--b-navy); }
.pt-editing { background: var(--b-teal-pale); color: var(--b-teal); }
.pt-skip    { background: #F0EDE8; color: #9A9080; }
.pt-gold    { background: var(--b-gold-pale); color: #8A6820; }
.prog-export { background: var(--b-navy); color: white; border: none; border-radius: 7px; padding: 9px; font-size: 12px; font-weight: 500; cursor: pointer; width: 100%; text-align: center; margin-top: 12px; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 6px; }
.prog-export:hover { filter: brightness(1.15); }

/* Phone frame (preview mockup) */
.phone { width: 340px; height: 720px; background: #F7F2E8; border-radius: 38px; border: 7px solid #1C1C1C; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 18px 50px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.08); }
.phone::before { content: ''; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 70px; height: 4px; background: #1C1C1C; border-radius: 10px; z-index: 10; pointer-events: none; }
.ph-wrap { position: relative; }
.ph-screen { flex: 1; overflow-y: auto; overflow-x: hidden; background: #F7F2E8; }
.ph-screen::-webkit-scrollbar { display: none; }
.ph-status { background: rgba(0,0,0,.25); padding: 20px 14px 5px; font-size: 10px; color: white; display: flex; justify-content: space-between; position: relative; z-index: 1; }
.ph-hero { background: url('https://png.pngtree.com/thumb_back/fh260/background/20250116/pngtree-a-pearl-in-an-oyster-floating-on-the-surface-of-blue-image_16924988.jpg') center/cover; padding: 14px 14px 12px; position: relative; }
.ph-hero::before { content: ''; position: absolute; inset: 0; background: rgba(22,45,66,.35); }
.ph-title { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 600; color: white; line-height: 1.1; position: relative; z-index: 1; }
.ph-sub { font-size: 11px; color: rgba(255,255,255,.85); margin-top: 2px; position: relative; z-index: 1; }
.ph-cdown { background: rgba(255,255,255,.55); border-radius: 9px; padding: 8px; margin-top: 10px; text-align: center; }
.ph-cd-num { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: #3AA8A0; line-height: 1; }
.ph-cd-lbl { font-size: 8px; color: #8A7A70; text-transform: uppercase; letter-spacing: .1em; margin-top: 1px; }
.ph-stat { display: grid; grid-template-columns: repeat(3, 1fr); background: white; border-bottom: .5px solid #E8DFC9; }
.ph-ss { padding: 8px 4px; text-align: center; border-right: .5px solid #E8DFC9; }
.ph-ss:last-child { border-right: none; }
.ph-ss-n { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 400; color: #3AA8A0; }
.ph-ss-l { font-size: 7px; color: #B8A99A; text-transform: uppercase; letter-spacing: .06em; margin-top: 1px; }
.ph-sh { font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #8A7256; padding: 10px 12px 6px; }
.ph-glance { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 12px; }
.ph-sg { background: white; border: .5px solid #E8DFC9; border-radius: 9px; padding: 9px 10px; }
.ph-sg-l { font-size: 8px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #B8A99A; margin-bottom: 2px; }
.ph-sg-v { font-size: 10px; font-weight: 600; color: #2E2823; line-height: 1.3; }
.ph-nav { display: flex; border-top: .5px solid #E8DFC9; background: white; flex-shrink: 0; }
.ph-nav-item { flex: 1; padding: 8px 3px 6px; text-align: center; font-size: 7px; color: #8A7A70; }
.ph-nav-item.active { color: #3AA8A0; }
.ph-nav-item svg { display: block; width: 16px; height: 16px; margin: 0 auto 2px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ── PIN SCREEN ─────────────────────────────────────────────────────── */
.pin-key { aspect-ratio: 1; border: 0.5px solid #D4E8E4; border-radius: 10px; background: white; color: #2C3A3A; font-size: 22px; font-weight: 300; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: inherit; transition: all .12s; width: 100%; }
.pin-key:hover { background: #EAF5F3; border-color: #B1E6E0; }
.pin-key.del { font-size: 17px; color: #8A9A9A; font-weight: 400; }
.pin-dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #B1E6E0; background: transparent; transition: all .15s; }
.pin-dot.filled { background: var(--b-navy); border-color: var(--b-navy); }
.pin-dot.error  { background: #E24B4A; border-color: #E24B4A; }

/* ── ADMIN PANEL ────────────────────────────────────────────────────── */
.adm-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 0.5px solid var(--b-rule); }
.adm-row:last-child { border-bottom: none; }
.adm-av { width: 34px; height: 34px; border-radius: 50%; background: var(--b-teal-pale); color: var(--b-teal); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.adm-pin { font-family: 'Menlo', monospace; font-size: 14px; font-weight: 600; color: var(--b-ink); background: #F7F2E8; padding: 3px 8px; border-radius: 6px; letter-spacing: .12em; }

/* ── SPINNER / TOAST / MODAL ────────────────────────────────────────── */
.spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.35); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.spin-t { border-color: rgba(74,139,140,.3); border-top-color: var(--b-teal); }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #2C3A3A; color: white; font-size: 13px; padding: 9px 17px; border-radius: 24px; z-index: 999; opacity: 0; transition: opacity .2s; pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 200; display: flex; align-items: center; justify-content: center; }
.modal { background: white; border-radius: var(--rl); padding: 26px; width: 330px; box-shadow: 0 8px 30px rgba(0,0,0,.15); }
.modal-title { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 600; margin-bottom: 5px; color: var(--b-ink); }
.modal-sub { font-size: 13px; color: var(--b-ink-mid); margin-bottom: 18px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }

/* ── EXPORT PAYMENT BADGES (portal-specific, included for export fn) ── */
.ex-pay-badge { display: inline-block; padding: 1px 7px; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; border-radius: 8px; margin-left: 5px; vertical-align: middle; }
.ex-pay-prepaid                { background: rgba(61,170,110,.12); color: #1E6E44; }
.ex-pay-pay-at-pickup          { background: rgba(212,136,42,.12); color: #8A5018; }
.ex-pay-pay-on-site            { background: rgba(212,136,42,.12); color: #8A5018; }
.ex-pay-pay-at-hotel           { background: rgba(74,139,140,.12); color: var(--b-teal); }
.ex-pay-reserve-pay-later      { background: rgba(74,107,180,.12); color: #3A5AA0; }
.ex-pay-deposit-balance-later  { background: rgba(180,140,60,.12); color: #8A6020; }
.ex-pay-deposit-balance-pickup { background: rgba(180,140,60,.12); color: #8A6020; }
.ex-pay-deposit-balance-checkin{ background: rgba(180,140,60,.12); color: #8A6020; }
.ex-pay-prepaid-plus-resort-fee{ background: rgba(74,139,140,.12); color: var(--b-teal); }
.ex-pay-deposit-only           { background: rgba(180,140,60,.12); color: #8A6020; }
