/* Sparked Travels client portal. Navy, ocean blue, white, gold, silver. */
:root {
  --navy: #0e2a52;
  --navy-2: #163a6b;
  --ocean: #2a6fb8;
  --sky: #e8f0fa;
  --mist: #f4f6fa;
  --white: #ffffff;
  --gold: #c8a46a;
  --gold-2: #a8834a;
  --gold-soft: #f6efe3;
  --silver: #c9ced8;
  --line: #e2e7ef;
  --ink: #15233d;
  --ink-2: #4b5a73;
  --ink-3: #7a879c;
  --ok: #1f7a55;
  --ok-soft: #e4f4ec;
  --warn: #9a6a12;
  --warn-soft: #fbf1dc;
  --bad: #a83a32;
  --bad-soft: #fbe9e7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 42, 82, .06), 0 8px 24px rgba(14, 42, 82, .06);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--mist); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--ocean); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); margin: 0 0 .4em; line-height: 1.15; }
h1 { font-size: clamp(30px, 5vw, 46px); }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: 21px; }
h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; font-weight: 700; }
p { margin: 0 0 12px; }
small, .muted { color: var(--ink-3); }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.serif { font-family: var(--serif); }
.gold-rule { width: 46px; height: 2px; background: var(--gold); margin: 10px 0 16px; border: 0; }

