:root {
  --bg: #fff; --surface: #f7f7f7; --text: #222; --muted: #717171; --line: #ddd; --line-soft: #ebebeb;
  --accent: #ff385c; --accent-dark: #e31c5f; --ink: #222; --on-ink: #fff;
  --good: #008a05; --bad: #c13515; --warn: #b45309;
  --shadow: 0 2px 16px rgba(0, 0, 0, .12); --shadow-sm: 0 1px 2px rgba(0, 0, 0, .08), 0 4px 12px rgba(0, 0, 0, .06);
  --font: "Circular", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212; --surface: #1e1e1e; --text: #f2f2f2; --muted: #a0a0a0; --line: #3a3a3a; --line-soft: #2b2b2b;
    --ink: #f2f2f2; --on-ink: #121212; --good: #4cc552; --bad: #ff7a5c;
    --shadow: 0 2px 16px rgba(0, 0, 0, .6); --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.43 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; transition: background .15s, border-color .15s, box-shadow .15s; }
button:hover { border-color: var(--text); }
button.dark { background: var(--ink); color: var(--on-ink); border-color: var(--ink); font-weight: 600; }
button.dark:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
button.ghost { white-space: nowrap; border-color: transparent; background: transparent; border-radius: 999px; padding: 9px 14px; font-weight: 500; }
button.ghost:hover { background: var(--surface); }
input, select, textarea { background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-width: 0; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
h1, h2, h3, h4, h5 { margin: 0; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 60; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px 24px 10px; background: var(--bg); }
.logo { display: flex; align-items: center; gap: 8px; color: var(--accent); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo small { color: var(--muted); font-weight: 600; font-size: 12px; margin-left: 4px; text-transform: uppercase; letter-spacing: .08em; }
.pill { display: flex; align-items: stretch; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); padding: 6px 6px 6px 8px; }
.pill:hover { box-shadow: var(--shadow); }
.seg { display: flex; flex-direction: column; justify-content: center; padding: 3px 18px; border-radius: 999px; position: relative; cursor: text; }
.seg + .seg::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.seg:hover { background: var(--surface); }
.seg span { font-size: 11px; font-weight: 700; letter-spacing: .01em; }
.seg input, .seg select { border: 0; padding: 0; background: transparent; color: var(--muted); font-size: 14px; width: 100%; outline-offset: 4px; cursor: pointer; appearance: none; -webkit-appearance: none; }
.seg input { cursor: text; }
.seg.wide { min-width: 150px; }
.duo { display: flex; align-items: center; gap: 4px; } .duo input { width: 62px; } .duo i { color: var(--muted); font-style: normal; }
.seg input::-webkit-outer-spin-button, .seg input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.seg input[type=number] { -moz-appearance: textfield; }
.go { background: var(--accent); border-color: var(--accent); color: #fff; width: 44px; border-radius: 50%; padding: 0; display: grid; place-items: center; align-self: center; height: 44px; margin-left: 4px; }
.go:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.top-actions { display: flex; gap: 2px; justify-content: flex-end; }
.top-actions b { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; margin-left: 4px; font-size: 12px; }

.cats { display: flex; gap: 6px; overflow-x: auto; padding: 4px 24px 0; border-bottom: 1px solid var(--line-soft); scrollbar-width: none; background: var(--bg); position: sticky; top: 84px; z-index: 55; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 14px 10px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; opacity: .85; }
.cat span { font-size: 22px; filter: grayscale(.4); }
.cat:hover { border-color: var(--line); color: var(--text); opacity: 1; background: transparent; }
.cat.on { border-bottom-color: var(--text); color: var(--text); opacity: 1; }
.cat.on span { filter: none; }

.banner { padding: 12px 24px; background: #fff4e5; color: #663c00; border-bottom: 1px solid #ffd8a8; }
.banner.err { background: #fde8e4; color: #8a1c0b; border-color: #f5b5a8; }
@media (prefers-color-scheme: dark) { .banner { background: #3b2f0b; color: #fde68a; border-color: #6b5413; } .banner.err { background: #3b1111; color: #fecaca; border-color: #7f1d1d; } }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 12px 24px; }
.pillctl { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--muted); font-size: 13px; background: var(--bg); }
.pillctl select { border: 0; padding: 0; color: var(--text); font-weight: 600; background: transparent; cursor: pointer; }
input.pillctl { width: 200px; color: var(--text); }
.toggle { cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 500; }
.toggle span:hover { border-color: var(--text); }
.toggle input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.toggle input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.place-filters { display: contents; }
.place-filters label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 13px; }
.place-filters label i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.place-filters input { width: 56px; padding: 2px 8px; border-radius: 999px; font-size: 13px; }
.counter { margin-left: auto; color: var(--muted); font-size: 13px; }

.progress { position: relative; min-height: 26px; margin: 0 24px 6px; border-radius: 999px; overflow: hidden; background: var(--surface); font-size: 12px; color: var(--muted); }
.progress .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--accent) 18%, transparent); transition: width .4s; }
.progress span { position: relative; display: block; padding: 4px 14px; }

/* ---------------------------------------------------------------- layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 42%); align-items: start; }
body.map-off .layout { grid-template-columns: 1fr; }
body.map-off .mapwrap { display: none; }
.mapwrap { position: sticky; top: 150px; height: calc(100vh - 160px); margin: 0 24px 0 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-soft); }
#map { width: 100%; height: 100%; background: var(--surface); }
.list { padding: 8px 24px 24px; display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); align-content: start; }
.more { text-align: center; padding: 8px 0 90px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 80px 20px; color: var(--muted); font-size: 16px; }

.map-toggle { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; background: var(--ink); color: var(--on-ink); border-color: var(--ink); border-radius: 999px; padding: 12px 20px; font-weight: 600; box-shadow: var(--shadow); }
.map-toggle:hover { transform: translateX(-50%) scale(1.04); background: var(--ink); color: var(--on-ink); }

/* ---------------------------------------------------------------- card */
.card { position: relative; cursor: pointer; }
.card.hidden-mark { opacity: .45; }
.card.active .media { outline: 3px solid var(--text); outline-offset: 2px; }
.media { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 20 / 19; background: var(--surface); }
.track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.slide.empty-photo { display: grid; place-items: center; color: var(--muted); font-size: 40px; }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #222; font-size: 18px; line-height: 1; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); opacity: 0; transition: opacity .15s, transform .15s; }
.arrow:hover { transform: translateY(-50%) scale(1.06); background: #fff; }
.arrow.prev { left: 10px; } .arrow.next { right: 10px; }
.media:hover .arrow:not([disabled]) { opacity: 1; }
.arrow[disabled] { display: none; }
@media (hover: none) { .arrow { display: none; } }
.dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 2px rgba(0, 0, 0, .4); }
.dots i.on { background: #fff; transform: scale(1.2); }
.counter-pill { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; pointer-events: none; }
.heart { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; }
.heart:hover { background: rgba(0, 0, 0, .1); transform: scale(1.1); }
.heart svg { width: 26px; height: 26px; fill: rgba(0, 0, 0, .5); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.heart.on svg { fill: var(--accent); }
.badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; max-width: 70%; pointer-events: none; }
.badge { background: #fff; color: #222; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.badge.drop { background: #fff; color: var(--good); }

.info { padding: 10px 2px 0; display: grid; gap: 1px; }
.info .row1 { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 15px; }
.info .row1 span:last-child { font-weight: 400; white-space: nowrap; }
.info .where { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub.date { font-size: 13px; }
.priceline { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.priceline b { font-size: 16px; font-weight: 700; }
.priceline .per { font-weight: 400; color: var(--muted); }
.priceline .sum { color: var(--muted); font-size: 13px; cursor: help; }
.priceline .note { color: var(--muted); font-size: 12.5px; }
.priceline .unit { color: var(--muted); font-size: 13px; text-decoration: underline; text-decoration-color: var(--line); }
.trend { font-size: 12.5px; font-weight: 700; }
.trend.down { color: var(--good); } .trend.up { color: var(--bad); }
.monthly { color: var(--muted); font-size: 13px; cursor: help; }
.monthly b { color: var(--text); font-size: 13px; font-weight: 600; }

.commutes { display: grid; gap: 4px; margin-top: 8px; }
.commute { display: flex; gap: 6px 8px; align-items: center; flex-wrap: wrap; font-size: 13px; padding: 5px 10px; border-radius: 10px; background: var(--surface); cursor: pointer; border: 1px solid transparent; }
.commute:hover { border-color: var(--line); }
.commute i.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--accent)); flex: none; }
.commute .name { font-weight: 600; }
.commute .mins { font-weight: 800; font-variant-numeric: tabular-nums; }
.commute .meta { color: var(--muted); font-size: 12px; }
.commute.loading { opacity: .65; } .commute.loading .mins { animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.mins.fast { color: var(--good); } .mins.slow { color: var(--bad); }
.line { display: inline-block; min-width: 22px; text-align: center; padding: 0 5px; border-radius: 6px; font-size: 12px; font-weight: 700; background: #6b7280; color: #fff; }
.line.walk { background: transparent; color: var(--muted); font-weight: 400; padding: 0; }
.card-actions { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--muted); }
.card-actions button { border: 0; background: transparent; padding: 2px 0; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.card-actions button:hover { color: var(--text); }

/* map pins */
.pin { background: var(--bg); color: var(--text); font-weight: 700; font-size: 12px; padding: 4px 9px; border-radius: 999px; white-space: nowrap; box-shadow: 0 1px 6px rgba(0, 0, 0, .35); border: 1px solid rgba(0, 0, 0, .08); transform: translate(-50%, -50%); width: max-content; }
.pin:hover { transform: translate(-50%, -50%) scale(1.08); }
.pin.active { background: var(--ink); color: var(--on-ink); z-index: 999 !important; }
.pin.fav { color: var(--accent); }
.pin.active.fav { color: var(--on-ink); background: var(--accent); }
.placepin { width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg) translate(-4px, -10px); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .5); background: var(--c); }
.leaflet-container { font-family: var(--font); background: var(--surface); }
.leaflet-control-attribution { font-size: 10px; }

/* ---------------------------------------------------------------- dialogs */
dialog { background: var(--bg); color: var(--text); border: 0; border-radius: 20px; width: min(640px, 94vw); max-height: 90vh; padding: 22px 24px; box-shadow: 0 20px 70px rgba(0, 0, 0, .4); }
dialog::backdrop { background: rgba(0, 0, 0, .5); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; }
.dlg-head h2 { font-size: 22px; }
button.x { border: 0; border-radius: 50%; width: 34px; height: 34px; padding: 0; background: transparent; }
button.x:hover { background: var(--surface); }
.place-list, .geo-results { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; }
.place-list li, .geo-results li { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; }
.place-list input[type=color] { width: 32px; height: 28px; padding: 0; border: 0; background: none; }
.place-list input.pname { flex: 1; }
.geo { display: flex; gap: 8px; } .geo input { flex: 1; }
.geo-results li { cursor: pointer; } .geo-results li:hover { border-color: var(--text); background: var(--surface); }
.geo-manual { margin-top: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.arrival { margin: 10px 0; }
table.ph { border-collapse: collapse; font-size: 13px; } table.ph td { padding: 3px 14px 3px 0; }

/* ---------------------------------------------------------------- listing sheet */
.drawer-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 90; }
.drawer { position: fixed; z-index: 100; top: 2vh; bottom: 2vh; left: 50%; transform: translateX(-50%); width: min(1120px, 96vw); background: var(--bg); border-radius: 20px; overflow-y: auto; box-shadow: 0 20px 70px rgba(0, 0, 0, .45); overscroll-behavior: contain; }
.dhead { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; align-items: center; padding: 12px 18px; background: var(--bg); border-bottom: 1px solid var(--line-soft); }
.dhead .grow { flex: 1; }
.dhead button { border: 0; background: transparent; border-radius: 999px; padding: 8px 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dhead button:hover { background: var(--surface); }
.dhead button.x { text-decoration: none; font-size: 16px; }
.dbody { padding: 18px 28px 40px; }
.dbody h1 { font-size: 26px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.dsub { color: var(--text); margin: 6px 0 16px; }
.dsub .muted { font-size: 13px; }
.pgrid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 8px; border-radius: 16px; overflow: hidden; aspect-ratio: 2 / 1; background: var(--surface); }
.pgrid img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; display: block; transition: filter .15s; }
.pgrid img:hover { filter: brightness(.9); }
.pgrid img:first-child { grid-column: span 2; grid-row: span 2; }
.pgrid.n1 img:first-child { grid-column: 1 / -1; }
.pgrid.n2 img:first-child, .pgrid.n3 img:first-child { grid-column: span 2; grid-row: span 2; }
.pgrid .all { position: absolute; right: 14px; bottom: 14px; background: var(--bg); font-weight: 600; box-shadow: var(--shadow-sm); }
.dcols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 60px; margin-top: 24px; }
.dmain section { padding: 24px 0; border-bottom: 1px solid var(--line-soft); }
.dmain section:last-child { border-bottom: 0; }
.dmain h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.host { display: flex; gap: 14px; align-items: center; }
.host img, .host .av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--surface); display: grid; place-items: center; font-size: 20px; flex: none; }
.host b { display: block; font-size: 16px; }
.pricecard { position: sticky; top: 74px; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); align-self: start; display: grid; gap: 12px; }
.pc-price { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.pc-price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.pc-sum { color: var(--muted); }
.pc-row { display: flex; justify-content: space-between; gap: 12px; }
.pc-row.total { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 700; }
.pc-row .muted { font-size: 12.5px; }
.pc-btn { display: block; text-align: center; background: linear-gradient(90deg, #e61e4d, #d70466); color: #fff; font-weight: 600; text-decoration: none; padding: 13px; border-radius: 12px; }
.pc-btn:hover { filter: brightness(1.05); }
.pc-btn.alt { background: var(--bg); color: var(--text); border: 1px solid var(--text); }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 24px; }
.kv div span { display: block; color: var(--muted); font-size: 12.5px; }
.desc { white-space: pre-wrap; max-height: 220px; overflow: hidden; position: relative; line-height: 1.55; }
.desc:not(.open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, var(--bg)); }
.desc.open { max-height: none; }
.link-btn { border: 0; background: transparent; padding: 8px 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.route-block { border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 12px; padding: 12px 14px; margin: 10px 0; cursor: pointer; }
.route-block:hover { box-shadow: var(--shadow-sm); }
.route-block .head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.route-block .big { font-size: 18px; font-weight: 800; }
.legs { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 13px; margin-top: 8px; }
.costtable { width: 100%; border-collapse: collapse; }
.costtable td { padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.costtable td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.costtable tr.sum td { font-weight: 800; font-size: 16px; border-bottom: 0; }
.costtable .src { color: var(--muted); font-size: 12px; font-weight: 400; }
.poi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.poi-grid h5 { margin: 0 0 6px; font-size: 14px; } .poi-grid ul { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.poi-grid li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
#dmap { height: 340px; border-radius: 14px; border: 1px solid var(--line-soft); }
textarea.note { width: 100%; min-height: 80px; border-radius: 12px; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .94); display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.lb-close, .lb-nav { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; padding: 0; font-size: 24px; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-count { position: absolute; bottom: 18px; color: #fff; font-weight: 600; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .top { grid-template-columns: 1fr auto; } .top .pill { grid-column: 1 / -1; order: 3; justify-self: stretch; overflow-x: auto; }
  .cats { top: 0; position: static; }
  .dcols { grid-template-columns: 1fr; gap: 0; } .pricecard { position: static; order: -1; margin-bottom: 8px; }
}
@media (max-width: 900px) {
  .top { padding: 10px 14px; } .toolbar, .cats { padding-left: 14px; padding-right: 14px; } .progress { margin: 0 14px 6px; }
  .layout { grid-template-columns: 1fr; }
  .mapwrap { display: none; position: fixed; inset: 0; z-index: 80; height: 100%; margin: 0; border-radius: 0; border: 0; }
  body.show-map .mapwrap { display: block; }
  body.map-off .mapwrap { display: none; }
  body.show-map.map-off .mapwrap { display: block; }
  .list { padding: 8px 14px 24px; grid-template-columns: 1fr; }
  .drawer { top: 0; bottom: 0; width: 100vw; border-radius: 0; }
  .dbody { padding: 14px 16px 40px; }
  .pgrid { aspect-ratio: 4 / 3; grid-template-columns: 1fr; grid-template-rows: 1fr; } .pgrid img:not(:first-child) { display: none; } .pgrid img:first-child { grid-column: 1; grid-row: 1; }
  .seg { padding: 3px 12px; } .seg.wide { min-width: 120px; }
}
