:root {
  --surface-0: #f1f5f9;
  --surface-1: #fbfcfe;
  --border: #dfe6ed;
  --text-primary: #10233a;
  --accent: #17395c;      /* deep glacier navy: selected states, buttons, route */
  --accent-soft: #e3edf6;
  --text-secondary: #4a5d70;
  --text-muted: #8696a7;
  /* category: violet / amber / teal, validated all-pairs and kept off the red–grey–blue snow scale */
  --cat-resort: #9085e9;
  --cat-freeride: #eda100;
  --cat-touring: #199e70;
  /* compare series slots 1-6 (fixed order) */
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300;
  /* diverging snow: red (below) — grey — blue (above) */
  --d-low2: #c43c3b; --d-low1: #ee9a99; --d-mid: #c9c8c3; --d-high1: #86b6ef; --d-high2: #1c5cab;
  --radius: 10px;
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Inter, system-ui, sans-serif;
  color: var(--text-primary);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--surface-0); }
button, select, input { font: inherit; }
.muted { color: var(--text-muted); }
.hidden { display: none !important; }

#app { display: grid; grid-template-columns: 330px 1fr; grid-template-rows: 1fr auto; height: 100vh; }
#sidebar { grid-row: 1 / 3; overflow-y: auto; background: linear-gradient(180deg, #eef4fa 0, var(--surface-1) 140px); border-right: 1px solid var(--border); padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 4px; }
#mapWrap { position: relative; grid-column: 2; grid-row: 1; }
#map { position: absolute; inset: 0; }

.brand h1 { font-size: 21px; margin: 0; letter-spacing: -0.02em; color: var(--accent); }
.brand p { margin: 2px 0 6px; font-size: 12px; }
.brand .logo { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: -4px 0 0; }
.brand .logo img { display: block; height: auto; }
.logo-art { width: 100%; }
.logo-word { width: 78%; }
.brand .tagline { margin: 4px 0 8px; text-align: center; }
.logo-tag { display: inline-block; width: 58%; height: auto; }
.brand #asof { text-align: center; }
.block { padding: 10px 0; border-top: 1px solid var(--border); }
.block.grow { display: flex; flex-direction: column; }
/* one scroll: the list flows in the sidebar, and its header sticks to the top while you scroll */
.list-top { position: sticky; top: -18px; z-index: 2; background: var(--surface-1); margin: 0 -18px; padding: 8px 18px 6px; border-bottom: 1px solid var(--border); }
.list-top input[type=search] { margin-bottom: 0; }
.block h2 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); margin: 0 0 8px; font-weight: 600; }

.cat-toggles { display: flex; flex-direction: column; gap: 6px; }
.cat-row { display: flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; color: inherit; text-align: left; cursor: pointer;
  width: calc(100% + 12px); margin: 0 -6px; padding: 3px 6px; border: 0; border-radius: 6px; background: none; }
.cat-row:hover { background: rgba(16,35,58,.05); }
.cat-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* the dot doubles as the checkbox: filled + tick when on, hollow ring when off */
.cat-row .dot { position: relative; width: 14px; height: 14px; border-radius: 50%; flex: none; box-sizing: border-box;
  background: var(--c); border: 2px solid var(--c); transition: background .15s; }
.cat-row .dot::after { content: ""; position: absolute; left: 3px; top: 0.5px; width: 3px; height: 6px;
  border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.cat-row.off .dot { background: transparent; }
.cat-row.off .dot::after { display: none; }
.cat-row.off b, .cat-row.off .muted { color: var(--text-secondary); opacity: .7; }
/* selected as a whole: tinted row; partly selected (some chips): half-filled dot */
.cat-row.sel { background: color-mix(in srgb, var(--c) 14%, transparent); }
.cat-row.sel:hover { background: color-mix(in srgb, var(--c) 20%, transparent); }
.cat-row.part .dot { background: linear-gradient(90deg, var(--c) 50%, transparent 50%); }
.cat-row.part .dot::after { display: none; }
.pick-note { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.subs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 4px 20px; }
.chip { border: 1px solid var(--border); background: var(--surface-1); border-radius: 999px; padding: 2px 9px; font-size: 12px; cursor: pointer; color: var(--text-secondary); }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }

