@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&display=swap');
/* Ocular Trip Companion look: deep navy, warm cream, sharp turquoise accent (AI feel). */
:root {
  --navy: #1b2e3c; --navy-2: #24394a; --accent: #19d3b6; --accent-dark: #0a8f7c; --accent-ink: #062b2c; --teal: #0a8f7c;
  --cream: #f6f1ea; --warm: #fff7f1; --paper: #fff; --ink: #1b2e3c; --muted: #66727c; --line: #e6ddd2;
  --green: #2f7d4f; --green-bg: #e4f2e9; --amber: #b7791f; --amber-bg: #fbefd9; --red: #b42318; --red-bg: #fbe5e2; --grey: #8c949a; --grey-bg: #eef0f1;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.5 'Figtree', system-ui, sans-serif; }
a { color: var(--accent-dark); }
.topbar { background: var(--navy); color: #fff; }
.topbar .in { max-width: 1080px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px 'Figtree', sans-serif; color: #fff; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.badge { background: var(--accent); color: var(--accent-ink); font: 700 12px 'Figtree', sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 20px 16px 64px; }
.eyebrow { font: 700 12px 'Figtree', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 6px; }
h1 { font: 800 32px/1.15 'Figtree', sans-serif; margin: 0 0 6px; letter-spacing: -.01em; }
h2 { font: 700 13px 'Figtree', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin: 0 0 12px; }
.muted { color: var(--muted); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .grid.two { grid-template-columns: 1.4fr 1fr; align-items: start; } .sticky { position: sticky; top: 16px; } }

/* Hero with the trip photo */
.hero { position: relative; border-radius: 16px; overflow: hidden; color: #fff; background: var(--navy) center/cover no-repeat; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,46,60,.05) 0%, rgba(27,46,60,.55) 55%, rgba(27,46,60,.92) 100%); }
.hero .txt { position: relative; padding: 22px 22px 18px; }
.hero h1 { color: #fff; font-size: 34px; }
.hero .dates { font-weight: 600; opacity: .95; }
.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--navy); }
.stats div { padding: 12px 10px; text-align: center; border-left: 1px solid rgba(255,255,255,.12); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font-size: 18px; font-weight: 800; color: #fff; }
.stats span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #b9c4cc; }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats div:nth-child(3) { border-left: 0; } .hero h1 { font-size: 27px; } }
.bar { height: 6px; background: rgba(255,255,255,.18); position: relative; }
.bar > span { display: block; height: 100%; background: var(--accent); transition: width .4s; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.green { background: var(--green-bg); color: var(--green); } .pill.amber { background: var(--amber-bg); color: var(--amber); }
.pill.red { background: var(--red-bg); color: var(--red); } .pill.grey { background: var(--grey-bg); color: var(--grey); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot.green { background: var(--green); } .dot.amber { background: var(--amber); } .dot.red { background: var(--red); } .dot.grey { background: #c3c9cd; }
.item { border-top: 1px solid var(--line); padding: 14px 0; }
.item:first-of-type { border-top: 0; padding-top: 0; }
.item-head { display: flex; align-items: center; gap: 10px; }
.item-head h3 { margin: 0; font-size: 16px; font-weight: 700; flex: 1; }
.item .due { font-size: 13px; color: var(--muted); }
.item p { margin: 6px 0 0 20px; color: var(--muted); font-size: 14px; }
.checks { list-style: none; margin: 8px 0 0 20px; padding: 0; font-size: 14px; }
.checks li { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; }
.checks .dot { width: 8px; height: 8px; transform: translateY(-1px); }
.actions { margin: 10px 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
button, .btn { font: 700 14px 'Figtree', sans-serif; border-radius: 10px; border: 1px solid var(--navy); background: var(--navy); color: #fff; padding: 8px 14px; cursor: pointer; text-decoration: none; display: inline-block; }
button.accent, .btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.ghost, .btn.ghost { background: #fff; color: var(--navy); border-color: #c9d1d7; }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: 15px 'Figtree', sans-serif; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--warm); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
label { display: block; font-size: 13px; font-weight: 700; margin: 8px 0 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chat-head { background: var(--navy); color: #fff; margin: -18px -18px 12px; padding: 14px 18px; border-radius: 14px 14px 0 0; }
.chat-head h2 { color: #fff; margin: 0; }
.chat-head p { margin: 2px 0 0; font-size: 13px; color: #b9c4cc; }
.chat-log { height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px; }
.msg { padding: 9px 12px; border-radius: 12px; max-width: 88%; font-size: 15px; white-space: pre-wrap; }
.msg.user { background: var(--navy); color: #fff; align-self: flex-end; }
.msg.assistant { background: var(--warm); border: 1px solid var(--line); align-self: flex-start; white-space: normal; max-width: 100%; }
.msg.assistant p { margin: 0 0 6px; } .msg.assistant p:last-child { margin: 0; }
.msg.assistant ul, .msg.assistant ol { margin: 2px 0 8px 18px; padding: 0; }
.msg.assistant table { margin: 4px 0 8px; background: #fff; } .msg.assistant th, .msg.assistant td { padding: 4px 6px; }
.chat-form { display: flex; gap: 8px; margin-top: 10px; }
.chat-form textarea { flex: 1; resize: none; height: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips button { font-size: 12px; padding: 5px 10px; }
.visa { background: #f1fbf9; border-color: #c6ece5; }
.visa .fee { font-size: 30px; font-weight: 800; color: var(--navy); line-height: 1; }
.visa dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 12px 0 0; font-size: 14px; }
.visa dt { color: var(--muted); font-weight: 600; }
.visa dd { margin: 0; }
.small { font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
tr.click { cursor: pointer; } tr.click:hover { background: var(--warm); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; display: none; }
footer { margin-top: 32px; font-size: 12px; color: var(--muted); text-align: center; }
/* Fixes: photo framing, contrast on the photo, phone widths */
.hero { background-position: 22% 42%; min-height: 300px; }
.hero .eyebrow { color: #7ff3de; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.grid > * { min-width: 0; }
input, select, textarea { width: 100%; max-width: 100%; }
.form-row input[type="checkbox"] { width: auto; }
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .item p, .checks, .actions { margin-left: 0; }
  .card { padding: 14px; }
  .chat-head { margin: -14px -14px 12px; }
}
@media (min-width: 760px) { .hero .txt { align-self: flex-end; max-width: 56%; text-align: right; } }

/* Done vs open: open items stand out as cards; done items fold into one quiet green line (details on tap). */
.item.open { border: 1px solid var(--line); border-left: 4px solid var(--grey); border-radius: 10px; padding: 12px 14px; margin: 10px 0; background: #fff; }
.item.open.amber { border-left-color: var(--amber); background: #fffcf6; }
.item.open.red { border-left-color: var(--red); background: #fff8f7; }
.item.open:first-of-type { padding-top: 12px; border-top: 1px solid var(--line); }
details.item.done { border-top: 0; padding: 0; margin: 6px 0; }
details.item.done > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--green-bg); color: var(--green); }
details.item.done > summary::-webkit-details-marker { display: none; }
details.item.done > summary h3 { margin: 0; flex: 1; font-size: 15px; font-weight: 600; color: #2b5d42; text-decoration: line-through; text-decoration-color: rgba(47,125,79,.45); }
details.item.done > summary .more { font-size: 12px; font-weight: 600; opacity: .8; white-space: nowrap; }
details.item.done[open] > summary .more::after { content: ' \25B2'; } details.item.done:not([open]) > summary .more::after { content: ' \25BC'; }
details.item.done > .body { padding: 4px 4px 8px; }
.tick { width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: none; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 4px; }
.section-label:first-of-type { margin-top: 4px; }
.stats b.small-b { font-size: 14px; line-height: 1.25; }
.stats b.small-b small { display: block; font-size: 11px; font-weight: 600; color: #7ff3de; }
