/* ============================================================================
   Cost Map — dark chart-room palette: deep navy stage, teal for the world,
   amber for money and coffee.  The map is the page; everything else floats
   over it in glass panels so the globe is never boxed in.
   ========================================================================== */

:root {
  --bg: #070d16;
  --bg2: #0b1420;
  --panel: rgba(11, 19, 30, .90);
  --panel-solid: #0c1622;
  --line: rgba(125, 162, 192, .17);
  --line-str: rgba(125, 162, 192, .34);
  --fg: #e2ebf4;
  --mid: #b6c7d8;
  --muted: #8399ae;
  --teal: #2fd6b0;
  --amber: #f0a63c;
  --red: #e2603b;
  --green: #4fbd72;
  --shadow: 0 10px 34px rgba(0, 0, 0, .55);
  --r: 11px;
  --topH: 58px;
  --botH: 138px;
  --panelW: 306px;
  --detailW: 352px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: radial-gradient(1200px 800px at 62% 34%, #10203a 0%, var(--bg) 62%);
  color: var(--fg);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
select, input { font: inherit; color: inherit; }
::selection { background: rgba(47, 214, 176, .3); }

/* thin scrollbars everywhere */
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(140, 175, 205, .2); border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(140, 175, 205, .38); }

/* ───────────────────────────── header ───────────────────────────── */
#topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--topH); z-index: 30;
  display: flex; align-items: center; gap: 14px; padding: 0 14px;
  background: linear-gradient(180deg, rgba(7, 13, 22, .96), rgba(7, 13, 22, .74) 72%, transparent);
  backdrop-filter: blur(9px);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 0 auto; }
.logo { width: 32px; height: 32px; flex: 0 0 auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: .2px; }
.brand-sub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; position: relative; }

#searchWrap { position: relative; }
#search {
  width: 252px; padding: 7px 11px; border-radius: 9px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); outline: none;
}
#search:focus { border-color: var(--teal); background: rgba(255, 255, 255, .09); }
#searchResults {
  position: absolute; top: 38px; left: 0; right: 0; z-index: 40;
  background: var(--panel-solid); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); overflow: hidden; max-height: 330px; overflow-y: auto;
}
.sr { padding: 8px 11px; cursor: pointer; display: flex; gap: 8px; align-items: center; font-size: 13px; }
.sr:hover { background: rgba(47, 214, 176, .13); }
.sr-v { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.sr.none { color: var(--muted); cursor: default; }

.picker {
  display: flex; align-items: center; gap: 5px; padding: 4px 8px 4px 7px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 9px;
}
.picker select {
  background: transparent; border: none; outline: none; padding: 3px 2px; max-width: 118px;
  -webkit-appearance: none; appearance: none; cursor: pointer; font-size: 13px;
}
.picker select option { background: var(--panel-solid); }
.pk-ic { font-size: 13px; opacity: .85; }
.fx-note { font-size: 9.5px; color: var(--muted); letter-spacing: .3px; }
.picker.home select { max-width: 132px; }

.tbtn {
  position: relative; width: 34px; height: 34px; border-radius: 9px; font-size: 15px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
}
.tbtn:hover { background: rgba(255, 255, 255, .11); }
#cmpBtn.has { border-color: var(--amber); }
.badge {
  position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 8px; background: var(--amber); color: #21160a; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.badge:empty { display: none; }

#menu {
  position: absolute; top: 42px; right: 0; z-index: 40; width: 234px; padding: 6px;
  background: var(--panel-solid); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow);
}
.mi {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 9px;
  background: none; border: none; border-radius: 8px; text-align: left; font-size: 13px;
}
.mi:hover { background: rgba(47, 214, 176, .14); }
.mi-ic { width: 17px; text-align: center; opacity: .85; }
.mi-sep { height: 1px; background: var(--line); margin: 5px 4px; }

/* ───────────────────────────── stage ───────────────────────────── */
#stage { position: fixed; inset: 0 0 var(--botH) 0; z-index: 1; }
#globeViz { position: absolute; inset: 0; }
#flatViz { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }

