/* Navo Warehouses (wh.navo24.com), 14.11.2026 Callum. NAVO tokens from navo-ds.css, same shell as transport.navo24.com. */
:root {
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px); --safe-l: env(safe-area-inset-left, 0px);
  --panel-w: 404px; --edge: 20px;
  --t-general: #113EC9; --t-cold: #0284C7; --t-bonded: #7044EC; --t-cfs: #B45309; --t-fulfilment: #0E9F6E; --t-hazmat: #DC2626; --t-yard: #64748B; --t-crossdock: #DB2777;
}
body[data-layout=wide] { --panel-w: 560px; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; font-family: var(--font-sans); color: var(--text-primary); background: var(--bg-sunken); -webkit-font-smoothing: antialiased; }
#map { position: fixed; inset: 0; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--text-primary); }
[hidden] { display: none !important; }
.flag { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(16, 24, 40, .12); flex: none; vertical-align: -2px; }
.mono { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-tertiary); }
.nw { white-space: nowrap; }

/* ---------- list panel ---------- */
.pane {
  position: fixed; z-index: 5; top: calc(var(--edge) + var(--safe-t)); left: calc(var(--edge) + var(--safe-l)); bottom: var(--edge);
  width: var(--panel-w); display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--bg-raised) 94%, transparent); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--border-default); border-radius: 24px; box-shadow: var(--shadow-3); overflow: hidden; transition: width .2s;
}
body[data-layout=map] .pane { display: none; }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.pane-sub { font-size: 13px; color: var(--text-tertiary); white-space: nowrap; }
.srow { display: flex; gap: 8px; padding: 4px 16px 10px; }
.sbox { position: relative; flex: 1; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 14px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--bg-base); color: var(--text-tertiary); min-width: 0; }
.sbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.sbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; }
.sbox input::-webkit-search-cancel-button { display: none; }
.sx { border: 0; background: none; padding: 6px; border-radius: 999px; display: grid; place-items: center; color: var(--text-secondary); }
.sx:hover { background: var(--bg-sunken); }
.fbtn { position: relative; width: 44px; height: 44px; flex: none; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-base); display: grid; place-items: center; color: var(--text-secondary); }
.fbtn:hover, .fbtn[aria-expanded=true] { color: var(--accent); border-color: var(--accent); background: var(--accent-wash); }
.badge { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--brand-red); color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; border: 2px solid var(--bg-raised); }
.chiprow { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chiprow.hide { display: none; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 10px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent-wash); color: var(--accent); font-size: 12.5px; font-weight: 600; }
.fchip .flag { width: 16px; height: 12px; }

