:root{
  --bg:#0d0e11; --bg2:#15171d; --panel:#181a21; --panel2:#1f222b;
  --line:#2c2f3a; --line2:#3a3e4b;
  --ink:#ece9e0; --mut:#8b8f9c; --dim:#62656f;
  --amber:#f2ad42; --amber-d:#3a2c12;
  --teal:#52cdb2; --teal-d:#123029;
  --coral:#e8694a; --coral-d:#371810;
  --font-mono:'Space Mono',ui-monospace,monospace;
  --font-display:'Bricolage Grotesque',sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  background:var(--bg); color:var(--ink);
  font-family:var(--font-mono); font-size:14px; line-height:1.6;
  background-image:
    radial-gradient(900px 500px at 80% -8%, rgba(242,173,66,.07), transparent 70%),
    radial-gradient(700px 500px at 0% 110%, rgba(82,205,178,.06), transparent 70%);
  background-attachment:fixed; -webkit-font-smoothing:antialiased;
  padding-bottom:0;
}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
h1,h2,h3{font-family:var(--font-display);font-weight:700;letter-spacing:-.01em;line-height:1.1}

/* topbar (copied from /aycf/index.html) */
.topbar{position:sticky;top:0;z-index:50;background:rgba(13,14,17,.92);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.container{width:100%;max-width:1240px;margin:0 auto;padding:0 22px}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;height:62px;gap:16px;flex-wrap:wrap}
.brand{display:flex;align-items:baseline;gap:9px;font-family:var(--font-display);font-weight:800;font-size:14px;color:var(--ink);text-decoration:none}
.brand .dot{width:9px;height:9px;border-radius:2px;background:var(--amber);box-shadow:0 0 12px rgba(242,173,66,.5);display:inline-block;align-self:center}
.brand small{display:inline;font-family:var(--font-mono);font-weight:500;font-size:10px;color:var(--dim);letter-spacing:.12em;text-transform:uppercase;margin-left:4px}
.nav-links{display:flex;align-items:center;gap:4px}
.nav-links a,.nav-links button{color:var(--mut);font-weight:700;font-size:.82rem;padding:8px 13px;border-radius:7px;transition:background .15s,color .15s;
  background:none;border:none;cursor:pointer;font-family:var(--font-mono);text-decoration:none;display:flex;align-items:center;gap:7px}