.flat-ocean { fill: #0a1727; stroke: rgba(120, 170, 200, .22); stroke-width: 1.2; }
.flat-graticule { fill: none; stroke: rgba(120, 170, 200, .10); stroke-width: .8; }
.flat-cell { stroke: rgba(6, 12, 20, .85); stroke-width: .6; transition: fill .18s; }
.flat-cell.hi { stroke: #fff; stroke-width: 1.4; }
.flat-dot { stroke: rgba(7, 13, 22, .9); stroke-width: 1; }
.flat-dot.hi { stroke: #fff; stroke-width: 1.6; }
.flat-hit { fill: transparent; stroke: transparent; cursor: pointer; }

.gdot {
  width: 9px; height: 9px; border-radius: 50%; cursor: pointer;
  border: 1.2px solid rgba(7, 13, 22, .8); box-shadow: 0 0 5px rgba(0, 0, 0, .6);
}
.gdot.hi { outline: 2px solid #fff; outline-offset: 1px; }

#loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 15px;
  align-items: center; justify-content: center; z-index: 5; pointer-events: none;
}
.ld-dot { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(47, 214, 176, .22); border-top-color: var(--teal); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ld-t { color: var(--muted); font-size: 13px; letter-spacing: .3px; }
.ld-err { color: var(--red); font-size: 14px; }

#tooltip {
  position: fixed; z-index: 50; pointer-events: none; padding: 9px 11px; max-width: 240px;
  background: rgba(8, 15, 25, .96); border: 1px solid var(--line-str); border-radius: 10px;
  box-shadow: var(--shadow); font-size: 12.5px;
}
.tt-h { font-weight: 650; margin-bottom: 3px; }
.tt-v { font-size: 19px; font-weight: 700; color: var(--amber); font-variant-numeric: tabular-nums; line-height: 1.2; }
.tt-s { color: var(--muted); font-size: 11.5px; }
.tt-c { color: var(--mid); font-size: 11.5px; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.tt-nd { color: var(--muted); font-style: italic; }

#toast {
  position: fixed; bottom: calc(var(--botH) + 18px); left: 50%; transform: translateX(-50%); z-index: 60;
  padding: 10px 16px; background: rgba(8, 15, 25, .96); border: 1px solid var(--line-str);
  border-radius: 10px; box-shadow: var(--shadow); font-size: 13px;
}

/* ─────────────────────────── left panel ─────────────────────────── */
#panel {
  position: fixed; left: 12px; top: calc(var(--topH) + 6px); z-index: 20;
  width: var(--panelW); max-height: calc(100vh - var(--topH) - var(--botH) - 18px);
  display: flex; flex-direction: column; padding: 12px;
  background: var(--panel); backdrop-filter: blur(11px);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.p-cap { display: flex; align-items: center; font-size: 10.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
#panelToggle {
  margin-left: auto; width: 20px; height: 18px; border-radius: 5px; line-height: 1;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
#panelToggle:hover { background: rgba(47, 214, 176, .2); color: var(--fg); }
#panel.collapsed > *:not(.p-cap):not(#lensSel) { display: none; }
#panel.collapsed #lensSel { margin-bottom: 0; }
#lensSel {
  width: 100%; padding: 8px 9px; border-radius: 9px; cursor: pointer;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line-str); outline: none; font-size: 13.5px; font-weight: 600;
}
#lensSel:focus { border-color: var(--teal); }
#lensSel optgroup { background: var(--panel-solid); font-style: normal; color: var(--teal); }
#lensSel option { background: var(--panel-solid); color: var(--fg); font-weight: 400; }
.p-desc { margin: 8px 2px 10px; font-size: 12px; line-height: 1.5; color: var(--mid); }

.rel-home { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--mid); margin: -4px 2px 10px; cursor: pointer; }
.rel-home.off { display: none; }
.rel-home input { accent-color: var(--teal); }

.legend { margin-bottom: 12px; }
.ramp { height: 10px; border-radius: 5px; }
.ramp-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--mid); margin-top: 4px; font-variant-numeric: tabular-nums; }
.ramp-ends .mid { color: var(--muted); }
.ramp-cap { font-size: 10.5px; color: var(--muted); margin-top: 3px; }