.body { position: relative; flex: 1; min-height: 0; overflow: auto; border-top: 1px solid var(--border-default); }
.list { list-style: none; margin: 0; padding: 6px 8px 12px; }
.list li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; cursor: pointer; }
.list li:hover, .list li.on { background: var(--accent-wash); }
.dotn { width: 30px; height: 30px; flex: none; border-radius: 999px; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 2px solid #fff; box-shadow: var(--shadow-1); }
.list .tx { min-width: 0; flex: 1; }
.list .t { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .s { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; }
.list .s span { overflow: hidden; text-overflow: ellipsis; }
.list .m { font-size: 12px; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.list .empty { display: block; cursor: default; color: var(--text-secondary); font-size: 14px; padding: 24px 12px; line-height: 1.5; }
.list .empty:hover { background: none; }
.st { flex: none; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--bg-sunken); color: var(--text-secondary); white-space: nowrap; }
.st.g { background: #E7F7EF; color: #0B7A55; } .st.a { background: #FFF4E5; color: #A15C07; } .st.x { background: #F1F2F4; color: #6B7280; }
.tchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.tchip::before { content: ''; width: 9px; height: 9px; border-radius: 99px; background: var(--c); }

.foot { display: flex; gap: 14px; align-items: center; padding: 10px 18px calc(10px + var(--safe-b)); border-top: 1px solid var(--border-default); font-size: 12px; color: var(--text-tertiary); }
.foot a { color: var(--text-secondary); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.foot a .ic { width: 14px; height: 14px; }
.foot span { margin-right: auto; }

/* ---------- card ---------- */
.card { padding: 0 0 18px; }
.card-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: var(--bg-raised); border-bottom: 1px solid var(--border-default); }
.card-top .back { border: 0; background: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 999px; font-size: 14px; color: var(--text-secondary); }
.card-top .back:hover { background: var(--bg-sunken); }
.card .ph { margin: 0; position: relative; aspect-ratio: 16 / 9; background: var(--bg-sunken); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .ph figcaption { position: absolute; left: 10px; bottom: 8px; font-size: 11px; color: #fff; background: rgba(16, 24, 40, .55); padding: 2px 8px; border-radius: 999px; }
.card .hd { padding: 14px 18px 4px; }
.card h1 { margin: 6px 0 0; font-family: var(--font-display); font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.card .sub { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--text-secondary); font-size: 14px; }
.offer { margin: 12px 18px 0; padding: 12px 14px; border-radius: 16px; background: var(--accent-wash); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.offer b { display: block; font-size: 15px; color: var(--text-primary); }
.offer small { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.kv { margin: 10px 18px 0; display: grid; grid-template-columns: 128px 1fr; border-top: 1px solid var(--border-default); }
.kv dt, .kv dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--border-default); font-size: 14px; }
.kv dt { color: var(--text-tertiary); padding-right: 8px; }
.kv dd { color: var(--text-primary); min-width: 0; overflow-wrap: anywhere; }
.loc { display: inline-flex; align-items: center; gap: 8px; }
.kv .num { font-family: var(--font-mono); font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.kv .num button { border: 0; background: none; padding: 2px; color: var(--text-tertiary); display: inline-grid; }
.card h3 { margin: 18px 18px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-tertiary); font-weight: 600; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 18px 0; }
.fine { margin: 12px 18px 0; font-size: 12px; color: var(--text-tertiary); line-height: 1.45; }
.btn { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-base); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: var(--text-primary); white-space: nowrap; }
.btn.pri { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover { box-shadow: var(--shadow-1); }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- tools over the map ---------- */
.mtop { position: fixed; z-index: 6; top: calc(var(--edge) + var(--safe-t)); right: calc(var(--edge) + 56px); display: flex; gap: 8px; align-items: center; }
.seg { display: flex; padding: 3px; background: var(--bg-raised); border: 1px solid var(--border-default); border-radius: 999px; box-shadow: var(--shadow-2); }
.seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.seg button .ic { width: 16px; height: 16px; }
.seg button[aria-pressed=true] { background: var(--accent); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-default); background: var(--bg-raised); box-shadow: var(--shadow-2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.pill .ic { width: 17px; height: 17px; }
.pill.ai { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill.cta { color: var(--accent); }
.pill:hover { box-shadow: var(--shadow-3); }
.mbar { position: fixed; z-index: 6; top: calc(var(--edge) + var(--safe-t)); right: var(--edge); width: 44px; padding: 2px 0; display: flex; flex-direction: column; align-items: center;
  background: var(--bg-raised); border: 1px solid var(--border-default); border-radius: 12px; box-shadow: var(--shadow-2); }
.mbar button { width: 42px; height: 40px; border: 0; background: none; display: grid; place-items: center; color: var(--text-primary); border-radius: 10px; }
.mbar button:hover, .mbar button[aria-expanded=true] { color: var(--accent); background: var(--accent-wash); }
.mbar hr { width: 26px; border: 0; border-top: 1px solid var(--border-default); margin: 3px 0; }
.tpop { position: fixed; z-index: 7; right: calc(var(--edge) + 54px); width: 300px; padding: 14px 16px; background: var(--bg-raised); border: 1px solid var(--border-default); border-radius: 18px; box-shadow: var(--shadow-4); }
.tpop h4, .fpop h4 { margin: 12px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-tertiary); }
.tpop h4:first-child { margin-top: 0; }
.radio, .chk { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 5px 0; cursor: pointer; color: var(--text-primary); }
.radio input, .chk input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; flex: none; }
.legend { display: flex; flex-direction: column; gap: 2px; }
.lg { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 5px 6px; border-radius: 8px; font-size: 13.5px; text-align: left; }
.lg i { width: 14px; height: 14px; border-radius: 99px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border-default); }
.lg[aria-pressed=true] { background: var(--accent-wash); color: var(--accent); font-weight: 600; }
.ptxt { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; margin: 0 0 10px; }
.pcards { display: grid; gap: 8px; }
.pc { border: 1px solid var(--border-default); border-radius: 14px; padding: 12px; display: grid; gap: 6px; }
.pc b { font-size: 14px; } .pc span { font-size: 13px; color: var(--text-secondary); } .pc .btn { justify-self: start; height: 34px; }

/* ---------- filter popover: over the map, right of the list ---------- */
.fpop { position: fixed; z-index: 8; top: calc(var(--edge) + var(--safe-t)); left: calc(var(--edge) + var(--panel-w) + 12px); width: 440px; max-height: calc(100vh - 2 * var(--edge));
  overflow: auto; padding: 16px 18px; background: var(--bg-raised); border: 1px solid var(--border-default); border-radius: 22px; box-shadow: var(--shadow-4); }
body[data-layout=map] .fpop { left: var(--edge); }
.fhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 16px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.fld { display: grid; gap: 5px; min-width: 0; }
.fld > span { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.fld input, .fld select, .fld textarea, .cbtn { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--bg-base); outline: 0; font-size: 14px; min-width: 0; }
.fld textarea { height: auto; padding: 10px 12px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; padding-right: 28px !important; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .cbtn:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.combo { position: relative; }
.cbtn { display: flex; align-items: center; gap: 8px; text-align: left; }
.cbtn span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbtn .ph { color: var(--text-tertiary); }
.clist { position: absolute; z-index: 3; top: 44px; left: 0; width: 260px; padding: 6px; background: var(--bg-raised); border: 1px solid var(--border-default); border-radius: 14px; box-shadow: var(--shadow-4); }
.clist input { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 10px; margin-bottom: 4px; outline: 0; background: var(--bg-base); }
.clist ul { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow: auto; }
.clist li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.clist li span { flex: 1; } .clist li small { color: var(--text-tertiary); font-size: 12px; }
.clist li:hover, .clist li[aria-selected=true] { background: var(--accent-wash); }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.svc .chk { font-size: 13px; }
.chk.exp { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border-default); font-weight: 600; }
.fpop-foot { position: sticky; bottom: -16px; margin: 12px -18px -16px; padding: 12px 18px 16px; background: var(--bg-raised); display: flex; justify-content: space-between; border-top: 1px solid var(--border-default); }

/* ---------- table view: covers map and filters ---------- */
.tview { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; background: var(--bg-raised); }
.thead { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border-default); }
.thead .pane-sub { margin-right: auto; }
.thead .chk { font-size: 13.5px; }
.thead .btn { height: 36px; }
.twrap { flex: 1; overflow: auto; }
.tbl { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13.5px; }
.tbl thead th { position: sticky; z-index: 2; background: var(--bg-raised); text-align: left; font-weight: 600; border-bottom: 1px solid var(--border-default); padding: 0; white-space: nowrap; }
.tbl thead tr:first-child th { top: 0; }
.tbl thead tr:nth-child(2) th { top: 38px; padding: 4px 6px 8px; }
.tbl th button { border: 0; background: none; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; gap: 4px; color: var(--text-secondary); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.tbl th[aria-sort=ascending] button, .tbl th[aria-sort=descending] button { color: var(--accent); }
.tbl .tf input, .tbl .tf select { width: 100%; min-width: 96px; height: 32px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg-base); font-size: 13px; outline: 0; }
.tbl .tf input:focus, .tbl .tf select:focus { border-color: var(--accent); }
.tbl th:last-child, .tbl td:last-child { padding-right: 20px; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--border-default); vertical-align: middle; }
.tbl td.tt { min-width: 260px; font-weight: 500; }
.tbl th[data-sort=free] button, .tbl th[data-sort=total] button { margin-left: auto; display: flex; }
.tbl td.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover td { background: var(--accent-wash); }
.tbl tr.ex td { color: var(--text-tertiary); }
.tbl td.empty { text-align: center; color: var(--text-secondary); padding: 40px; cursor: default; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(16, 24, 40, .45); display: grid; place-items: center; padding: 16px; }
.mbox { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--bg-raised); border-radius: 22px; box-shadow: var(--shadow-4); padding: 22px 22px 18px; }
.mbox h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.mclose { position: absolute; top: 12px; right: 12px; border: 0; background: none; padding: 8px; border-radius: 999px; display: grid; }
.mclose:hover { background: var(--bg-sunken); }
.msub { margin: 0 0 12px; color: var(--text-secondary); font-size: 14px; }
.mwh { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--bg-sunken); margin: 6px 0 14px; }
.mwh b { display: block; font-size: 14px; } .mwh small { display: block; font-size: 12.5px; color: var(--text-secondary); }
#aform { display: grid; gap: 10px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#aform .fine { margin: 0; }
.merr { color: #B42318; font-size: 13.5px; }
.mfoot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.done { text-align: center; padding: 18px 6px 6px; } .done .ic { color: #0B7A55; } .done p { color: var(--text-secondary); line-height: 1.5; }

.maplibregl-ctrl-group { border-radius: 12px !important; box-shadow: var(--shadow-2) !important; }
.tip .maplibregl-popup-content { border-radius: 12px; padding: 8px 10px; font: 13px/1.4 var(--font-sans); box-shadow: var(--shadow-3); color: #101828; }
.tip .flag { width: 16px; height: 12px; }

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  :root { --edge: 0px; --panel-w: 100vw; }
  body[data-layout=wide] { --panel-w: 100vw; }
  .pane { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 50vh; border-radius: 22px 22px 0 0; border-bottom: 0; }
  .pane.open { height: 74vh; }
  .pane-head { padding: 12px 16px 6px; }
  .brand { font-size: 19px; }
  .pane.open .foot, .pane.open .srow, .pane.open .pane-head { display: none; }
  .mtop { top: calc(10px + var(--safe-t)); left: 10px; right: 60px; gap: 6px; }
  .mtop .seg button { padding: 0 10px; } .mtop .seg button span { display: none; }
  .pill { height: 40px; padding: 0 12px; } .pill.cta span { display: none; }
  .mbar { top: calc(10px + var(--safe-t)); right: 10px; }
  .tpop { right: 62px; width: min(290px, calc(100vw - 74px)); }
  .fpop { top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 82vh; border-radius: 22px 22px 0 0; }
  .fgrid, .svc, .frow { grid-template-columns: 1fr; }
  .card h1 { font-size: 19px; }
  .kv { grid-template-columns: 108px 1fr; }
  .thead { padding: 10px 12px; gap: 8px; }
  .thead .brand span { display: none; }
  .maplibregl-ctrl-bottom-right { bottom: 50vh; }
}
