:root {
  --ink: #161616;
  --ink-2: #4b5563;
  --ink-3: #68697f;
  --line: #e0e3e5;
  --bg: #f1f2f8;
  --card: #ffffff;
  --sky: #05203c;          /* Skyscanner dark navy */
  --sky-2: #0c838a;
  --brand: #0770e3;        /* Skyscanner bright blue */
  --brand-2: #024daf;
  --accent: #00a698;
  --good: #00a698;
  --warn: #f55d42;
  --bad: #d1435b;
  --grad: #05203c;         /* solid navy — no more purple gradient */
  --shadow: 0 1px 3px rgba(37,32,31,.15);
  --shadow-lg: 0 4px 14px rgba(37,32,31,.25);
  --r: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select { font: inherit; }
h1, h2, h3 { margin: 0; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--sky); border-bottom: 1px solid #12314f; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  background: var(--brand); color: #fff; font-size: 19px; transform: rotate(-8deg); }
.brand-name { font-weight: 800; font-size: 22px; letter-spacing: -.5px; color: #fff; }
.topnav { display: flex; gap: 6px; }
.navlink { padding: 8px 16px; border-radius: 20px; font-weight: 600; color: #fff; }
.navlink:hover { background: rgba(255,255,255,.12); }
.navlink.active { color: var(--sky); background: #fff; }
.trip-count { background: var(--brand); color: #fff; border-radius: 20px; font-size: 11px;
  padding: 1px 7px; margin-left: 2px; font-weight: 700; }

/* ---------- hero ---------- */
.hero { background: var(--sky); padding: 34px 0 96px; color: #fff; position: relative; }
.hero-title { font-size: 38px; font-weight: 900; letter-spacing: -1px; }
.hero-title span { opacity: .85; }
.hero-sub { margin: 8px 0 0; font-size: 17px; opacity: .92; }

.search-card { margin-top: 22px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-lg);
  color: var(--ink); position: relative; }
.cat-tabs { display: flex; gap: 4px; padding: 8px 8px 0; overflow-x: auto; }
.cat-tab { display: flex; align-items: center; gap: 7px; padding: 11px 16px; border-radius: 12px 12px 0 0;
  font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.cat-tab .ic { font-size: 17px; }
.cat-tab:hover { background: var(--bg); }
.cat-tab.active { color: var(--brand); background: #eff6ff; }

.search-form { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; padding: 18px; align-items: end; }
/* Skyscanner-style boxed fields: label INSIDE the box */
.field { display: flex; flex-direction: column; gap: 2px; position: relative;
  border: 1px solid #c1c7cf; border-radius: 10px; background: #fff; padding: 8px 12px 7px; }
.field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 2px #0770e333; }
.field label { font-size: 11.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .2px; }
.field input, .field select { padding: 2px 0; border: none; border-radius: 0;
  background: transparent; color: var(--ink); outline: none; width: 100%; font-weight: 600; font-size: 15px; }
.swap { position: absolute; right: -18px; bottom: 9px; z-index: 3; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--brand); box-shadow: var(--shadow); }
.swap:hover { background: #eff6ff; }
.btn-search { grid-column: span 12; padding: 15px; border-radius: 10px; background: var(--brand); color: #fff;
  font-weight: 700; font-size: 16px; transition: transform .1s, filter .15s; }
.btn-search:hover { filter: brightness(1.05); } .btn-search:active { transform: translateY(1px); }

/* autocomplete */
.ac-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 50; background: #fff; margin-top: 4px;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 280px; overflow: auto; }
.ac-item { padding: 10px 13px; display: flex; justify-content: space-between; gap: 10px; cursor: pointer; }
.ac-item:hover, .ac-item.sel { background: #eff6ff; }
.ac-item .city { font-weight: 600; } .ac-item .meta { color: var(--ink-3); font-size: 13px; }
.ac-item .code { font-weight: 700; color: var(--brand); font-size: 13px; }

/* ---------- results ---------- */
.results-area { display: grid; grid-template-columns: 248px 1fr; gap: 22px; margin-top: -56px; padding-bottom: 60px; }
.filters { position: sticky; top: 78px; align-self: start; background: var(--card); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 18px; }
.filters h3 { font-size: 14px; margin-bottom: 12px; }
.filter-group { padding: 12px 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: none; padding-top: 0; }
.filter-group .fg-title { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase;
  letter-spacing: .4px; margin-bottom: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 11px; border-radius: 20px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 600;
  color: var(--ink-2); }
.chip:hover { border-color: var(--brand); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.range-val { font-size: 13px; color: var(--ink-2); font-weight: 600; }
input[type=range] { width: 100%; accent-color: var(--brand); }
.check { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--brand); width: 16px; height: 16px; }

.results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.results-head .rh-count { font-weight: 700; } .results-head .rh-count small { color: var(--ink-3); font-weight: 500; }
.sort-pills { display: flex; gap: 6px; flex-wrap: wrap; }

/* generic result card */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 14px;
  overflow: hidden; transition: box-shadow .15s, transform .1s; border: 1px solid transparent; }
.card:hover { box-shadow: var(--shadow-lg); border-color: #dbeafe; }

/* transport card */
.t-card { display: grid; grid-template-columns: 1fr auto; }
.t-main { padding: 16px 18px; }
.t-row1 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.op-logo { width: 38px; height: 38px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; font-size: 19px; }
.op-name { font-weight: 700; } .op-sub { font-size: 12px; color: var(--ink-3); }
.t-times { display: flex; align-items: center; gap: 14px; }
.t-point { text-align: center; } .t-point .tm { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.t-point .cd { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.t-path { flex: 1; text-align: center; min-width: 90px; }
.t-path .dur { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.t-line { height: 2px; background: var(--line); position: relative; margin: 6px 0; }
.t-line::after { content: "✈"; position: absolute; right: -2px; top: -9px; font-size: 12px; color: var(--brand); }
.t-line.train::after { content: "🚆"; } .t-line.bus::after { content: "🚌"; }
.t-path .stops { font-size: 12px; font-weight: 600; }
.stops.direct { color: var(--good); } .stops.has { color: var(--warn); }
.t-tags { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 600; color: var(--ink-2); background: var(--bg); padding: 3px 8px; border-radius: 6px; }
.t-side { border-left: 1px dashed var(--line); padding: 16px 18px; display: flex; flex-direction: column;
  align-items: flex-end; justify-content: center; gap: 8px; min-width: 168px; }
.price { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.price small { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.btn-pick { padding: 10px 20px; border-radius: 8px; background: var(--sky); color: #fff; font-weight: 700; }
.btn-pick:hover { filter: brightness(1.05); }
.rating-pill { display: inline-flex; align-items: center; gap: 4px; background: #ecfdf5; color: var(--good);
  font-weight: 700; font-size: 13px; padding: 2px 9px; border-radius: 7px; }
.best-badge { display: inline-flex; align-items: center; background: linear-gradient(135deg,#7c3aed,#4f46e5); color: #fff;
  font-weight: 700; font-size: 11px; letter-spacing: .02em; padding: 3px 9px; border-radius: 7px; white-space: nowrap; }

/* Skyscanner-style deals: one card per flight, expandable seller list */
.deals-toggle { margin-top: 10px; background: #f5f3ff; color: var(--brand, #4f46e5); border: 1.5px solid #ddd6fe;
  border-radius: 9px; padding: 7px 12px; font-weight: 700; font-size: 13px; cursor: pointer; }
.deals-toggle:hover { background: #ede9fe; }
.deals-list { margin-top: 8px; border: 1.5px solid var(--line); border-radius: 11px; overflow: hidden; }
.deal-row { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 13px; font-size: 13.5px; }
.deal-row + .deal-row { border-top: 1px solid var(--line); }
.deal-row .deal-src { font-weight: 600; }
.deal-row .deal-cta { display: flex; align-items: center; gap: 10px; }
.deal-btn { padding: 6px 14px; font-size: 12.5px; }

/* stay / rental card (with image header) */
.s-card { display: grid; grid-template-columns: 230px 1fr auto; }
.s-img { min-height: 168px; position: relative; display: grid; place-items: center; color: #fff; font-size: 48px; }
.s-badge { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.95); color: var(--ink);
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 7px; }
.s-main { padding: 16px 18px; } .s-main h3 { font-size: 17px; margin-bottom: 4px; }
.s-loc { color: var(--ink-3); font-size: 13px; margin-bottom: 10px; }
.s-amen { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.s-side { border-left: 1px dashed var(--line); padding: 16px 18px; display: flex; flex-direction: column;
  align-items: flex-end; justify-content: center; gap: 6px; min-width: 168px; }
.stars { color: var(--warn); font-size: 13px; }

/* empty-state inspiration */
.empty-state { padding: 40px 20px 70px; }
.es-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; }
.es-card { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); cursor: pointer;
  position: relative; min-height: 150px; display: flex; align-items: flex-end; color: #fff; }
.es-card:hover { transform: translateY(-3px); transition: transform .15s; }
.es-card .es-body { padding: 14px; position: relative; z-index: 2; }
.es-card .es-city { font-size: 19px; font-weight: 800; } .es-card .es-meta { font-size: 13px; opacity: .9; }
.es-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,.55)); }

/* ---------- trips ---------- */
.trips-wrap { padding: 34px 20px 80px; }
.section-title { font-size: 28px; font-weight: 800; letter-spacing: -.6px; margin-bottom: 20px; }
.trips-list { display: flex; flex-direction: column; gap: 14px; }
.trip { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); display: grid;
  grid-template-columns: 8px 56px 1fr auto; align-items: center; overflow: hidden; }
.trip .stripe { width: 8px; height: 100%; background: var(--grad); }
.trip .t-ic { font-size: 26px; text-align: center; }
.trip .t-body { padding: 16px 4px; } .trip .t-body h3 { font-size: 17px; }
.trip .t-body .sub { color: var(--ink-3); font-size: 13px; }
.trip .t-meta { padding: 16px 18px; text-align: right; }
.pnr { font-family: ui-monospace, monospace; font-weight: 700; letter-spacing: 1px; background: var(--bg);
  padding: 3px 8px; border-radius: 6px; font-size: 13px; }
.status { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 20px; display: inline-block; }
.status.CONFIRMED { background: #ecfdf5; color: var(--good); }
.status.CANCELLED { background: #fef2f2; color: var(--bad); }
.no-trips { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.no-trips .big { font-size: 52px; }

/* ---------- modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(4px);
  z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
/* the `hidden` attribute must win over the display:grid above, else the dark
   backdrop veils the whole page even when the modal is closed */
.modal-backdrop[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--card); border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%;
  max-width: 560px; max-height: 90vh; overflow: auto; animation: pop .18s; }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.modal-head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between;
  align-items: flex-start; gap: 12px; position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-head h2 { font-size: 20px; } .modal-head .mh-sub { color: var(--ink-3); font-size: 14px; margin-top: 3px; }
.x-btn { font-size: 22px; color: var(--ink-3); width: 34px; height: 34px; border-radius: 8px; }
.x-btn:hover { background: var(--bg); color: var(--ink); }
.modal-body { padding: 20px 22px; }
.fare-opt { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border: 1.5px solid var(--line);
  border-radius: 12px; margin-bottom: 9px; cursor: pointer; }
.fare-opt:hover { border-color: var(--brand); }
.fare-opt.sel { border-color: var(--brand); background: #eff6ff; box-shadow: 0 0 0 3px #2563eb18; }
.fare-opt .fo-name { font-weight: 700; } .fare-opt .fo-meta { font-size: 12px; color: var(--ink-3); }
.fare-opt .fo-price { font-weight: 800; font-size: 17px; }
.pax-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-body label.fl { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase;
  letter-spacing: .3px; display: block; margin: 12px 0 5px; }
.modal-body input { width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; outline: none; }
.modal-body input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px #2563eb22; }
.summary { background: var(--bg); border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.summary .sr { display: flex; justify-content: space-between; padding: 3px 0; font-size: 14px; }
.summary .sr.total { font-size: 18px; font-weight: 800; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 9px; }
.btn-confirm { width: 100%; padding: 15px; border-radius: 12px; background: var(--grad); color: #fff;
  font-weight: 800; font-size: 16px; box-shadow: var(--shadow); }
.btn-confirm:hover { filter: brightness(1.05); } .btn-confirm:disabled { opacity: .6; cursor: default; }
.btn-ghost { padding: 9px 16px; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 600; color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--bad); color: var(--bad); }

/* ticket / confirmation */
.ticket { text-align: center; padding: 8px 0 4px; }
.ticket .tk-ic { font-size: 54px; } .ticket h2 { font-size: 24px; margin: 6px 0; }
.ticket .tk-pnr { font-family: ui-monospace, monospace; font-size: 26px; font-weight: 800; letter-spacing: 3px;
  color: var(--brand); margin: 10px 0; }
.ticket .tk-line { color: var(--ink-2); }
.barcode { height: 44px; margin: 16px auto; max-width: 280px; background-image: repeating-linear-gradient(90deg,
  var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 9px); border-radius: 4px; opacity: .85; }

/* ---------- toast ---------- */
.toast-host { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow-lg);
  font-weight: 600; animation: slideup .2s; }
.toast.good { background: var(--good); } .toast.bad { background: var(--bad); }
@keyframes slideup { from { transform: translateY(14px); opacity: 0; } }

/* ---------- itinerary ---------- */
.itin-review { position: sticky; bottom: 14px; margin-top: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 14px 18px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.itin-review .btn-pick { padding: 11px 22px; }

/* ---------- upgrade advisor ---------- */
.advisor-hero { background: var(--grad); color: #fff; padding: 34px 0 30px; }
.advisor-hero .hero-title { font-size: 32px; } .advisor-hero .hero-sub { opacity: .92; }
.advisor-wrap { max-width: 760px; padding: 24px 20px 80px; }
.q-card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 26px; margin-top: -18px; }
.q-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.q-prog { flex: 1; height: 6px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.q-prog > div { height: 100%; background: var(--grad); border-radius: 6px; transition: width .2s; }
.q-title { font-size: 22px; letter-spacing: -.4px; margin-bottom: 16px; }
.q-card .chip-row { gap: 8px; } .q-card .chip { padding: 10px 16px; font-size: 14px; }
.adv-summary { background: #eff6ff; border-radius: 12px; padding: 14px 16px; font-weight: 600; margin: 8px 0 12px; }
.adv-critical { background: #fef2f2; color: var(--bad); border-radius: 12px; padding: 12px 16px; font-weight: 600; margin-bottom: 12px; }
.adv-live { border: 1.5px dashed var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 6px; }
.feas { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 20px; margin-left: 6px; }
.feas.yes { background: #ecfdf5; color: var(--good); } .feas.maybe { background: #fffbeb; color: var(--warn); } .feas.no { background: #f1f5f9; color: var(--ink-3); }
.rec { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.rec.yes { border-color: #a7f3d0; background: #f0fdf9; } .rec.no { opacity: .7; }
.rec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.rec-title { font-weight: 700; font-size: 16px; } .rec-cost { font-weight: 700; color: var(--ink-2); font-size: 14px; }
.rec-reason { color: var(--ink-2); font-size: 14px; margin-top: 5px; }
.rec-timing { font-size: 13px; margin-top: 6px; }
.rec-caveats { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.rec-steps { margin-top: 8px; font-size: 14px; } .rec-steps summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.rec-steps ol { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); }

/* ---------- admin ---------- */
.admin-wrap { padding: 30px 20px 80px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; }
.stat .sv { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.stat .sl { color: var(--ink-3); font-size: 13px; font-weight: 600; margin-top: 2px; }
.admin-panel { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; }
.admin-panel h3 { font-size: 15px; margin-bottom: 12px; }
.atable { width: 100%; border-collapse: collapse; font-size: 13px; }
.atable th { text-align: left; color: var(--ink-3); font-weight: 700; text-transform: uppercase; font-size: 11px;
  letter-spacing: .4px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.atable td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.atable tr:last-child td { border-bottom: none; }
.atable .pnr { font-size: 12px; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; }
.bar-track { background: var(--bg); border-radius: 6px; height: 10px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--grad); border-radius: 6px; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .admin-cols { grid-template-columns: 1fr; } }

.footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--ink-3); font-size: 13px; text-align: center; background: #fff; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .7s linear infinite; margin: 50px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.muted { color: var(--ink-3); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .results-area { grid-template-columns: 1fr; margin-top: -40px; }
  .filters { position: static; }
  .t-card, .s-card { grid-template-columns: 1fr; }
  .s-img { min-height: 140px; }
  .t-side, .s-side { border-left: none; border-top: 1px dashed var(--line); align-items: center; flex-direction: row; justify-content: space-between; }
  .hero-title { font-size: 30px; }
  .search-form > .field { grid-column: span 12 !important; }
}
@media (min-width: 901px) {
  .f-from, .f-to { grid-column: span 3; }
  .f-date, .f-ret, .f-days, .f-guests, .f-loc { grid-column: span 2; }
  .f-loc { grid-column: span 4; }
  .f-sort { grid-column: span 2; }
  .btn-search { grid-column: span 2; }
}

/* ── AI search bar + deal summary ─────────────────────────────── */
.ai-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 6px 6px 6px 14px;
  background: linear-gradient(135deg, #f5f3ff, #eff6ff); border: 1.5px solid #ddd6fe; border-radius: 14px; }
.ai-bar .ai-spark { font-size: 18px; }
.ai-bar input { flex: 1; border: none; background: transparent; font-size: 15px; padding: 10px 0; outline: none; color: var(--ink); }
.ai-bar .ai-go { background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff; border: none; border-radius: 10px;
  padding: 10px 18px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.ai-bar .ai-go:disabled { opacity: .6; cursor: wait; }
.ai-note { margin: -6px 0 12px; font-size: 13.5px; color: #5b21b6; font-weight: 600; }
.ai-summary { margin: 12px 0 2px; padding: 12px 16px; background: linear-gradient(135deg, #f5f3ff, #eff6ff);
  border: 1.5px solid #ddd6fe; border-radius: 12px; font-size: 14px; line-height: 1.5; color: #3b3663; }
.ai-summary .ai-spark { margin-right: 4px; }

/* ── Filters redesign ─────────────────────────────────────────── */
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.filters-head h3 { margin: 0; }
.f-count { display: inline-block; background: var(--brand); color: #fff; border-radius: 9px; font-size: 11.5px;
  font-weight: 800; padding: 1px 7px; vertical-align: 2px; }
.f-reset { background: none; border: none; color: var(--brand); font-weight: 700; font-size: 13px; cursor: pointer; padding: 4px; }
.f-reset:hover { text-decoration: underline; }
.tw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.tw { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.tw span { font-weight: 700; font-size: 12.5px; }
.tw small { color: var(--ink-3); font-size: 10.5px; }
.tw.active { border-color: var(--brand); background: #eff6ff; }
.tw.active span { color: var(--brand); }

/* itinerary header sits on the gradient — give it a card so it's readable */
.itin-top { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 14px; }
.itin-top .results-head { margin-bottom: 8px; }


/* ── Skyscanner-style Best / Cheapest / Fastest summary tabs ── */
.sum-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; background: #fff; margin-bottom: 14px; }
.sum-tab { padding: 12px 16px; text-align: left; border-right: 1px solid var(--line); background: #fff; }
.sum-tab:last-child { border-right: none; }
.sum-tab .st-name { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.sum-tab .st-price { font-size: 19px; font-weight: 800; letter-spacing: -.4px; }
.sum-tab .st-sub { font-size: 11.5px; color: var(--ink-3); }
.sum-tab.active { background: var(--sky); }
.sum-tab.active .st-name, .sum-tab.active .st-price { color: #fff; }
.sum-tab.active .st-sub { color: #b6c3d1; }
.f-from { color: var(--ink-3); font-size: 11.5px; font-weight: 600; margin-left: 4px; }

/* round-trip pairing rows */
.pr-leg { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; gap: 1px 10px; padding: 7px 0; align-items: center; }
.pr-leg + .pr-leg { border-top: 1px dashed var(--line); }
.pr-tag { grid-row: span 2; background: #eff3f8; color: var(--sky); font-weight: 800; font-size: 11px;
  border-radius: 7px; text-align: center; padding: 6px 0; }
.pr-time { font-size: 15.5px; }
.pr-meta { font-size: 12px; color: var(--ink-3); }

/* compare-on-other-sites row */
.other-sites { margin: 10px 0 4px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.other-sites a { color: var(--brand); text-decoration: none; font-weight: 700; }
.other-sites a:hover { text-decoration: underline; }
.os-dot { margin: 0 8px; color: var(--line); }

/* source attribution footer on result cards */
.src-foot { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--ink-3); }
.src-foot strong { color: var(--ink-2); }

/* airline filter rows: price + only quick-pick */
.op-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.op-row .op-l { display: flex; align-items: center; gap: 7px; min-width: 0; }
.op-row .op-r { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.op-only { background: none; border: none; color: var(--brand); font-size: 11.5px; font-weight: 700; cursor: pointer; padding: 2px 4px; visibility: hidden; }
.op-row:hover .op-only, .fg-title .op-only { visibility: visible; }

/* ✨ Explore grid — cheapest trips anywhere */
.explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.ex-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 16px 14px;
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none;
  color: var(--ink); border: 1.5px solid transparent; transition: transform .12s, border-color .12s; }
.ex-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.ex-card .ex-city { font-weight: 800; font-size: 18px; letter-spacing: -.3px; margin-top: 4px; }
.ex-card .ex-meta { font-size: 12px; color: var(--ink-3); }
.ex-card .ex-price { font-size: 24px; font-weight: 800; color: var(--brand); margin-top: 6px; }
.ex-card .ex-book { align-self: flex-start; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #7c3aed, #4f46e5); padding: 6px 14px; border-radius: 8px; }

/* PWA install button */
.install-btn { background: #fff; color: var(--sky); border-radius: 20px; padding: 8px 14px;
  font-weight: 700; font-size: 13px; margin-right: 6px; }
.install-btn:hover { background: #eef2ff; }

/* Compare-every-vendor strip */
.vendor-bar { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; margin: 12px 0 16px; box-shadow: var(--shadow); }
.vb-head { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.vb-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.vb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 20px;
  border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--ink); text-decoration: none;
  background: #fff; transition: border-color .12s, transform .1s; }
.vb-chip:hover { border-color: var(--brand); transform: translateY(-1px); }
.vb-chip .vb-go { color: var(--brand); font-weight: 800; }

/* High-margin upsell strips (insurance + tours) */
.upsell { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 13px 15px; margin: 0 0 12px; box-shadow: var(--shadow); }
.upsell.ins { border-color: color-mix(in srgb, var(--good) 35%, var(--line)); }
.upsell.trs { border-color: color-mix(in srgb, var(--brand-2, var(--brand)) 30%, var(--line)); }
.upsell .up-head { font-weight: 800; font-size: 14px; margin-bottom: 9px; }
.upsell .up-row { display: flex; flex-wrap: wrap; gap: 8px; }
.up-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 20px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; }
.up-chip:hover { border-color: var(--brand); transform: translateY(-1px); }
.up-chip .up-go { color: var(--brand); font-weight: 800; }

/* social + phone login */
.social-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 14px; border: 1px solid var(--line, #dfe4ea); border-radius: 10px;
  background: #fff; color: var(--ink, #1a1a2e); font-weight: 600; font-size: 14.5px;
  text-decoration: none; cursor: pointer; transition: background .12s, border-color .12s; }
.social-btn:hover { background: #f6f8fb; border-color: #c4ccd6; }
.social-btn .sg { display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; font-weight: 800; font-size: 14px;
  background: #fff; color: #ea4335; border: 1px solid #e6e6e6; }
.social-btn.fb { background: #1877f2; color: #fff; border-color: #1877f2; }
.social-btn.fb:hover { background: #166fe0; }
.social-btn.fb .sg { background: #fff; color: #1877f2; border: none; }
.or-sep { display: flex; align-items: center; text-align: center; margin: 6px 0 14px; color: var(--muted, #9aa5b1); font-size: 12px; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line, #eceff3); }
.or-sep span { padding: 0 12px; }
