*,*::before,*::after{box-sizing:border-box}
html{overflow-x:hidden;scroll-behavior:smooth}
body{font-family:'Inter','Manrope',sans-serif;background:#EEF1F8;color:#001A4A;min-height:100vh;-webkit-font-smoothing:antialiased;display:flex}   /* no overflow on <body>: it turns body into the scroll container and breaks the sticky topbar (html already clips overflow-x) */
::-webkit-scrollbar{width:5px;height:4px}
::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:99px}

/* ══════════════════════════════════════
   SIDEBAR — light style (Umrah match)
══════════════════════════════════════ */
:root{
  --tk-navy:#3A4FD9;      /* primary blue — Travilo */
  --tk-blue:#3A4FD9;
  --tk-blue-light:#7EA8FF;
  --tk-purple:#6B5BE6;
  --tk-teal:#34E8A8;      /* accent — success/highlight */
  --tk-teal-dk:#10C490;
  --tk-yellow:#FFD60A;    /* accent — badges/alerts */
  --tk-navy-dk:#001A4A;   /* deep navy — headings/dark bg */
  --tk-navy-darker:#0A1033;
  --secondary:#e5772c;
  --border:#e2e8f0;
  --bg:#EEF1F8;
  --white:#fff;
  --muted:#5B6686;
  --sb-w:220px;
  --font:'Inter','Manrope',system-ui,sans-serif;

  /* ── TYPE SCALE ──────────────────────────────────────────────
     One consistent 4-step scale instead of the previous mix of
     8/9/9.5/10/10.5/11/11.5/12/12.5/13/14/16/18px values.
     --fs-1 : micro labels, badges, section captions
     --fs-2 : secondary UI text — dropdowns, tabs, table headers
     --fs-3 : primary content — fare data, buttons, body copy
     --fs-4 : emphasis / headings
     Note: this scale governs on-page UI only. The WhatsApp/PNG
     "share card" markup generated in group-flights.js is a fixed-size
     export template rendered off-screen by html2canvas — its font
     sizes are tuned to that canvas, not the live page, so they're
     intentionally left out of this scale. */
  --fs-1:10px;
  --fs-2:12px;
  --fs-3:14px;
  --fs-4:16px;
}
/* ══ SIDEBAR — identical across all pages ══ */
.sidebar{
  width:var(--sb-w);flex-shrink:0;
  height:100vh;position:fixed;top:0;left:0;
  background:#fff;border-right:1px solid var(--border);
  display:flex;flex-direction:column;
  overflow-y:auto;z-index:900;
  transition:transform .25s cubic-bezier(.4,0,.2,1);
}
.sb-brand{padding:14px 18px 10px;border-bottom:1px solid var(--border);margin-bottom:8px;flex-shrink:0;}
.sb-section{margin-bottom:4px;flex-shrink:0;}
.sb-nav-label{font-size:var(--fs-1);font-weight:700;color:#6b7a99;letter-spacing:.9px;text-transform:uppercase;padding:10px 18px 4px;}
.sb-item{
  display:flex;align-items:center;gap:10px;
  padding:9px 18px;font-size:var(--fs-3);font-weight:500;
  color:#6b7a99;cursor:pointer;
  border-left:3px solid transparent;
  transition:all .15s;text-decoration:none;
  border-top:none;border-right:none;border-bottom:none;
  background:none;width:100%;font-family:inherit;
}
.sb-item i{font-size:var(--fs-3);width:16px;text-align:center;flex-shrink:0;}
.sb-item:hover{background:#f4f7fc;color:var(--tk-navy);}
.sb-item.active{background:#e8f3fb;color:var(--tk-navy);font-weight:600;border-left:3px solid var(--tk-blue);}
.sb-item.active i{color:var(--tk-blue);}
.sb-item-badge{margin-left:auto;font-size:var(--fs-1);font-weight:700;background:rgba(58,79,217,.12);color:var(--tk-blue);padding:2px 7px;border-radius:20px;border:1px solid rgba(58,79,217,.2);}
.sb-divider{height:1px;background:var(--border);margin:6px 16px;}
.sb-spacer{flex:1;}
.sb-logout-wrap{padding:10px 12px;border-top:1px solid var(--border);flex-shrink:0;}
.sb-footer{padding:10px 18px;border-top:1px solid var(--border);flex-shrink:0;}
.sb-footer-txt{font-size:var(--fs-1);color:#94a3b8;font-family:'DM Mono',monospace;}
.sb-toggle{display:none;position:fixed;bottom:20px;right:20px;z-index:1000;width:44px;height:44px;border-radius:12px;background:#3A4FD9;color:#fff;border:none;cursor:pointer;align-items:center;justify-content:center;font-size:var(--fs-4);box-shadow:0 4px 16px rgba(58,79,217,.4);}
.sb-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:190;backdrop-filter:blur(2px);}
/* ══ SIDEBAR STATS ══ */
.sb-stats{padding:4px 12px 8px;flex-shrink:0;}
.sb-stat-row{display:flex;align-items:center;justify-content:space-between;padding:5px 8px;border-radius:7px;margin-bottom:2px;transition:background .12s;}
.sb-stat-row:hover{background:#f4f7fc;}
.sb-stat-lbl{font-size:var(--fs-2);font-weight:500;color:#6b7a99;}
.sb-stat-val{font-size:var(--fs-2);font-weight:700;color:#3A4FD9;font-family:'DM Mono',monospace;background:rgba(58,79,217,.08);padding:1px 7px;border-radius:5px;border:1px solid rgba(58,79,217,.15);}

/* ══════════════════════════════════════
   MAIN WRAPPER
══════════════════════════════════════ */
.main-wrap{margin-left:var(--sb-w);flex:1;min-width:0;display:flex;flex-direction:column;min-height:100vh}

/* ══════════════════════════════════════
   TOP BAR (sticky)
══════════════════════════════════════ */
.topbar{
  background:#fff;border-bottom:1px solid #e2e8f0;
  position:sticky;top:0;z-index:100;
  box-shadow:0 1px 4px rgba(0,0,0,.05);
  flex-shrink:0;
}
.topbar-inner{
  padding:0 20px;height:52px;
  display:flex;align-items:center;gap:10px;
}
.topbar-page-title{
  font-size:var(--fs-3);font-weight:700;color:#3A4FD9;
  font-family:'Inter',sans-serif;letter-spacing:-.2px;
}
.topbar-page-sub{
  font-size:var(--fs-2);color:#94a3b8;font-weight:500;margin-top:1px;
}

/* Live chip */
.live-chip{display:flex;align-items:center;gap:5px;border:1px solid #bbf7d0;border-radius:99px;padding:3px 10px;transition:background .5s;flex-shrink:0;background:#f0fdf4}
.live-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}
.live-txt{font-size:var(--fs-1);font-weight:700;font-family:'Inter',sans-serif;white-space:nowrap}
@keyframes blink{0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.4)}50%{box-shadow:0 0 0 5px rgba(34,197,94,0)}}
.refresh-note{font-size:var(--fs-1);color:#94a3b8;font-family:'DM Mono',monospace;white-space:nowrap}

/* Feature 1: Row flash on fare change */


/* Feature 2: Changes badge */

/* ══════════════════════════════════════
   ANNOUNCEMENT TICKER
══════════════════════════════════════ */
.ticker-wrap{
  display:flex;align-items:stretch;
  border-bottom:1px solid #e2e8f0;
  background:linear-gradient(90deg,#e0f7fa,#f0fdff);
  overflow:hidden;flex-shrink:0;
}
.ticker-heading{
  display:flex;align-items:center;gap:6px;flex-shrink:0;
  background:#2E3EC4;color:#fff;
  padding:6px 14px;font-size:var(--fs-2);font-weight:700;
  letter-spacing:.03em;text-transform:uppercase;
  font-family:'Inter',sans-serif;white-space:nowrap;
}
.ticker-track-outer{flex:1;overflow:hidden;position:relative;display:flex;align-items:center}
.ticker-track{
  display:flex;list-style:none;margin:0;padding:0;
  animation:tickerScroll 22s linear infinite;
  white-space:nowrap;
}
.ticker-wrap:hover .ticker-track{animation-play-state:paused}
.ticker-track li{
  display:flex;align-items:center;gap:8px;
  padding:6px 40px 6px 14px;
  font-size:var(--fs-2);font-weight:600;color:#3A4FD9;
  font-family:'Inter',sans-serif;white-space:nowrap;flex-shrink:0;
}
.ticker-track li i{color:#e5772c}
@keyframes tickerScroll{
  0%{transform:translateX(0)}
  100%{transform:translateX(-50%)}
}

/* ══════════════════════════════════════
   FILTER BAR
══════════════════════════════════════ */
.filterbar{
  background:#fff;border-bottom:1px solid #e2e8f0;
  box-shadow:0 1px 3px rgba(0,0,0,.03);
  flex-shrink:0;
}
/* Row 1 — category chips (wrap onto new lines on narrow screens instead of
   horizontally scrolling/cutting off — matches reference design) */
.catbar-row{
  padding:6px 20px 5px;
}
#catTabs{
  display:flex;align-items:stretch;flex-wrap:wrap;
  gap:6px;
  width:fit-content;
}
/* Row 2 — filter controls */
.filterbar-inner{
  padding:6px 20px;
  display:flex;align-items:center;
}
.filterbar-inner .fbar{width:100%}
/* Search + Reset wrapper — invisible on desktop (children lay out directly
   in .fbar's flex row via display:contents), becomes a real flex row only
   inside the mobile grid below so Search can flex to fill the space next
   to a compact, fixed-width Reset button instead of each stretching full
   width on its own line. */
.fsearch-reset-row{display:contents}

/* Chips — separate rounded-rect buttons (outline when inactive, filled when active) */
.chip{
  display:inline-flex;align-items:center;gap:5px;
  padding:5px 12px;
  border:1px solid var(--tk-blue);
  background:#fff;
  font-size:var(--fs-1);font-weight:600;letter-spacing:0;text-transform:none;
  color:var(--tk-blue);
  cursor:pointer;white-space:nowrap;
  font-family:'Inter',sans-serif;
  transition:background .15s,box-shadow .15s,transform .12s,border-color .15s;
  user-select:none;line-height:1.4;
  border-radius:7px;
  position:relative;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}
.chip:hover{
  background:rgba(58,79,217,.08);
  box-shadow:0 3px 10px rgba(58,79,217,.16),0 1px 2px rgba(15,23,42,.04);
  transform:translateY(-1px);
}
.chip:active{
  transform:translateY(0) scale(.96);
  box-shadow:0 1px 2px rgba(15,23,42,.08);
  transition-duration:.05s;
}
.chip:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(58,79,217,.25),0 1px 2px rgba(15,23,42,.04);
}
.chip.active{
  background:var(--tk-blue);color:#fff;font-weight:700;z-index:1;
  border-color:var(--tk-blue);
  box-shadow:0 4px 14px rgba(58,79,217,.32),inset 0 1px 0 rgba(255,255,255,.16);
}
.chip.active:hover{
  box-shadow:0 6px 18px rgba(58,79,217,.38),inset 0 1px 0 rgba(255,255,255,.16);
  transform:translateY(-1px);
}
.chip.active:active{
  transform:translateY(0) scale(.96);
  box-shadow:0 2px 8px rgba(58,79,217,.3),inset 0 1px 0 rgba(255,255,255,.16);
}
.chip.active:focus-visible{
  box-shadow:0 0 0 3px rgba(58,79,217,.3),0 4px 14px rgba(58,79,217,.32),inset 0 1px 0 rgba(255,255,255,.16);
}
.chip .badge{margin-left:1px;font-size:var(--fs-1);font-weight:800;padding:1px 5px;border-radius:20px;line-height:1.4;transition:background .15s,color .15s}
.chip.active .badge{background:rgba(255,255,255,.3);color:#fff}
.chip:not(.active) .badge{background:rgba(58,79,217,.1);color:var(--tk-blue)}

/* Filter fields — independent boxed segments (like reference design). They wrap
   freely on narrow screens instead of being clipped or hidden, so every filter
   stays reachable on mobile. */
.fbar{display:flex;flex-wrap:wrap;align-items:stretch;gap:6px;background:transparent;border:none;box-shadow:none;overflow:visible;width:100%}
.fseg{display:flex;align-items:center;gap:7px;padding:0 11px;min-height:34px;border:1px solid #e2e8f0;border-radius:9px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.05);position:relative;flex:0 0 auto;width:136px;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .12s}
.fseg.fgrow{flex:1 1 200px;width:auto;cursor:default;min-width:170px}
.fseg:not(.fgrow):hover{border-color:var(--tk-blue);box-shadow:0 3px 10px rgba(15,23,42,.08);transform:translateY(-1px)}
.fseg:not(.fgrow):active{transform:translateY(0) scale(.98);box-shadow:0 1px 2px rgba(15,23,42,.06);transition-duration:.05s}
.fseg:focus-within{border-color:#3A4FD9;box-shadow:0 0 0 3px rgba(58,79,217,.12),0 3px 10px rgba(15,23,42,.06)}
.fseg::before{content:'';position:absolute;left:0;top:8px;bottom:8px;width:2px;border-radius:2px;background:#3A4FD9;opacity:0;transition:opacity .2s}
.fseg:focus-within::before{opacity:1}
.fseg-ico{font-size:var(--fs-2);color:#94a3b8;display:flex;flex-shrink:0;transition:color .15s}
.fseg:focus-within .fseg-ico,.fseg:hover .fseg-ico{color:#3A4FD9}
.fstack{display:flex;flex-direction:column;gap:0;min-width:0;flex:1}
.fstack-lbl{font-size:var(--fs-1);font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#94a3b8;line-height:1;margin-bottom:2px}
.fseg:focus-within .fstack-lbl{color:#3A4FD9}
.fsel{appearance:none;-webkit-appearance:none;background:transparent;border:none;outline:none;font-family:'Inter',sans-serif;font-size:var(--fs-2);font-weight:500;color:#0f172a;cursor:pointer;padding-right:14px;min-width:0;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fsel option{background:#fff;color:#0f172a}
.fcaret{position:absolute;right:9px;top:50%;transform:translateY(-50%);color:#94a3b8;font-size:var(--fs-1);pointer-events:none;transition:color .15s,transform .25s}
.fseg:focus-within .fcaret{color:#3A4FD9;transform:translateY(-50%) rotate(180deg)}
.fseg.open{border-color:#3A4FD9;box-shadow:0 0 0 3px rgba(58,79,217,.12);border-radius:10px 10px 0 0}
.fseg.open .fcaret{color:#3A4FD9;transform:translateY(-50%) rotate(180deg)}
.fseg.open .fseg-ico{color:#3A4FD9}
.fseg.open .fstack-lbl{color:#3A4FD9}

/* Custom dropdown panel — replaces the native <select> popup for Sector/
   Airline/Source so it renders styled and properly aligned under its
   trigger instead of the browser's unstyled native list. Multi-select:
   search box + Select All/Clear All stay fixed at the top, only the
   option list itself scrolls. */
.fsel-panel{
  position:fixed;z-index:1000;
  background:#fff;border:1.5px solid #3A4FD9;border-top:none;
  border-radius:0 0 14px 14px;
  box-shadow:0 16px 40px rgba(15,23,42,.16),0 4px 10px rgba(15,23,42,.06);
  overflow:hidden;padding:10px;
  visibility:hidden;opacity:0;transform:translateY(-6px) scale(.98);
  transform-origin:top center;
  transition:opacity .16s ease,transform .16s ease,visibility 0s linear .16s;
}
.fsel-panel.open{
  visibility:visible;opacity:1;transform:translateY(0) scale(1);
  transition:opacity .16s ease,transform .16s ease;
}
/* Full-width mobile variant — panel spans the filter bar edge-to-edge
   instead of sitting flush under the (often too-narrow) trigger box, so
   it needs its own rounded-on-all-sides treatment plus a small gap
   instead of the "attached to the box" flat top edge above. */
.fsel-panel.wide{border-top:1.5px solid #3A4FD9;border-radius:14px;margin-top:6px}

.fsel-search-wrap{
  display:flex;align-items:center;gap:9px;padding:0 12px;margin-bottom:8px;
  border:1.5px solid #e2e8f0;border-radius:10px;background:#f8fafc;
  transition:border-color .15s,background .15s,box-shadow .15s;
}
.fsel-search-wrap:focus-within{border-color:#3A4FD9;background:#fff;box-shadow:0 0 0 3px rgba(58,79,217,.12)}
.fsel-search-wrap i{color:#94a3b8;font-size:var(--fs-2)}
.fsel-search{
  flex:1;border:none;outline:none;background:transparent;padding:10px 0;
  font-family:'Inter',sans-serif;font-size:var(--fs-3);color:#0f172a;min-width:0;
}
.fsel-bulk{display:flex;align-items:center;justify-content:space-between;padding:0 2px 10px;border-bottom:1px solid #f1f5f9;margin-bottom:6px}
.fsel-bulk-btn{
  border:none;border-radius:7px;background:rgba(58,79,217,.08);padding:6px 11px;
  font-family:'Inter',sans-serif;font-size:12.5px;font-weight:700;color:var(--tk-blue);
  cursor:pointer;transition:background .12s;
}
.fsel-bulk-btn:hover{background:rgba(58,79,217,.16)}
.fsel-bulk-btn.muted{color:#64748b;background:#f1f5f9}
.fsel-bulk-btn.muted:hover{background:#e2e8f0}

.fsel-list{overflow-y:auto;display:flex;flex-direction:column;gap:2px;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}
.fsel-list::-webkit-scrollbar{width:6px}
.fsel-list::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}
.fsel-list::-webkit-scrollbar-thumb:hover{background:#94a3b8}
.fsel-opt-group{
  font-size:var(--fs-1);font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:#94a3b8;background:#f8fafc;padding:7px 11px;margin:5px 0 2px;border-radius:7px;
}
.fsel-opt{
  display:flex;align-items:center;gap:11px;padding:10.5px 12px;border-radius:9px;
  font-size:14.5px;font-weight:500;color:#0f172a;cursor:pointer;
  font-family:'Inter',sans-serif;transition:background .12s,color .12s;
}
.fsel-opt span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.fsel-opt input[type="checkbox"]{
  flex-shrink:0;width:19px;height:19px;margin:0;cursor:pointer;
  appearance:none;-webkit-appearance:none;position:relative;
  border:1.6px solid #cbd5e1;border-radius:6px;background:#fff;
  transition:border-color .15s,background .15s,box-shadow .15s;
}
.fsel-opt input[type="checkbox"]:hover{border-color:var(--tk-blue)}
.fsel-opt input[type="checkbox"]:checked{background:var(--tk-blue);border-color:var(--tk-blue)}
.fsel-opt input[type="checkbox"]:checked::after{
  content:'';position:absolute;left:5.5px;top:1.5px;width:5px;height:9px;
  border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);
}
.fsel-opt input[type="checkbox"]:focus-visible{box-shadow:0 0 0 3px rgba(58,79,217,.22)}
.fsel-opt:hover{background:rgba(58,79,217,.08)}
.fsel-opt.selected{background:rgba(58,79,217,.1);color:var(--tk-blue);font-weight:700}
.fsel-opt-empty{padding:14px 10px;font-size:var(--fs-3);color:#94a3b8;text-align:center}
.fsearch-input{background:transparent;border:none;outline:none;font-family:'Inter',sans-serif;font-size:var(--fs-2);font-weight:400;color:#0f172a;width:100%}
.fsearch-input::placeholder{color:#94a3b8}
.fclear{display:none;width:18px;height:18px;border-radius:50%;background:#e2e8f0;border:none;cursor:pointer;align-items:center;justify-content:center;color:#64748b;font-size:var(--fs-1);flex-shrink:0}
.fclear:hover{background:#cbd5e1;color:#334155}
.fclear.on{display:flex}
.freset-seg{width:44px!important;flex:0 0 44px;justify-content:center;padding:0;border-radius:10px;cursor:pointer}
.freset-seg:hover{border-color:rgba(58,79,217,.35)}
.freset-ico{width:24px;height:24px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:var(--fs-2);color:#94a3b8;background:transparent;border:1px solid transparent;transition:all .18s,transform .42s}
.freset-seg:hover .freset-ico{background:rgba(58,79,217,.06);border-color:rgba(58,79,217,.2);color:#3A4FD9;transform:rotate(180deg)}
.rb{position:absolute;top:4px;right:4px;width:14px;height:14px;border-radius:50%;background:#3A4FD9;color:#fff;font-size:var(--fs-1);font-weight:700;display:none;align-items:center;justify-content:center}
.rb.on{display:flex}

/* ══════════════════════════════════════
   PAGE CONTENT
══════════════════════════════════════ */
.page-content{
  flex:1;padding:16px 20px 48px;
}

/* PANELS */
.panel{display:none}
.panel.active{display:block}

/* Placeholder panels */
.coming-soon{
  max-width:480px;margin:60px auto;text-align:center;
}
.coming-soon-icon{
  width:64px;height:64px;border-radius:18px;
  background:linear-gradient(135deg,#3A4FD9,#2E3EC4);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 18px;
  box-shadow:0 6px 24px rgba(58,79,217,.2);
}
.coming-soon h2{font-size:var(--fs-4);font-weight:800;color:#3A4FD9;font-family:'Inter',sans-serif;margin-bottom:8px}
.coming-soon p{font-size:var(--fs-3);color:#64748b;line-height:1.6}
.coming-soon-badge{
  display:inline-block;margin-top:16px;
  font-size:var(--fs-1);font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  background:#dbeafe;color:#1e40af;padding:4px 14px;border-radius:20px;
}

/* ══════════════════════════════════════
   TABLE WRAP
══════════════════════════════════════ */
.tbl-wrap{border-radius:10px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.07),0 4px 14px rgba(0,0,0,.06);background:#fff}

/* ── Why the header used to show a "double bar" ──────────────────────────
   .tbl-scroll needs overflow-x:auto for horizontal scroll on narrow screens.
   Per the CSS overflow spec, once overflow-x isn't visible, overflow-y is
   auto too — the browser can't leave one axis visible and the other not.
   That silently makes .tbl-scroll (not the viewport) the containing block
   that thead th's position:sticky measures its "top" against. Since
   .tbl-scroll sits ~250px down the page (below the topbar/chips/filters),
   a top:53px offset put the header ~53px below the WRONG origin point —
   i.e. well into the table body — letting the sector-group row above it
   show through above the header. Fix: stop fighting the containing block
   and make .tbl-scroll the deliberate, bounded scroll pane the header
   sticks within (top:0 relative to it), instead of trying to stick to
   the viewport through it. */
.tbl-scroll{
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  max-height:calc(100vh - 220px);
  position:relative;
}
/* Right-edge fade + "swipe" hint — shown only while the table is actually
   scrollable AND not yet scrolled to the end, so mobile users can see at a
   glance that more columns (Baggage/Meal/Price/Source) sit off to the
   right instead of assuming the row just ends abruptly. Toggled by JS
   (.tbl-wrap.has-more-cols) based on scrollWidth vs clientWidth. */
.tbl-wrap{position:relative}
.tbl-wrap::after{
  content:'';position:absolute;top:0;right:0;bottom:8px;width:28px;
  background:linear-gradient(to right,rgba(255,255,255,0),rgba(255,255,255,.92));
  pointer-events:none;opacity:0;transition:opacity .2s;z-index:21;
}
.tbl-wrap.has-more-cols::after{opacity:1}
.tbl-scroll-hint{
  display:none;align-items:center;gap:5px;justify-content:center;
  font-size:var(--fs-1);font-weight:600;color:#5a7fa0;
  padding:5px 0 0;font-family:'Inter',sans-serif;
}
.tbl-wrap.has-more-cols .tbl-scroll-hint{display:flex}
.tbl-scroll-hint i{animation:swipeHint 1.4s ease-in-out infinite}
@keyframes swipeHint{0%,100%{transform:translateX(0)}50%{transform:translateX(4px)}}

/* Sticky header — thead stays pinned to the top of the scroll pane while
   scrolling through a long fare list, so column context (Date/Flight/
   Price…) is never lost. */
.fare-tbl thead th{
  position:sticky;
  top:0;
  z-index:20;
  background:var(--tk-navy-darker);
}

/* TABLE
   table-layout was "fixed", which forces every column to obey its
   colgroup % no matter what the cell actually contains — that's the root
   cause of both symptoms reported: short columns (Date/Route/Time) got
   their text clipped to "…", and Baggage (the one column exempted from
   ellipsis) had nowhere to put the overflow except a forced 2nd line.
   "auto" lets each column grow to fit its own content — combined with
   nowrap everywhere below (no ellipsis, no wrap) and the existing
   .tbl-scroll/swipe-hint horizontal scroll, every value renders on one
   full line on any device; a device too narrow to show every column just
   scrolls sideways instead of clipping or wrapping any of them. */
.fare-tbl{width:100%;border-collapse:collapse;min-width:680px;table-layout:auto;background:#fff;margin-top:-2px}
.fare-tbl thead{background:var(--tk-navy-darker)}
.fare-tbl thead tr{background:var(--tk-navy-darker)}
.fare-tbl thead th{padding:10px 14px;text-align:left;font-size:var(--fs-2);font-weight:600;color:#fff;letter-spacing:.03em;text-transform:capitalize;white-space:nowrap;font-family:'Inter',sans-serif}
.fare-tbl thead th.r{text-align:right}
.fare-tbl thead th.c{text-align:center}

/* GROUP HEADER — no border of its own; group separation is drawn by the
   full-row overlay lines below. */
.grp-tr td{padding:0;border:none}
.grp-inner{display:flex;align-items:center;padding:8px 14px;background:#fff}

/* ROW DIVIDERS — drawn as a single full-width overlay line on the <tr>
   itself (::after), NOT as a border on each <td>. Per-cell borders each
   restart their own dash/dot phase at their own left edge, so at every
   column boundary the pattern breaks into visibly disconnected segments
   with gaps — that's exactly the defect a per-cell border produces. A
   single pseudo-element spanning left:0 to right:0 on the row is one
   continuous line with no per-column seams, and works because position:
   relative on a <tr> gives its ::after (forced to display:block by
   position:absolute) a positioning context that escapes the table's
   cell layout. */
.data-tr{position:relative}
/* Row divider — single full-width dashed overlay line on the <tr> itself,
   using ::after (appended AFTER the real <td>s). NOTE: this must be ::after,
   not ::before — a ::before pseudo on a <tr> gets inserted as a phantom
   table-cell BEFORE the real cells during the browser's table anonymous-box
   fixup, which pushes every real column (starting with the Date column) to
   the right by the phantom cell's width. ::after is appended after the last
   real cell instead, so it can't shift anything. */
.data-tr::after{
  content:'';position:absolute;left:0;right:0;bottom:0;height:0;
  border-bottom:1px dashed #c9d4e8;pointer-events:none;
}
/* Between groups — solid white, full row width, overrides the dashed line
   on the last row's bottom edge. */
.last-tbl-row::after{
  border-bottom:3px solid #fff;
}

.data-tr td{padding:3px 5px;background:#ECFBFE;vertical-align:middle;border:none}
.data-tr.row-even td{background:#E4EAFB}
.data-tr:hover td{background:#C7D2F6!important}
.seg-cell{padding:0!important;border:none!important}
.seg-line{display:flex;align-items:center;gap:4px;padding:2px 14px;white-space:nowrap;min-height:18px}
.seg-icon{width:14px;text-align:center;flex-shrink:0}
.t-main{font-size:var(--fs-2);font-weight:700;color:#0f172a;font-family:'Inter',sans-serif;white-space:nowrap}
/* Route text — vendors sometimes send a long free-text destination
   (e.g. "LHE-ELQ (ELQ TO RUH BY BUS )"). With table-layout:auto + nowrap that one
   value widened the whole Route column for EVERY row, leaving a big empty gap
   between Route and Time. Cap the width and let only the long value wrap. */
.seg-line .rt-txt{white-space:normal;max-width:150px;line-height:1.25;overflow-wrap:anywhere}
.t-flt{font-size:var(--fs-2);font-weight:700;color:#0f172a;font-family:'Inter',sans-serif}
.t-via{font-size:var(--fs-2);font-weight:700;color:#0f172a;font-family:'Inter',sans-serif}
.price-cell,.meal-cell,.book-cell{padding:5px 14px;vertical-align:middle!important;background:inherit;border:none!important}
.price-cell{text-align:right}.meal-cell{text-align:center}.book-cell{text-align:center}

/* Baggage (5th column) — vendors send values of very different lengths
   ("20 Kg" vs "23+23+07 KG" for multi-leg fares). Under table-layout:auto
   this column now just grows to fit its longest value on one line, same
   as every other column, so no wrap/ellipsis special-case is needed here
   any more. */

/* Price format — currency label + amount, flex space-between (clean tabular look) */
.price-format{display:flex;align-items:baseline;justify-content:flex-end;gap:5px}
.price-format .pf-cur{font-size:var(--fs-1);font-weight:600;color:#7893ab;letter-spacing:.03em;text-transform:uppercase;flex-shrink:0}
.price-format .pf-amt{font-size:var(--fs-3);font-weight:700;color:#051036;white-space:nowrap;font-variant-numeric:tabular-nums}

/* VENDOR BADGES */
.vendor-badge{display:inline-block;font-size:var(--fs-1);font-weight:700;letter-spacing:.4px;padding:2px 5px;border-radius:3px;vertical-align:middle;text-transform:uppercase}
.share-cell{padding:0 6px!important;text-align:center;vertical-align:middle!important;background:inherit;border:none!important}
.share-btn{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:6px;border:1px solid #25D366;background:#fff;color:#25D366;cursor:pointer;transition:all .15s;font-size:var(--fs-2)}
.share-btn:hover{background:#25D366;color:#fff}
.share-btn.loading{border-color:#94a3b8;color:#94a3b8;pointer-events:none}
.vbadge-v1{background:#dbeafe;color:#1e40af}.vbadge-v2{background:#dcfce7;color:#15803d}
.vbadge-v3{background:#fef9c3;color:#92400e}.vbadge-v4{background:#fce7f3;color:#9d174d}
.vbadge-v5{background:#ede9fe;color:#5b21b6}.vbadge-v6{background:#fef3c7;color:#92400e}
.vbadge-v7{background:#f0fdf4;color:#166534}.vbadge-v8{background:#fff7ed;color:#c2410c}
.vbadge-v9{background:#fdf4ff;color:#7e22ce}.vbadge-v10{background:#ecfdf5;color:#065f46}
.vbadge-v11{background:#fef2f2;color:#991b1b}.vbadge-v12{background:#f0f9ff;color:#075985}
.vbadge-v13{background:#f5f3ff;color:#4c1d95}.vbadge-v14{background:#fff1f2;color:#9f1239}
.vbadge-v15{background:#ecfeff;color:#0e7490}.vbadge-v16{background:#fdf2f8;color:#86198f}
.vbadge-v17{background:#f0fdf4;color:#14532d}.vbadge-v18{background:#fff7ed;color:#9a3412}
.vbadge-v19{background:#f0f9ff;color:#0369a1}.vbadge-v20{background:#fafaf9;color:#44403c}
.vbadge-v21{background:#f0fdfa;color:#065f46}.vbadge-v22{background:#fdf4ff;color:#86198f}
.vbadge-v23{background:#f0fdf4;color:#15803d}.vbadge-v24{background:#e0f2fe;color:#0369a1}
.vbadge-v25{background:#fef9c3;color:#854d0e}
.vbadge-v26{background:#e0fdf4;color:#065f46}
.vbadge-v27{background:#fef3c7;color:#92400e}
.vbadge-v28{background:#e0e7ff;color:#3730a3}
.vbadge-v29{background:#d1fae5;color:#065f46}

/* TABLE FOOTER */
.tbl-foot{padding:8px 14px;background:#eaf4fb;border-top:1px solid #d0e8f5;display:flex;align-items:center}

/* SKELETON */
@keyframes shimmer{0%{background-position:200%}100%{background-position:-200%}}
.skel{background:linear-gradient(90deg,#e8eef5 25%,#d4dce8 50%,#e8eef5 75%);background-size:200% 100%;border-radius:5px;animation:shimmer 1.4s infinite}
@keyframes rowIn{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
.row-in{animation:rowIn .12s ease both}
.row-in.no-anim{animation:none}
@keyframes priceFlash{0%{background:#fef9c3;color:#b45309}60%{background:#fef9c3;color:#b45309}100%{background:transparent;color:inherit}}
.price-updated{animation:priceFlash 1.4s ease forwards}
.empty{text-align:center;padding:48px 20px}

/* MOBILE TOGGLE — defined above */

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media(max-width:1024px){
  .main-wrap{margin-left:var(--sb-w)}
}
@media(max-width:768px){
  .sidebar{transform:translateX(-220px);transition:transform .28s cubic-bezier(.4,0,.2,1)}
  .sidebar.open{transform:translateX(0)}
  .main-wrap{margin-left:0}
  .sb-toggle{display:flex}
  .sb-overlay{display:block;opacity:0;pointer-events:none;transition:opacity .28s}
  .sb-overlay.open{opacity:1;pointer-events:all}
  /* topbar */
  .topbar-inner{gap:6px;padding:0 12px}
  .refresh-note{display:none}
  .topbar-page-title{font-size:var(--fs-3)}
  .topbar-page-sub{font-size:var(--fs-1)}
  /* catbar row — chips wrap onto additional lines on narrow screens instead
     of requiring a horizontal swipe, so every category stays visible and
     reachable with a single tap. */
  .catbar-row{padding:6px 12px 5px}
  #catTabs{
    width:100%;flex-wrap:wrap;
  }
  .chip{flex-shrink:0}
  /* ticker */
  .ticker-heading{padding:5px 10px;font-size:var(--fs-1)}
  .ticker-track li{padding:5px 26px 5px 10px;font-size:var(--fs-2)}
  /* filter row — was flex-wrap with fixed-px filter widths, which depended
     on exact pixel arithmetic (box width + padding + gaps fitting inside
     the container) to land 2-per-row. That's fragile: on devices with a
     boosted OS font/display scale, a different viewport width, or just a
     rounding difference, the math can tip over and every filter drops to
     its own full-width row instead. A 2-column CSS grid isn't arithmetic —
     it's a fixed structural rule, so Sector/Airline/Source/Date always sit
     2-per-row exactly the same way on every phone. */
  /* Filter panel — inset as its own rounded, centered card (margin on both
     sides + radius + border + soft shadow) instead of a full-bleed strip
     flush with the screen edges. This is what makes it read as a distinct,
     centered control panel on mobile rather than a cramped edge-to-edge
     toolbar. */
  .filterbar{
    margin:10px 12px 0;
    border-radius:14px;
    border:1px solid var(--border);
    box-shadow:0 2px 12px rgba(15,35,90,.07);
    overflow:hidden;
  }
  .filterbar-inner{padding:12px}
  .fbar{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .fseg{padding:0 12px;min-height:42px;width:auto!important;flex:none;border-radius:10px}
  .fseg.fgrow{min-width:0;width:auto;order:0;flex:1}
  .freset-seg{width:44px!important;flex:0 0 44px;min-height:42px}
  .fsearch-reset-row{
    display:flex;grid-column:1/-1;gap:8px;align-items:stretch;
  }
  .fsel{min-width:0;font-size:var(--fs-2)}
  .fstack-lbl{display:none}
  /* dropdown panel (Sector/Airline/Source) — now sized to match its trigger's
     own (grid-stretched) width rather than the full filter bar, so text/
     padding need to shrink accordingly to stay comfortable in that narrower
     space. */
  .fsel-panel{padding:9px}
  .fsel-search-wrap{padding:0 10px;margin-bottom:7px}
  .fsel-search{padding:9px 0}
  .fsel-bulk{padding:0 2px 9px;margin-bottom:5px}
  .fsel-bulk-btn{padding:5px 9px;font-size:11.5px}
  .fsel-opt{padding:9.5px 10px;font-size:13.5px}
  .fsel-opt input[type="checkbox"]{width:17px;height:17px}
  .page-content{padding:10px 10px 48px}
  /* table header + cell padding — the desktop 14px side padding eats too
     much of an already-tight column budget below 768px (e.g. a 72px-wide
     Price column loses 28px to padding alone before any digit is drawn).
     Trimming it back gives every narrow column real room for its content. */
  .fare-tbl thead th{padding:9px 8px}
  .price-cell,.meal-cell,.book-cell{padding:5px 6px}
  /* Body cell padding — .seg-line (Date/Flight/Route/Time/Baggage) kept the
     desktop 14px-per-side padding here even though thead/price/meal/book
     were already trimmed above. That leftover 28px per cell, stacked on
     top of the Date column's own checkbox (18px) + icon (14px) overhead,
     is what was squeezing "28 Aug 2026"/"ISB-MCT"/"10:55 - 13:20" down to
     a couple of characters before the ellipsis kicked in. Trimming it to
     match the ≤480 value reclaims real room for every one of these cells. */
  .seg-line{padding:2px 8px}
  /* Price — "PKR" + a 6-digit amount side-by-side needs ~85-95px to never
     wrap mid-number. Stacking the currency label above the amount (common
     on fare-comparison apps) cuts that requirement roughly in half, so the
     Price column can stay narrow without the amount itself ever clipping. */
  .price-format{flex-direction:column;align-items:flex-end;gap:0}
  .price-format .pf-cur{font-size:9px}
  /* Column widths — explicit px per column (same approach as the ≤480
     block below) instead of leaving 481-768px to the base % colgroup.
     Percentages alone are fine in theory, but pin every column to a real
     px value here too so Meal and every other column render at a
     guaranteed, legible size on every phone in this range, not just under
     480px. Table keeps its horizontal scroll (swipe hint) for anything
     narrower than the sum.
     Widths below are sized to what each column's real content needs
     (checkbox + icon + text where applicable), not just picked to look
     balanced — the old numbers here (84/62/82/88) gave Date/Route/Time
     less room than the padding+icon+checkbox overhead alone consumed, so
     "28 Aug 2026", "ISB-MCT" and "10:55 - 13:20" were clipped to a couple
     of characters. Meal only ever holds "Yes"/"No" so it gives up width
     to fund the increases. min-width is the exact sum of the columns
     below (no slack), so the table's rendered width always matches. */
  .fare-tbl{min-width:790px}
  colgroup col:nth-child(1){width:126px!important}
  colgroup col:nth-child(2){width:76px!important}
  colgroup col:nth-child(3){width:88px!important}
  colgroup col:nth-child(4){width:112px!important}
  colgroup col:nth-child(5){width:74px!important}
  colgroup col:nth-child(6){width:52px!important}
  colgroup col:nth-child(7){width:72px!important}
  colgroup col:nth-child(8){width:114px!important}
  colgroup col:nth-child(9){width:76px!important}
}
@media(max-width:360px){
  /* Below ~360px even a 2-column grid leaves each filter quite cramped
     (icon + label + chevron in ~150px). Dropping to a single column here
     trades a slightly taller filter bar for filters that are actually
     comfortable to read and tap, rather than squeezing text down to an
     unreadable size. */
  .fbar{grid-template-columns:1fr}
  .fseg.fgrow{grid-column:1}
}
@media(max-width:480px){
  /* topbar */
  .topbar-inner{padding:0 10px;height:46px}
  .topbar-page-sub{display:none}
  /* catbar row */
  .catbar-row{padding:5px 8px 4px}
  .chip{font-size:var(--fs-1);padding:5px 11px}
  /* ticker — icon only, hide label text to save space */
  .ticker-heading .th-txt{display:none}
  .ticker-heading{padding:6px 9px}
  .ticker-track li{padding:5px 22px 5px 8px;font-size:var(--fs-2)}
  /* filter row */
  .filterbar-inner{padding:5px 8px}
  .fseg{padding:0 8px;min-height:34px}
  .fsel{font-size:var(--fs-2)}
  /* dropdown panel — further tightened for the narrowest phones on top of
     the 768px sizing above. */
  .fsel-panel{padding:7px}
  .fsel-bulk-btn{padding:4px 8px;font-size:10.5px}
  .fsel-opt{padding:8.5px 9px;font-size:13px}
  /* calendar full-width */
  #calPopup{left:8px!important;right:8px!important;width:calc(100vw - 16px)!important;min-width:unset!important}
  /* table — explicit px widths per column instead of relying on the base
     colgroup's percentages. Percentages of a squeezed min-width were the
     actual cause of the follow-up bug: shrinking min-width shrank Price/
     Baggage/Source proportionally too, so PKR amounts and vendor names
     ("AMEER E MILLAT") started getting cut off mid-word.
     Widths below are the same content-driven numbers used in the
     ≤768px block above (this block wins the cascade at ≤480px, so it
     needs its own copy, not just a comment): Date/Flight/Route/Time
     include the real overhead of the row checkbox + leg icon + cell
     padding, not just a share of whatever's left over. Previously this
     block gave Date only 74px and Time only 80px — less than the
     checkbox+icon+padding overhead alone on some of them — which is why
     "28 Aug 2026" and "10:55 - 13:20" were clipped to 2-3 characters.
     min-width is the exact sum of the columns below, so the table's
     rendered width always matches and anything narrower scrolls (swipe
     hint) instead of squeezing text until it clips.
     Column order: 1 Date 2 Flight 3 Route 4 Time 5 Baggage 6 Meal
     7 Price 8 Source 9 Actions */
  .page-content{padding:8px 8px 44px}
  .fare-tbl{min-width:790px}
  colgroup col:nth-child(1){width:126px!important}
  colgroup col:nth-child(2){width:76px!important}
  colgroup col:nth-child(3){width:88px!important}
  colgroup col:nth-child(4){width:112px!important}
  colgroup col:nth-child(5){width:74px!important}
  colgroup col:nth-child(6){width:52px!important}
  colgroup col:nth-child(7){width:72px!important}
  colgroup col:nth-child(8){width:114px!important}
  colgroup col:nth-child(9){width:76px!important}
  .fare-tbl thead th{padding:7px 8px;font-size:var(--fs-1)}
  .seg-line{padding:2px 8px}
  .price-cell,.meal-cell,.book-cell{padding:4px 6px}
  .price-format{min-width:0;gap:4px}
  .price-format .pf-cur{font-size:9px}
  .price-format .pf-amt{font-size:var(--fs-2)}
  .grp-inner{padding:6px 10px}
  .vendor-badge{font-size:9px;padding:2px 4px;white-space:normal;line-height:1.2}
}

/* ══════════════════════════════════════
   PREMIUM CALENDAR POPUP
══════════════════════════════════════ */
/* ══ CALENDAR POPUP ══ */
#calPopup{
  display:none;
  position:fixed;
  z-index:9999;
  width:252px;
  background:#fff;
  border-radius:12px;
  box-shadow:0 4px 6px -1px rgba(0,0,0,.08),0 16px 40px -6px rgba(0,100,140,.18),0 0 0 1px rgba(58,79,217,.12);
  overflow:hidden;
  user-select:none;
  font-family:'Inter',sans-serif;
}

/* ─ Header ─ */
.cal-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 12px 8px;
  background:#fff;border-bottom:1px solid #e0f4fc;
}
.cal-month-lbl{
  font-size:var(--fs-2);font-weight:700;
  color:#0d1b3e;letter-spacing:.2px;
}
.cal-nav-btn{
  width:24px;height:24px;border-radius:6px;
  border:1px solid #e0f4fc;
  background:#f7fbff;
  color:#001A4A;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  font-size:var(--fs-1);transition:background .13s;flex-shrink:0;
}
.cal-nav-btn:hover{background:#e0f7ff;}

/* ─ Weekday labels ─ */
.cal-weekdays{
  display:grid;grid-template-columns:repeat(7,1fr);
  padding:7px 8px 3px;
  background:#fff;
  border-bottom:1px solid #f0f0f0;
}
.cal-weekdays span{
  text-align:center;font-size:var(--fs-1);font-weight:700;
  color:#3A4FD9;letter-spacing:.3px;text-transform:uppercase;
}

/* ─ Grid ─ */
.cal-grid{
  display:grid;grid-template-columns:repeat(7,1fr);
  gap:2px;padding:6px 8px 8px;
  background:#fff;
}

/* ─ Day cells ─ */
.cal-day{
  position:relative;
  width:100%;aspect-ratio:1;
  border-radius:7px;border:none;
  font-size:var(--fs-2);font-weight:500;
  cursor:default;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  gap:2px;
  background:transparent;
  color:#c8d9e6;
  font-family:'Inter',sans-serif;
  transition:background .12s,color .12s,transform .1s;
  line-height:1;
}
/* Available date */
.cal-day.avail{
  color:#0d1b3e;
  cursor:pointer;
  font-weight:600;
}
.cal-day.avail:hover{
  background:#e0f7ff;
  color:#001A4A;
  transform:scale(1.1);
}
.cal-day.avail:hover .cal-dot{background:#001A4A;}
/* Today marker */
.cal-day.today{color:#c8d9e6;}
/* Selected */
.cal-day.selected{
  background:linear-gradient(135deg,#001A4A,#3A4FD9);
  color:#fff!important;
  font-weight:700;
  box-shadow:0 2px 8px rgba(58,79,217,.38);
  transform:scale(1.08);
}
.cal-day.selected .cal-dot{background:rgba(255,255,255,.8)!important;}
.cal-day.selected:hover{transform:scale(1.08);}

/* ─ Theme-colored availability dot ─ */
.cal-dot{
  width:4px;height:4px;border-radius:50%;
  background:#3A4FD9;
  flex-shrink:0;
}

/* ─ Footer ─ */
.cal-footer{
  display:flex;align-items:center;justify-content:space-between;
  padding:5px 12px 8px;
  border-top:1px solid #e8f5fc;
}
.cal-legend{
  display:flex;align-items:center;gap:4px;
  font-size:var(--fs-1);font-weight:500;color:#94a3b8;
}
.cal-legend .cal-dot{width:5px;height:5px;}
.cal-clear-btn{
  font-size:var(--fs-1);font-weight:600;
  color:#001A4A;background:none;border:none;
  cursor:pointer;padding:2px 7px;border-radius:5px;
  transition:background .12s;
}
.cal-clear-btn:hover{background:#e0f7ff;}

/* ─ Open animation ─ */
@keyframes calIn{
  from{opacity:0;transform:translateY(-5px) scale(.97)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
#calPopup.open{
  display:block;
  animation:calIn .16s cubic-bezier(.34,1.1,.64,1) both;
}

/* ══ MULTI-COPY FLOATING BAR ══ */
#multiCopyBar{
  position:fixed;bottom:18px;left:50%;transform:translateX(-50%);
  z-index:500;
  display:flex;align-items:center;gap:8px;
  background:#0d1b3e;color:#fff;
  padding:9px 14px;border-radius:14px;
  box-shadow:0 4px 24px rgba(0,0,0,.35);
  font-family:'Inter',sans-serif;font-size:var(--fs-3);
  opacity:0;pointer-events:none;
  transition:opacity .2s,transform .2s;
  transform:translateX(-50%) translateY(12px);
  white-space:nowrap;
}
#multiCopyBar.visible{
  opacity:1;pointer-events:auto;
  transform:translateX(-50%) translateY(0);
}
#multiCopyBar .mc-count{
  background:#3A4FD9;border-radius:8px;
  padding:2px 8px;font-weight:700;font-size:var(--fs-2);
}
#multiCopyBar button{
  border:none;cursor:pointer;border-radius:8px;
  font-family:'Inter',sans-serif;font-size:var(--fs-2);font-weight:600;
  padding:5px 12px;transition:background .15s;
}
#mcCopySelBtn{ background:#3A4FD9;color:#fff; }
#mcCopySelBtn:hover{ background:#0e7490; }
#mcCopyAllBtn{ background:#1e40af;color:#fff; }
#mcCopyAllBtn:hover{ background:#1d3791; }
#mcClearBtn{ background:rgba(255,255,255,.12);color:#cbd5e1; }
#mcClearBtn:hover{ background:rgba(255,255,255,.2); }
#mcCloseBar{ background:transparent;color:#94a3b8;font-size:var(--fs-3);padding:4px 6px; }
#mcCloseBar:hover{ color:#fff; }

/* Sector checkbox */
.sec-chk-wrap{
  display:flex;align-items:center;justify-content:center;
  width:24px;height:24px;flex-shrink:0;cursor:pointer;
  margin-right:2px;
}
.sec-chk{
  width:15px;height:15px;border-radius:4px;border:2px solid #b8d4e8;
  background:#fff;cursor:pointer;accent-color:#3A4FD9;
  transition:border-color .15s;
}
.sec-chk:checked{ border-color:#3A4FD9; }
.grp-tr.sec-selected > td{
  background:#edf8ff !important;
  outline:2px solid #3A4FD9;
  outline-offset:-1px;
}
/* Individual flight checkbox (multi-copy) */
.flt-chk-wrap{
  display:inline-flex;align-items:center;justify-content:center;
  width:18px;height:18px;flex-shrink:0;cursor:pointer;
  vertical-align:middle;margin-right:4px;
}
/* Date cell that carries the row checkbox — keep checkbox + date lines in one
   row instead of the checkbox (inline) sitting above the date div(s) (block),
   which is what happens with the default stacking behavior of .seg-cell.
   NOTE: the flex layout lives on an inner .date-chk-row wrapper, NOT on the
   <td> itself. Setting display:flex directly on a table cell takes it out of
   normal table-cell layout, so it stops stretching to the row's full height
   the way its sibling <td>s do — that gap of exposed white background is
   what showed up as a stray line under the date. Keeping the <td> a plain
   table-cell (vertical-align:middle from .data-tr td) and flexing the inner
   div instead fixes that while still laying out checkbox + date inline. */
.date-chk-cell{
  height:100%;
}
.date-chk-row{
  display:flex;align-items:center;height:100%;
}
.seg-lines-col{
  display:flex;flex-direction:column;flex:1;min-width:0;
}
.flt-chk{
  width:14px;height:14px;border-radius:4px;border:2px solid #b8d4e8;
  background:#fff;cursor:pointer;accent-color:#3A4FD9;
  transition:border-color .15s;
}
.flt-chk:checked{ border-color:#3A4FD9; }
.data-tr.flt-selected td{
  background:#d7f0ff !important;
  outline:2px solid #3A4FD9;
  outline-offset:-1px;
}
/* Copy All button in top results bar */
#copyAllTopBtn{
  display:flex;align-items:center;gap:5px;
  background:#0d1b3e;color:#fff;border:none;cursor:pointer;
  border-radius:7px;padding:5px 11px;
  font-family:'Inter',sans-serif;font-size:var(--fs-2);font-weight:600;
  white-space:nowrap;transition:background .15s;
}
#copyAllTopBtn:hover{ background:#1e3a6e; }


/* ══════════════════════════════════════════════════════════════════
   FILTER BAR — TravelLink reference design (teal outline chips +
   "Search by Dept Date" / "Search by Keyword" boxes).
   Measured from the reference screenshot: teal #009BB2, 24px chips,
   4px radius, 28px fields with #ddd border, container border #cecece.
   Placed last so it overrides the earlier .filterbar/.chip rules.
══════════════════════════════════════════════════════════════════ */
.filterbar{
  background:#fff;border:1px solid #cecece;border-radius:4px;
  margin:8px 20px 0;box-shadow:0 2px 8px rgba(0,0,0,.05);overflow:visible;
}
.tl-form{padding:12px 22px 15px;display:flex;flex-direction:column;gap:3px;font-family:'Roboto','Inter',sans-serif}
.filterbar .catbar-row{padding:0}
.filterbar #catTabs{display:flex;flex-wrap:wrap;align-items:center;gap:3px;width:100%}
.filterbar .chip{
  height:24px;padding:0 7px;gap:0;
  border:1px solid #009BB2;border-radius:4px;background:#fff;color:#009BB2;
  font-family:'Roboto','Inter',sans-serif;font-size:12px;font-weight:500;line-height:1;
  box-shadow:none;transform:none;transition:background .15s,color .15s;
}
.filterbar .chip:hover{background:#009BB2;color:#fff;box-shadow:none;transform:none}
.filterbar .chip:active{transform:none;box-shadow:none}
.filterbar .chip:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(0,155,178,.25)}
.filterbar .chip.active,.filterbar .chip.active:hover{background:#009BB2;border-color:#009BB2;color:#fff;font-weight:500;box-shadow:none;transform:none}
.filterbar .chip .badge{display:none}

.tl-right{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px}
.tl-right .tl-adv{display:contents!important}   /* Sector/Airline/Source boxes sit in the same row as Date/Keyword */
.tl-field{
  position:relative;display:flex;align-items:center;gap:9px;
  width:170px;height:28px;padding:0 10px 0 14px;
  background:#fff;border:1px solid #ddd;border-radius:4px;
  font-family:'Roboto','Inter',sans-serif;font-size:12px;font-weight:400;color:#1a1a1a;
}
.tl-field:focus-within{border-color:#009BB2}
.tl-field>i{font-size:13px;color:#1a1a1a;flex-shrink:0}
.tl-field input[type=text]{flex:1;min-width:0;border:0;outline:0;background:transparent;padding:0;font:inherit;color:inherit}
.tl-field input::placeholder{color:#1a1a1a;opacity:1}
.tl-field .fclear{width:16px;height:16px}
#dateSegBtn{cursor:pointer;user-select:none}
.tl-datelbl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media(max-width:768px){
  .filterbar{margin:10px 12px 0;border-radius:4px;overflow:visible}
  .tl-form{padding:10px 12px 12px}
  .tl-right{justify-content:stretch}
  .tl-field{flex:1 1 150px;width:auto}
}

/* ── Sector / Airline / Source — same box design as the Date/Keyword fields ── */
.tl-right .fseg{
  display:flex;align-items:center;gap:9px;position:relative;
  width:170px!important;min-width:0;min-height:0!important;height:28px;flex:0 0 auto!important;
  padding:0 10px 0 14px!important;
  background:#fff;border:1px solid #ddd;border-radius:4px!important;
  box-shadow:none;transform:none!important;cursor:pointer;
  font-family:'Roboto','Inter',sans-serif;font-size:12px;color:#1a1a1a;
}
.tl-right .fseg::before{display:none}
.tl-right .fseg:hover,.tl-right .fseg:focus-within,.tl-right .fseg.open{border-color:#009BB2;box-shadow:none;transform:none}
.tl-right .fseg.open{border-radius:4px 4px 0 0!important}
.tl-right .fseg .fseg-ico{font-size:13px;color:#1a1a1a!important;flex-shrink:0}
.tl-right .fseg .fstack{display:flex;flex:1;min-width:0}
.tl-right .fseg .fstack-lbl,.tl-right .fseg .fcaret{display:none!important}
.tl-right .fseg .fsel,.tl-right .fseg .fsel-label{
  font-family:'Roboto','Inter',sans-serif;font-size:12px;font-weight:400;color:#1a1a1a;
  padding:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}

/* ── Dropdown panel — teal / Roboto 12px to match ── */
.fsel-panel{
  border:1px solid #009BB2;border-top:none;border-radius:0 0 4px 4px;
  box-shadow:0 6px 16px rgba(0,0,0,.12);padding:8px;font-family:'Roboto','Inter',sans-serif;
}
.fsel-panel.wide{border-top:1px solid #009BB2;border-radius:4px}
.fsel-search-wrap{height:28px;padding:0 10px;margin-bottom:6px;border:1px solid #ddd;border-radius:4px;background:#fff;gap:8px}
.fsel-search-wrap:focus-within{border-color:#009BB2;box-shadow:none;background:#fff}
.fsel-search-wrap i{color:#1a1a1a;font-size:12px}
.fsel-search{padding:0;font-family:'Roboto','Inter',sans-serif;font-size:12px;color:#1a1a1a}
.fsel-bulk{padding:0 0 7px;margin-bottom:4px}
.fsel-bulk-btn{height:24px;padding:0 8px;border:1px solid #009BB2;border-radius:4px;background:#fff;color:#009BB2;font-family:'Roboto','Inter',sans-serif;font-size:12px;font-weight:500}
.fsel-bulk-btn:hover{background:#009BB2;color:#fff}
.fsel-bulk-btn.muted,.fsel-bulk-btn.muted:hover{background:#fff;color:#1a1a1a;border-color:#ddd}
.fsel-bulk-btn.muted:hover{border-color:#009BB2;color:#009BB2}
.fsel-opt{padding:6px 8px;gap:9px;border-radius:4px;font-family:'Roboto','Inter',sans-serif;font-size:12px;font-weight:400;color:#1a1a1a}
.fsel-opt:hover{background:rgba(0,155,178,.08)}
.fsel-opt.selected{background:rgba(0,155,178,.1);color:#009BB2;font-weight:500}
.fsel-opt input[type="checkbox"]{width:15px;height:15px;border-radius:3px;border:1px solid #bbb}
.fsel-opt input[type="checkbox"]:hover{border-color:#009BB2}
.fsel-opt input[type="checkbox"]:checked{background:#009BB2;border-color:#009BB2}
.fsel-opt input[type="checkbox"]:checked::after{left:4.5px;top:1px;width:4px;height:8px}
.fsel-opt input[type="checkbox"]:focus-visible{box-shadow:0 0 0 3px rgba(0,155,178,.25)}
.fsel-opt-group{font-family:'Roboto','Inter',sans-serif;font-size:11px;border-radius:4px}
.fsel-opt-empty{font-family:'Roboto','Inter',sans-serif;font-size:12px}

@media(max-width:768px){
  .tl-right .fseg{flex:1 1 150px!important;width:auto!important}
}

/* ══════════════════════════════════════════════════════════════════
   CALENDAR — flatpickr, matched to the reference screenshot:
   default flatpickr geometry (308px wide, 39px cells), large 8px-rounded
   white card, grey ring on "today", light-grey adjacent-month days,
   bigger day numbers, bold grey weekday row.
══════════════════════════════════════════════════════════════════ */
.flatpickr-calendar{
  font-family:'Roboto','Inter',sans-serif;z-index:9999!important;
  border-radius:8px;background:#fff;
  box-shadow:0 2px 12px rgba(0,0,0,.28);
}
.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{display:none}
.flatpickr-months{padding-top:6px}
.flatpickr-current-month{font-size:20px;color:#1a1a1a}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year{font-family:'Roboto','Inter',sans-serif;font-size:20px;font-weight:400;color:#1a1a1a}
.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{color:#1a1a1a;fill:#1a1a1a}
.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#1a1a1a}
span.flatpickr-weekday{font-size:13px;font-weight:700;color:#555;background:transparent}
.flatpickr-day{font-size:17px;font-weight:400;color:#484848}
.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay{color:rgba(72,72,72,.3)}
/* today = plain grey ring (default flatpickr look) */
.flatpickr-day.today{border-color:#959ea9;background:transparent;color:#484848}
.flatpickr-day.today:hover,.flatpickr-day.today:focus{background:#959ea9;border-color:#959ea9;color:#fff}
.flatpickr-day:hover{background:#e6e6e6;border-color:#e6e6e6}
/* selected day — page teal (not visible in the screenshot) */
.flatpickr-day.selected,.flatpickr-day.selected:hover,.flatpickr-day.selected:focus{background:#009BB2;border-color:#009BB2;color:#fff}


/* ══════════════════════════════════════════════════════════════════
   FILTER BAR FINISH — matches reference #2: larger chips, "Advance
   Search" switch (reveals Sector/Airline/Source), taller Date field and
   an outlined Keyword field whose label floats onto the top border when
   the box is clicked or has text.
══════════════════════════════════════════════════════════════════ */
.tl-form{padding:16px 22px 18px;gap:12px}
.filterbar #catTabs{gap:8px}
.filterbar .chip{height:34px;padding:0 15px;font-size:16px;font-weight:400;border-radius:6px;letter-spacing:.1px}
.filterbar .chip.active,.filterbar .chip.active:hover{font-weight:500}

.tl-right{gap:12px;align-items:center}
/* Sector / Airline / Source hidden until "Advance Search" is on */
.tl-right .tl-adv{display:none!important}
.tl-right.adv-open .tl-adv{display:flex!important;flex:1 0 100%;order:2;justify-content:flex-end;flex-wrap:wrap;gap:12px}

/* Advance Search switch */
.tl-adv-toggle{display:inline-flex;align-items:center;gap:10px;height:40px;padding:0 16px 0 8px;
  background:#f6f6f6;border-radius:8px;cursor:pointer;user-select:none;position:relative;
  font-family:'Roboto','Inter',sans-serif;font-size:16px;color:#1a1a1a}
.tl-adv-toggle input{position:absolute;opacity:0;width:0;height:0}
.tl-sw{position:relative;width:38px;height:22px;border-radius:11px;background:#c9c9c9;flex-shrink:0;transition:background .18s}
.tl-sw-knob{position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .18s}
.tl-adv-toggle input:checked+.tl-sw{background:#009BB2}
.tl-adv-toggle input:checked+.tl-sw .tl-sw-knob{transform:translateX(16px)}
.tl-adv-toggle input:focus-visible+.tl-sw{box-shadow:0 0 0 3px rgba(0,155,178,.25)}
.tl-adv-dot{display:none;width:8px;height:8px;border-radius:50%;background:#009BB2}
.tl-adv-dot.on{display:inline-block}

/* Date / Keyword / Sector / Airline / Source — one taller field size */
.tl-field,.tl-right .fseg{height:42px;font-size:16px;border-radius:6px;border-color:#d4d4d4}
.tl-field{width:210px;gap:11px;padding:0 12px 0 14px}
.tl-right .fseg{width:210px!important;gap:11px;padding:0 12px 0 14px!important;border-radius:6px!important}
.tl-field>i,.tl-right .fseg .fseg-ico{font-size:16px}
.tl-right .fseg .fsel,.tl-right .fseg .fsel-label{font-size:16px}
#dateSegBtn{width:210px;box-shadow:0 1px 6px rgba(0,0,0,.08)}
.tl-field:focus-within{border-color:#009BB2;box-shadow:0 0 0 1px #009BB2}

/* Keyword — floating label */
.tl-float{width:260px;overflow:visible}
.tl-float input[type=text]{font-size:16px;height:100%}
.tl-float-lbl{position:absolute;left:38px;top:50%;transform:translateY(-50%);
  padding:0 4px;background:#fff;color:#1a1a1a;font-size:16px;line-height:1;
  pointer-events:none;transform-origin:left center;
  transition:top .15s ease,left .15s ease,font-size .15s ease,color .15s ease}
.tl-float:focus-within .tl-float-lbl,
.tl-float input:not(:placeholder-shown)~.tl-float-lbl{
  top:0;left:10px;font-size:12px;color:#666;transform:translateY(-50%)}
.tl-float:focus-within .tl-float-lbl{color:#009BB2}

@media(max-width:768px){
  .filterbar .chip{height:30px;padding:0 11px;font-size:14px}
  .tl-form{padding:12px}
  .tl-right{justify-content:stretch}
  .tl-adv-toggle{flex:1 0 100%}
  .tl-field,.tl-float,#dateSegBtn,.tl-right .fseg{flex:1 1 100%!important;width:auto!important}
  .tl-right.adv-open .tl-adv{justify-content:stretch}
}


/* ── Floating labels for Date + Sector/Airline/Source (JS adds .is-open / .open / .has-val) ── */
.tl-fj>.tl-float-lbl{z-index:2}
.tl-fj.is-open>.tl-float-lbl,.tl-fj.open>.tl-float-lbl,.tl-fj.has-val>.tl-float-lbl{
  top:0;left:10px;font-size:12px;color:#666;transform:translateY(-50%)}
.tl-fj.is-open>.tl-float-lbl,.tl-fj.open>.tl-float-lbl{color:#009BB2}
.tl-fj.is-open,.tl-fj.open{border-color:#009BB2}
.tl-fj.is-open{box-shadow:0 0 0 1px #009BB2}
/* Date: the label itself is the placeholder until a date is chosen */
#dateSegBtn:not(.has-val) .tl-datelbl{visibility:hidden}
/* Sector/Airline/Source: inner "All …" text is real state, so the label only appears when open or filtered */
.tl-right .fseg.tl-fj:not(.open):not(.has-val)>.tl-float-lbl{display:none}


/* ── One row: Sector / Airline / Source + Date + Keyword (no Advance Search toggle) ── */
.tl-right .tl-adv{display:contents!important}
.tl-adv-toggle{display:none!important}
@media(min-width:769px){
  .tl-right{flex-wrap:wrap;justify-content:flex-end;gap:12px}
  .tl-right .fseg,.tl-field,.tl-float,#dateSegBtn{
    flex:1 1 0!important;width:auto!important;min-width:150px;max-width:240px}
}


/* ══ COMPACT SIZING — matches reference #2 (small chips, 30px fields, 13px text, tiny floating label) ══ */
.tl-form{padding:12px 16px 14px;gap:8px}
.filterbar #catTabs{gap:6px}
.filterbar .chip{height:26px;padding:0 9px;font-size:13px;font-weight:400;border-radius:4px;letter-spacing:0}
.filterbar .chip.active,.filterbar .chip.active:hover{font-weight:500}
.tl-right{gap:8px}
.tl-field,.tl-right .fseg{height:30px;font-size:13px;border-radius:4px!important;gap:8px;padding:0 8px 0 10px!important}
.tl-field>i,.tl-right .fseg .fseg-ico{font-size:13px}
.tl-right .fseg .fsel,.tl-right .fseg .fsel-label,.tl-float input[type=text],.tl-datelbl{font-size:13px}
.tl-float-lbl{left:27px;font-size:13px;padding:0 3px}
.tl-float:focus-within .tl-float-lbl,
.tl-float input:not(:placeholder-shown)~.tl-float-lbl,
.tl-fj.is-open>.tl-float-lbl,.tl-fj.open>.tl-float-lbl,.tl-fj.has-val>.tl-float-lbl{left:8px;font-size:10px}
@media(min-width:769px){
  .tl-right .fseg,.tl-field,.tl-float,#dateSegBtn{flex:0 0 165px!important;width:165px!important;min-width:0;max-width:none}
}
@media(max-width:768px){
  .filterbar .chip{height:26px;padding:0 8px;font-size:12px}
}


/* Dropdown panel = exactly the width of its box; keep contents tidy at that width */
.fsel-panel{box-sizing:border-box;min-width:0}
.fsel-bulk{display:flex;gap:6px}
.fsel-bulk-btn{flex:1 1 0;min-width:0;padding:0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fsel-opt{min-width:0}


/* Type-to-search inside the box (replaces the search field that used to sit in the dropdown panel) */
.tl-right .fseg .fsel-typein{display:none;flex:1;min-width:0;width:100%;border:0;outline:0;background:transparent;
  padding:0;font:inherit;font-size:13px;color:#1a1a1a}
.tl-right .fseg .fsel-typein::placeholder{color:#1a1a1a;opacity:.55}
.tl-right .fseg.open .fsel-typein{display:block}
.tl-right .fseg.open .fsel-label{display:none}
.fsel-search-wrap{display:none!important}


/* Dropdown arrow on Sector / Airline / Source (Duration) cells */
.tl-right .fseg .fcaret{display:flex!important;align-items:center;justify-content:center;flex:0 0 auto;
  margin-left:auto;width:14px;height:14px;font-size:10px;color:#555;transition:transform .18s ease,color .18s ease}
.tl-right .fseg.open .fcaret{transform:rotate(180deg);color:#009BB2}

.tl-right .fseg .fcaret{position:static!important;top:auto;right:auto;transform:none}
.tl-right .fseg.open .fcaret,.tl-right .fseg:focus-within .fcaret{transform:rotate(180deg);color:#009BB2}


/* Clear (×) button in the Dept Date cell — shown once a date is chosen */
.tl-datelbl{flex:1;min-width:0}
#dateSegBtn .tl-date-clear{display:none;margin-left:auto;width:16px;height:16px;flex:0 0 auto}
#dateSegBtn.has-val .tl-date-clear{display:flex}


/* ── Calendar: hint on dates that have flights / packages ── */
.flatpickr-day.tl-avail{color:#007f94;font-weight:700}
.flatpickr-day.tl-avail::after{content:"";position:absolute;left:50%;bottom:5px;transform:translateX(-50%);
  width:5px;height:5px;border-radius:50%;background:#009BB2;pointer-events:none}
.flatpickr-day.tl-avail:hover{background:rgba(0,155,178,.12);border-color:transparent}
.flatpickr-day.selected.tl-avail,.flatpickr-day.selected.tl-avail:hover{background:#009BB2;border-color:#009BB2;color:#fff}
.flatpickr-day.selected.tl-avail::after{background:#fff}
.flatpickr-day.prevMonthDay.tl-avail,.flatpickr-day.nextMonthDay.tl-avail{color:#5aa9b6;font-weight:500}
.tl-cal-legend{display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 0 10px;
  border-top:1px solid #eee;margin:4px 12px 0;font-family:'Roboto','Inter',sans-serif;font-size:12px;color:#555}
.tl-cal-dot{width:7px;height:7px;border-radius:50%;background:#009BB2;display:inline-block}


/* All five filter cells share the Date-cell look: navy icon, medium-weight text, soft shadow */
.tl-field,.tl-right .fseg{box-shadow:0 1px 6px rgba(0,0,0,.08)}
.tl-field>i,.tl-right .fseg .fseg-ico{color:#1e2b5a!important}
.tl-right .fseg .fsel,.tl-right .fseg .fsel-label,.tl-datelbl,
.tl-float input[type=text],.tl-right .fseg .fsel-typein,
.tl-float-lbl{font-weight:500;color:#1a1a1a}
.tl-float:focus-within .tl-float-lbl,
.tl-float input:not(:placeholder-shown)~.tl-float-lbl,
.tl-fj.is-open>.tl-float-lbl,.tl-fj.open>.tl-float-lbl,.tl-fj.has-val>.tl-float-lbl{font-weight:400;color:#666}
.tl-float:focus-within .tl-float-lbl,.tl-fj.is-open>.tl-float-lbl,.tl-fj.open>.tl-float-lbl{color:#009BB2}


/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE FARE CARDS  (phones + tablets, viewport <= 960px)
   ───────────────────────────────────────────────────────────────────────
   Below ~960px the 9-column table cannot fit without sideways scrolling
   (that scroll is what pushed Date off-screen and squeezed Route to
   "LHE-/MED" on phones). Instead of a scrolling table, every fare row is
   drawn as a compact card using CSS grid. CSS-ONLY: the DOM that
   group-flights.js builds (and its price-cell diffing by child index) is
   not touched. Cell order: 1 Date  2 Flight  3 Route  4 Time  5 Baggage
   6 Meal  7 Price  8 Source  9 Actions.
   Desktop (>960px) keeps the normal table.
═══════════════════════════════════════════════════════════════════════ */
@media (max-width:0px){ /* card layout disabled: phones use the swipe table */
  .main-wrap{overflow-x:clip}
  .page-content{padding-bottom:calc(56px + env(safe-area-inset-bottom,0px))}

  /* No scroll pane / swipe hint / edge fade any more */
  .tbl-wrap{background:transparent;box-shadow:none;border-radius:0;overflow:visible}
  .tbl-wrap::after{display:none}
  .tbl-scroll-hint,.tbl-wrap.has-more-cols .tbl-scroll-hint{display:none!important}
  .tbl-scroll{overflow:visible;max-height:none}

  /* Table -> block flow; column headers are replaced by per-cell labels */
  .fare-tbl,.fare-tbl tbody{display:block;width:100%;min-width:0!important;margin:0;background:transparent}
  .fare-tbl colgroup,.fare-tbl thead{display:none!important}
  .fare-tbl tbody>tr{display:block}
  .fare-tbl tbody>tr>td{display:block}

  /* Sector header = top of a card; wraps instead of overflowing */
  .fare-tbl .grp-tr{margin-top:12px;border-radius:12px 12px 0 0;overflow:hidden;box-shadow:0 1px 3px rgba(15,35,90,.08)}
  .fare-tbl .grp-tr:first-child{margin-top:0}
  .grp-inner{flex-wrap:wrap;gap:6px;padding:8px 10px}
  .grp-inner>div[style*="width:1px"]{display:none}
  .grp-inner>div:last-child{margin-left:auto}

  /* One fare = one grid card */
  .fare-tbl .data-tr{
    display:grid;position:relative;
    grid-template-columns:minmax(0,1.7fr) minmax(0,.9fr) minmax(0,.95fr) minmax(0,1.5fr);
    grid-template-areas:
      "date  flt   rt    tm"
      "bag   meal  meal  meal"
      "price price act   act";
    gap:6px 6px;align-items:start;
    padding:9px 10px 9px 12px;
    background:#ECFBFE;
  }
  .fare-tbl .data-tr.row-even{background:#E4EAFB}
  .fare-tbl .data-tr:hover{background:#C7D2F6}
  .fare-tbl .data-tr.flt-selected{background:#d7f0ff;outline:2px solid #3A4FD9;outline-offset:-2px}
  .fare-tbl .last-tbl-row{border-radius:0 0 12px 12px;margin-bottom:4px}
  .fare-tbl .last-tbl-row::after{display:none}

  /* The row paints the background now, not each cell */
  .fare-tbl .data-tr>td,
  .fare-tbl .data-tr:hover>td,
  .fare-tbl .data-tr.row-even>td,
  .fare-tbl .data-tr.flt-selected>td{
    background:transparent!important;outline:none!important;
    padding:0!important;min-width:0;border:none!important;height:auto;
    text-align:left;
  }
  .fare-tbl .data-tr>td:nth-child(1){grid-area:date}
  .fare-tbl .data-tr>td:nth-child(2){grid-area:flt}
  .fare-tbl .data-tr>td:nth-child(3){grid-area:rt}
  .fare-tbl .data-tr>td:nth-child(4){grid-area:tm}
  .fare-tbl .data-tr>td:nth-child(5){grid-area:bag}
  .fare-tbl .data-tr>td:nth-child(6){grid-area:meal}
  .fare-tbl .data-tr>td:nth-child(7){grid-area:price}
  .fare-tbl .data-tr>td:nth-child(8){grid-area:act}
  .fare-tbl .data-tr>td:nth-child(9){grid-area:act}

  /* Small caption above each value (replaces the hidden header row) */
  .fare-tbl .data-tr>td::before{
    display:block;margin:0 0 2px 2px;
    font:700 9px/1.2 'Inter',sans-serif;letter-spacing:.07em;text-transform:uppercase;color:#7893ab;
  }
  .fare-tbl .data-tr>td:nth-child(1)::before{content:'Date'}
  .fare-tbl .data-tr>td:nth-child(2)::before{content:'Flight'}
  .fare-tbl .data-tr>td:nth-child(3)::before{content:'Route'}
  .fare-tbl .data-tr>td:nth-child(4)::before{content:'Time'}
  .fare-tbl .data-tr>td:nth-child(5)::before{content:'Baggage'}
  .fare-tbl .data-tr>td:nth-child(6)::before{content:'Meal'}
  .fare-tbl .data-tr>td:nth-child(7)::before{content:'Price'}
  .fare-tbl .data-tr>td:nth-child(8)::before{content:none;display:none}
  .fare-tbl .data-tr>td:nth-child(9)::before{content:none}

  /* Leg lines (outbound / return stay aligned across cells) */
  .fare-tbl .date-chk-cell{height:auto}
  .fare-tbl .date-chk-row{height:auto;align-items:flex-start}
  .fare-tbl .seg-line{padding:1px 2px;gap:4px;min-height:20px}
  .fare-tbl .seg-cell:not(.date-chk-cell) .seg-icon{display:none}
  .fare-tbl .t-main,.fare-tbl .t-flt,.fare-tbl .t-via{font-size:12px}
  .fare-tbl .seg-line .rt-txt{max-width:none}

  .fare-tbl .price-cell,.fare-tbl .meal-cell,.fare-tbl .book-cell{text-align:left}
  .fare-tbl .price-format{flex-direction:row;align-items:baseline;justify-content:flex-start;gap:5px}
  .fare-tbl .price-format .pf-cur{font-size:10px}
  .fare-tbl .price-format .pf-amt{font-size:17px}
  .fare-tbl .vendor-badge{white-space:nowrap;font-size:10px;padding:3px 7px}

  .fare-tbl .data-tr>td.share-cell{display:flex;justify-content:flex-end;align-items:center;align-self:center;gap:8px;white-space:nowrap}
  .fare-tbl .data-tr>td.price-cell{align-self:center}
  .fare-tbl .share-btn{width:34px;height:34px;font-size:15px;border-radius:8px}
  .flt-chk,.sec-chk{width:17px;height:17px}

  /* Floating multi-copy bar: wrap + stay on screen, clear of the menu button */
  #multiCopyBar{
    width:calc(100vw - 24px);max-width:520px;box-sizing:border-box;
    flex-wrap:wrap;justify-content:center;white-space:normal;
    bottom:calc(78px + env(safe-area-inset-bottom,0px));padding:8px 10px;
  }
  #mcSelLabel{display:none}
}

/* Tablet-ish phones / small tablets: one wide row per card */
@media (min-width:600px) and (max-width:960px){
  .fare-tbl .data-tr{
    grid-template-columns:minmax(0,1.5fr) minmax(0,.9fr) minmax(0,.9fr) minmax(0,1.4fr) minmax(0,1fr) minmax(0,.55fr);
    grid-template-areas:
      "date flt rt tm bag meal"
      "price price price price act act";
    padding:10px 14px;gap:8px 10px;
  }
  .fare-tbl .t-main,.fare-tbl .t-flt,.fare-tbl .t-via{font-size:13px}
}

/* Narrow phones */
@media (max-width:380px){
  .fare-tbl .data-tr{padding:8px;gap:5px 4px}
  .fare-tbl .t-main,.fare-tbl .t-flt,.fare-tbl .t-via{font-size:11.5px}
  .fare-tbl .seg-line{gap:3px}
  .fare-tbl .price-format .pf-amt{font-size:16px}
}

/* Book Now (WhatsApp) button in each fare row — premium pill */
.book-btn{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:7px;height:30px;padding:0 14px 0 5px;border-radius:99px;border:1px solid rgba(255,255,255,.28);
  background:linear-gradient(135deg,#34e07a 0%,#1fbf5b 55%,#14a34a 100%);color:#fff;font-weight:700;font-size:var(--fs-2);letter-spacing:.2px;cursor:pointer;white-space:nowrap;
  text-shadow:0 1px 1px rgba(0,60,25,.35);
  box-shadow:0 4px 10px rgba(20,163,74,.30),inset 0 1px 0 rgba(255,255,255,.35),inset 0 -1px 0 rgba(0,70,30,.18);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.book-btn i{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#fff;color:#16a34a;font-size:12px;text-shadow:none;box-shadow:0 1px 3px rgba(0,60,25,.28);flex:0 0 auto}
.book-btn::after{content:"";position:absolute;top:0;bottom:0;left:-60%;width:40%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);transform:skewX(-18deg);transition:left .55s ease;pointer-events:none}
.book-btn:hover{transform:translateY(-1px);filter:saturate(1.08);box-shadow:0 8px 18px rgba(20,163,74,.42),inset 0 1px 0 rgba(255,255,255,.4),inset 0 -1px 0 rgba(0,70,30,.2)}
.book-btn:hover::after{left:120%}
.book-btn:active{transform:translateY(0) scale(.97);box-shadow:0 2px 6px rgba(20,163,74,.35),inset 0 1px 2px rgba(0,70,30,.25)}
.book-btn:focus-visible{outline:2px solid #14a34a;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.book-btn,.book-btn::after{transition:none}}
@media (max-width:768px){.fare-tbl .book-btn{height:34px;padding:0 16px 0 6px;font-size:13px}.fare-tbl .book-btn i{width:22px;height:22px;font-size:13px}}

/* Ticker lives in the centre of the top bar */
.topbar-inner .ticker-wrap{
  flex:1;min-width:0;margin:0 14px;height:32px;
  border:1px solid #bae6fd;border-radius:8px;
}
.topbar-inner .ticker-heading{padding:0 12px}
.topbar-inner .ticker-track-outer{
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 14px,#000 calc(100% - 14px),transparent);
  mask-image:linear-gradient(90deg,transparent,#000 14px,#000 calc(100% - 14px),transparent);
}
.topbar-inner .ticker-track li{padding-top:0;padding-bottom:0}
@media(max-width:600px){
  .topbar-inner .ticker-wrap{margin:0 6px;height:28px}
}
/* keep title and live chip on one line; only the ticker shrinks */
.topbar-inner #topbarTitle{flex-shrink:0;white-space:nowrap}
.topbar-inner .refresh-note,.topbar-inner .live-chip{white-space:nowrap}
.topbar-inner > div[style*="margin-left:auto"]{flex-shrink:0}
@media(max-width:900px){.topbar-inner .ticker-wrap{min-width:60px}}

/* ticker: icon only, no "Update" text */
.ticker-heading .th-txt{display:none}
.ticker-heading{padding:0 11px}

/* Book now — simple solid button (no icon, no shine) */
.book-btn{height:30px;padding:0 14px;border-radius:6px;border:0;background:#2E3EC4;color:#fff;font-weight:600;letter-spacing:0;text-shadow:none;box-shadow:none;transition:background .15s ease}
.book-btn::after{display:none}
.book-btn:hover{background:#3A4FD9;transform:none;filter:none;box-shadow:none}
.book-btn:active{background:#2431a0;transform:none;box-shadow:none}
@media (max-width:768px){.fare-tbl .book-btn{height:32px;padding:0 14px;font-size:13px}}
/* Book now — plain white WhatsApp icon (no circle) */
.book-btn{gap:6px;padding:0 14px 0 11px}
.book-btn i{width:auto;height:auto;background:none;box-shadow:none;border-radius:0;color:#fff;font-size:15px;display:inline-block;line-height:1}
@media (max-width:768px){.fare-tbl .book-btn{padding:0 14px 0 11px}.fare-tbl .book-btn i{width:auto;height:auto;font-size:15px}}
/* Book now — WhatsApp green */
.book-btn{background:#1fa855}
.book-btn:hover{background:#25D366}
.book-btn:active{background:#168a45}

/* Table alignment — cell padding now matches the header (14px) so Price/Meal line up under their headings.
   (.data-tr td had higher specificity than .price-cell and was forcing 5px.) */
@media (min-width:769px){
  .fare-tbl .data-tr td.price-cell{padding:3px 14px}
  .fare-tbl .data-tr td.meal-cell{padding:3px 14px;text-align:center}
  .fare-tbl .data-tr td.share-cell{padding:3px 14px 3px 8px!important;text-align:center}
  .fare-tbl thead th:last-child{padding-left:8px;padding-right:14px}
  .book-btn{min-width:92px}
}


/* ── swipe table block: desktop-style table on phones/tablets, swipe sideways ── */
@media (max-width:960px){
  .page-content{padding-bottom:calc(56px + env(safe-area-inset-bottom,0px))}
  .tbl-scroll{overflow:auto;max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px);-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  .fare-tbl{min-width:714px!important}
  colgroup col:nth-child(1){width:112px!important}
  colgroup col:nth-child(2){width:72px!important}
  colgroup col:nth-child(3){width:78px!important}
  colgroup col:nth-child(4){width:108px!important}
  colgroup col:nth-child(5){width:92px!important}
  colgroup col:nth-child(6){width:46px!important}
  colgroup col:nth-child(7){width:88px!important}
  colgroup col:nth-child(8){width:118px!important}
  colgroup col:nth-child(9){width:auto!important}
  #multiCopyBar{width:calc(100vw - 24px);max-width:520px;box-sizing:border-box;flex-wrap:wrap;justify-content:center;white-space:normal;bottom:calc(78px + env(safe-area-inset-bottom,0px));padding:8px 10px}
  #mcSelLabel{display:none}
}

/* ── route col fix: wider Route column, never wrap ── */
@media (max-width:960px){
  colgroup col:nth-child(3){width:92px!important}
  .fare-tbl{min-width:706px!important}
  .fare-tbl .seg-line .rt-txt{white-space:nowrap;max-width:none;overflow-wrap:normal}
  .fare-tbl .seg-cell:not(.date-chk-cell) .seg-icon{display:none}
}

/* ── route gap fix ── */
@media (max-width:960px){
  .fare-tbl .data-tr>td:nth-child(3) .seg-line{padding-left:2px;padding-right:2px}
  .fare-tbl thead th:nth-child(3){padding-left:2px;padding-right:2px}
}