.nav-links a .ic{font-size:15px;opacity:.85;transition:opacity .15s}
.nav-links a:hover:not(.active){background:var(--panel2);color:var(--ink)}
.nav-links a.active{color:#0d0e11;background:var(--amber)}
.nav-links a.active .ic{opacity:1}
.ic svg,.mn-ic svg{width:1em;height:1em;display:block;flex-shrink:0}
.nav-cta{display:flex;gap:9px;align-items:center}
.btn-planner{display:flex;align-items:center;gap:6px;padding:7px 14px;border-radius:8px;
  background:var(--amber);color:#0d0e11;font-family:var(--font-mono);font-size:12px;
  font-weight:700;text-decoration:none;letter-spacing:.02em;transition:opacity .15s}
.btn-planner .ic{font-size:15px}
.btn-planner:hover{opacity:.85}
.btn-live{display:flex;align-items:center;gap:6px;padding:7px 14px;border-radius:8px;
  background:var(--teal);color:#0d0e11;font-family:var(--font-mono);font-size:12px;
  font-weight:700;text-decoration:none;letter-spacing:.02em;transition:opacity .15s}
.btn-live .ic{font-size:15px}
.btn-live:hover{opacity:.85}
.sitefoot{border-top:1px solid var(--line);margin-top:12px;padding:16px 0 26px}
.sitefoot-inner{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px;font-size:11px;color:var(--dim);text-align:center}
.sitefoot-sep{color:var(--line2)}
.sitefoot a{color:var(--mut);text-decoration:none}
.sitefoot a:hover{color:var(--amber)}

.mobile-nav{display:none}
@media (max-width:640px){
  .mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:100;
    background:rgba(13,14,17,.96);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
    border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0px);
    height:calc(58px + env(safe-area-inset-bottom,0px));align-items:stretch}
  .mobile-nav button,.mobile-nav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:3px;background:none;border:none;cursor:pointer;color:var(--mut);font-family:var(--font-mono);font-size:9px;
    font-weight:700;letter-spacing:.05em;text-transform:uppercase;text-decoration:none;padding:0 4px;
    transition:color .15s,background .15s;border-top:2px solid transparent;margin-top:-1px}
  .mobile-nav .mn-ic{font-size:18px;line-height:1;opacity:.85;transition:opacity .15s}
  .mobile-nav a.mn-active .mn-ic,.mobile-nav .mn-planner .mn-ic,.mobile-nav .mn-live .mn-ic{opacity:1}
  .mobile-nav a:hover{color:var(--ink)}
  .mobile-nav a.mn-active{color:var(--amber);border-top-color:var(--amber)}
  .mobile-nav .mn-planner{color:var(--amber)}
  .mobile-nav .mn-live{color:var(--teal)}
  .mobile-nav .mn-live:hover{opacity:.8}
  body{padding-bottom:calc(58px + env(safe-area-inset-bottom,0px))}
  .sitefoot{padding-bottom:calc(26px + 58px + env(safe-area-inset-bottom,0px))}
  .topbar-inner{flex-direction:row;flex-wrap:nowrap;align-items:center;height:52px;padding:0 14px;gap:8px}
  .brand{flex:1;min-width:0;justify-content:flex-start;font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  .brand small{display:none}
  .nav-cta{display:none}
  .nav-links{display:none}
  .topbar-fresh{display:flex;padding:4px 9px;font-size:9px}
  .wrap{padding:16px 12px 56px !important}
  /* .sh-masthead's own padding/stacking and the header-vs-masthead badge
     duplication are both handled centrally in shell.css now. */
  .card{padding:15px 14px !important}
  .section{margin-top:14px !important}
  .facts,.records{grid-template-columns:1fr !important}
  .rmlayout,.rmdestgrid,.faresaboutgrid{grid-template-columns:1fr !important}
  .rmside{order:-1;max-height:260px !important;min-height:0 !important;contain:none !important;margin-bottom:6px}
  /* A bottom sheet, not the desktop popup: slides straight up from the
     bottom edge instead of scaling in from a corner. !important throughout
     this block because the equivalent unconditional (desktop) rules for
     these exact same properties are declared FARTHER DOWN this file — with
     equal specificity, later-in-source wins regardless of the media query
     being true, so without !important every one of these was silently
     losing to the desktop version and never actually applying on a phone. */
  /* padding only — no explicit height here either; the base rule's own
     inset:0 already ties it to the live viewport with no length calculation
     at all (see the .sh-drawer comment in shell.css for why that matters).
     align-items/justify-content stop mattering at all once the panel below
     is pulled out of this flow with its own position:fixed. */
  .minimap-overlay{padding:0 !important}
  .minimap-panel{
    /* Independently fixed to the viewport — NOT positioned by the overlay's
       flex centering any more. That was one extra layer (does the overlay's
       own box track the live viewport correctly? does flex then place a
       height:100%-sized child correctly on top of that?) for this to go
       wrong at, on top of iOS's own toolbar-driven viewport quirks. Pinning
       the panel to the viewport directly, the same inset:0-without-height
       principle as the drawer, is one fewer thing that can drift. */
    /* height:auto is the fix, not decoration — the desktop rule above sets
       an explicit height:min(680px,90vh), and nothing in this block ever
       overrode it. With top:0 AND bottom:0 AND a real height all specified
       at once, the layout is over-constrained and bottom loses: the panel
       was still exactly 680px/90vh tall, full stop, leaving the rest of the
       screen as a gap showing <body> through it — precisely what turned up
       reproduced on web. auto lets top+bottom actually stretch it again. */
    position:fixed !important; inset:0 auto 0 0 !important; height:auto !important;
    width:100% !important; border-radius:16px 16px 0 0 !important;
    transform:translateY(100%) !important; opacity:1 !important;
  }
  .minimap-overlay.open .minimap-panel{transform:translateY(0) !important; opacity:1 !important}
  /* Belt-and-braces on top of openMinimap()'s own fab.classList.add() —
     guarantees the small preview widget can never be the thing peeking
     through behind the open sheet, independent of any JS timing. */
  body:has(.minimap-overlay.open) .minimap-fab{display:none !important}
  /* The 58px "clear the bottom tab bar" offset this used to need is gone —
     the shell doesn't have a fixed bottom tab bar (it's a hamburger drawer
     instead), so that reserved gap was leaving the fab floating well above
     where it visually belongs. Only the home-indicator safe area remains. */
  .minimap-fab{right:14px !important; bottom:calc(14px + env(safe-area-inset-bottom,0px)) !important}
  /* the small info button, not the legend itself — the map should have the
     whole screen to work with on a phone */
  .mm-legend{display:none !important}
  /* search + close always share the top row (close can't get pushed under
     the search box); mode-switch gets bumped to its own row underneath
     instead of fighting the other two for space on one line. padding-top
     adds the safe area on top of the usual 8px — without it the search box
     and close button sat right under the Dynamic Island / notch, on top of
     being unreachable there since nothing under it can receive a tap. */
  .minimap-header{
    padding:calc(8px + env(safe-area-inset-top,0px)) 12px 8px !important;
    gap:8px !important;
  }
  .searchbox-wrap{order:1 !important}
  .minimap-close{order:2 !important}
  /* Scoped to .minimap-header specifically — .modeswitch/.modelabel are the
     SAME classes the "observed with flights" board's One-way/Round-trip
     toggle uses elsewhere on this page. A bare .modeswitch{...} here was
     restyling that unrelated control too, which nobody asked for. */
  .minimap-header .modeswitch{order:3 !important; width:100% !important; gap:6px !important; justify-content:center !important}
  .minimap-header .modelabel{font-size:9.5px !important}
  /* map fills the rest of the fullscreen panel, controllable via pinch/drag/
     wheel (see map-touch.js) rather than a fixed static view; the bottom
     inset keeps the visible map from running under the home indicator. */
  .minimap-body{touch-action:none; padding-bottom:env(safe-area-inset-bottom,0px)}
  /* Overrides positionMmTip()'s inline left/top (!important beats an
     inline style) — a tap has no cursor to hover near, and pinning it here
     keeps it clear of the dot just tapped and of a thumb doing the tapping. */
  #minimapTip{left:8px !important; right:8px !important; top:10px !important; width:auto !important}
}

