:root {
  --navy: #1b2a4a;
  --navy-dark: #111c33;
  --gold: #c9a227;
  --gold-light: #e6c65c;
  --cream: #faf7f0;
  --text: #222a35;
  --muted: #5b6573;
  --line: #e4dfd2;
  --white: #fff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", serif;
  color: var(--text);
  background: var(--cream);
}
button, textarea { font-family: "Segoe UI", sans-serif; }
.skip-link {
  position: absolute;
  left: -999px;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 8px 12px;
}
.skip-link:focus { left: 8px; top: 8px; z-index: 5; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  background: var(--navy-dark);
  padding: 12px 24px;
}
.site-nav a {
  color: #f4efe4;
  font-family: "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.site-nav a[aria-current="page"] { color: var(--gold-light); }
.brand { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.brand-logo, .result-logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: white;
}
.result-logo { width: 88px; height: 88px; margin-bottom: 10px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.top {
  background: var(--navy);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  align-items: flex-end;
}
.eyebrow, .sub { margin: 0; letter-spacing: 0.04em; }
.eyebrow { color: var(--gold-light); font-family: "Segoe UI", sans-serif; font-size: 0.78rem; text-transform: uppercase; }
h1 { margin: 4px 0; font-size: 2rem; font-weight: 600; }
.sub { color: #d9deea; font-family: "Segoe UI", sans-serif; }
.status {
  font-family: "Segoe UI", sans-serif;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,162,39,0.5);
  padding: 10px 12px;
  border-radius: 10px;
  max-width: 320px;
}
.banner {
  background: var(--gold);
  color: var(--navy-dark);
  padding: 12px 24px;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.95rem;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 20px;
  padding: 20px 24px 40px;
}
.chat, .results {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.log {
  min-height: 320px;
  max-height: 520px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bubble {
  padding: 12px 14px;
  border-radius: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.bubble.assistant { background: #f4f0e6; }
.bubble.user { background: var(--navy); color: white; align-self: flex-end; max-width: 90%; }
.notice { color: var(--muted); font-family: "Segoe UI", sans-serif; font-size: 0.85rem; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.examples button, .btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}
.examples button { background: #efe8d6; color: var(--navy); }
.btn.gold { background: var(--gold); color: var(--navy-dark); }
.btn.navy { background: var(--navy); color: white; }
form { display: grid; gap: 8px; }
[hidden] { display: none !important; }
textarea {
  width: 100%;
  border: 1px solid #cfc8b6;
  border-radius: 10px;
  padding: 12px;
  resize: vertical;
}
textarea:focus, button:focus { outline: 3px solid var(--gold-light); }
.results h2 { margin: 0 0 8px; color: var(--navy); font-size: 1.4rem; }
.empty { color: var(--muted); font-family: "Segoe UI", sans-serif; }
.card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 12px;
  padding: 14px;
  margin-top: 12px;
}
.card h3 { margin: 0 0 6px; color: var(--navy); }
.badge {
  display: inline-block;
  background: #fff6d8;
  color: var(--navy-dark);
  border-radius: 999px;
  padding: 3px 8px;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
}
.meta, .segment, .fare { font-family: "Segoe UI", sans-serif; font-size: 0.92rem; }
.segment { margin: 8px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quote-box, .error {
  margin-top: 10px;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.9rem;
}
.error { color: #8a2b2b; }
.nav-link { color: var(--gold-light); font-weight: 700; }
.advisor {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 24px 48px;
}
.advisor-form, .advisor-results {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.advisor-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.field { display: grid; gap: 6px; font-family: "Segoe UI", sans-serif; font-size: 0.92rem; }
.field.wide { grid-column: 1 / -1; }
.field span, .name-heading { color: var(--navy); font-weight: 700; }
.name-heading { margin: 0; font-family: "Segoe UI", sans-serif; }
input, select {
  width: 100%;
  border: 1px solid #cfc8b6;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  background: white;
}
input:focus, select:focus { outline: 3px solid var(--gold-light); }
.prompt-examples { display: grid; gap: 8px; }
.prompt-examples button {
  width: 100%;
  text-align: left;
  background: #f4f0e6;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
}
.understood {
  font-family: "Segoe UI", sans-serif;
  background: #f4f0e6;
  border-radius: 12px;
  padding: 12px;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
}
.consent input { width: auto; margin-top: 4px; }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.advisor-results { margin-top: 16px; }
.hold-panel {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fffdf8;
}
.hold-panel h2, .hold-panel h3 { margin: 0 0 8px; color: var(--navy); }
.hold-grid, .passenger-block, .reserve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.reserve-summary h2, .reserve-summary h3 { margin: 12px 0 6px; color: var(--navy); }
.schedule-list { margin: 0 0 8px; padding-left: 18px; font-family: "Segoe UI", sans-serif; font-size: 0.92rem; }
.qr-code { width: 180px; height: 180px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.passenger-block {
  grid-column: 1 / -1;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 12px 0 0;
}
.passenger-block legend { color: var(--navy); font-weight: 700; padding: 0; }
.advisor-results h2 { margin: 0 0 8px; color: var(--navy); }
.message {
  white-space: pre-wrap;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.9rem;
  background: #f4f0e6;
  border-radius: 12px;
  padding: 12px;
  max-height: 280px;
  overflow: auto;
}
@media (max-width: 860px) {
  .layout, .top { display: block; }
  .status { margin-top: 12px; }
  .advisor-form, .hold-grid, .passenger-block, .reserve-grid { grid-template-columns: 1fr; }
  .field.wide { grid-column: auto; }
}