/* ---------- layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.spacer { flex: 1; }

/* ---------- top bar ---------- */
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 30; }
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--serif); font-size: 21px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .spark { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; color: var(--gold); font-size: 15px; }
.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.topbar nav a { color: #d9e2f0; padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.topbar nav a:hover, .topbar nav a.on { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }

/* ---------- cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card.tight { padding: 14px 16px; }
.card h3 { margin-bottom: 6px; }
.card.gold { border-color: #ead9bb; background: linear-gradient(180deg, #fffdf8, #fff); }
.card.navy { background: var(--navy); color: #e8eef8; border-color: var(--navy); }
.card.navy h2, .card.navy h3 { color: #fff; }
.cover { border-radius: var(--radius); background: var(--sky) center/cover no-repeat; min-height: 180px; position: relative; overflow: hidden; }
.cover .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,42,82,0) 30%, rgba(14,42,82,.82)); }
.cover .over { position: absolute; left: 20px; right: 20px; bottom: 18px; color: #fff; }
.cover .over h1, .cover .over h2 { color: #fff; margin: 0; }
.thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; background: var(--sky); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 20px;
  font: 700 15px var(--sans); cursor: pointer; background: var(--navy); color: #fff; text-decoration: none; transition: transform .05s, background .15s; line-height: 1.2; }
.btn:hover { background: var(--navy-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.gold:hover { background: #d4b27b; }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--silver); }
.btn.ghost:hover { background: var(--white); border-color: var(--navy); }
.btn.light { background: #fff; color: var(--navy); }
.btn.danger { background: transparent; color: var(--bad); border-color: #e9c3bf; }
.btn.sm { padding: 7px 13px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; color: var(--ocean); font: inherit; cursor: pointer; padding: 0; }
.linkbtn:hover { text-decoration: underline; }
.iconbtn { background: none; border: 1px solid var(--line); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; color: var(--ink-2); display: inline-grid; place-items: center; }
.iconbtn:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- forms ---------- */
label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 0 0 6px; }
.field { margin-bottom: 14px; }
.field .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; font-weight: 500; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=number], input[type=password], input[type=url], select, textarea {
  width: 100%; font: 500 15px var(--sans); color: var(--ink); background: #fff; border: 1px solid #cfd7e3; border-radius: 10px; padding: 11px 12px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(42,111,184,.15); }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--navy); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.err { color: var(--bad); font-size: 13.5px; font-weight: 600; margin-top: 8px; }

/* ---------- pills and tags ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--sky); color: var(--navy); white-space: nowrap; }
.pill.gold { background: var(--gold-soft); color: var(--gold-2); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.gray { background: #eef0f4; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; font-weight: 700; font-size: 14px; color: var(--ink-3); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--navy); text-decoration: none; }
.tabs a.on { color: var(--navy); border-bottom-color: var(--gold); }
.tabs .count { background: var(--gold); color: var(--navy); border-radius: 999px; font-size: 11px; padding: 1px 7px; margin-left: 4px; }

/* ---------- lists and tables ---------- */
.list { display: flex; flex-direction: column; }
.list .li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list .li:last-child { border-bottom: 0; }
.list .li .main { flex: 1; min-width: 0; }
.list .li .t { font-weight: 700; }
.list .li .s { font-size: 13.5px; color: var(--ink-3); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tbl tr:hover td { background: #fafbfd; }
table.tbl tr.click { cursor: pointer; }
.empty { text-align: center; color: var(--ink-3); padding: 28px 12px; font-size: 14.5px; }
.empty .serif { font-size: 22px; color: var(--navy); display: block; margin-bottom: 4px; }

/* ---------- stats ---------- */
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat .n { font-family: var(--serif); font-size: 30px; color: var(--navy); line-height: 1; }
.stat .l { font-size: 12.5px; font-weight: 700; color: var(--ink-3); margin-top: 6px; }

/* ---------- itinerary timeline ---------- */
.day { display: grid; grid-template-columns: 74px 1fr; gap: 16px; margin-bottom: 18px; }
.day .date { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; height: max-content; position: sticky; top: 76px; }
.day .date .dw { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--gold-2); text-transform: uppercase; }
.day .date .dd { font-family: var(--serif); font-size: 28px; color: var(--navy); line-height: 1.1; }
.day .date .dm { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; }
.item.has-img { grid-template-columns: 150px 1fr; }
.item img { width: 150px; height: 110px; object-fit: cover; border-radius: 9px; }
.item .kind { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ocean); }
.item.optional { border-style: dashed; border-color: var(--gold); background: #fffdf8; }
@media (max-width: 560px) { .item.has-img { grid-template-columns: 1fr; } .item img { width: 100%; height: 170px; } .day { grid-template-columns: 1fr; } .day .date { position: static; display: flex; gap: 8px; align-items: baseline; justify-content: flex-start; padding: 8px 12px; } }

/* ---------- options (proposal) ---------- */
.option { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.option .img { aspect-ratio: 16/9; background: var(--sky) center/cover; }
.option .body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.option.chosen { border: 2px solid var(--gold); }
.price-line { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.price-line:hover { border-color: var(--ocean); }
.price-line.on { border-color: var(--navy); background: var(--sky); }
.price-line .amt { margin-left: auto; font-family: var(--serif); font-size: 20px; color: var(--navy); white-space: nowrap; }
ul.incl { list-style: none; padding: 0; margin: 0 0 10px; }
ul.incl li { padding-left: 22px; position: relative; margin-bottom: 5px; font-size: 14.5px; }
ul.incl li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
ul.excl li::before { background: var(--silver); }

/* ---------- messages ---------- */
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; padding: 4px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: 15px; white-space: pre-wrap; }
.bubble.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble .when { font-size: 11px; opacity: .7; margin-top: 4px; }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(14,42,82,.45); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 40px 12px; overflow-y: auto; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 640px; padding: 22px; box-shadow: 0 20px 60px rgba(14,42,82,.3); }
.modal.wide { max-width: 880px; }
.modal .mhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal .mhead h3 { margin: 0; }
.modal .mfoot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; opacity: 0; transition: all .25s; z-index: 200; pointer-events: none; max-width: 90vw; text-align: center; }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.bad { background: var(--bad); }

/* ---------- signature ---------- */
.sigpad { border: 1.5px dashed var(--silver); border-radius: 12px; background: #fff; width: 100%; height: 150px; touch-action: none; cursor: crosshair; }

/* ---------- notices ---------- */
.note { border-radius: 12px; padding: 12px 14px; font-size: 14.5px; border: 1px solid; }
.note.info { background: var(--sky); border-color: #cfdff2; color: var(--navy); }
.note.gold { background: var(--gold-soft); border-color: #ead9bb; color: #6f5320; }
.note.ok { background: var(--ok-soft); border-color: #bfe3d0; color: var(--ok); }
.note.warn { background: var(--warn-soft); border-color: #f0dbab; color: var(--warn); }
.note.bad { background: var(--bad-soft); border-color: #f0c9c4; color: var(--bad); }

/* ---------- typeform style intake ---------- */
.flow { min-height: calc(100vh - 62px); display: flex; flex-direction: column; }
.flow .bar { height: 4px; background: var(--line); }
.flow .bar span { display: block; height: 100%; background: var(--gold); transition: width .35s; }
.flow .stage { flex: 1; display: flex; align-items: center; padding: 32px 0 60px; }
.q { width: 100%; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.q .num { color: var(--gold-2); font-weight: 800; font-size: 13px; letter-spacing: .1em; margin-bottom: 8px; }
.q h2 { font-size: clamp(26px, 4vw, 36px); }
.q .sub { color: var(--ink-2); margin-bottom: 20px; }
.q input[type=text], .q input[type=email], .q input[type=tel], .q input[type=number], .q textarea, .q select { font-size: 20px; border: 0; border-bottom: 2px solid var(--silver); border-radius: 0; background: transparent; padding: 10px 2px; }
.q input:focus, .q textarea:focus { box-shadow: none; border-bottom-color: var(--navy); }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.choice { display: flex; gap: 10px; align-items: center; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; font: 700 15px var(--sans); color: var(--ink); cursor: pointer; }
.choice:hover { border-color: var(--ocean); }
.choice.on { border-color: var(--navy); background: var(--sky); }
.choice .key { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--silver); display: grid; place-items: center; font-size: 12px; color: var(--ink-3); flex: none; }
.choice.on .key { background: var(--navy); color: #fff; border-color: var(--navy); }
.qnav { display: flex; gap: 10px; align-items: center; margin-top: 26px; }
.qnav .enter { font-size: 12.5px; color: var(--ink-3); }
.slots-day { margin-bottom: 18px; }
.slots-day .d { font-weight: 800; font-size: 14px; color: var(--navy); margin-bottom: 8px; }
.slots-day .times { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: 700 14px var(--sans); color: var(--navy); cursor: pointer; }
.slot:hover { border-color: var(--ocean); }
.slot.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- landing ---------- */
.hero { background: var(--navy); color: #dfe7f3; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(200,164,106,.35); }
.hero::before { content: ''; position: absolute; right: -40px; top: -40px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(200,164,106,.25); }
.hero .wrap { padding: 72px 16px 84px; position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 680px; }
.hero p.lead { font-size: 19px; max-width: 560px; color: #c9d5e8; }
.eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 52px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; left: 20px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-2); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.section { padding: 56px 0; }
.footer { padding: 30px 0 40px; color: var(--ink-3); font-size: 13.5px; }

/* ---------- admin shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #cdd8ea; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { margin: 4px 8px 20px; }
.side a.nav { display: flex; align-items: center; gap: 10px; color: #cdd8ea; padding: 9px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.side a.nav:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.side a.nav.on { background: rgba(200,164,106,.16); color: #fff; }
.side a.nav .badge { margin-left: auto; background: var(--gold); color: var(--navy); border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.side .grp { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #8a9bb8; margin: 16px 12px 6px; text-transform: uppercase; }
.main { padding: 22px 28px 60px; min-width: 0; }
.main .head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.main .head h1 { font-size: 32px; margin: 0; }
.mobilebar { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 250px; transform: translateX(-100%); transition: transform .2s; z-index: 90; }
  .side.open { transform: none; }
  .mobilebar { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; padding: 10px 14px; position: sticky; top: 0; z-index: 50; }
  .main { padding: 16px 14px 60px; }
}
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.col { background: #eef2f8; border-radius: 14px; padding: 10px; min-height: 200px; }
.col .ch { display: flex; justify-content: space-between; font-weight: 800; font-size: 13px; color: var(--navy); padding: 4px 6px 10px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; font-size: 14px; }
.tcard:hover { border-color: var(--ocean); }
.tcard .tt { font-weight: 800; color: var(--navy); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--ink-3); font-weight: 700; }
.kv dd { margin: 0; }
.searchbox { position: relative; }
.searchbox .results { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 40; margin-top: 4px; overflow: hidden; }
.searchbox .results a { display: block; padding: 9px 12px; color: var(--ink); font-size: 14px; }
.searchbox .results a:hover { background: var(--sky); text-decoration: none; }

/* ---------- print ---------- */
@media print {
  .topbar, .side, .mobilebar, .noprint, .btn, .tabs { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 0; }
  .shell { display: block; }
}

/* fixes */
.list .li .main { padding: 0; }
@media (max-width: 600px) {
  .topbar .wrap { gap: 8px; min-height: 56px; }
  .topbar .brand span:not(.spark) { display: none; }
  .topbar nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .topbar nav a { padding: 7px 9px; font-size: 13px; white-space: nowrap; }
}