.wrap{max-width:1240px;margin:0 auto;padding:32px 22px 80px}
.section{margin-top:22px}
.section .lab{font-size:11px;color:var(--amber);letter-spacing:.16em;text-transform:uppercase;
  font-family:var(--font-mono);font-weight:700;margin-bottom:11px;display:flex;align-items:center;gap:10px}
.section .lab::after{content:"";flex:1;height:1px;background:var(--line)}
.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:20px 22px}

.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.facts.facts-2{grid-template-columns:repeat(2,1fr)}
.fact{background:var(--bg2);border:1px solid var(--line);border-radius:11px;padding:14px 15px}
.fact .k{font-size:10px;color:var(--dim);letter-spacing:.09em;text-transform:uppercase}
.fact .v{font-size:21px;font-family:var(--font-display);font-weight:800;margin:4px 0 2px;color:var(--ink)}
.fact .v small{font-size:12px;color:var(--mut);font-weight:400}
.fact .d{font-size:11px;color:var(--mut);line-height:1.55}

.rec{background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:16px;position:relative;overflow:hidden}
.rec::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--teal)}
.rec .k{font-size:10px;color:var(--dim);letter-spacing:.08em;text-transform:uppercase}
.rec .big{font-size:26px;font-family:var(--font-display);font-weight:800;margin:5px 0 1px;color:var(--teal)}
.rec .d{font-size:11px;color:var(--mut);margin-top:5px;line-height:1.55}

.boardtools{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-bottom:14px}
.boardtools-lab{font-size:11px;color:var(--dim);letter-spacing:.04em;text-transform:uppercase}
.searchbox{width:100%;background:var(--bg2);border:1px solid var(--line2);color:var(--ink);
  font-family:var(--font-mono);font-size:13px;padding:8px 12px;border-radius:8px}
.searchbox:focus{outline:none;border-color:var(--teal)}
.searchbox::placeholder{color:var(--dim)}

.modeswitch{display:flex;align-items:center;gap:9px;flex:none}
.modelabel{font-size:11px;color:var(--dim);font-weight:700;letter-spacing:.04em;text-transform:uppercase;transition:color .15s}
.modelabel.on{color:var(--ink)}

.switch{position:relative;display:inline-block;width:38px;height:22px;flex:none}
.switch input{opacity:0;width:0;height:0;position:absolute}
.switch-slider{position:absolute;inset:0;background:var(--panel2);border:1px solid var(--line2);
  border-radius:22px;cursor:pointer;transition:.15s}
.switch-slider::before{content:"";position:absolute;width:16px;height:16px;left:2px;top:2px;
  background:var(--mut);border-radius:50%;transition:.15s}
.switch input:checked + .switch-slider{background:var(--teal-d);border-color:var(--teal)}
.switch input:checked + .switch-slider::before{transform:translateX(16px);background:var(--teal)}

/* current-edition board: route-map-style layout — city list + search on the
   right, selected city's destinations (with a per-destination date calendar) on
   the left. Mirrors #view-map's .layout/.side/.dest pattern on the main site. */
/* align-items:stretch (the grid default) so .rmside always matches
   .rmmain's height exactly, whatever that is — one-way's single calendar
   strip per card and round-trip's stacked pair render to different heights,
   and a fixed max-height on .rmside made it mismatch both. Its own city
   list already scrolls internally (.rmcitylist, flex:1+overflow-y:auto),
   so there's no length it can't accommodate by matching height instead. */
.rmlayout{display:grid;grid-template-columns:1fr 300px;gap:20px}
.rmmain{position:relative}
/* contain:size takes .rmside's own content out of the row-height calculation,
   so the row is sized by .rmmain alone and .rmside just stretches to match it
   — the city list then scrolls inside it instead of stretching the whole row.
   min-height keeps it usable when .rmmain is just a one-line empty note. */
