:root {
  --ink: #0b0d10;
  --ink-2: #12151a;
  --ink-3: #1a1e25;
  --line: #262b34;
  --text: #e9ebee;
  --muted: #8a919c;
  --faint: #5b626d;
  --lime: #d4ff3a;
  --lime-dim: rgba(212, 255, 58, 0.14);
  --amber: #ffb547;
  --rose: #ff6b8b;
  --cyan: #5ce1e6;
  --crab: #ff5a36;
  --panel-w: 440px;
  --mono: 'DM Mono', ui-monospace, monospace;
  --sans: 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font-family: var(--sans); }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }

.app { display: grid; grid-template-columns: var(--panel-w) 1fr; height: 100dvh; }

/* ---------- panel ---------- */
.panel {
  display: flex; flex-direction: column; min-height: 0;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(212,255,58,.07), transparent 60%),
    var(--ink);
  border-right: 1px solid var(--line);
  position: relative; z-index: 2;
}
.brand { display: flex; gap: 14px; align-items: center; padding: 22px 22px 14px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; background: var(--ink-3);
  border: 1px solid var(--line); display: grid; place-items: center; flex: none;
}
.brand-mark span {
  width: 14px; height: 14px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 6px var(--lime-dim), 0 0 24px var(--lime);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 10px transparent, 0 0 12px var(--lime); } }
h1 { margin: 0; font-size: 19px; font-weight: 900; letter-spacing: 0; line-height: 1.25; white-space: nowrap; }
.brand { gap: 12px; }
.brand-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
h1 em { font-style: normal; color: var(--lime); }
.brand-sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.brand-sub .mono { color: var(--lime); margin-left: 4px; }

/* mode switch */
.modes { display: flex; gap: 4px; margin: 0 22px 12px; padding: 4px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; }
.mode {
  flex: 1; border: 0; background: none; border-radius: 9px; padding: 8px 0; font-size: 15px; font-weight: 700;
  color: var(--muted); cursor: pointer; transition: background .15s, color .15s;
}
.mode .mono { font-size: 11px; font-weight: 400; margin-left: 6px; opacity: .7; }
.mode:hover { color: var(--text); }
.mode[aria-pressed="true"] { background: var(--text); color: var(--ink); }
.app[data-mode="places"] .mode[aria-pressed="true"] { background: var(--cyan); }
.app[data-mode="places"] .days, .app[data-mode="places"] .toggles { display: none; }
.app[data-mode="places"] .only-events, .app[data-mode="events"] .only-places { display: none !important; }
.app[data-mode="places"] .tags { flex-wrap: wrap; mask-image: none; }
.app[data-mode="places"] .tags .chip[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); }

