/* Layout-Idee: Topo-Kartenblatt bei Nacht. Dunkles Karst-Blauschwarz, Kalkstein-Bernstein als Akzent,
   Schrift wie Wegweiser (Condensed), Zahlen in Mono wie auf einer Höhenlinienkarte. */
:root {
  --bg: #0e1416; --surface: #151d20; --surface-2: #1b2529; --line: #29363b; --line-2: #34444a;
  --fg: #e4ebe9; --muted: #92a3a5; --faint: #66787b;
  --accent: #e2b052; --accent-ink: #1a1305; --accent-soft: rgba(226,176,82,.14);
  --ok: #6cc28a; --warn: #e8a33b; --bad: #e0675d; --info: #6aaed6;
  --c-activity: #9b6bdf; --c-viewpoint: #3fae5a; --c-hike: #ec8a2f; --c-nature: #1fb5b0; --c-city: #d9473f;
  --c-beach: #e9c531; --c-camp: #8b5e3c; --c-stay: #3f7fe0; --c-event: #e357a6; --c-infra: #8a9497;
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 10px; --nav-h: 52px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #eef2f1; --surface: #ffffff; --surface-2: #f4f7f6; --line: #d5dfdd; --line-2: #c3d0cd;
    --fg: #142024; --muted: #546669; --faint: #7d8f91;
    --accent: #a8731a; --accent-ink: #fff8ea; --accent-soft: rgba(168,115,26,.12);
    --ok: #2f8a4f; --warn: #b5700f; --bad: #c0392b; --info: #2a77a8;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #eef2f1; --surface: #ffffff; --surface-2: #f4f7f6; --line: #d5dfdd; --line-2: #c3d0cd;
  --fg: #142024; --muted: #546669; --faint: #7d8f91;
  --accent: #a8731a; --accent-ink: #fff8ea; --accent-soft: rgba(168,115,26,.12);
  --ok: #2f8a4f; --warn: #b5700f; --bad: #c0392b; --info: #2a77a8;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: .01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
p { margin: 0; }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Navigation ---------- */
.topnav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 1000; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topnav-inner { display: flex; align-items: center; gap: 12px; height: var(--nav-h); padding-inline: 16px; max-width: 1480px; margin-inline: auto; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; white-space: nowrap; color: var(--fg); text-decoration: none; letter-spacing: .03em; }
.brand span { color: var(--accent); }
.navlinks { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.navlinks::-webkit-scrollbar { display: none; }
.navlinks a { color: var(--muted); text-decoration: none; padding: 6px 9px; border-radius: 6px; font-size: .9rem; white-space: nowrap; font-weight: 600; }
.navlinks a:hover, .navlinks a.active { color: var(--fg); background: var(--surface-2); }
.navtools { display: flex; gap: 6px; }

/* ---------- Buttons ---------- */
button, .btn { font: inherit; cursor: pointer; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--fg);
  padding: 7px 12px; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; line-height: 1.2; }
button:hover, .btn:hover { border-color: var(--accent); }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 4px 9px; font-size: .82rem; }
.icon-btn { width: 36px; height: 36px; justify-content: center; padding: 0; }
input, select, textarea { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line-2); border-radius: 7px; padding: 6px 9px; }
input[type="number"] { font-family: var(--font-mono); width: 7em; }
label { font-size: .9rem; }