.rmside{border:1px solid var(--line);border-radius:12px;background:var(--bg2);padding:12px;
  display:flex;flex-direction:column;contain:size;min-height:360px}
.searchbox-wrap{margin-bottom:10px;flex:none}
.rmcitylist{overflow-y:auto;flex:1;scrollbar-width:thin;scrollbar-color:var(--line2) transparent}
.rmcitylist::-webkit-scrollbar{width:6px}
.rmcitylist::-webkit-scrollbar-thumb{background:var(--line2);border-radius:4px}
.rmcity{padding:9px 10px;border-radius:8px;cursor:pointer;font-size:12.5px;transition:background .12s;
  display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.rmcity:hover{background:var(--panel2)}
.rmcity.sel{background:var(--teal-d);color:var(--teal)}
.rmcity .rmn{font-weight:700;color:var(--ink)}
.rmcity.sel .rmn{color:var(--teal)}
.rmstar{color:var(--amber)}
.rmcity .rmcount{font-size:10px;color:var(--dim);white-space:nowrap}
.rmcity.sel .rmcount{color:var(--teal)}
.rmnomatch{padding:16px 8px;text-align:center;font-size:11.5px;color:var(--dim)}

.rmdestgrid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.rmpager{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:18px;flex-wrap:wrap}
.rmpager-btns{display:flex;align-items:center;gap:14px;flex:none;white-space:nowrap}
.rmpager-btn{padding:7px 14px;border-radius:7px;border:1px solid var(--line2);background:var(--bg);
  color:var(--ink);font-family:var(--font-mono);font-size:12px;font-weight:700;cursor:pointer;transition:border-color .12s}
.rmpager-btn:hover:not(:disabled){border-color:var(--teal)}
.rmpager-btn:disabled{opacity:.35;cursor:not-allowed}
.rmpager-lab{font-size:11px;color:var(--dim);white-space:nowrap}
.rmdest{position:relative;background:var(--bg2);border:1px solid var(--line);border-radius:11px;padding:13px 34px 13px 14px}
.rmdest h4{font-size:13.5px;color:var(--ink);margin-bottom:10px;display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}
.rmdest h4 .rmarrow{color:var(--dim);font-weight:400}
.rmdest h4 .rmnote{font-size:10px;color:var(--dim);font-weight:400;text-transform:uppercase;letter-spacing:.04em}
.btn-send-planner{position:absolute;top:10px;right:10px;width:24px;height:24px;border-radius:50%;
  border:none;background:var(--amber);color:#0d0e11;font-size:16px;font-weight:800;line-height:1;
  display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .12s}
.btn-send-planner:hover{transform:scale(1.1)}

.rtmodal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.6);display:flex;align-items:center;
  justify-content:center;z-index:50;padding:16px}
.rtmodal-backdrop.hidden{display:none}
.rtmodal-card{background:var(--panel);border:1px solid var(--line2);border-radius:12px;padding:18px;max-width:360px;width:100%}
.rtmodal-card h3{font-size:14px;margin:0 0 14px;color:var(--ink)}
.rtfield{margin-bottom:12px}
.rtfield label{display:block;font-size:11px;color:var(--dim);margin-bottom:4px;text-transform:uppercase;letter-spacing:.04em}

/* custom dropdown — button + floating option list, replaces a plain <select>
   so the date choices can carry the same "weekday, day, month" formatting
   used everywhere else on this page instead of a raw ISO string */
.rtdrop{position:relative}
.rtdrop-btn{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:8px 10px;border-radius:7px;border:1px solid var(--line2);background:var(--bg);
  color:var(--ink);font-family:var(--font-mono);font-size:13px;cursor:pointer;text-align:left;transition:border-color .12s}
.rtdrop-btn:hover:not(:disabled){border-color:var(--teal)}
.rtdrop-btn[aria-expanded="true"]{border-color:var(--teal)}
.rtdrop-btn:disabled{opacity:.4;cursor:not-allowed}
.rtdrop-chevron{color:var(--dim);font-size:10px;transition:transform .12s}
.rtdrop-btn[aria-expanded="true"] .rtdrop-chevron{transform:rotate(180deg)}
.rtdrop-list{position:absolute;top:calc(100% + 4px);left:0;right:0;max-height:200px;overflow-y:auto;
  background:var(--panel);border:1px solid var(--line2);border-radius:8px;padding:4px;z-index:10;
  box-shadow:0 10px 28px rgba(0,0,0,.45)}
.rtdrop-list.hidden{display:none}
.rtdrop-opt{padding:7px 9px;border-radius:6px;font-size:12.5px;font-family:var(--font-mono);
  color:var(--ink);cursor:pointer}
.rtdrop-opt:hover{background:var(--bg2)}
.rtdrop-opt.sel{background:var(--teal-d);color:var(--teal)}

