/* Revelion la munte — trail-marker language: red band, blue triangle, yellow dot on white squares */
:root {
  color-scheme: light;
  --snow: #f1f4f5;
  --paper: #ffffff;
  --wash: #e5ebed;
  --line: #d2dadc;
  --ink: #15302a;
  --ink-2: #4a5d58;
  --ink-3: #74837f;
  --red: #d2232a;
  --blue: #1f5fbf;
  --yellow: #e0a800;
  --yellow-edge: #8a6500;
  --ok: #1c7a4d;
  --f-body: 'Sofia Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-cond: 'Sofia Sans Condensed', 'Sofia Sans', system-ui, sans-serif;
  --f-xcond: 'Sofia Sans Extra Condensed', 'Sofia Sans Condensed', system-ui, sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 150px; }
body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font: 400 16px/1.45 var(--f-body);
  font-variant-numeric: lining-nums;
}
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ header */
.top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: end;
  padding: clamp(28px, 5vw, 64px) var(--gutter) 28px;
}
.top h1 {
  font: 800 clamp(64px, 11vw, 148px)/0.86 var(--f-xcond);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.lede { margin-top: 18px; font-size: 19px; max-width: 62ch; color: var(--ink); }
.fresh { margin-top: 6px; font-size: 14px; color: var(--ink-2); max-width: 70ch; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.presets button { background: none; border: 0; border-bottom: 2px solid var(--ink); padding: 4px 0 3px; margin-right: 14px; font-size: 15.5px; font-weight: 600; text-align: left; }
.presets button:hover { border-bottom-color: var(--red); color: var(--red); }

.car {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px 18px;
  align-items: end;
  padding: 16px 18px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 4px;
  border-left: 6px solid var(--ink);
  max-width: 470px;
}
.car h2 { grid-column: 1 / -1; font: 700 17px/1 var(--f-body); }
.car label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.car .inp { display: flex; align-items: baseline; gap: 6px; color: var(--ink); font-size: 14px; white-space: nowrap; }
.car input[type=number] {
  width: 4.6em; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--snow);
  font: 600 18px/1 var(--f-cond); font-variant-numeric: tabular-nums;
}
.car .chk { grid-auto-flow: column; justify-content: start; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.car-note { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); max-width: 46ch; }

/* ------------------------------------------------------------ overview chart */
.overview {
  margin: 0 var(--gutter) 22px;
  padding: 18px 20px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.ov-head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; }
.ov-head h2 { font: 700 22px/1.15 var(--f-body); }
.ov-ctl label { font-size: 14px; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 2px; font-size: 14px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend b { color: var(--ink); font-weight: 600; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart .grid line { stroke: var(--wash); stroke-width: 1; }
.chart .axis text { fill: var(--ink-3); font: 500 12.5px var(--f-cond); font-variant-numeric: tabular-nums; }
.chart .axis-title { fill: var(--ink-2); font: 500 13px var(--f-body); }
.chart .budget line { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart .budget text { fill: var(--ink); font: 600 12.5px var(--f-cond); }
.chart .ghost { fill: #c3ccce; }
.chart .mark { cursor: pointer; }
.chart .mark .halo { fill: var(--paper); stroke: var(--paper); stroke-width: 2.5; stroke-linejoin: round; }
.chart .mark.both .shape { fill: var(--red); }
.chart .mark.one .shape { fill: var(--blue); }
.chart .mark.none .shape { fill: var(--yellow); stroke: var(--yellow-edge); stroke-width: 1; }
.chart .mark.hot .halo { stroke: var(--ink); stroke-width: 5; }
.chart .mark.faved .halo { stroke: var(--ink); stroke-width: 4; }

.tip {
  position: fixed; z-index: 60; pointer-events: none; max-width: 300px;
  background: var(--ink); color: #fff; border-radius: 8px; padding: 10px 12px; font-size: 13.5px; line-height: 1.35;
  box-shadow: 0 6px 22px rgba(21, 48, 42, .28);
}
.tip b { display: block; font-size: 15px; margin-bottom: 2px; }
.tip span { display: block; color: #cfdad7; }

/* ------------------------------------------------------------ controls */
.controls {
  margin: 0 var(--gutter);
  padding: 16px 20px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  border-bottom: 0;
}
.ctl-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: end; }
.ctl-row + .ctl-row { margin-top: 14px; }
.field { display: grid; gap: 5px; font-size: 13.5px; color: var(--ink-2); }
.field output { color: var(--ink); font: 700 15px/1 var(--f-cond); font-variant-numeric: tabular-nums; margin-left: 4px; }
.field.inline { grid-auto-flow: column; align-items: center; gap: 8px; }
select, input[type=search] {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font-size: 15px;
  min-height: 38px;
}
select { padding-right: 28px; }
input[type=search] { width: 15em; max-width: 100%; }
.range { min-width: 190px; flex: 1 1 190px; max-width: 280px; }
input[type=range] { width: 100%; accent-color: var(--ink); height: 26px; margin: 0; }
.toggles { align-items: center; gap: 8px 8px; }
.tog {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 14px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; font-size: 14.5px; font-weight: 500;
}
.tog:hover { border-color: var(--ink-3); }
.tog[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tog .star { color: var(--yellow); font-size: 16px; line-height: 1; }
.tog .ic { width: 17px; height: 17px; display: inline-flex; }
.tog .ic svg, .chip svg { width: 100%; height: 100%; display: block; }
.more { position: relative; }
.more summary {
  list-style: none; cursor: pointer; min-height: 38px; display: inline-flex; align-items: center; padding: 6px 14px;
  border: 1.5px dashed var(--line); border-radius: 999px; font-size: 14.5px; font-weight: 500;
}
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { border-style: solid; border-color: var(--ink); }
.more-body {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: min(92vw, 560px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; padding: 18px 20px;
  background: var(--paper); border: 1px solid var(--ink); border-radius: 12px; box-shadow: 0 14px 40px rgba(21, 48, 42, .18);
}
.more-body fieldset { min-width: 0; }
.more-body fieldset > select { width: 100%; max-width: 100%; }
.more-body legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.more-body fieldset:last-child { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.more-body fieldset:last-child legend { width: 100%; float: left; }
.checks { display: grid; gap: 6px; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink); }
.chk input { width: 17px; height: 17px; accent-color: var(--ink); margin: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.toggles .field.search { margin-left: auto; }
.toggles .field.search input { width: 17em; }
.reset { background: none; border: 0; padding: 8px 4px; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.reset:hover { color: var(--ink); }

.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
  margin: 0 var(--gutter); padding: 10px 20px;
  background: var(--ink); color: #fff;
  border-radius: 0 0 14px 14px;
}
.bar .count { font-size: 15px; margin-right: auto; }
.bar .count b { font: 700 20px/1 var(--f-cond); font-variant-numeric: tabular-nums; }
.bar .field { color: #c9d6d2; }
.bar select { min-height: 34px; padding-top: 5px; padding-bottom: 5px; border-color: transparent; }
.views { display: inline-flex; border: 1.5px solid #fff; border-radius: 8px; overflow: hidden; }
.views button { background: transparent; color: #fff; border: 0; padding: 6px 16px; font-size: 14.5px; font-weight: 600; min-height: 34px; }
.views button[aria-selected=true] { background: #fff; color: var(--ink); }
.copy { background: var(--yellow); color: #231a00; border: 0; border-radius: 8px; padding: 7px 14px; font-size: 14.5px; font-weight: 700; min-height: 34px; }

/* ------------------------------------------------------------ list */
main { padding: 18px var(--gutter) 40px; }
.cols, .r-main {
  display: grid;
  grid-template-columns: 176px minmax(230px, 1.7fr) repeat(5, minmax(112px, .62fr)) 44px;
  column-gap: 18px;
}
.cols { padding: 0 16px 8px; align-items: end; }
.cols button {
  background: none; border: 0; padding: 4px 0; text-align: left; font-size: 13.5px; color: var(--ink-2); font-weight: 500;
  display: inline-flex; gap: 5px; align-items: center; justify-self: start;
}
.cols button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cols button[aria-pressed=true] { color: var(--ink); font-weight: 700; }
.cols button[aria-pressed=true]::after { content: '▾'; font-size: 12px; }
.cols button[aria-pressed=true][data-dir=asc]::after { content: '▴'; }

.list { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.row { border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row.is-open { background: #fbfcfc; box-shadow: inset 5px 0 0 var(--ink); }
.r-main { padding: 16px; align-items: start; }

.r-photo {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--wash);
}
.r-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.r-photo .r-nph {
  position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; border-radius: 4px; background: rgba(21, 48, 42, .82); color: #fff;
  font: 600 12px/1.4 var(--f-cond);
}
.r-photo.nophoto { display: grid; place-items: center; color: var(--ink-3); font-size: 13px; }

.r-id h3 { display: flex; gap: 10px; align-items: flex-start; font: 700 18.5px/1.2 var(--f-body); }
.r-name { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; }
.r-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.r-place { margin-top: 5px; font-size: 14.5px; color: var(--ink-2); }
.r-place .r-elev { white-space: nowrap; color: var(--ink); font-weight: 600; margin-left: 6px; }
.r-facts { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.r-sum { margin-top: 8px; font-size: 14px; color: var(--ink); max-width: 60ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* trail markers */
.mk {
  flex: none; position: relative; display: inline-block; width: 21px; height: 21px; margin-top: 1px;
  background: #fff; border: 1.5px solid var(--ink); border-radius: 3px;
}
.mk::before { content: ''; position: absolute; }
.mk-both::before { left: 50%; top: 0; bottom: 0; width: 7px; transform: translateX(-50%); background: var(--red); }
.mk-one::before { inset: 2px; background: var(--blue); clip-path: polygon(50% 6%, 96% 92%, 4% 92%); }
.mk-none::before { left: 50%; top: 50%; width: 10px; height: 10px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1px var(--yellow-edge); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 5px; font-size: 13.5px; font-weight: 600; line-height: 1.3;
  background: var(--wash); color: var(--ink);
}
.chip svg { width: 15px; height: 15px; flex: none; }
.chip small { font-weight: 400; font-size: 12.5px; color: var(--ink-2); }
.chip-seen { background: #dff0e6; color: #0f4f31; }
.chip-seen small { color: #2c6a4b; }
.chip-claim { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.chip-warn { background: #fff3cf; color: #5c4300; padding-left: 9px; }
.chip-bad { background: #fde4e3; color: #8a1217; padding-left: 9px; }
.chip-note { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 500; padding-left: 9px; }

.m { display: grid; gap: 1px; font-size: 13.5px; color: var(--ink-2); align-content: start; }
.m b { font: 700 27px/1.05 var(--f-cond); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.005em; white-space: nowrap; }
.m b small { font: 500 15px var(--f-cond); color: var(--ink-3); }
.m b.na { color: var(--ink-3); font-weight: 500; font-size: 20px; }
.m .m-lbl { display: none; font-size: 12.5px; color: var(--ink-3); }
.m-price.over b { color: var(--red); }
.m .m-src { color: var(--ink); font-weight: 600; }
.m .m-dates { color: var(--blue); font-weight: 600; }
.m .m-unconf { color: #8a5a00; font-weight: 600; }
.m .m-over { color: var(--red); font-weight: 600; }
.m .m-score { margin-top: 3px; color: var(--ink); font-weight: 600; }

.r-act { display: grid; gap: 6px; justify-items: center; }
.r-act button {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); font-size: 19px; line-height: 1; color: var(--ink-3);
  display: grid; place-items: center;
}
.r-act button:hover { border-color: var(--ink); color: var(--ink); }
.r-act .fav[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.r-act .exp { transition: transform .18s ease; }
.row.is-open .r-act .exp { transform: rotate(180deg); border-color: var(--ink); color: var(--ink); }

.empty { padding: 48px 20px; text-align: center; font-size: 17px; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.morebtn { display: block; margin: 18px auto 0; padding: 12px 26px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 15px; }

/* ------------------------------------------------------------ detail */
.detail { padding: 4px 16px 26px; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.gal button { position: relative; padding: 0; border: 0; background: var(--wash); aspect-ratio: 4 / 3; border-radius: 5px; overflow: hidden; }
.gal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal span { position: absolute; left: 5px; bottom: 5px; padding: 1px 6px; border-radius: 3px; background: rgba(21, 48, 42, .8); color: #fff; font-size: 12px; }
.d-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 26px 32px; margin-top: 24px; }
.d-sec { grid-column: span 4; min-width: 0; }
.d-sec.wide { grid-column: span 8; }
.d-sec.full { grid-column: 1 / -1; }
.d-sec h4 { margin: 0 0 10px; font: 700 17px/1.2 var(--f-body); padding-bottom: 7px; border-bottom: 2px solid var(--ink); }
.d-sec p { font-size: 15px; max-width: 68ch; }
.d-sec p + p { margin-top: 8px; }
.d-sec .muted { color: var(--ink-2); font-size: 14px; }
.pm { display: grid; gap: 5px; margin-top: 10px; font-size: 15px; }
.pm li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; }
.pm li::before { font-weight: 800; }
.pm .plus::before { content: '+'; color: var(--ok); }
.pm .minus::before { content: '−'; color: var(--red); }
.kv { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 6px 16px; font-size: 14.5px; margin-top: 10px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th, .tbl td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-weight: 600; color: var(--ink-2); font-size: 13.5px; white-space: nowrap; }
.tbl td.num, .tbl th.num { text-align: right; padding-right: 0; padding-left: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td.num b { font: 700 17px/1.2 var(--f-cond); }
.tbl .sel td { background: #f3f7f6; }
.tbl small { display: block; color: var(--ink-2); font-size: 12.5px; }
.tbl-wrap { overflow-x: auto; }
.tbl td.muted { color: var(--ink-3); }
.tbl td.num a { color: var(--ink); text-decoration-color: var(--line); }
.tbl td.num a:hover { text-decoration-color: var(--ink); }
.packs, .terms { margin-top: 12px; display: grid; gap: 6px; font-size: 14.5px; }
.terms { color: var(--ink-2); font-size: 13.5px; }
.d-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--paper);
  color: var(--ink); font-weight: 700; font-size: 14.5px; text-decoration: none;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #0c211c; }
.amen { display: flex; flex-wrap: wrap; gap: 5px 6px; margin-top: 10px; }
.amen li { font-size: 13.5px; padding: 2px 8px; background: var(--wash); border-radius: 4px; }

/* ------------------------------------------------------------ map */
#map { height: min(76vh, 760px); border: 1px solid var(--line); border-radius: 14px; background: var(--wash); z-index: 1; }
.map-note { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.lmk { background: none; border: 0; }
.lmk .mk { width: 19px; height: 19px; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); margin: 0; }
.lmk.is-fav .mk { outline: 3px solid var(--ink); outline-offset: 1px; }
.lski { background: none; border: 0; color: var(--blue); font: 800 15px/1 var(--f-body); text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff; }
.lhome { background: var(--ink); color: #fff; border-radius: 4px; padding: 2px 7px; font: 700 13px/1.5 var(--f-cond); white-space: nowrap; width: auto !important; height: auto !important; }
.leaflet-container { font: inherit; }
.pop { width: 230px; font-size: 14px; }
.pop img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 5px; display: block; margin-bottom: 8px; }
.pop b { display: block; font-size: 15.5px; line-height: 1.25; }
.pop span { display: block; color: var(--ink-2); }
.pop button { margin-top: 8px; padding: 6px 12px; border-radius: 6px; border: 1.5px solid var(--ink); background: #fff; font-weight: 700; font-size: 13.5px; }

/* ------------------------------------------------------------ road notes */
.notes { margin: 0 var(--gutter) 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.notes summary { cursor: pointer; padding: 14px 20px; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; gap: 12px; align-items: center; }
.notes summary::-webkit-details-marker { display: none; }
.notes summary::before { content: '+'; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-weight: 700; line-height: 1; }
.notes[open] summary::before { content: '−'; }
.notes[open] summary { border-bottom: 1px solid var(--line); }
.foot { padding: 20px 20px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px 48px; }
.foot h2 { font: 700 19px/1.2 var(--f-body); margin-bottom: 10px; padding-bottom: 7px; border-bottom: 2px solid var(--ink); }
.foot li { position: relative; padding-left: 16px; margin-top: 7px; font-size: 14.5px; max-width: 70ch; }
.foot li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.foot p { font-size: 14.5px; max-width: 70ch; color: var(--ink-2); }
.foot p + p { margin-top: 8px; }

/* ------------------------------------------------------------ lightbox, toast */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(9, 22, 19, .94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox figure { grid-column: 2; display: grid; justify-items: center; gap: 10px; max-height: 100vh; padding: 16px 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain; border-radius: 4px; }
.lightbox figcaption { color: #dbe6e3; font-size: 14.5px; }
.lb-nav, .lb-x { background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; width: 64px; height: 64px; }
.lb-x { position: absolute; top: 8px; right: 8px; font-size: 38px; }
.lb-nav:hover, .lb-x:hover { color: var(--yellow); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 120; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 10px; font-weight: 600; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); }

/* ------------------------------------------------------------ narrower screens */
@media (max-width: 1280px) {
  .cols, .r-main { grid-template-columns: 150px minmax(210px, 1.5fr) repeat(5, minmax(98px, .6fr)) 40px; column-gap: 14px; }
  .m b { font-size: 24px; }
}
@media (max-width: 1080px) {
  .cols { display: none; }
  .r-main {
    grid-template-columns: 200px minmax(0, 1fr) 44px;
    grid-template-areas: 'photo id act' 'm m m';
    row-gap: 14px;
  }
  .r-photo { grid-area: photo; }
  .r-id { grid-area: id; }
  .r-act { grid-area: act; }
  .r-metrics { grid-area: m; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  .m .m-lbl { display: block; }
  .d-sec, .d-sec.wide { grid-column: span 6; }
}
@media (min-width: 1081px) {
  .r-metrics { display: contents; }
}
@media (max-width: 760px) {
  .top { grid-template-columns: 1fr; align-items: start; }
  .car { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .car .inp { flex-wrap: wrap; white-space: normal; row-gap: 2px; }
  .car input[type=number] { width: 100%; min-width: 3.4em; flex: 1 0 3.4em; }
  .overview, .controls, .bar, .notes { margin-left: 0; margin-right: 0; border-radius: 0; border-left: 0; border-right: 0; }
  .overview { padding: 16px 16px 8px; }
  .controls { padding: 14px 16px; }
  .bar { padding: 8px 16px; }
  .range { max-width: none; }
  .field.search, .field.search input { width: 100%; }
  main { padding: 14px 0 32px; }
  .list { border-radius: 0; border-left: 0; border-right: 0; }
  .r-main { grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: 'photo photo' 'id act' 'm m'; padding: 0 0 16px; }
  .r-photo { border-radius: 0; aspect-ratio: 16 / 10; }
  .r-id, .r-metrics { padding: 0 16px; }
  .r-act { padding-right: 12px; }
  .r-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
  .m-rate { grid-column: 1 / -1; }
  .detail { padding: 0 16px 22px; }
  .gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; -webkit-overflow-scrolling: touch; }
  .gal button { flex: 0 0 64%; scroll-snap-align: start; }
  .d-grid { gap: 22px; }
  .d-sec, .d-sec.wide { grid-column: 1 / -1; }
  .more-body { grid-template-columns: 1fr; position: static; width: auto; margin-top: 10px; box-shadow: none; }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
  .lb-nav { width: 44px; font-size: 34px; }
  #map { border-radius: 0; border-left: 0; border-right: 0; height: 70vh; }
  .map-note { padding: 0 16px; }
  .bar .count { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