.rk-head { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 9px; }
.rk-cap { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.rk-flip { margin-left: auto; width: 26px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); font-size: 12px; }
.rk-flip:hover { background: rgba(47, 214, 176, .18); }
.rk-filters { display: flex; gap: 5px; margin: 7px 0; }
.rk-region {
  flex: 0 0 auto; max-width: 112px; padding: 5px 6px; font-size: 12px; border-radius: 7px; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); outline: none;
  -webkit-appearance: none; appearance: none;
}
.rk-region:focus { border-color: var(--teal); }
.rk-region option { background: var(--panel-solid); }
.rk-search {
  flex: 1; min-width: 0; padding: 5px 8px; font-size: 12px; border-radius: 7px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); outline: none;
}
.rk-search:focus { border-color: var(--teal); }
.rk-list { overflow-y: auto; flex: 1; min-height: 90px; margin: 0 -4px; padding: 0 2px; }
.rk {
  display: flex; align-items: center; gap: 6px; padding: 3.5px 5px; border-radius: 7px;
  cursor: pointer; font-size: 12.5px;
}
.rk:hover { background: rgba(255, 255, 255, .07); }
.rk.on { background: rgba(47, 214, 176, .17); }
.rk-n { width: 24px; text-align: right; color: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.rk-sw { width: 7px; height: 15px; border-radius: 2px; flex: 0 0 auto; }
.rk-f { flex: 0 0 auto; font-size: 12px; }
.rk-l { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-v { color: var(--amber); font-variant-numeric: tabular-nums; font-size: 12px; flex: 0 0 auto; }
.p-note { font-size: 10.5px; color: var(--muted); margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line); line-height: 1.45; }
.empty { color: var(--muted); font-size: 12.5px; padding: 14px 6px; line-height: 1.5; }

/* ─────────────────────────── detail card ─────────────────────────── */
#detail {
  position: fixed; right: 12px; top: calc(var(--topH) + 6px); z-index: 20;
  width: var(--detailW); max-height: calc(100vh - var(--topH) - var(--botH) - 18px);
  overflow-y: auto; padding: 13px 14px 15px;
  background: var(--panel); backdrop-filter: blur(11px);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.card-x {
  position: absolute; top: 8px; right: 9px; width: 26px; height: 26px; border-radius: 7px;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line); font-size: 15px; line-height: 1; z-index: 2;
}
.card-x:hover { background: rgba(226, 96, 59, .28); }
.d-head { display: flex; gap: 10px; align-items: center; padding-right: 30px; }
.d-flag { font-size: 27px; line-height: 1; }
.d-name { font-size: 17px; font-weight: 700; line-height: 1.2; }
.d-sub { font-size: 11.5px; color: var(--muted); }
.d-acts { display: flex; gap: 6px; margin: 10px 0 11px; }
.d-act {
  flex: 1; padding: 5px 8px; font-size: 11.5px; border-radius: 8px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
}
.d-act:hover { background: rgba(255, 255, 255, .12); }
.d-act.on { background: rgba(240, 166, 60, .22); border-color: var(--amber); color: #ffd79a; }

.d-hero { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.hero-v { font-size: 31px; font-weight: 800; line-height: 1.05; color: var(--amber); font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.hero-l { font-size: 12.5px; color: var(--mid); margin-top: 2px; }
.hero-r { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.hero-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; margin-top: 11px; }
.chip { background: rgba(255, 255, 255, .05); border-radius: 8px; padding: 6px 7px; text-align: center; }
.ch-v { display: block; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ch-l { display: block; font-size: 9.5px; color: var(--muted); margin-top: 1px; line-height: 1.3; }

.rel { font-size: 10.5px; padding: 1px 6px; border-radius: 20px; margin-left: 6px; white-space: nowrap; }
.rel.up { background: rgba(226, 96, 59, .2); color: #ffab8d; }
.rel.down { background: rgba(79, 189, 114, .18); color: #9ce6b4; }
.rel.same { background: rgba(255, 255, 255, .08); color: var(--muted); }

.d-tip {
  margin: 11px 0 3px; padding: 9px 11px; font-size: 12.5px; line-height: 1.55; color: var(--mid);
  background: rgba(240, 166, 60, .08); border-left: 2px solid var(--amber); border-radius: 0 8px 8px 0;
}
.tip-q { color: var(--amber); font-size: 17px; font-weight: 700; margin-right: 1px; }
.conf { display: inline-block; margin-left: 7px; font-size: 9.5px; padding: 1px 6px; border-radius: 20px; background: rgba(255, 255, 255, .09); color: var(--muted); }
.conf.low { background: rgba(226, 96, 59, .18); color: #ffab8d; }

.d-basket { margin-top: 13px; }
.bsec + .bsec { margin-top: 12px; }
.bsec-h { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; padding-bottom: 3px; border-bottom: 1px solid var(--line); }
.brow { display: flex; align-items: center; gap: 7px; padding: 3.5px 5px; border-radius: 7px; cursor: pointer; font-size: 12.5px; }
.brow:hover { background: rgba(255, 255, 255, .07); }
.brow.on { background: rgba(47, 214, 176, .15); }
.b-i { width: 16px; text-align: center; flex: 0 0 auto; }
.b-l { flex: 1; color: var(--mid); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-v { font-weight: 650; font-variant-numeric: tabular-nums; flex: 0 0 auto; }

/* ─────────────────────────── trip bar ─────────────────────────── */
#tripbar {
  position: fixed; inset: auto 0 0 0; height: var(--botH); z-index: 25;
  padding: 9px 16px 8px;
  background: linear-gradient(0deg, rgba(7, 13, 22, .97) 62%, rgba(7, 13, 22, .82));
  backdrop-filter: blur(9px); border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.trip-controls { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tc-block { display: flex; flex-direction: column; gap: 3px; }
.tc-cap { font-size: 10.5px; color: var(--muted); letter-spacing: .3px; }
.tc-cap b { color: var(--fg); font-variant-numeric: tabular-nums; }
.tiers { display: flex; gap: 4px; }
.tier {
  padding: 4px 10px; font-size: 12px; border-radius: 7px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
}
.tier:hover { background: rgba(255, 255, 255, .11); }
.tier.on { background: rgba(47, 214, 176, .2); border-color: var(--teal); color: #b6f5e2; }
#daysRange, #budgetRange { width: 186px; accent-color: var(--amber); cursor: pointer; }
.trip-sum { flex: 1; min-width: 260px; font-size: 12px; color: var(--muted); line-height: 1.5; text-align: right; }
.trip-sum b { color: var(--mid); }
.trip-sum .hl { color: var(--amber); }

.ladder-wrap { display: flex; align-items: center; gap: 9px; margin-top: 1px; }
#ladder { flex: 1; height: 44px; overflow: visible; }
.lad-end { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 48px; }
.lad-end:last-of-type { text-align: right; }
.lad-axis { stroke: rgba(125, 162, 192, .28); stroke-width: 1; }
.lad-t { stroke-width: 2.1; cursor: pointer; opacity: .82; }
.lad-t:hover { stroke-width: 4; opacity: 1; }
.lad-t.sel { stroke-width: 3.4; opacity: 1; }
.lad-t.home { stroke-width: 3; opacity: 1; }
.lad-m { font-size: 10px; fill: var(--mid); }
.lad-m.home { fill: var(--teal); }
.lad-m.sel { fill: var(--amber); }
.lad-cap { font-size: 10px; color: var(--muted); text-align: center; margin-top: -3px; }

/* ─────────────────────────── overlays ─────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center;
  padding: 26px; background: rgba(4, 8, 14, .74); backdrop-filter: blur(4px);
}
.ov-box {
  position: relative; width: min(660px, 100%); max-height: 88vh; overflow-y: auto;
  padding: 26px 28px 24px; background: var(--panel-solid);
  border: 1px solid var(--line-str); border-radius: 15px; box-shadow: var(--shadow);
}
.ov-box.wide { width: min(1080px, 100%); }
.ov-box h2 { margin: 0 0 12px; font-size: 21px; }
.ov-box p { font-size: 13.5px; line-height: 1.62; color: var(--mid); }
.ov-lead { color: var(--fg) !important; font-size: 14.5px !important; }
.ov-steps { display: flex; flex-direction: column; gap: 11px; margin: 17px 0; }
.ov-step { display: flex; gap: 12px; font-size: 13px; line-height: 1.55; color: var(--mid); }
.ov-step > span { font-size: 18px; width: 26px; flex: 0 0 auto; text-align: center; }
.ov-step b { color: var(--fg); }
.ov-cav { background: rgba(226, 96, 59, .08); border-left: 2px solid var(--red); padding: 10px 13px; border-radius: 0 8px 8px 0; font-size: 12.5px !important; }
.ov-cov { background: rgba(255, 255, 255, .04); border-radius: 8px; padding: 9px 13px; font-size: 12.5px !important; font-variant-numeric: tabular-nums; }
.ov-cov b { color: var(--amber); }
.ov-src { font-size: 11.5px !important; color: var(--muted) !important; }
.ov-src a { color: var(--teal); }
.ov-btn {
  display: block; width: 100%; margin-top: 16px; padding: 11px; border-radius: 10px; font-weight: 650;
  background: var(--teal); color: #04241c; border: none;
}
.ov-btn:hover { filter: brightness(1.12); }

.csv-btn {
  display: inline-block; margin-left: 10px; padding: 4px 11px; font-size: 12px; border-radius: 7px;
  background: rgba(47, 214, 176, .15); border: 1px solid rgba(47, 214, 176, .45); color: #b6f5e2;
}
.csv-btn:hover { background: rgba(47, 214, 176, .28); }

/* the whole table */
.tbl-wrap { overflow: auto; max-height: 64vh; margin-top: 12px; border: 1px solid var(--line); border-radius: 9px; }
.tbl { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12px; }
.tbl th {
  position: sticky; top: 0; z-index: 2; background: #111e2c; padding: 7px 9px; text-align: right;
  font-size: 10.5px; color: var(--mid); font-weight: 600; cursor: pointer; white-space: nowrap; border-bottom: 1px solid var(--line-str);
}
.tbl th:hover { color: var(--teal); }
.tbl th.sorted { color: var(--amber); }
.tbl th.sticky, .tbl td.sticky { position: sticky; left: 0; text-align: left; background: #111e2c; z-index: 1; }
.tbl th.sticky { z-index: 3; }
.tbl td { padding: 5px 9px; text-align: right; font-variant-numeric: tabular-nums; border-bottom: 1px solid rgba(125, 162, 192, .08); white-space: nowrap; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover td { background: rgba(47, 214, 176, .11); }
.tbl tbody tr:hover td.sticky { background: #16283a; }

/* compare */
.cmp-wrap { overflow: auto; max-height: 66vh; margin-top: 12px; }
.cmp { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.cmp th, .cmp td { padding: 6px 10px; border-bottom: 1px solid rgba(125, 162, 192, .1); text-align: right; font-variant-numeric: tabular-nums; }
.cmp thead th { position: sticky; top: 0; background: var(--panel-solid); font-size: 12px; line-height: 1.5; z-index: 2; }
.cmp tbody th { text-align: left; font-weight: 400; color: var(--mid); }
.cmp td.good { color: #9ce6b4; font-weight: 650; }
.cmp td.bad { color: #ffab8d; font-weight: 650; }
.cmp-sec td { background: rgba(255, 255, 255, .04); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); text-align: left; }
.cmp-x { margin-left: 6px; width: 18px; height: 18px; border-radius: 5px; background: rgba(255, 255, 255, .08); border: none; font-size: 11px; line-height: 1; }
.cmp-x:hover { background: rgba(226, 96, 59, .35); }

/* the coffee standard */
.cf-lead { font-size: 13.5px; line-height: 1.62; color: var(--mid); margin-bottom: 18px; }
.cf-lead b { color: var(--amber); }
.cf-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.cf-col h3 { margin: 0 0 8px; font-size: 13px; color: var(--teal); letter-spacing: .3px; }
.cf-row { display: flex; align-items: center; gap: 7px; padding: 3.5px 6px; border-radius: 7px; cursor: pointer; font-size: 12.5px; }
.cf-row:hover { background: rgba(47, 214, 176, .13); }
.cf-n { width: 18px; text-align: right; color: var(--muted); font-size: 10.5px; }
.cf-l { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-v { color: var(--amber); font-variant-numeric: tabular-nums; }
.cf-note { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 10px; }

/* ─────────────────────────── responsive ─────────────────────────── */
@media (max-width: 1180px) {
  .brand-sub { display: none; }
  #search { width: 180px; }
}
@media (max-width: 980px) {
  :root { --panelW: 262px; --detailW: 300px; }
  .picker.home { display: none; }
  .trip-sum { display: none; }
}
@media (max-width: 780px) {
  :root { --topH: 52px; --botH: 172px; }
  .brand-txt { display: none; }
  #search { width: 132px; }
  .picker { display: none; }
  #panel {
    left: 8px; right: 8px; width: auto;
    max-height: 44vh;
  }
  #detail {
    left: 8px; right: 8px; width: auto; top: auto;
    bottom: calc(var(--botH) + 8px); max-height: 56vh;
  }
  .trip-controls { gap: 12px; }
  #daysRange, #budgetRange { width: 128px; }
  .ov-box { padding: 20px 18px; }
}