.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-bottom: 8px; }
.months button { border: 1px solid var(--border); background: var(--surface-1); border-radius: 6px; padding: 4px 0; font-size: 12px; cursor: pointer; }
.months button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.months button.any { grid-column: span 6; }
.check { font-size: 13px; color: var(--text-secondary); display: flex; gap: 6px; align-items: center; }

.seg { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.seg button { flex: 1; border: 0; background: var(--surface-1); padding: 5px 4px; font-size: 12px; cursor: pointer; color: var(--text-secondary); }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.on { background: var(--accent); color: #fff; }
.range-label { font-size: 13px; color: var(--text-secondary); display: block; }
.range-label input { width: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--text-secondary); margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.list-head { display: flex; justify-content: space-between; align-items: baseline; }
.list-head select { font-size: 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-1); }
#search { width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 6px; font-size: 13px; }
.dest-list { list-style: none; margin: 0; padding: 0; }
.dest-list li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; padding: 6px 4px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.dest-list li:hover { background: var(--surface-0); }
.dest-list li.dim { opacity: .45; }
.dest-list .dot { width: 10px; height: 10px; border-radius: 50%; }
.dest-list .sub { font-size: 11px; color: var(--text-muted); }
.pill { font-size: 11px; padding: 1px 6px; border-radius: 999px; color: var(--text-primary); background: var(--surface-0); border: 1px solid var(--border); white-space: nowrap; }

/* detail panel */
#detail { position: absolute; top: 12px; right: 12px; bottom: 12px; width: 400px; z-index: 5; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.12); overflow-y: auto; padding: 16px 18px 20px; }
#detail .sticky-close { margin: -8px -10px 0 0; }
.close { border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--text-secondary); line-height: 1; }
.d-type { font-size: 12px; display: flex; gap: 6px; align-items: center; color: var(--text-secondary); flex-wrap: wrap; }
.d-type .dot { width: 9px; height: 9px; border-radius: 50%; }
#detail h3 { margin: 6px 30px 2px 0; font-size: 20px; letter-spacing: -0.01em; }
.pitch { font-size: 14px; line-height: 1.45; margin: 8px 0 12px; }
.actions { display: flex; gap: 6px; margin: 8px 0 14px; }
.btn { border: 1px solid var(--accent); color: var(--accent); background: var(--surface-1); border-radius: 8px; padding: 6px 10px; font-size: 13px; cursor: pointer; }
.btn.primary { background: var(--accent); color: #fff; }
.btn:disabled { opacity: .4; cursor: default; }
.section-title { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); margin: 16px 0 6px; font-weight: 600; }
.snowcard { background: var(--surface-0); border-radius: var(--radius); padding: 12px; }
.snow-head { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.hero { font-size: 30px; font-weight: 650; letter-spacing: -0.02em; line-height: 1; }
.hero-sub { font-size: 12px; color: var(--text-secondary); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.stat b { display: block; font-size: 15px; }
.stat span { font-size: 11px; color: var(--text-secondary); }
.note { font-size: 11px; color: var(--text-muted); margin-top: 8px; line-height: 1.4; }
.badge { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--surface-1); border: 1px solid var(--border); }
.facts { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; font-size: 13px; margin: 0; }
.facts dt { color: var(--text-secondary); }
.facts dd { margin: 0; }
.meter { display: inline-flex; gap: 2px; vertical-align: middle; }
.meter i { width: 8px; height: 8px; border-radius: 2px; background: var(--border); }
.meter i.f { background: var(--text-secondary); }
.children { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.children li { padding: 7px 4px; border-bottom: 1px solid var(--border); cursor: pointer; display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: start; }
.children li:hover { background: var(--surface-0); }
.children .dot.sm { width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px rgba(0,0,0,.08); }
.children .chev { color: var(--text-muted); font-size: 18px; line-height: 1; }
.children li b { font-weight: 600; }
.season-bar { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; margin-top: 4px; }
.season-bar div { height: 18px; border-radius: 3px; background: var(--surface-0); font-size: 10px; text-align: center; line-height: 18px; color: var(--text-muted); }
.season-bar div.in { background: #8fb2d6; color: #10233a; }
.season-bar div.best { background: var(--accent); color: #fff; }
.season-bar div.sel { outline: 2px solid #eda100; outline-offset: -1px; }

/* charts */
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
svg.chart text { font-size: 10px; fill: var(--text-muted); }
svg.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary); margin: 4px 0; }
.chart-legend span { display: inline-flex; gap: 5px; align-items: center; }
.chart-legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.tooltip { position: fixed; z-index: 50; pointer-events: none; background: #10233a; color: #fff; font-size: 12px; padding: 6px 8px; border-radius: 6px; max-width: 260px; line-height: 1.4; }

/* map popup */
.maplibregl-popup-content { border-radius: 10px; padding: 10px 12px; box-shadow: 0 6px 20px rgba(0,0,0,.15); font-family: inherit; }
.pop h4 { margin: 0 0 2px; font-size: 14px; }
.pop .row { font-size: 12px; color: var(--text-secondary); }
.pop .big { font-size: 13px; color: var(--text-primary); margin-top: 4px; }

/* tray */
#tray { grid-column: 2; grid-row: 2; background: var(--surface-1); border-top: 1px solid var(--border); padding: 8px 14px 10px; }
.tray-title { font-size: 13px; font-weight: 600; margin: 0 0 6px 2px; }
.tray-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 13px; background: var(--surface-1); }
.tchip i { width: 10px; height: 10px; border-radius: 50%; }
.tchip button { border: 0; background: none; cursor: pointer; color: var(--text-muted); font-size: 15px; padding: 0 4px; }
.fit-good { color: #006300; } .fit-ok { color: var(--text-secondary); } .fit-bad { color: #c43c3b; }

/* modal */
#modal { position: fixed; inset: 0; background: rgba(10,10,10,.35); z-index: 40; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-card { background: var(--surface-1); border-radius: 14px; width: min(1200px, 100%); max-height: 100%; overflow: auto; padding: 20px 24px 28px; position: relative; }
.modal-card .sticky-close { margin: -8px -12px 0 0; }
.modal-card h2 { margin: 0 0 4px; font-size: 20px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 12px; }
.cmp-table th, .cmp-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp-table th { color: var(--text-secondary); font-weight: 500; width: 150px; }
.cmp-table thead td { font-weight: 650; font-size: 14px; }
.cmp-table thead td i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 12px; }
.small-multiples { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.sm h5 { margin: 0 0 2px; font-size: 12px; display: flex; gap: 6px; align-items: center; }
.sm h5 i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.fab { display: none; }
.sb-close, .show-map, #sbBackdrop { display: none; }

/* mobile / narrow */
@media (max-width: 820px) {
  #app { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  #sidebar { position: fixed; inset: 0 20% 0 0; z-index: 30; transform: translateX(-105%); transition: transform .2s; box-shadow: 0 0 30px rgba(0,0,0,.2); }
  #sidebar.open { transform: none; }
  #mapWrap, #tray { grid-column: 1; }
  #detail { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 62vh; }
  .fab { display: block; position: absolute; top: 12px; left: 12px; z-index: 6; border: 1px solid var(--border); background: var(--surface-1); border-radius: 8px; padding: 6px 10px; }
  .cmp-grid { grid-template-columns: 1fr; }
  #sidebar { padding-bottom: 0; }
  .brand { position: relative; padding-top: 30px; }
  .logo-art { width: 92%; }
  .sb-close { display: flex; align-items: center; justify-content: center; position: absolute; top: -6px; right: -6px; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-1); font-size: 24px; line-height: 1; color: var(--text-primary); cursor: pointer; }
  .show-map { display: block; position: sticky; bottom: 0; margin: 8px -18px 0; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--border); background: var(--accent); color: #fff; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; z-index: 1; }
  body.sb-open #sbBackdrop { display: block; position: fixed; inset: 0; z-index: 29; background: rgba(16,35,58,.25); }
  /* keep the map credits to one small line on phones */
  .maplibregl-ctrl-attrib { font-size: 10px; line-height: 1.3; }
  #tray { padding: 6px 10px 8px; }
  .tray-title { margin-bottom: 4px; }
}

/* (i) definition hovers */
.info { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--text-muted); color: var(--text-muted); font: italic 600 9px/1 Georgia, serif; text-transform: none; letter-spacing: 0; cursor: help; vertical-align: 1px; margin-left: 3px; flex: none; }
.info:hover, .info:focus { border-color: var(--text-primary); color: var(--text-primary); outline: none; }
.tooltip { max-width: 300px; }
.map-btn { position: absolute; top: 10px; right: 50px; z-index: 4; border: 1px solid var(--border); background: var(--surface-1); border-radius: 6px; padding: 5px 10px; font-size: 12px; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* world-view region pills */
#zoneLayer { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
#zoneLines { position: absolute; inset: 0; width: 100%; height: 100%; }
#zoneLines line { stroke: #6e86a0; stroke-width: 1; }
#zoneLines circle { fill: var(--accent); }
.zpill { position: absolute; left: 0; top: 0; pointer-events: auto; background: rgba(251,252,254,.96); border: 1px solid var(--border); border-radius: 8px; padding: 4px 7px 5px; box-shadow: 0 1px 6px rgba(23,57,92,.14); max-width: 150px; cursor: pointer; }
.zpill:hover { border-color: var(--text-secondary); z-index: 3; }
.zname { font-size: 11px; font-weight: 600; color: var(--text-primary); line-height: 1.25; }
.zname span { color: var(--text-muted); font-weight: 500; margin-left: 2px; }
.zdots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; max-width: 136px; }
.zdots i { width: 9px; height: 9px; border-radius: 50%; display: block; cursor: pointer; }
.zdots i.out { opacity: .25; }
.zdots i.best { width: 11px; height: 11px; margin: -1px; box-shadow: 0 0 0 1.5px var(--accent); }
.zdots i:hover { transform: scale(1.4); }
/* off-screen regions on a phone: a slim tab at the screen edge, tap to go there */
.zpill.edge { padding: 3px 6px; max-width: 120px; background: rgba(251,252,254,.92); }
.zpill.edge .zdots { display: none; }
.zpill.edge[data-side="left"] .zname::before { content: "‹ "; color: var(--text-muted); }
.zpill.edge[data-side="right"] .zname::after { content: " ›"; color: var(--text-muted); }
.dest-list li.group { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-secondary); padding: 10px 4px 4px; cursor: default; border-bottom: 1px solid var(--border); border-radius: 0; }
.dest-list li.group:hover { background: none; }
.dest-list li.group span { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-muted); }
.callout { background: #fff7e6; border: 1px solid #f3dca8; border-radius: 8px; padding: 8px 10px; font-size: 13px; line-height: 1.4; margin: -4px 0 10px; }
.hidden-note { font-size: 12px; color: #9a5b00; margin: -2px 0 6px; }
.hidden-note:empty { display: none; }
#asof.stale { color: #8a5a00; }
.stale-tag { color: #8a5a00; }
.callout.warn { background: #fdf0ed; border-color: #f0c4b8; color: #5c1d10; }
.kid-link { font-size: 11px; margin-left: 4px; }
#detail a { color: var(--accent); }
.modal-card a { color: var(--accent); }
.tagline { margin: 0 0 2px; font-size: 13px; color: var(--text-secondary); font-style: italic; }
.credits { font-size: 11px; color: var(--text-muted); line-height: 1.45; padding: 10px 0 6px; border-top: 1px solid var(--border); margin-top: 6px; }
.credits a { color: var(--text-secondary); }

.bc-tag { font-size: 11px; color: #116b4c; background: #e3f4ed; border-radius: 4px; padding: 0 5px; font-weight: 500; }

/* "More about this place" pages */
#modal.story-mode .modal-card { width: min(720px, 100%); padding: 28px 36px 32px; }
.story h2 { font-size: 26px; margin: 4px 0 2px; letter-spacing: -0.01em; }
.story h3 { font-size: 15px; margin: 22px 0 6px; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.story p { font-size: 15px; line-height: 1.6; margin: 0 0 10px; color: var(--text-primary, #10233a); }
.story .pitch { font-size: 16px; font-style: italic; color: var(--text-secondary); margin-top: 10px; }
.story .facts { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 22px 0 10px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; }
.story .facts dt { color: var(--text-secondary); }
.story .facts dd { margin: 0; }
.story-links { font-size: 13px; margin: 8px 0; }
.story .note { margin-top: 8px; }
@media (max-width: 820px) { #modal.story-mode .modal-card { padding: 22px 18px 26px; } .story .facts { grid-template-columns: 100px 1fr; } }

/* close buttons that stay in view while the panel scrolls */
.sticky-close { position: sticky; top: 8px; height: 0; display: flex; justify-content: flex-end; z-index: 6; }
.sticky-close .close { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-1); border: 1px solid var(--border); box-shadow: 0 1px 6px rgba(0,0,0,.14); display: flex; align-items: center; justify-content: center; padding: 0 0 2px; }
.sticky-close .close:hover { color: var(--text-primary); border-color: var(--text-muted); }

/* filters header with "clear all" */
.filter-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); }
.filter-bar b { font-weight: 600; color: var(--accent); }
.link-btn { border: 0; background: none; padding: 2px 0; font: inherit; font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-btn:disabled { color: var(--text-muted); text-decoration: none; cursor: default; }

/* desktop: the filter panel is a drawer you can hide for a full-width map */
@media (min-width: 821px) {
  .brand { position: relative; }
  .sb-close { display: flex; align-items: center; justify-content: center; position: absolute; top: -10px; right: -10px; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-1); font-size: 20px; line-height: 1; color: var(--text-secondary); cursor: pointer; z-index: 3; }
  .sb-close:hover { color: var(--text-primary); border-color: var(--text-muted); }
  body.sb-collapsed #app { grid-template-columns: 0 1fr; }
  body.sb-collapsed #sidebar { display: none; }
  body.sb-collapsed .fab { display: block; position: absolute; top: 12px; left: 12px; z-index: 6; border: 1px solid var(--border); background: var(--surface-1); border-radius: 8px; padding: 6px 12px; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.1); font-weight: 500; }
}

/* sub-area cards and notable tours */
.crumb { display: inline-block; font-size: 12px; color: var(--accent); text-decoration: none; margin: 0 0 6px; font-weight: 500; }
.crumb:hover { text-decoration: underline; }
.sub-links { font-size: 13px; line-height: 1.7; }
.search-link { white-space: nowrap; }
.search-link svg { vertical-align: -1px; margin-right: 3px; }
.tours { list-style: none; padding: 0; margin: 0 0 6px; font-size: 13px; }
.tours li { padding: 6px 0; border-bottom: 1px solid var(--border); line-height: 1.45; }
.tours li > div { color: var(--text-secondary); }
.tours .search-link { font-size: 12px; margin-left: 4px; }
.story .tours { font-size: 14px; }

/* photos on "Read more" pages */
.photo { margin: 14px 0; }
.photo img { display: block; width: 100%; height: auto; max-height: 380px; object-fit: cover; border-radius: 8px; background: var(--surface-0); }
.photo.hero img { max-height: 340px; }
.photo figcaption { font-size: 12px; color: var(--text-secondary); margin-top: 5px; line-height: 1.4; }
.photo .credit { color: var(--text-muted); font-size: 11px; }
.photo .credit a { color: var(--text-muted); }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-grid .photo { margin: 6px 0; }
.photo-grid .photo img { height: 180px; }
@media (max-width: 820px) { .photo-grid { grid-template-columns: 1fr; } }
.photo-grid:has(> .photo:only-child) { grid-template-columns: 1fr; }
.photo-grid:has(> .photo:only-child) .photo img { height: auto; max-height: 320px; }
#detail .d-type, #detail .crumb { padding-right: 38px; }

/* "off the radar" places */
.offradar { background: #f3eefc; border: 1px solid #ddd2f5; color: #3b2a63; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; line-height: 1.45; margin: 8px 0; }
.offradar-tag { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: #5a3fa0; background: #efe8fb; border-radius: 4px; padding: 1px 5px; vertical-align: 1px; }

/* feedback: small and out of the way, but always one click away */
.map-btn.fb-btn { right: 142px; }
.fb-line { margin-top: 22px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
.fb-line .link-btn, .fb-foot .link-btn { font-size: inherit; padding: 0; }
.fb-foot { margin-top: 6px; }
@media (max-width: 820px) { .map-btn.fb-btn { display: none; } }