/* day strip — like a departure board */
.days {
  display: flex; gap: 6px; padding: 4px 22px 14px; overflow-x: auto; scrollbar-width: none;
}
.days { mask-image: linear-gradient(90deg, #000 88%, transparent); }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; border: 1px solid var(--line); background: var(--ink-2); border-radius: 10px;
  padding: 7px 10px 6px; min-width: 54px; cursor: pointer; text-align: center; line-height: 1.15;
  transition: border-color .15s, background .15s;
}
.day .d { font-family: var(--mono); font-size: 17px; font-weight: 500; display: block; }
.day .w { font-size: 11px; color: var(--muted); }
.day .n { font-family: var(--mono); font-size: 10px; color: var(--faint); display: block; margin-top: 2px; }
.day:hover { border-color: #3a414d; }
.day[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.day[aria-pressed="true"] .w, .day[aria-pressed="true"] .n { color: rgba(11,13,16,.65); }
.day.main-day:not([aria-pressed="true"]) { border-color: rgba(212,255,58,.45); }

.controls { padding: 0 22px 12px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.search {
  display: flex; align-items: center; gap: 8px; background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 0 12px;
}
.search:focus-within { border-color: var(--lime); }
.search svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.search input {
  flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 14px; padding: 10px 0;
}
.toggles, .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.tags::-webkit-scrollbar { display: none; }
.tags .chip { flex: none; }
.chip {
  border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 4px 11px;
  font-size: 12.5px; color: var(--muted); cursor: pointer; transition: all .15s;
}
.chip:hover { color: var(--text); border-color: #3a414d; }
.chip[aria-pressed="true"] { color: var(--ink); background: var(--text); border-color: var(--text); }
.tags .chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); }
.chip .k { font-family: var(--mono); font-size: 10.5px; opacity: .6; margin-left: 3px; }

/* list */
.list { flex: 1; overflow-y: auto; padding: 6px 12px 20px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.group-h {
  position: sticky; top: 0; z-index: 1; background: linear-gradient(var(--ink) 75%, transparent);
  padding: 12px 10px 8px; font-size: 12px; color: var(--muted); letter-spacing: .08em;
  display: flex; justify-content: space-between;
}
.group-h b { color: var(--text); font-weight: 700; letter-spacing: .02em; font-size: 13px; }
.card {
  display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 12px 10px; border-radius: 12px;
  cursor: pointer; border: 1px solid transparent; transition: background .12s, border-color .12s;
  animation: rise .35s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.card:hover, .card.hl { background: var(--ink-2); border-color: var(--line); }
.card.active { border-color: var(--lime); background: var(--ink-2); }
.time { font-family: var(--mono); line-height: 1.2; }
.time .s { font-size: 16px; font-weight: 500; }
.time .e { font-size: 11px; color: var(--faint); }
.card > div { min-width: 0; }
.card h3 { margin: 0 0 3px; font-size: 15px; font-weight: 700; line-height: 1.35; }
.card .orig { font-size: 11.5px; color: var(--faint); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sum { font-size: 13px; color: #b9bec6; line-height: 1.5; margin: 0 0 7px; }
.meta { display: flex; flex-wrap: wrap; gap: 5px 10px; font-size: 12px; color: var(--muted); align-items: center; }
.meta .loc::before { content: '◉ '; color: var(--lime); }
.meta .loc.approx::before { content: '◌ '; color: var(--amber); }
.meta .loc.none::before { content: '？'; color: var(--rose); }
.badge { font-size: 11px; padding: 1px 7px; border-radius: 5px; background: var(--ink-3); color: var(--muted); }
.badge.free { color: var(--lime); background: var(--lime-dim); }
.badge.paid { color: var(--amber); background: rgba(255,181,71,.12); }
.badge.full { color: var(--rose); background: rgba(255,107,139,.12); }
/* join group */
.brand > div:nth-child(2) { flex: 1; min-width: 0; }
.join-btn {
  flex: none; align-self: center; border: 0; border-radius: 999px; padding: 7px 12px; font-size: 13.5px; font-weight: 700;
  background: #07c160; color: #fff; cursor: pointer; box-shadow: 0 6px 18px rgba(7,193,96,.35); transition: filter .15s, transform .15s;
}
.join-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.fb.join { width: min(380px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); }
.join-lead { margin: 0; font-size: 13px; line-height: 1.6; color: #b9bec6; }
.join-qr { background: #fff; border-radius: 14px; padding: 14px; width: min(260px, 100%); margin: 0 auto; }
.join-qr img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.join-note {
  display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: rgba(7,193,96,.1);
  border: 1px solid rgba(7,193,96,.35); font-size: 13px; line-height: 1.5; color: #b9bec6;
}
.join-note b { color: #fff; font-size: 14px; }
.join-tip { margin: 0; font-size: 12px; color: var(--faint); text-align: center; }
.foot .fb-link + .fb-link { margin-top: 2px; }

/* votes */
.app:not([data-votes="on"]) .hot-chip, .app:not([data-votes="on"]) .only-votes { display: none !important; }
.card.votable { grid-template-columns: 58px 1fr 50px; }
.vote {
  align-self: center; display: grid; justify-items: center; gap: 1px; width: 50px; padding: 8px 0 6px;
  border: 1.5px solid rgba(212,255,58,.5); border-radius: 12px; background: rgba(212,255,58,.06);
  color: var(--lime); cursor: pointer; transition: all .15s;
}
.vote span { font-size: 18px; line-height: 1; }
.vote b { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.vote:hover { background: rgba(212,255,58,.16); border-color: var(--lime); transform: translateY(-1px); }
.vote[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.vote[aria-pressed="true"] span { animation: pop .35s; }
@keyframes pop { 50% { transform: scale(1.35) rotate(-12deg); } }
.vote.big {
  display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; margin: 12px 0 0; padding: 9px;
  font-size: 14px; font-weight: 700;
}
.vote.big b { font-size: 13px; }
.vote.big + .go { margin-top: 6px; }
.vote.big[aria-pressed="true"] { background: rgba(212,255,58,.16); color: var(--lime); }
.hot-tag {
  display: inline-block; font-size: 11px; font-weight: 700; color: #ff9d42; background: rgba(255,140,50,.14);
  border-radius: 5px; padding: 1px 6px; margin-right: 6px; vertical-align: 2px; font-family: var(--sans);
}
.card.hot { background: linear-gradient(100deg, rgba(255,140,50,.08), transparent 60%); }
.chip.hot-chip[aria-pressed="true"] { background: #ff9d42; border-color: #ff9d42; }
.hotboard {
  margin: 10px 2px 4px; padding: 10px 10px 6px; border-radius: 14px;
  border: 1px solid rgba(255,140,50,.35); background: linear-gradient(160deg, rgba(255,140,50,.12), rgba(255,140,50,.02));
}
.hb-h { font-size: 13px; font-weight: 900; color: #ffb27a; padding: 0 4px 6px; }
.hb-row {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 4px; background: none; border: 0;
  border-top: 1px solid rgba(255,255,255,.05); text-align: left; cursor: pointer; border-radius: 8px;
}
.hb-row:hover { background: rgba(255,255,255,.04); }
.hb-row i { font-style: normal; font-family: var(--mono); color: #ff9d42; width: 14px; text-align: center; }
.hb-row span { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-row small { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--faint); }
.hb-row b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: #ffb27a; flex: none; }
.pin.hot {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 40% 35%, #ffb45a, #ff6a1f 70%); border: 2.5px solid var(--ink);
  box-shadow: 0 0 0 2px #ff9d42, 0 0 22px rgba(255,120,40,.8); animation: flicker 2.4s ease-in-out infinite;
}
.pin.hot span { font-size: 16px; line-height: 1; }
.pin.hot b {
  position: absolute; right: -10px; top: -8px; min-width: 20px; padding: 1px 5px; border-radius: 999px;
  background: #fff; color: var(--ink); font: 700 10.5px var(--mono); text-align: center;
}
@keyframes flicker { 50% { box-shadow: 0 0 0 2px #ff9d42, 0 0 34px rgba(255,120,40,.95); } }
.cluster { position: relative; }
.c-hot { position: absolute; right: -6px; top: -8px; font-size: 15px; }
.legend .only-votes { color: #ffb27a; }

/* featured */
.app[data-mode="featured"] .days, .app[data-mode="featured"] .toggles,
.app[data-mode="featured"] .tags, .app[data-mode="featured"] .search { display: none; }
.app[data-mode="featured"] .controls { padding-bottom: 0; border-bottom: 0; }
.app[data-mode="featured"] .mode[aria-pressed="true"] { background: var(--crab); color: #fff; }
.mode[data-mode="featured"]:not([aria-pressed="true"]) { color: #ff8a6e; }

.ft-banner {
  display: flex; align-items: center; gap: 12px; width: calc(100% - 4px); margin: 10px 2px 4px; padding: 8px 14px 8px 8px;
  text-align: left; border: 1px solid rgba(255,90,54,.45); border-radius: 14px; cursor: pointer;
  background: linear-gradient(100deg, rgba(255,90,54,.22), rgba(255,90,54,.04) 70%);
  transition: border-color .15s, transform .15s;
}
.ft-banner:hover { border-color: var(--crab); transform: translateY(-1px); }
.ft-banner img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.ft-banner span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ft-banner small { font-family: var(--mono); font-size: 11px; color: #ff9d85; }
.ft-banner b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-banner i { font-style: normal; color: var(--crab); font-size: 18px; }

.ft-card {
  margin: 12px 2px 8px; border-radius: 18px; overflow: hidden; background: var(--ink-2);
  border: 1px solid rgba(255,90,54,.4); box-shadow: 0 20px 60px -20px rgba(255,90,54,.35); animation: rise .4s both;
}
.ft-card.active { border-color: var(--crab); }
.ft-poster { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; cursor: pointer; }
.ft-body { padding: 16px 16px 14px; }
.ft-when { font-family: var(--mono); font-size: 13px; color: #ff9d85; margin-bottom: 6px; }
.ft-card h3 { margin: 0 0 4px; font-size: 21px; font-weight: 900; line-height: 1.3; }
.ft-card .orig { font-size: 12px; color: var(--faint); margin-bottom: 10px; }
.ft-card .sum { font-size: 14px; color: #c9ced5; line-height: 1.6; margin: 0 0 12px; }
.ft-note { margin: 0 0 12px; font-size: 12.5px; line-height: 1.55; color: #ffcf7a; background: rgba(255,181,71,.08); border-radius: 9px; padding: 8px 10px; }
.pop .row.ft-note { margin-top: 8px; }
.ft-actions:has(> :nth-child(2):last-child) .ft-sec { grid-column: 1 / -1; }
.ft-card dl { display: grid; grid-template-columns: 44px 1fr; gap: 8px 10px; margin: 0 0 14px; font-size: 13.5px; }
.ft-card dt { color: var(--muted); }
.ft-card dd { margin: 0; line-height: 1.5; }
.ft-card dd span { color: var(--muted); font-size: 12.5px; }
.ft-card dd a { color: #ff9d85; text-decoration: none; }
.ft-card dd a:hover { text-decoration: underline; }
.badge.ft { color: #ff9d85; background: rgba(255,90,54,.14); }
.ft-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ft-go {
  grid-column: 1 / -1; text-align: center; background: var(--crab); color: #fff; font-weight: 700; font-size: 15px;
  padding: 11px; border-radius: 11px; text-decoration: none;
}
.ft-go:hover { filter: brightness(1.08); }
.ft-sec {
  text-align: center; background: none; border: 1px solid var(--line); color: var(--text); font-size: 13.5px;
  padding: 9px; border-radius: 11px; text-decoration: none; cursor: pointer;
}
.ft-sec:hover { border-color: #3a414d; background: var(--ink-3); }
.ft-card .fix {
  display: block; width: 100%; margin-top: 8px; background: none; border: 0; color: var(--faint); font-size: 12px; cursor: pointer; padding: 4px;
}
.ft-card .fix:hover { color: var(--text); }
.ft-foot { text-align: center; font-size: 12.5px; color: var(--muted); padding: 10px 0 24px; }
.fb-link.inline { display: inline; margin: 0; font-size: 12.5px; }

/* featured marker: always on, never clustered */
.ft-pin { position: relative; width: 46px; height: 46px; }
.ft-pin .emo {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a6e, var(--crab) 60%, #c2321a);
  border: 2.5px solid #fff; box-shadow: 0 6px 20px rgba(255,90,54,.6); z-index: 1;
}
.ft-pin .ring {
  position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--crab);
  animation: ft-ring 1.8s ease-out infinite;
}
@keyframes ft-ring { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.ft-pin .label {
  position: absolute; left: 52px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  background: #fff; color: var(--ink); font-weight: 900; font-size: 13px; padding: 5px 10px 5px 10px; border-radius: 9px;
  box-shadow: 0 6px 20px rgba(0,0,0,.45); line-height: 1.25; pointer-events: none;
}
.ft-pin .label small { display: block; font-family: var(--mono); font-weight: 500; font-size: 10.5px; color: #c2321a; }
.ft-pin .label::before {
  content: ''; position: absolute; left: -5px; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 10px; height: 10px; background: #fff;
}
.pop.featured .when { color: #ff9d85; }
.pop.featured .go { background: var(--crab); color: #fff !important; }
.pop .cover.poster { aspect-ratio: 1; }
.pop .go2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.pop .go2 a {
  text-align: center; border: 1px solid var(--line); border-radius: 9px; padding: 6px; font-size: 12px;
  color: var(--text) !important; text-decoration: none;
}
.pop .go2 a:hover { background: var(--ink-3); }

/* places */
.card.place { grid-template-columns: 44px 1fr; }
.picon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
  background: var(--ink-3); border: 1px solid var(--line);
}
.card.place.active { border-color: var(--cyan); }
.suggest {
  display: flex; align-items: center; gap: 12px; width: calc(100% - 4px); margin: 10px 2px 4px; padding: 12px 14px;
  text-align: left; border: 1px dashed rgba(92,225,230,.5); background: rgba(92,225,230,.06); border-radius: 12px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.suggest:hover { background: rgba(92,225,230,.12); border-color: var(--cyan); }
.suggest .plus {
  width: 32px; height: 32px; border-radius: 50%; background: var(--cyan); color: var(--ink); display: grid; place-items: center;
  font-size: 20px; font-weight: 700; flex: none;
}
.suggest b { font-size: 14.5px; }
.suggest small { color: var(--muted); font-size: 12px; }
.pin.place {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 16px;
  background: var(--ink-2); border: 1.5px solid var(--cyan); box-shadow: 0 0 12px rgba(92,225,230,.45);
}
.cluster.place { background: var(--cyan); box-shadow: 0 0 0 6px rgba(92,225,230,.2), 0 0 22px rgba(92,225,230,.4); }
.pop.place .when { color: var(--cyan); }
.pop.place .go { background: var(--cyan); }
.pop .row.tip { color: #cfd4da; }
.empty { color: var(--muted); text-align: center; padding: 48px 20px; font-size: 14px; }
.foot { padding: 10px 22px 14px; font-size: 11px; color: var(--faint); border-top: 1px solid var(--line); }

/* ---------- map ---------- */
.map-wrap { position: relative; min-width: 0; }
#map { position: absolute; inset: 0; background: #0e1116; }
.leaflet-container { font-family: var(--sans); }
.leaflet-control-attribution { background: rgba(11,13,16,.7) !important; color: var(--faint) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-bar a { background: var(--ink-2) !important; color: var(--text) !important; border-color: var(--line) !important; }
.legend {
  position: absolute; left: 14px; bottom: 14px; z-index: 500; display: flex; gap: 14px;
  background: rgba(11,13,16,.82); backdrop-filter: blur(8px); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; font-size: 12px; color: var(--muted);
}
.legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot.exact { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.dot.approx { border: 2px dashed var(--amber); }

/* markers */
.pin { width: 18px; height: 18px; border-radius: 50%; transition: transform .15s; }
.pin.exact { background: var(--lime); border: 3px solid var(--ink); box-shadow: 0 0 0 1.5px var(--lime), 0 0 14px rgba(212,255,58,.7); }
.pin.approx { background: rgba(255,181,71,.18); border: 2px dashed var(--amber); }
.pin.hl { transform: scale(1.7); }
.cluster {
  display: grid; place-items: center; border-radius: 50%; font-family: var(--mono); font-weight: 500;
  color: var(--ink); background: var(--lime); box-shadow: 0 0 0 6px rgba(212,255,58,.22), 0 0 22px rgba(212,255,58,.45);
}
.cluster.approx-heavy { background: var(--amber); box-shadow: 0 0 0 6px rgba(255,181,71,.2), 0 0 22px rgba(255,181,71,.35); }

/* popup / tooltip card */
.leaflet-popup-content-wrapper, .leaflet-tooltip.ev-tip {
  background: var(--ink-2); color: var(--text); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55); padding: 0;
}
.leaflet-popup-tip { background: var(--ink-2); border: 1px solid var(--line); }
.leaflet-popup-content { margin: 0; width: 300px !important; }
.leaflet-popup-close-button { color: var(--muted) !important; z-index: 2; }
.leaflet-tooltip.ev-tip { white-space: normal; width: 300px; }
.leaflet-tooltip.ev-tip::before { display: none; }
.pop .cover { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 13px 13px 0 0; display: block; background: var(--ink-3); }
.pop .body { padding: 12px 14px 14px; }
.pop .when { font-family: var(--mono); font-size: 12px; color: var(--lime); margin-bottom: 4px; }
.pop h4 { margin: 0 0 2px; font-size: 15px; line-height: 1.35; }
.pop .orig { font-size: 11px; color: var(--faint); margin-bottom: 6px; }
.pop p { margin: 0 0 8px; font-size: 12.5px; color: #b9bec6; line-height: 1.5; }
.pop .row { font-size: 12px; color: var(--muted); margin: 3px 0; line-height: 1.45; }
.pop .row b { color: var(--text); font-weight: 500; }
.pop .meta { margin-top: 8px; }
.pop .go {
  display: block; margin-top: 12px; text-align: center; background: var(--lime); color: var(--ink) !important;
  font-weight: 700; font-size: 13px; padding: 8px; border-radius: 9px; text-decoration: none;
}
.pop .go:hover { filter: brightness(1.08); }
.pop .multi { max-height: 320px; overflow-y: auto; }
.pop .multi .item { padding: 9px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.pop .multi .item:hover { background: var(--ink-3); }

/* feedback */
.pop .fix {
  display: block; width: 100%; margin-top: 6px; background: none; border: 1px solid var(--line); border-radius: 9px;
  color: var(--muted); font-size: 12px; padding: 6px; cursor: pointer;
}
.pop .fix:hover { color: var(--text); border-color: #3a414d; }
.fb-link {
  display: block; margin-top: 6px; background: none; border: 0; padding: 0; color: var(--lime);
  font-size: 12px; cursor: pointer;
}
.fb-link:hover { text-decoration: underline; }
.fb {
  border: 1px solid var(--line); border-radius: 16px; padding: 0; background: var(--ink-2); color: var(--text);
  width: min(420px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.fb::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
.fb[open] { animation: rise .2s both; }
.fb-box { padding: 18px 18px 16px; display: grid; gap: 12px; }
.fb header { display: flex; justify-content: space-between; align-items: center; }
.fb h2 { margin: 0; font-size: 17px; font-weight: 900; }
.fb-x { background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.fb-target { background: var(--ink-3); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; line-height: 1.45; }
.fb-target .when { font-family: var(--mono); font-size: 11.5px; color: var(--lime); }
.fb:not(.suggesting) .only-suggest { display: none; }
.fb-target .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.fb-in {
  width: 100%; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; font-size: 14px; outline: 0;
}
.fb-in:focus { border-color: var(--cyan); }
.fb-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-kinds .chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); }
.fb textarea {
  width: 100%; resize: vertical; background: var(--ink); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; line-height: 1.5; outline: 0;
}
.fb textarea:focus { border-color: var(--lime); }
.fb-hint { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.fb-hint b { color: var(--text); }
.fb-actions { display: flex; gap: 8px; justify-content: flex-end; }
.fb-actions button { border-radius: 9px; padding: 8px 14px; font-size: 13.5px; cursor: pointer; }
.fb-cancel { background: none; border: 1px solid var(--line); color: var(--muted); }
.fb-send { background: #2aabee; border: 0; color: #fff; font-weight: 700; }
.fb-send:hover { filter: brightness(1.08); }
.detail { position: fixed; width: min(340px, calc(100vw - 32px)); }
.detail-x { position: absolute; right: 8px; top: 6px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: rgba(11,13,16,.7); }
.detail .pop .cover { border-radius: 15px 15px 0 0; }
.toast {
  position: fixed; left: 50%; top: 18px; transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--ink); font-size: 13px; padding: 9px 16px; border-radius: 999px;
  z-index: 2000; transition: all .25s; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* mobile */
.mobile-switch { display: none; }
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); overflow: hidden; }
  .panel { min-width: 0; }
  .panel, .map-wrap { grid-area: 1 / 1; }
  .app[data-view="map"] .panel { visibility: hidden; }
  .app[data-view="list"] .map-wrap { visibility: hidden; }
  .brand { padding: 16px 16px 10px; }
  .days, .controls { padding-left: 16px; padding-right: 16px; }
  .list { padding: 6px 6px 90px; }
  .foot { display: none; }
  .legend { bottom: 84px; left: 10px; right: 10px; justify-content: center; font-size: 11px; }
  .mobile-switch {
    display: flex; position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%);
    z-index: 1000; background: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
  }
  .mobile-switch button { border: 0; background: none; padding: 8px 22px; border-radius: 999px; font-size: 14px; cursor: pointer; }
  .app[data-view="list"] [data-view-btn="list"], .app[data-view="map"] [data-view-btn="map"] { background: var(--lime); color: var(--ink); font-weight: 700; }
  .leaflet-popup-content { width: 270px !important; }
}