/* ---------- Sections ---------- */
main { padding-inline: 16px; }
.section { max-width: 1480px; margin-inline: auto; padding-block: 44px 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.section-head .kicker { font-family: var(--font-mono); font-size: .78rem; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.lead { color: var(--muted); max-width: 70ch; }
.grid { display: grid; gap: 14px; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.card h3 { margin-bottom: 8px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: .78rem; font-weight: 600; border: 1px solid var(--line-2); background: var(--surface-2); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.pill.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.pill.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.pill.info { color: var(--info); border-color: color-mix(in srgb, var(--info) 45%, transparent); }
.pill.accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.note { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: .93rem; }
.note.bad { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.note.warn { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
ul.clean { margin: 0; padding-left: 1.1em; }
ul.clean li { margin: 3px 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; color: var(--muted); background: var(--surface-2); position: sticky; top: 0; white-space: nowrap; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--fg); }
th.sorted-asc::after { content: " ▲"; color: var(--accent); } th.sorted-desc::after { content: " ▼"; color: var(--accent); }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; }
td.mono { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero > * { min-width: 0; }
.hero { max-width: 1480px; margin-inline: auto; padding-block: 28px 8px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); text-transform: uppercase; line-height: .92; letter-spacing: .005em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { color: var(--muted); margin-top: 10px; max-width: 60ch; }
.coords-line { font-family: var(--font-mono); font-size: .8rem; color: var(--faint); margin-bottom: 10px; letter-spacing: .04em; }
.countdown { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.countdown .unit { flex: 0 1 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; min-width: 76px; text-align: center; }
.countdown .v { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 600; display: block; line-height: 1.1; }
.countdown .l { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.fact { border-top: 2px solid var(--line-2); padding-top: 6px; }
.fact .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fact .v { font-weight: 700; }
.hero-side { display: flex; flex-direction: column; gap: 12px; }
#miniMap { height: 260px; border-radius: var(--radius); border: 1px solid var(--line); }
.plan-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.plan-summary .card { padding: 10px 12px; }
.plan-summary .v { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 600; }
.plan-summary .k { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Flights ---------- */
.flight-fav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 18px; align-items: stretch; border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line)); background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--surface); }
@media (max-width: 880px) { .flight-fav { grid-template-columns: 1fr; } }
.leg { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.leg .t { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 600; line-height: 1; }
.leg .ap { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: .05em; }
.leg .line { height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 11px); position: relative; }
.leg .line span { position: absolute; left: 50%; top: -11px; transform: translateX(-50%); font-size: .75rem; color: var(--muted); background: var(--surface); padding: 0 6px; white-space: nowrap; }
.pin-badge { font-family: var(--font-mono); font-size: .72rem; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }
.price-box { display: flex; flex-direction: column; gap: 6px; justify-content: center; min-width: 190px; }
.price-box .pill { align-self: flex-start; }
.price-box .big { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; }

/* ---------- Map ---------- */
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 12px; }
@media (max-width: 1100px) { .map-layout { grid-template-columns: 1fr; } }
.map-wrap { position: relative; min-width: 0; }
#map { height: min(76vh, 760px); min-height: 440px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }
.filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px 4px 6px; border: 1px solid var(--line-2); background: var(--surface); font-size: .84rem; font-weight: 600; cursor: pointer; color: var(--fg); }
.chip .dot { width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; }
.chip .dot svg { width: 11px; height: 11px; fill: #fff; }
.chip.off { opacity: .42; }
.chip.on-tag { border-color: var(--accent); color: var(--accent); }
.chip .cnt { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.search { flex: 1; min-width: 180px; }
.list-panel { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); height: min(76vh, 760px); min-height: 440px; }
.list-panel .lp-head { display: flex; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.list-panel .lp-body { overflow-y: auto; flex: 1; }
.spot-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: center; }
.spot-row:hover, .spot-row.active { background: var(--surface-2); }
.spot-row .nm { font-weight: 600; line-height: 1.25; }
.spot-row .sub { font-size: .76rem; color: var(--muted); }
.spot-row.st-n { opacity: .5; }
.catdot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; }
.catdot svg { width: 11px; height: 11px; fill: #fff; }
.status-tag { font-size: .7rem; font-weight: 700; border-radius: 4px; padding: 1px 6px; }
.status-tag.y { background: var(--ok); color: #08130c; } .status-tag.m { background: var(--warn); color: #1d1204; } .status-tag.n { background: var(--line-2); color: var(--muted); }

/* Marker */
.mk { border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.mk svg { fill: #fff; }
.mk.top { box-shadow: 0 0 0 3px var(--accent), 0 2px 8px rgba(0,0,0,.5); }
.mk.st-y { border-color: var(--ok); border-width: 3px; }
.mk.st-n { opacity: .45; filter: grayscale(.6); }
.mk .star { position: absolute; top: -7px; right: -7px; width: 14px; height: 14px; fill: var(--accent); filter: drop-shadow(0 0 1px #000); }
.mk-wrap { position: relative; }
.cluster { background: color-mix(in srgb, var(--surface) 85%, transparent); border: 2px solid var(--accent); color: var(--fg); border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: .85rem; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.route-label { background: var(--surface); color: var(--fg); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; font-family: var(--font-mono); font-size: .72rem; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--fg); }
.leaflet-control-layers, .leaflet-bar a { background: var(--surface) !important; color: var(--fg) !important; border-color: var(--line) !important; }
.leaflet-control-layers { border: 1px solid var(--line) !important; }
.leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 80%, transparent) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.map-overlay-ctrl { position: absolute; z-index: 500; left: 10px; bottom: 26px; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 20px); }
.map-overlay-ctrl label { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 4px 8px; font-size: .8rem; display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }

/* Detail panel */
.detail { position: absolute; z-index: 800; top: 8px; right: 8px; bottom: 8px; width: min(420px, calc(100% - 16px)); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,.45); display: flex; flex-direction: column; overflow: hidden; }
@media (max-width: 700px) { .detail { top: auto; left: 8px; right: 8px; width: auto; height: 72%; } }
.detail-head { padding: 12px 14px 10px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.detail-head h3 { font-size: 1.45rem; }
.detail-body { overflow-y: auto; padding: 12px 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; display: block; background: var(--surface-2); }
.gallery figcaption { font-size: .7rem; color: var(--faint); margin-top: 3px; }
.kv { display: grid; grid-template-columns: 118px 1fr; gap: 6px 10px; font-size: .9rem; }
.kv dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.kv dd { margin: 0; min-width: 0; }
.decide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.decide button { justify-content: center; }
.decide button.sel-y { background: var(--ok); color: #08130c; border-color: var(--ok); }
.decide button.sel-m { background: var(--warn); color: #1d1204; border-color: var(--warn); }
.decide button.sel-n { background: var(--line-2); border-color: var(--line-2); }
.prio { display: flex; gap: 6px; align-items: center; }
.prio button.sel { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- Plan / Timeline ---------- */
.variant-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.variant-switch button { border: none; border-radius: 0; background: var(--surface); }
.variant-switch button.on { background: var(--accent); color: var(--accent-ink); }
.timeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-width: 0; scroll-snap-align: start; }
.day.drop-hover { border-color: var(--accent); background: var(--accent-soft); }
.day-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); border-top: 4px solid var(--daycolor, var(--accent)); border-radius: var(--radius) var(--radius) 0 0; }
.day-head .date { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); letter-spacing: .05em; }
.day-head h3 { font-size: 1.15rem; margin-top: 2px; }
.day-stats { display: flex; gap: 10px; flex-wrap: wrap; font-family: var(--font-mono); font-size: .8rem; margin-top: 6px; }
.day-body { padding: 8px 10px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.day-spot { display: grid; grid-template-columns: 18px 1fr auto; gap: 7px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); cursor: grab; font-size: .88rem; }
.day-spot.dragging { opacity: .4; }
.day-spot select { font-size: .74rem; padding: 2px 4px; max-width: 74px; }
.day-spot .nm { cursor: pointer; line-height: 1.2; }
.sun { display: flex; gap: 10px; font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }
.warns { display: flex; flex-direction: column; gap: 4px; }
.warn-line { font-size: .78rem; padding: 4px 8px; border-radius: 6px; background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.warn-line.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.warn-line.info { background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); }
.day-note { font-size: .82rem; color: var(--muted); }
.route-status { font-size: .82rem; color: var(--muted); }

/* ---------- Hikes ---------- */
.hike { display: flex; flex-direction: column; gap: 8px; }
.hike-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hike-stats > div { min-width: 0; overflow-wrap: anywhere; }
.hike-stats div { background: var(--surface-2); border-radius: 7px; padding: 6px 8px; }
.hike-stats .v { font-family: var(--font-mono); font-weight: 600; }
.hike-stats .k { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.profile { width: 100%; height: 70px; display: block; }

/* ---------- Budget ---------- */
.budget-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 960px) { .budget-layout { grid-template-columns: 1fr; } }
.budget-total > * { min-width: 0; }
.budget-layout > * { min-width: 0; }
.budget-total { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.budget-total .v { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; }
.budget-total .k { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.meter { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.meter > div { height: 100%; background: var(--ok); }
.meter.over > div { background: var(--bad); }
.donut-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 14px; align-items: center; }
@media (max-width: 520px) { .donut-wrap { grid-template-columns: 1fr; } }
.legend { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; }
.legend .li { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; }
.assume { color: var(--warn); font-size: .72rem; font-weight: 700; }

/* ---------- Weather ---------- */
.fc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.fc-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 4px; }
.fc-day { text-align: center; font-size: .72rem; background: var(--surface-2); border-radius: 6px; padding: 4px 2px; }
.fc-day.trip { outline: 1px solid var(--accent); }
.fc-day .t { font-family: var(--font-mono); font-weight: 600; font-size: .78rem; }

/* ---------- Packing ---------- */
.pack-cat { break-inside: avoid; }
.pack-cols { columns: 3 300px; column-gap: 14px; }
.pack-cols .card { margin-bottom: 14px; }
.check { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; font-size: .93rem; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--accent); }
.check.done span { text-decoration: line-through; color: var(--muted); }

footer { max-width: 1480px; margin: 40px auto 0; padding: 20px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.toast { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 9px 16px; border-radius: 9px; font-weight: 600; z-index: 3000; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.mobile-tabs { display: none; }
@media (max-width: 1100px) {
  .mobile-tabs { display: inline-flex; }
  .map-layout[data-view="map"] .list-panel { display: none; }
  .map-layout[data-view="list"] .map-wrap { display: none; }
}
.hidden { display: none !important; }
.img-ph { aspect-ratio: 3/2; border-radius: 8px; background: repeating-linear-gradient(135deg, var(--surface-2) 0 10px, var(--surface) 10px 20px); display: grid; place-items: center; color: var(--muted); font-size: .8rem; text-align: center; padding: 10px; }