.rtwarn{font-size:11.5px;color:var(--coral);margin:0 0 12px}
.rtwarn.hidden{display:none}
.rtmodal-btns{display:flex;justify-content:flex-end;gap:8px}
.rtmodal-btns button{padding:7px 14px;border-radius:7px;font-size:12px;font-weight:700;cursor:pointer;font-family:var(--font-mono)}
#rtCancel{background:transparent;border:1px solid var(--line2);color:var(--dim)}
#rtConfirm{background:var(--amber);border:none;color:#0d0e11}
#rtConfirm:disabled{opacity:.4;cursor:not-allowed}

/* the card around the date strip is what makes empty slots read as real gaps in
   a bounded grid, rather than a few stray squares floating on the page background */
.calcard{background:var(--bg);border:1px solid var(--line);border-radius:9px;padding:8px}
.calcard + .calleg-lab{margin-top:10px}
.calleg-lab{font-size:10px;color:var(--dim);letter-spacing:.03em;margin-bottom:5px}
.calstrip{display:flex;gap:6px;flex-wrap:wrap}
.calcell{width:38px;height:38px;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  font-family:var(--font-mono);border:1px solid var(--line2);color:var(--dim);background:var(--panel);
  transition:.12s;line-height:1.05;position:relative}
.calcell .dn{font-size:14px;font-weight:800}
.calcell .dm{font-size:7px;text-transform:uppercase;letter-spacing:.02em}
/* more than one flight that day — a small dot, not a number, since a count
   would be unreadable at this cell size next to the day number */
