:root {
  --paper: #f7f3ec;
  --card: #ffffff;
  --ink: #1f2a37;
  --muted: #6b7380;
  --line: #e6dfd3;
  --accent: #2a7f7a;
  --accent-ink: #ffffff;
  --warm: #d9653b;
  --danger: #c0392b;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(31, 42, 55, .12);
  --topbar: 60px;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper); font-size: 15px; line-height: 1.45; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; margin: 0 0 .5em; line-height: 1.15; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; margin-top: 1.4em; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.error { color: var(--danger); }
.warn { color: #9a5b00; }
.danger { color: var(--danger); }
.spacer { flex: 1; }
[hidden] { display: none !important; }

/* ---------- Knoppen & velden ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .4em; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); padding: .55em 1em; border-radius: 999px; font: inherit; font-weight: 500; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { border-color: #cfc5b5; background: #fbf9f5; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #23706b; border-color: #23706b; }
.btn-danger { color: var(--danger); border-color: #efc9c4; }
.btn-danger:hover { background: #fdf1ef; border-color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(31, 42, 55, .06); border-color: transparent; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.link-btn.danger { color: var(--danger); }

input, select, textarea {
  font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: .55em .7em; width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }
.field { display: flex; flex-direction: column; gap: .3em; font-size: .9em; }
.field > span { font-weight: 500; color: var(--muted); }

/* ---------- Topbar ---------- */
.topbar {
  height: var(--topbar); display: flex; align-items: center; gap: 1.2rem; padding: 0 1rem;
  background: rgba(247, 243, 236, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  position: relative; z-index: 1000;
}
.brand { font-family: Fraunces, Georgia, serif; font-size: 1.3rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-tag { font-family: Inter, sans-serif; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; background: var(--warm); color: #fff; padding: .2em .5em; border-radius: 4px; vertical-align: middle; }
.topnav { margin-left: auto; display: flex; gap: .25rem; }
.stats { display: flex; gap: 1rem; overflow: hidden; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.stat b { color: var(--ink); font-weight: 600; }

/* ---------- Login ---------- */
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 16px;
  background: radial-gradient(circle at 20% 20%, #e4efe9 0, transparent 40%), radial-gradient(circle at 80% 80%, #f6e1d3 0, transparent 40%), var(--paper); }
.login-card { width: min(380px, 100%); background: var(--card); padding: 2rem; border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1rem; text-align: center; }
.login-card .field { text-align: left; }
.login-card h1 { font-size: 2rem; margin: 0; }
.login-card p { margin: 0; }
.login-card .btn { justify-content: center; padding: .75em; }
.login-pin { font-size: 2.4rem; }

/* ---------- Kaartpagina ---------- */
.map-page, html:has(.map-page) { overflow: hidden; }
.layout { overflow: hidden; position: relative; height: calc(100vh - var(--topbar)); height: calc(100dvh - var(--topbar)); display: flex; }
#map { flex: 1; height: 100%; background: #dfe9ec; }
.base-tiles { filter: saturate(.55) sepia(.12) brightness(1.03); }
.sidebar { width: 340px; flex-shrink: 0; height: 100%; display: flex; flex-direction: column; background: var(--paper); border-right: 1px solid var(--line); z-index: 500; }
.sidebar-handle { display: none; }
.filters { padding: .9rem; display: flex; flex-direction: column; gap: .5rem; border-bottom: 1px solid var(--line); }
.filter-row { display: flex; gap: .5rem; }
.filter-row select { font-size: .88rem; padding: .45em .5em; }
.trip-list { overflow-y: auto; flex: 1; padding: 0 .6rem 1rem; }
.year { position: sticky; top: 0; background: var(--paper); margin: 0; padding: .9rem .4rem .35rem; font-size: 1.05rem; color: var(--warm); z-index: 1; }
.trip-item { width: 100%; display: flex; align-items: center; gap: .7rem; padding: .55rem .5rem; border: 0; background: transparent; border-radius: 10px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.trip-item:hover { background: rgba(42, 127, 122, .08); }
.trip-icon { font-size: 1.15rem; width: 2.2rem; text-align: center; flex-shrink: 0; letter-spacing: -.2em; }
.trip-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.trip-place { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-sub { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-badge { font-size: .78rem; color: var(--muted); flex-shrink: 0; }
.nopin { font-size: .72rem; color: #9a5b00; background: #fdf1d8; padding: .1em .45em; border-radius: 999px; flex-shrink: 0; }
.empty { padding: 2rem 1rem; text-align: center; color: var(--muted); }

/* Pins */
.pin { --c: var(--accent); position: relative; width: 36px; height: 36px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--c); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); display: grid; place-items: center; transition: transform .15s; }
.pin span { transform: rotate(45deg); font-size: 16px; line-height: 1; }
.pin:hover, .pin.active { transform: rotate(-45deg) scale(1.18); }
.pin.active { box-shadow: 0 0 0 4px rgba(217, 101, 59, .45), 0 3px 10px rgba(0, 0, 0, .3); }
.pin-count { position: absolute; top: -8px; right: -8px; transform: rotate(45deg); background: var(--ink); color: #fff; font-size: 11px; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
.cluster { width: 40px; height: 40px; border-radius: 50%; background: var(--warm); color: #fff; font-weight: 600; display: grid; place-items: center; border: 4px solid rgba(255, 255, 255, .85); box-shadow: 0 3px 12px rgba(0, 0, 0, .25); }

/* Detailpaneel */
.detail { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(420px, calc(100% - 24px)); background: var(--card); border-radius: 16px; box-shadow: var(--shadow); overflow-y: auto; z-index: 600; padding: 1.4rem; }
.detail-close { position: sticky; top: 0; float: right; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--paper); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); z-index: 2; }
.detail-close:hover { background: var(--line); }
.detail-head h2 { font-size: 1.8rem; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--warm); font-weight: 600; margin: 0 0 .2rem; }
.trip-card { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; scroll-margin-top: 1rem; }
.trip-card.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: #fdf1d8; } to { background: transparent; } }
.when { font-family: Fraunces, Georgia, serif; font-size: 1.15rem; margin: 0 0 .6rem; }
.facts { margin: 0; display: grid; gap: .5rem; }
.facts div { display: grid; grid-template-columns: 70px 1fr; align-items: start; }
.facts dt { color: var(--muted); font-size: .85rem; padding-top: .2em; }
.facts dd { margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.chip { --c: var(--accent); display: inline-flex; align-items: center; gap: .3em; padding: .15em .6em; border-radius: 999px; font-size: .85rem;
  background: color-mix(in srgb, var(--c) 12%, white); color: color-mix(in srgb, var(--c) 75%, black); }
.chip-person { background: #f1ece3; color: var(--ink); }
.notes { white-space: normal; margin: .8rem 0 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: .9rem; }
.thumb { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: #eee; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.thumb .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.6rem; background: rgba(0, 0, 0, .25); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(15, 18, 22, .94); z-index: 3000; display: flex; align-items: center; justify-content: center; }
.lb-stage { margin: 0; max-width: 92vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.lb-stage img, .lb-stage video { max-width: 92vw; max-height: 82vh; border-radius: 6px; }
.lb-stage figcaption { color: #eee; display: flex; gap: 1rem; font-size: .9rem; }
.lb-close, .lb-nav { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 1.8rem; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lightbox.single .lb-nav { display: none; }

/* Toasts */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 4000; width: max-content; max-width: calc(100% - 32px); }
.toast { background: var(--ink); color: #fff; padding: .7em 1.1em; border-radius: 10px; box-shadow: var(--shadow); animation: up .2s ease-out; }
.toast-error { background: var(--danger); }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }

/* ---------- Beheer ---------- */
.tabs { display: flex; gap: .25rem; }
.tab { border: 0; background: none; font: inherit; font-weight: 500; padding: .5em .9em; border-radius: 999px; cursor: pointer; color: var(--muted); }
.tab.active { background: var(--ink); color: #fff; }
.admin-main { max-width: 1280px; margin: 0 auto; padding: 1.2rem 16px 3rem; }
.toolbar { display: flex; gap: .6rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.toolbar input { max-width: 300px; }
.toolbar select { width: auto; }
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.trips-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.trips-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; padding: .7rem .8rem; border-bottom: 1px solid var(--line); background: #fbf9f5; position: sticky; top: 0; }
.trips-table td { padding: .6rem .8rem; border-bottom: 1px solid #f0ebe2; vertical-align: top; }
.trips-table tbody tr { cursor: pointer; }
.trips-table tbody tr:hover, .trips-table tbody tr:focus { background: #f6faf9; outline: none; }
.trips-table.preview tbody tr { cursor: default; }
.status { font-size: .8rem; white-space: nowrap; padding: .1em .5em; border-radius: 999px; }
.status.ok { color: #2e7d4f; background: #e8f5ec; }
.status.pending { color: #9a5b00; background: #fdf1d8; }
.status.failed { color: var(--danger); background: #fdecea; }

.progress { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.progress-bar { flex: 1; min-width: 120px; height: 8px; background: #efe9de; border-radius: 4px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.progress-text { margin: 0; font-size: .9rem; flex-basis: 100%; order: -1; }

.import-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; text-align: center; padding: 2rem 1rem;
  border: 2px dashed #d4cabb; border-radius: var(--radius); background: var(--card); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: #f3f9f8; }
.dropzone.small { padding: 1rem; }
.dz-icon { font-size: 2rem; }
.mode-cards { display: grid; gap: .6rem; }
.mode-card { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); cursor: pointer; font-size: .92rem; }
.mode-card input { width: auto; margin-top: .25em; }
.mode-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.mode-card.danger:has(input:checked) { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.summary ul { padding-left: 1.2rem; margin: 1rem 0; }
.summary li { margin: .2rem 0; }
.confirm { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: 1rem; font-size: .9rem; color: var(--danger); }
.confirm input { width: auto; margin-top: .2em; }

/* Bewerkpaneel */
.drawer { border: 0; padding: 0; margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(620px, 100vw); background: var(--paper); box-shadow: var(--shadow); }
.drawer::backdrop { background: rgba(31, 42, 55, .35); }
.drawer form { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; }
.drawer-head .detail-close { position: static; float: none; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.2rem; }
.drawer-foot { display: flex; gap: .5rem; padding: .9rem 1.2rem; border-top: 1px solid var(--line); background: var(--card); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.span2 { grid-column: span 2; }
textarea { resize: vertical; }
.loc-search { display: flex; gap: .5rem; }
.loc-results { list-style: none; margin: .4rem 0; padding: 0; }
.loc-results button { display: block; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .5em .7em; margin-bottom: .3rem; font: inherit; font-size: .88rem; cursor: pointer; }
.loc-results button:hover { border-color: var(--accent); }
#editMap { height: 260px; border-radius: var(--radius); border: 1px solid var(--line); margin-top: .5rem; }
.uploads { display: flex; flex-direction: column; gap: .4rem; margin: .6rem 0; }
.upload-row { display: flex; align-items: center; gap: .8rem; font-size: .85rem; }
.upload-row > span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-row.failed { color: var(--danger); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; margin-top: .8rem; }
.media-item { position: relative; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.media-item img, .media-item video { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #eee; }
.media-item.is-cover { border-color: var(--warm); box-shadow: 0 0 0 1px var(--warm); }
.cover-btn { position: absolute; top: 6px; left: 6px; z-index: 1; border: 0; border-radius: 999px; padding: .2em .6em; font: inherit; font-size: .75rem;
  background: rgba(255, 255, 255, .9); color: var(--ink); cursor: pointer; }
.is-cover .cover-btn { background: var(--warm); color: #fff; }
.media-item .caption { border: 0; border-top: 1px solid var(--line); border-radius: 0; font-size: .85rem; }
.media-item figcaption { display: flex; justify-content: space-between; padding: .4rem .6rem; font-size: .8rem; }


/* ---------- Omslagfoto's ---------- */
.pin.photo { background: #fff; border-color: var(--c); overflow: visible; }
.pin.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; transform: rotate(45deg); }
.trip-thumb { width: 2.2rem; height: 2.2rem; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.trip-hero { display: block; width: 100%; aspect-ratio: 16/9; margin-bottom: .8rem; cursor: zoom-in; }
.country-tip { font-family: Inter, sans-serif; font-weight: 500; }

/* ---------- Tijdlijn ---------- */
.view-switch .tab { white-space: nowrap; }
.timeline-view { flex: 1; overflow-y: auto; }
.tl-inner { max-width: 1100px; margin: 0 auto; padding: 1.2rem 16px 4rem; }
.tl-filters .filters { flex-direction: row; flex-wrap: wrap; align-items: center; border: 0; padding: 0 0 1rem; }
.tl-filters .filters > input { flex: 1 1 220px; }
.tl-filters .filter-row { flex: 1 1 320px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; display: flex; flex-direction: column; }
.kpi b { font-family: Fraunces, Georgia, serif; font-size: 1.9rem; line-height: 1.1; font-weight: 600; }
.kpi span { color: var(--muted); font-size: .9rem; }
.kpi small { color: var(--muted); font-size: .78rem; margin-top: .2rem; }
.charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.chart { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; min-width: 0; }
.chart-wide { grid-column: span 3; }
.chart figcaption { font-weight: 600; margin-bottom: .8rem; font-size: .95rem; }
.cols { display: flex; align-items: flex-end; gap: 2px; height: 140px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; cursor: default; min-width: 0; }
.col-bar { width: 100%; max-width: 28px; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 0; transition: opacity .15s; }
.col:hover .col-bar { opacity: .75; }
.col-label { position: absolute; bottom: -1.4rem; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.chart-wide .cols { margin-bottom: 1.4rem; }
.bar-row { display: grid; grid-template-columns: minmax(80px, 38%) 1fr 2.2rem; align-items: center; gap: .6rem; padding: .25rem 0; font-size: .88rem; cursor: default; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; }
.bar { --c: var(--accent); display: block; height: 100%; background: var(--c); border-radius: 0 4px 4px 0; min-width: 3px; }
.bar-row:hover .bar { opacity: .75; }
.bar-value { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-tip { position: fixed; z-index: 5000; pointer-events: none; background: var(--ink); color: #fff; font-size: .8rem; padding: .35em .6em; border-radius: 6px; white-space: nowrap; }
.tl-title { margin-top: 2rem; }
.tl-year { position: relative; padding-left: 1.6rem; border-left: 2px solid var(--line); margin-left: .5rem; padding-bottom: 1.2rem; }
.tl-year h3 { margin: 0 0 .8rem; display: flex; align-items: baseline; gap: .6rem; color: var(--warm); font-size: 1.3rem; }
.tl-year h3::before { content: ''; position: absolute; left: -8px; margin-top: .45rem; width: 14px; height: 14px; border-radius: 50%; background: var(--warm); border: 3px solid var(--paper); }
.tl-year h3 small { font-family: Inter, sans-serif; font-size: .8rem; color: var(--muted); font-weight: 400; }
.tl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.tl-card { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; cursor: pointer; font: inherit; color: inherit; transition: transform .15s, box-shadow .15s; }
.tl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tl-cover { --c: var(--accent); position: relative; aspect-ratio: 16/10; display: grid; place-items: center; font-size: 2.2rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, white), color-mix(in srgb, var(--c) 8%, white)); }
.tl-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tl-media { position: absolute; right: 8px; bottom: 8px; font-size: .75rem; background: rgba(255, 255, 255, .9); padding: .1em .5em; border-radius: 999px; }
.tl-body { padding: .7rem .9rem .9rem; display: flex; flex-direction: column; gap: .1rem; }
.tl-when { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--warm); font-weight: 600; }
.tl-place { font-family: Fraunces, Georgia, serif; font-size: 1.2rem; font-weight: 600; }
.tl-country { color: var(--muted); font-size: .88rem; }
.tl-meta { color: var(--muted); font-size: .85rem; margin-top: .3rem; }
@media (max-width: 900px) {
  .charts { grid-template-columns: 1fr; }
  .chart-wide { grid-column: auto; }
}
@media (max-width: 760px) {
  .view-switch .tab { padding: .45em .6em; font-size: .9rem; }
  .tl-year { padding-left: 1rem; }
  .tl-card { flex-direction: row; }
  .tl-cover { width: 104px; flex-shrink: 0; aspect-ratio: auto; min-height: 96px; font-size: 1.7rem; }
  .tl-media { right: 4px; bottom: 4px; }
  .brand { display: none; }
}

/* ---------- Mobiel ---------- */
@media (max-width: 900px) {
  .stats { display: none; }
  .import-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar { gap: .5rem; padding: 0 .6rem; }
  .brand { font-size: 1.1rem; }
  .brand-tag { display: none; }
  .topnav .btn { padding: .5em .6em; }
  .sidebar { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70%; border-right: 0; border-top: 1px solid var(--line);
    border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .12); transform: translateY(calc(100% - 64px)); transition: transform .25s ease; z-index: 900; }
  .sidebar.open { transform: translateY(0); }
  .sidebar-handle { display: flex; justify-content: center; align-items: center; height: 22px; border: 0; background: transparent; cursor: pointer; flex-shrink: 0; }
  .map-page .leaflet-bottom { bottom: 64px; }
  .sidebar-handle span { width: 44px; height: 5px; border-radius: 3px; background: #cfc5b5; }
  .filters { padding-top: .2rem; }
  .detail { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 75%; z-index: 950; }
  .form-grid { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .toolbar input { max-width: none; }
}