.calcell .multi{position:absolute;top:3px;right:3px;width:5px;height:5px;border-radius:50%;background:currentColor}
.calcell.on{background:var(--teal);border-color:var(--teal);color:#0d0e11;cursor:pointer}
.calcell.on:hover{background:#7fe6cf}
.calcell.on.stale{background:var(--amber);border-color:var(--amber)}
.calcell.on.stale:hover{background:#ffc766}

.destgroup{background:var(--bg2);border:1px solid var(--line);border-radius:11px;padding:13px 15px}
.destgroup h3{font-size:15px;color:var(--ink);margin-bottom:6px;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.destgroup h3 .code{color:var(--teal);font-family:var(--font-mono);font-size:12px;font-weight:400}
.flight-row{display:grid;grid-template-columns:112px 84px 1fr;gap:10px;align-items:center;
  padding:5px 0 5px 4px;font-size:12px}
.flight-row .fl{color:var(--ink);font-weight:700}
.flight-row .fc{color:var(--mut);font-family:var(--font-mono);font-size:11px}
.flight-row .price{color:var(--amber);font-weight:700;text-align:right;white-space:nowrap}

.emptyrow{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:baseline;
  padding:8px 0;border-bottom:1px dotted var(--line);font-size:12.5px}
.emptyrow .rs{font-weight:700;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.emptyrow .dt{color:var(--mut);white-space:nowrap}
.emptyrow .wh{color:var(--dim);font-size:10.5px;text-align:right;white-space:nowrap}

/* cache.php's one-way / round-trip split for "Routes with flights" — one
   card, two panes divided by a vertical rule instead of two separate cards */
.cache-cols{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}
.cache-col-divided{border-left:1px solid var(--line);padding-left:22px}
.cache-col-lab{font-size:11px;color:var(--dim);letter-spacing:.09em;text-transform:uppercase;margin-bottom:12px}
.cache-col-lab .cache-col-count{color:var(--amber);font-family:var(--font-mono)}
@media (max-width:860px){
  .cache-cols{grid-template-columns:1fr}
  .cache-col-divided{border-left:none;border-top:1px solid var(--line);padding-left:0;padding-top:16px;margin-top:6px}
}

/* cache.php's list-page month calendar — every cached edition at a glance */
.bigcal{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px 20px}
.bigcal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.bigcal-month{font-family:var(--font-display,inherit);font-weight:700;font-size:16px;color:var(--ink)}
.bigcal-nav{display:flex;gap:8px}
.bigcal-nav a,.bigcal-nav span{
  display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:7px;
  border:1px solid var(--line2);color:var(--ink);text-decoration:none;font-size:13px}
.bigcal-nav a:hover{border-color:var(--amber);color:var(--amber)}
.bigcal-nav span{opacity:.3;cursor:not-allowed}
.bigcal-weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-bottom:4px}
.bigcal-weekdays span{font-size:10px;color:var(--dim);text-align:center;text-transform:uppercase;letter-spacing:.06em}
.bigcal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.bigcal-day{
  aspect-ratio:1;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:2px;font-family:var(--font-mono);border:1px solid var(--line2);color:var(--dim);background:var(--bg2);
  text-decoration:none;transition:.12s}
.bigcal-day .dn{font-size:14px;font-weight:800;color:inherit}
.bigcal-day .dr{font-size:8.5px;text-transform:uppercase;letter-spacing:.02em}
.bigcal-day.other-month{opacity:.3}
.bigcal-day.today{box-shadow:inset 0 0 0 1px var(--amber-d)}
.bigcal-day.on{background:var(--teal);border-color:var(--teal);color:#0d0e11;cursor:pointer}
.bigcal-day.on:hover{background:#7fe6cf}
.bigcal-day.on .dr{color:#0d0e11;opacity:.75}
@media(max-width:480px){.bigcal-day .dr{display:none}}

.timeline2{position:relative;padding-left:20px}
.timeline2::before{content:"";position:absolute;left:4px;top:4px;bottom:4px;width:2px;background:var(--line2)}
.tev{position:relative;padding:0 0 10px 0;display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}
.tev::before{content:"";position:absolute;left:-20px;top:3px;width:9px;height:9px;border-radius:50%;background:var(--bg);border:2px solid var(--amber)}
.tev.red::before{border-color:var(--coral)}
.tev.green::before{border-color:var(--teal)}
.tev .dt{font-size:10px;color:var(--amber);font-weight:700;font-family:var(--font-mono);white-space:nowrap}
.tev.red .dt{color:var(--coral)}
.tev.green .dt{color:var(--teal)}
.tev .tx{font-size:12px;color:#d6d3c8;line-height:1.5}
.tev .tx b{color:var(--ink)}

.toggle-btn{background:var(--bg2);border:1px solid var(--line2);color:var(--mut);font-family:var(--font-mono);
  font-size:11px;font-weight:700;padding:7px 13px;border-radius:7px;cursor:pointer;transition:.12s}
.toggle-btn:hover{color:var(--ink);border-color:var(--amber)}
.hide{display:none}

.faretable{width:100%;border-collapse:collapse;font-size:12.5px}
.faretable th{text-align:left;font-size:10px;color:var(--dim);letter-spacing:.08em;text-transform:uppercase;padding:0 10px 8px 0}
.faretable td{padding:7px 10px 7px 0;border-top:1px dotted var(--line)}
.faretable td.num{font-family:var(--font-mono);color:var(--ink)}

.faresaboutgrid{display:grid;grid-template-columns:minmax(240px,380px) 1fr;gap:16px;align-items:stretch}
.faresaboutgrid>div{display:flex;flex-direction:column}
.faresaboutgrid .card{flex:1;display:flex;flex-direction:column;justify-content:center}
.faresaboutgrid .card p{font-size:14.5px;line-height:1.85}
.faresaboutgrid .faretable{font-size:14px}

.tooltip{position:absolute;pointer-events:none;background:#0a0b0d;border:1px solid var(--line2);
  border-radius:9px;padding:9px 11px;font-size:11.5px;line-height:1.5;color:var(--ink);
  opacity:0;transition:opacity .1s;z-index:60;width:max-content;max-width:min(260px,calc(100vw - 32px));
  box-shadow:0 10px 24px rgba(0,0,0,.45)}
.tooltip b{color:var(--amber)}
.tooltip .s{color:var(--mut);font-size:10.5px}
.tip-flight{padding:4px 0;border-top:1px dotted var(--line2)}
.tip-flight:first-of-type{border-top:none}
.tip-flight-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px;white-space:nowrap}
.tip-flight-top .fl{color:var(--ink);font-weight:700}
.tip-flight-top .fc{color:var(--mut);font-family:var(--font-mono);font-size:10.5px}
.tip-flight .price{color:var(--amber);font-weight:700;margin-top:1px;white-space:nowrap}
.pn{font-weight:400;font-size:.85em;color:var(--dim);letter-spacing:.02em}
.mm-tip-label{font-size:9.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin-bottom:5px}
.mm-tip-label.out{color:var(--teal)}
.mm-tip-label.back{color:var(--coral)}
.mm-tip-divider{border-top:1px solid var(--line2);margin:10px 0 8px}

.aboutbox{font-size:12.5px;color:#d6d3c8;line-height:1.7}
.aboutbox b{color:var(--ink)}
.emptynote{font-size:12px;color:var(--mut);padding:14px 0}
.livecaveat{font-size:11.5px;color:var(--amber);margin:2px 0 10px}
.livecaveat a{color:inherit;text-decoration:underline}

.statrow{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.backlink{font-size:11.5px;color:var(--mut);text-decoration:none;display:inline-flex;align-items:center;gap:5px;margin-bottom:14px}
.backlink:hover{color:var(--amber)}

/* ===================== minimap widget ===================== */
/* A tiny "device" — static dot-preview screen framed by HUD corner
   brackets — rather than a plain round icon button, so it reads as a
   minimap at rest instead of just another toolbar button. */
.minimap-fab{
  position:fixed;right:20px;bottom:20px;z-index:110;width:150px;padding:0;
  background:var(--panel);border:1px solid var(--line2);border-radius:9px;
  cursor:pointer;overflow:hidden;box-shadow:0 6px 20px rgba(0,0,0,.45);
  transition:transform .15s,border-color .15s;
}
.minimap-fab:hover{transform:scale(1.04) translateY(-2px);border-color:var(--teal)}
.minimap-fab.mfab-hidden{opacity:0;transform:scale(.85);pointer-events:none}

.mfab-screen{display:block;width:100%;height:96px;background:#0f1117}
.mfab-preview-land{fill:#2a3040;stroke:none}
.mfab-preview-dot{fill:var(--teal);opacity:.8}

.mfab-bracket{position:absolute;width:14px;height:14px;z-index:1;pointer-events:none}
.mfab-bracket.tl{top:4px;left:4px;border-top:2px solid var(--teal);border-left:2px solid var(--teal);border-radius:3px 0 0 0}
.mfab-bracket.br{bottom:4px;right:4px;border-bottom:2px solid var(--teal);border-right:2px solid var(--teal);border-radius:0 0 3px 0}

.minimap-overlay{
  position:fixed;inset:0;z-index:120;background:rgba(8,9,11,.7);
  display:flex;align-items:center;justify-content:center;padding:24px;
  opacity:0;pointer-events:none;transition:opacity .22s ease;
}
.minimap-overlay.open{opacity:1;pointer-events:auto}
.minimap-overlay.hidden{display:none}

.minimap-panel{
  width:min(1000px,100%);height:min(680px,90vh);
  background:var(--panel);border:1px solid var(--line2);border-radius:16px;
  display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.55);
  transform:scale(.2) translateY(40px);transform-origin:bottom right;opacity:0;
  transition:transform .28s cubic-bezier(.2,.9,.3,1.2),opacity .22s ease;
}
.minimap-overlay.open .minimap-panel{transform:scale(1) translateY(0);opacity:1}

.minimap-header{display:flex;align-items:center;gap:14px;padding:10px 16px;border-bottom:1px solid var(--line);flex-wrap:wrap}
/* Same explicit height as the search box next to it (below) — matched
   deliberately rather than left to each control's own padding, which is
   what had them a few px apart before. */
.minimap-header .searchbox{height:36px;box-sizing:border-box;padding:0 12px}
/* .searchbox-wrap's own margin-bottom:10px (below, shared with the route
   board's stacked search+list layout) was the actual misalignment — a
   bottom margin on a flex item shifts where align-items:center treats its
   vertical centre as, pulling the search box up relative to the close
   button next to it even though both are the same height. */
.minimap-header .searchbox-wrap{margin-bottom:0}
.minimap-close{width:36px;height:36px;border-radius:8px;border:1px solid var(--line2);background:var(--bg);color:var(--mut);
  cursor:pointer;font-size:13px;display:flex;align-items:center;justify-content:center;transition:color .12s,border-color .12s;flex-shrink:0}
.minimap-close:hover{color:var(--coral);border-color:var(--coral)}

.minimap-body{position:relative;flex:1;background:#0f1117;overflow:hidden}
#minimapSvg{width:100%;height:100%;display:block}

/* the dot-colour key + usage hint, collapsed behind an "i" button so the map
   itself keeps the whole panel — same pattern as the planner's map legend */
.mm-legend{position:absolute;left:14px;bottom:14px;z-index:5}
.mm-legend-toggle{
  width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:rgba(13,14,17,.9);border:1px solid var(--line2);color:var(--mut);
  font-family:var(--font-display);font-weight:800;font-size:.85rem;cursor:pointer;
  backdrop-filter:blur(6px);transition:background .12s,color .12s,border-color .12s;
}
.mm-legend-toggle:hover,.mm-legend-toggle.open{background:var(--teal);color:#0d0e11;border-color:var(--teal)}
.mm-legend-panel{
  position:absolute;bottom:34px;left:0;min-width:220px;max-width:calc(100vw - 48px);
  background:rgba(13,14,17,.94);border:1px solid var(--line2);border-radius:9px;
  padding:10px 14px;font-family:var(--font-mono);backdrop-filter:blur(6px);
}
.mm-legend-panel.hidden{display:none}
.mm-legend-row{display:flex;align-items:center;gap:8px;margin:0 0 5px;font-size:.72rem;color:var(--mut)}
.mm-legend-swatch{width:9px;height:9px;border-radius:50%;flex-shrink:0;display:inline-block}
.minimap-hint{font-size:11px;color:var(--dim);margin:8px 0 0;padding-top:8px;border-top:1px solid var(--line2)}

.mm-land{fill:#2a3040;stroke:#525a72;stroke-width:.75}
.mm-dot{cursor:pointer;fill:var(--dim);transition:opacity .12s,fill .12s}
.mm-dot.dim{opacity:.22}
.mm-dot.selected{fill:var(--amber)}
.mm-dot.reachable{fill:var(--teal)}
.mm-label{font-size:9px;fill:var(--mut);pointer-events:none;font-family:var(--font-mono)}
.mm-label.dim{opacity:.22}
.mm-label.selected{fill:var(--amber);font-weight:700}
.mm-arc{fill:none;stroke:var(--teal);stroke-width:1;opacity:.55;pointer-events:none}

/* Custom hover tip: any element with class .tip-hover and a data-tip="…" shows a themed bubble on hover/focus/tap (replaces the browser's plain title tooltip). */
.tip-hover{position:relative;color:var(--dim);font-family:var(--font-mono);font-size:12px;font-weight:400;letter-spacing:0;margin-left:2px;cursor:help;border-bottom:1px dotted var(--dim);outline:none}
.tip-hover::after{content:attr(data-tip);position:absolute;left:0;top:calc(100% + 8px);z-index:60;width:max-content;max-width:260px;
  padding:9px 12px;border-radius:9px;background:var(--panel2);border:1px solid var(--line2);color:var(--ink);
  font-family:var(--font-mono);font-size:11.5px;font-weight:400;line-height:1.5;text-transform:none;letter-spacing:0;white-space:normal;
  box-shadow:0 8px 24px rgba(0,0,0,.45);opacity:0;transform:translateY(-3px);pointer-events:none;transition:opacity .14s,transform .14s}
.tip-hover:hover::after,.tip-hover:focus::after{opacity:1;transform:none}

/* route.php airport overview (?from=BUD or ?to=BUD) */
.routelist{display:flex;flex-direction:column}
.routelist .rrow{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;padding:12px 10px;
  border-bottom:1px dotted var(--line);color:var(--ink);text-decoration:none;border-radius:8px;transition:background .12s}
.routelist .rrow:last-child{border-bottom:none}
.routelist .rrow:hover{background:rgba(242,173,66,.07)}
.routelist .rname{font-weight:700}
.routelist .rmeta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:.76rem;color:var(--dim)}
.routehelp{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:7px;font-size:.84rem;color:var(--mut)}
.routehelp code{color:var(--teal);background:var(--bg2);border:1px solid var(--line2);border-radius:5px;padding:1px 6px;font-size:.78rem}
.routelist .badge{display:inline-flex;align-items:center;font-size:.68rem;font-weight:700;letter-spacing:.04em;padding:2px 9px;border-radius:100px;
  color:var(--teal);background:rgba(82,205,178,.1);border:1px solid rgba(82,205,178,.3)}


/* ---- time-of-day filter chips + weekend trip finder (live board) ---- */
.boardtools{flex-wrap:wrap;row-gap:8px}
.tchip-lab{margin-left:14px}
.tdrop{width:190px}
.weekendcard{margin-top:0;padding-top:10px}
.weekend-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.weekend-sub{font-size:12.5px;color:var(--mut);margin:0}
.weekend-sub b{color:var(--ink)}
.weekend-pick{display:flex;align-items:flex-end;gap:10px}
.wk-field{display:flex;flex-direction:column;gap:4px}
.wk-lab{font-size:10px;color:var(--dim);letter-spacing:.06em;text-transform:uppercase}
.wkdrop{width:140px}
.wk-arrow{color:var(--dim);padding-bottom:9px}
.wk-group{margin-bottom:22px}
.wk-gh{display:flex;align-items:center;gap:10px;margin-bottom:10px;font-size:13px}
.wk-gh b{color:var(--ink);background:var(--bg);border:1px solid var(--line2);border-radius:20px;padding:4px 12px}
.wk-gh span{color:var(--dim);font-size:11.5px}
.wk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:10px}
.wk-item{background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:11px 13px;display:flex;flex-direction:column;gap:5px;transition:border-color .12s}
.wk-item:hover{border-color:var(--teal)}
.wk-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:3px}
.wk-dest{color:var(--ink);font-weight:700;font-size:13.5px;text-decoration:none}
.wk-dest:hover{color:var(--teal)}
.wk-total{color:var(--amber);font-weight:800;font-size:13px;white-space:nowrap}
.wk-leg{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;font-size:12px;color:var(--mut)}
.wk-leg b{color:var(--ink);font-weight:600}
.wk-dir{width:32px;flex:none;font-size:10px;color:var(--dim);letter-spacing:.06em;text-transform:uppercase}
.wk-more{margin-top:10px;font-family:inherit;font-size:11px;padding:6px 12px;border-radius:7px;border:1px solid var(--line2);background:var(--bg);color:var(--mut);cursor:pointer}
.wk-more:hover{border-color:var(--teal);color:var(--teal)}
@media(max-width:640px){
  .tchip-lab{margin-left:0;flex-basis:100%}
  .tdrop{width:100%}
  .weekend-pick{width:100%}
  .wk-field,.wkdrop{flex:1;width:auto}
}
.wk-leg b,.wk-leg span{white-space:nowrap}
