/* Sparkles of the Season: night-sky navy, gold + jewel-tone light colors, script wordmark, floating glass panels over a dark map */
:root {
  --bg: #060a1c; --card: rgba(9, 14, 38, .95); --solid: #0a1030; --raise: #121a40; --line: #1c2550; --line2: #29336a;
  --ink: #eef0fa; --muted: #8d95b8; --gold: #f5b82e; --gold-ink: #1b1303; --pink: #ff6b8b; --rose: #ff5a6e; --green: #3ee0a0;
  --r: 18px; --shadow: 0 16px 48px rgba(0, 0, 0, .5);
  --head: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
  --input: #131b3d; --wm: linear-gradient(90deg, #ff8f8a 0%, #ffad7a 50%, #f5b82e 100%);
  --g1: rgba(255, 170, 80, .55); --g2: rgba(255, 70, 60, .7); --g3: rgba(120, 170, 255, .35); --g4: rgba(255, 220, 160, .45); --sky: #121a33;
  color-scheme: dark;
}
/* ---------- holiday color schemes (set on <html data-holiday>) ---------- */
:root[data-holiday="new-years"] {
  --bg: #08060f; --card: rgba(15, 11, 28, .95); --solid: #110c22; --raise: #1b1535; --line: #272046; --line2: #352b5e;
  --ink: #f3f0fb; --muted: #9a93b8; --gold: #f2d27a; --gold-ink: #1a1405; --pink: #b98cff; --input: #171230;
  --wm: linear-gradient(90deg, #ece9f7 0%, #f2d27a 55%, #d6ad55 100%);
  --g1: rgba(242, 210, 122, .6); --g2: rgba(185, 140, 255, .6); --g3: rgba(220, 220, 240, .45); --g4: rgba(255, 143, 209, .45); --sky: #120d24;
}
:root[data-holiday="fourth-of-july"] {
  --bg: #06102a; --card: rgba(8, 18, 50, .95); --solid: #0a1740; --raise: #12235a; --line: #1b2d66; --line2: #27407f;
  --ink: #f4f6fb; --muted: #9aa6c8; --gold: #e63946; --gold-ink: #ffffff; --pink: #4f8cff; --input: #0f1e4d;
  --wm: linear-gradient(90deg, #ff5a64 0%, #ffffff 50%, #6aa5ff 100%);
  --g1: rgba(230, 57, 70, .65); --g2: rgba(255, 255, 255, .55); --g3: rgba(79, 140, 255, .6); --g4: rgba(255, 211, 107, .45); --sky: #0a1638;
}
* { box-sizing: border-box; min-width: 0; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 'DM Sans', system-ui, sans-serif; display: flex; flex-direction: column; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.ico { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.eyebrow { margin: 0; font: 10.5px/1.2 'Space Mono', monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* ---------- header ---------- */
.top { display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 16px 0 20px; background: var(--bg); position: relative; z-index: 1001; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.star .ico { width: 22px; height: 22px; color: var(--gold); fill: var(--gold); filter: drop-shadow(0 0 6px var(--gold)); animation: glint 3s ease-in-out infinite; }
@keyframes glint { 50% { filter: drop-shadow(0 0 1px var(--gold)); } }
.wordmark { font-family: 'Great Vibes', cursive; font-size: 38px; line-height: 1; padding: 6px 4px 0 0; white-space: nowrap;
  background: var(--wm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge { font: 10px/1 'Space Mono', monospace; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 5px 9px 4px; white-space: nowrap; }
.tagline { flex: 1; display: flex; align-items: center; gap: 18px; font-size: 14.5px; color: #c9cee6; min-width: 0; }
.tag-1 { max-width: 230px; line-height: 1.3; }
.tag-2 { display: flex; align-items: center; gap: 10px; font: 12px/1.35 'Space Mono', monospace; color: var(--muted); max-width: 200px; }
.spark { color: var(--gold); font-size: 14px; }
.actions { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.lbl-s { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line2);
  background: var(--solid); color: var(--ink); font-weight: 500; font-size: 14.5px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #3c4a86; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn.gold:hover { filter: brightness(1.07); }
.btn.ghost { background: rgba(255, 255, 255, .02); }
.btn.text { border-color: transparent; background: none; }
.btn.dark { background: var(--card); }
.btn.sm { min-height: 32px; padding: 0 11px; font-size: 14px; }
.btn.wide { width: 100%; min-height: 36px; }
.btn:disabled { opacity: .6; cursor: wait; }
.avatar { width: 30px; height: 30px; border-radius: 50%; padding: 0; border: 0; cursor: pointer; display: grid; place-items: center; background: linear-gradient(135deg, #8d7bff, #c78bff); color: #fff; }
.avatar .ico { width: 18px; height: 18px; fill: #fff; stroke: none; }
.link { background: none; border: 0; padding: 4px 0; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; text-align: left; }
.link.inline { display: inline; padding: 0; font-size: inherit; }
.acctwrap { position: relative; }
.menu { position: absolute; right: 0; top: 42px; min-width: 210px; padding: 8px; display: grid; gap: 2px; z-index: 1100; }
.menu[hidden] { display: none; }
.menu-name { margin: 4px 8px 6px; font-size: 13px; color: var(--muted); }
.menu-item { text-align: left; padding: 9px 10px; border-radius: 8px; border: 0; background: none; cursor: pointer; font-weight: 600; }
.menu-item:hover { background: var(--raise); }

/* holiday menu */
.holwrap { position: relative; flex: none; }
.holbtn { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2);
  background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--ink); font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; }
.holbtn > span:first-child .ico { color: var(--gold); }
.holbtn[aria-expanded="true"] .chev .ico { transform: rotate(180deg); }
.holmenu { position: absolute; top: 44px; left: 0; min-width: 260px; padding: 6px; display: grid; gap: 2px; z-index: 1100; }
.holmenu[hidden] { display: none; }
.holitem { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; border-radius: 10px; border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink); }
.holitem:hover, .holitem[aria-selected="true"] { background: var(--raise); }
.holitem .hi { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.holitem b { display: block; font-size: 14.5px; }
.holitem small { color: var(--muted); font-size: 12.5px; }

/* ---------- stage ---------- */
.stage { flex: 1; position: relative; min-height: 0; }
#map { position: absolute; inset: 0; background: #22252f; z-index: 0; }

/* left ranked list */
.side { position: absolute; z-index: 600; left: 12px; top: 12px; bottom: 12px; width: 320px; display: flex; flex-direction: column; overflow: hidden; }
.side-head { padding: 16px 16px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.side-title { display: flex; align-items: center; gap: 8px; font-size: 19px; }
.side-title .ico { width: 18px; height: 18px; color: var(--gold); }
.side.ev .side-title .ico { color: var(--pink); }
.side-tools { display: flex; gap: 8px; margin-top: 8px; }
.search { flex: 1; display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(6, 10, 28, .7); color: var(--muted); }
.search input { border: 0; background: none; outline: 0; padding: 7px 0; width: 100%; font-size: 14px; color: var(--ink); }
.side-tools select { width: auto; border: 1px solid var(--line); border-radius: 10px; background: rgba(6, 10, 28, .7); padding: 0 8px; font-size: 13px; }
.side-tools select[hidden] { display: none; }
.list { list-style: none; margin: 0; padding: 8px 10px; overflow-y: auto; flex: 1; display: grid; align-content: start; gap: 4px; }
.empty { padding: 18px 14px; color: var(--muted); font-size: 14px; }
.item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 14px; cursor: pointer; }
.item:hover, .item.active { background: var(--raise); }
.thumbwrap { position: relative; width: 64px; height: 64px; }
.thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; display: grid; place-items: center; background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--c, #f5b82e) 45%, transparent), transparent 66%), #10173a; }
.thumb .ico { width: 22px; height: 22px; color: var(--c, var(--gold)); }
.rankb { position: absolute; left: 6px; top: 6px; font: 700 11px/1 'Space Mono', monospace; color: var(--gold); background: rgba(6, 10, 28, .85); padding: 3px 5px; border-radius: 6px; }
.item h3 { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.01em; }
.meta { margin: 1px 0 0; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta2 { margin: 4px 0 0; font-size: 12.5px; color: #c9cee6; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); flex: none; }
.likes { display: grid; justify-items: center; gap: 2px; font-size: 12.5px; color: var(--muted); padding: 0 6px; background: none; border: 0; cursor: pointer; }
.likes .ico { width: 18px; height: 18px; }
.likes.on { color: var(--rose); }
.likes.on .ico { fill: currentColor; }
.datetile { width: 64px; height: 64px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 10%, #0a1030); display: grid; place-content: center; text-align: center; }
.datetile .mo { font: 10px/1 'Space Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.datetile .dy { font: 800 26px/1.1 var(--head); color: var(--ink); }
.item.ev { grid-template-columns: 64px minmax(0, 1fr); }
.kindline { margin: 3px 0 0; font-size: 12.5px; color: var(--c); display: flex; align-items: center; gap: 5px; }
.kindline .ico { width: 13px; height: 13px; }
.foot { padding: 10px 16px 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); }
.foot .link { font-size: 12px; padding: 0; }

/* toolbar */
.toolbar { position: absolute; z-index: 650; top: 12px; left: 352px; right: 160px; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 16px; }
.seg { display: flex; gap: 2px; flex: none; }
.seg-btn, .find, .chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--ink); font-size: 14.5px; font-weight: 500; cursor: pointer; white-space: nowrap; flex: none; }
.seg-btn .ico, .find .ico, .chip .ico { width: 14px; height: 14px; }
.seg-btn[data-tab="displays"].on { background: var(--gold); color: var(--gold-ink); }
.seg-btn[data-tab="events"].on { background: var(--pink); color: #fff; }
.seg-btn:not(.on):hover { background: var(--raise); }
.find { background: var(--raise); }
.find[hidden] { display: none; }
.find[aria-expanded="true"] .chev .ico { transform: rotate(180deg); }
.find-n { background: var(--gold); color: var(--gold-ink); border-radius: 999px; font-size: 11px; padding: 1px 6px; font-weight: 700; }
.find-n[hidden] { display: none; }
.quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 30px; }
.quick::-webkit-scrollbar { display: none; }
.chip { border-color: var(--line2); background: rgba(6, 10, 28, .5); }
.chip .ico { color: var(--c, var(--gold)); }
.chip:hover { border-color: #3c4a86; }
.chip[aria-pressed="true"] { background: color-mix(in srgb, var(--c, var(--gold)) 20%, #0a1030); border-color: var(--c, var(--gold)); }
.chip.all { font-weight: 600; color: var(--gold); background: color-mix(in srgb, var(--gold) 16%, var(--solid)); border-color: transparent; }
.chip.all.ev { color: color-mix(in srgb, var(--pink) 45%, #fff); background: color-mix(in srgb, var(--pink) 18%, var(--solid)); }
.chip.all[aria-pressed="false"] { opacity: .75; }

.filterpop { position: absolute; z-index: 700; top: 60px; width: 370px; max-height: calc(100% - 80px); overflow-y: auto; padding: 14px; display: grid; gap: 14px; }
.filterpop[hidden] { display: none; }
.fgroup { display: grid; gap: 8px; }
.fgroup .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fgroup .chip { height: 32px; }

.floating { position: absolute; z-index: 650; box-shadow: var(--shadow); }
.locate { top: 12px; right: 12px; height: 34px; border-radius: 12px; background: rgba(6, 10, 28, .92); border-color: var(--line); }
.tourbtn { right: 12px; bottom: 32px; border-radius: 12px; min-height: 32px; }
.tour-n { background: rgba(27, 19, 3, .18); border-radius: 999px; padding: 0 7px; font: 700 12px/18px 'Space Mono', monospace; min-width: 20px; text-align: center; }

/* light tour panel */
.tourpanel { position: absolute; z-index: 700; right: 12px; bottom: 12px; width: 384px; max-height: calc(100% - 24px); display: flex; flex-direction: column; overflow: hidden; }
.tourpanel[hidden] { display: none; }
.tp-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 16px 10px; }
.tp-head h3 { display: flex; align-items: center; gap: 8px; font-size: 19px; margin-top: 4px; }
.tp-head h3 .ico { color: var(--gold); width: 18px; height: 18px; }
.tp-tabs { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.tp-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px 10px; cursor: pointer; color: var(--muted); font-weight: 500; }
.tp-tab.on { color: var(--gold); border-bottom-color: var(--gold); }
.tp-body { padding: 12px 16px; overflow-y: auto; display: grid; gap: 12px; }
.tp-body[hidden] { display: none; }
.tourlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: stop; }
.tourlist li { display: grid; grid-template-columns: 24px minmax(0, 1fr) 28px; gap: 10px; align-items: center; padding: 5px 4px; border-radius: 10px; counter-increment: stop; }
.tourlist li:hover { background: var(--raise); }
.tourlist li::before { content: counter(stop); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 12px; }
.tourlist li.note::before { display: none; }
.tourlist li.note { display: block; color: var(--muted); font-size: 14px; }
.tourlist span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; font-size: 15px; }
.tourlist .rm { border: 0; background: none; color: var(--muted); cursor: pointer; width: 28px; height: 28px; display: grid; place-items: center; }
.tourlist .rm:hover { color: var(--rose); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stats[hidden] { display: none; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; background: rgba(6, 10, 28, .5); }
.stat .eyebrow { color: var(--muted); letter-spacing: .12em; }
.stat b { font: 700 19px/1.2 'Space Mono', monospace; }
.tp-foot { border-top: 1px solid var(--line); padding: 12px 16px 14px; display: grid; gap: 12px; }
.tp-foot[hidden] { display: none; }
.tp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.poptour { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 6px; background: rgba(6, 10, 28, .5); }
.poptour h4 { margin: 0; font: 700 15px var(--head); display: flex; align-items: center; gap: 8px; }
.poptour h4 .ico { color: var(--c); }
.poptour p { margin: 0; font-size: 13px; color: var(--muted); }
.poptour .btn { justify-self: start; }

.pickhint { position: absolute; z-index: 800; left: 50%; top: 14px; transform: translateX(-50%); background: var(--gold); color: var(--gold-ink); font-weight: 700; padding: 8px 14px; border-radius: 999px; font-size: 13px; white-space: nowrap; box-shadow: var(--shadow); }
.pickhint[hidden] { display: none; }
.stage.picking .toolbar, .stage.picking .filterpop, .stage.picking .locate, .stage.picking .tourbtn, .stage.picking .tourpanel { display: none; }

/* ---------- markers ---------- */
.hpin { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--c);
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 35%, #0a1030) 0%, #0a1030 75%); border: 2px solid var(--c);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 16%, transparent), 0 0 22px 4px color-mix(in srgb, var(--c) 55%, transparent); }
.hpin .ico { width: 16px; height: 16px; }
.hpin.sel { transform: scale(1.18); border-color: #fff; }
.pinnum { position: absolute; right: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: #0a1030; border: 1px solid var(--gold); color: #fff; font: 700 10px/16px 'Space Mono', monospace; text-align: center; }
.epin { display: grid; justify-items: center; gap: 4px; }
.epin .sq { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--c); color: #0a1030; border: 2px solid #fff6;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent), 0 0 22px 4px color-mix(in srgb, var(--c) 60%, transparent); }
.epin .sq .ico { width: 15px; height: 15px; }
.epin.sel .sq { border-color: #fff; transform: scale(1.15); }
.epin .dl { font: 700 10px/1 'Space Mono', monospace; color: #fff; background: rgba(6, 10, 28, .9); padding: 3px 6px; border-radius: 5px; white-space: nowrap; }
.pickpin { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); box-shadow: 0 0 18px 4px color-mix(in srgb, var(--gold) 70%, transparent); }
.leaflet-container { font-family: 'DM Sans', system-ui, sans-serif; background: #22252f; }
.leaflet-control-attribution { background: rgba(6, 10, 28, .85) !important; color: var(--muted) !important; font-size: 10.5px; }
.leaflet-control-attribution a { color: var(--ink) !important; }
.night-tiles { filter: invert(1) hue-rotate(200deg) brightness(.8) contrast(.9) saturate(.3); }
.route-line { filter: drop-shadow(0 0 5px rgba(245, 184, 46, .9)); }

/* ---------- detail drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 1500; background: rgba(4, 7, 20, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.scrim[hidden], .detail[hidden] { display: none; }
.detail { position: fixed; z-index: 1600; right: 0; top: 0; bottom: 0; width: 384px; max-width: 100vw; background: var(--bg); border-left: 1px solid var(--line); overflow-y: auto; box-shadow: var(--shadow); }
.detail-x { position: absolute; right: 14px; top: 14px; z-index: 2; background: rgba(6, 10, 28, .6); }
.hero { height: 240px; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--c) 40%, transparent) 0%, transparent 58%), var(--bg); position: relative; }
.hero .ico { width: 72px; height: 72px; stroke-width: 1.6; color: var(--c); filter: drop-shadow(0 0 16px var(--c)); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 60px; background: linear-gradient(transparent, var(--bg)); }
.dbody { padding: 4px 24px 28px; display: grid; gap: 12px; }
.dbody .eyebrow { color: var(--c); }
.dbody h2 { font-size: 25px; }
.dbody .addr { margin: 0; color: #c9cee6; font-size: 14.5px; }
.pill { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line2); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; justify-self: start; background: rgba(255, 255, 255, .02); }
.pill .ico { color: var(--gold); }
.dbody .desc { margin: 0; color: #c9cee6; }
.dtags { display: flex; flex-wrap: wrap; gap: 6px; }
.dtag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); color: var(--c); }
.dtag .ico { width: 12px; height: 12px; }
.dacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.dacts .btn { min-height: 36px; padding: 0 14px; }
.btn.liked { color: var(--rose); border-color: color-mix(in srgb, var(--rose) 60%, transparent); }
.btn.liked .ico { fill: currentColor; }
.btn.ontour { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.btn.danger { color: #ff8a96; background: rgba(255, 90, 110, .12); border-color: transparent; justify-self: start; font-size: 13.5px; }
.soon { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 20%, var(--solid)); color: var(--gold); white-space: nowrap; }
.pending { font-size: 13px; color: var(--gold); margin: 0; }
.sub { color: var(--muted); font-size: 13px; margin: 0; }

.report-link { justify-self: start; color: var(--muted); font-size: 13px; }
.report-link:hover { color: var(--ink); }

/* ---------- report + admin ---------- */
.reasons { display: grid; gap: 6px; }
.reasons label { grid-template-columns: auto minmax(0, 1fr); align-items: center; font-weight: 400; font-size: 14px; gap: 10px; padding: 6px 4px; border-radius: 8px; cursor: pointer; }
.reasons label:hover { background: var(--raise); }
.reasons input { width: 18px; height: 18px; accent-color: var(--gold); margin: 0; }
.badge-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--rose); color: #fff; font: 700 11px/1 'Space Mono', monospace; margin-left: 4px; }
.badge-n[hidden] { display: none; }
.admin { width: 520px; display: flex; flex-direction: column; }
.admin[hidden] { display: none; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 20px 12px; }
.adm-head h2 { font-size: 22px; margin-top: 4px; }
.adm-tabs { padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.adm-tabs .tp-tab { white-space: nowrap; }
.adm-body { padding: 16px 20px 24px; display: grid; gap: 12px; align-content: start; overflow-y: auto; flex: 1; }
.acard { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 6px; background: rgba(255, 255, 255, .02); }
.acard h4 { margin: 0; font: 700 15px var(--head); }
.acard h4 button { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.acard .reason { color: var(--gold); font-size: 13.5px; font-weight: 600; margin: 0; }
.acard p { margin: 0; font-size: 14px; color: #c9cee6; }
.acard .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tagrow { display: grid; grid-template-columns: 34px 118px 40px minmax(0, 1fr) 34px; gap: 8px; align-items: center; }
.tagrow .prev { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.tagrow select, .tagrow input[type=text] { padding: 7px 8px; font-size: 14px; }
.tagrow input[type=color] { width: 40px; height: 36px; padding: 2px; border-radius: 8px; cursor: pointer; }
.tagrow .del { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.tagrow .del:hover { color: var(--rose); border-color: var(--rose); }
.tgroup { display: grid; gap: 8px; }
.tgroup + .tgroup { margin-top: 10px; }
.savebar { position: sticky; bottom: -24px; background: var(--bg); padding: 12px 0 4px; border-top: 1px solid var(--line); display: grid; gap: 8px; }

/* ---------- forms ---------- */
.drawer { position: absolute; z-index: 900; right: 12px; top: 12px; bottom: 12px; width: 400px; overflow-y: auto; }
.drawer[hidden] { display: none; }
.drawer form { padding: 18px; display: grid; gap: 14px; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.drawer-head h2 { font-size: 21px; margin-top: 4px; }
.x { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); flex: none; }
.x:hover { color: var(--ink); }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 0; display: grid; gap: 8px; }
legend { padding: 0 6px; font-weight: 700; font-size: 14px; }
label, .field { display: grid; gap: 6px; font-weight: 500; font-size: 14px; }
input, textarea, select { width: 100%; font-size: 16px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--input); color: var(--ink); }
input::placeholder, textarea::placeholder { color: #6f78a0; }
textarea { resize: vertical; }
input[type="file"] { font-size: 14px; }
.row { display: flex; gap: 8px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.req { color: var(--gold); }
.hint { margin: 0; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.hint.ok { color: var(--green); }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.results button { width: 100%; text-align: left; font-size: 13px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--raise); cursor: pointer; }
.tagpick { display: grid; gap: 10px; }
.tagpick .eyebrow { color: var(--muted); }
.tagpick .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tagpick .chip { height: 32px; font-size: 13px; }
.check { grid-template-columns: auto minmax(0, 1fr); align-items: start; font-weight: 400; font-size: 13.5px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); }
.preview { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; }
.preview[hidden] { display: none; }
.error { margin: 0; color: #ff8a96; font-size: 13.5px; min-height: 1em; }

/* ---------- add-home form ---------- */
#displayDrawer, #eventDrawer { width: 460px; }
.drawer h2.big { font-size: 26px; }
.lede { margin: 8px 0 0; color: #c9cee6; font-size: 14.5px; }
.choice { gap: 4px; }
.choice .opt { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; font-weight: 400; padding: 8px 6px; border-radius: 10px; cursor: pointer; }
.choice .opt:hover { background: var(--raise); }
.choice .opt input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--gold); }
.choice .opt span { display: grid; gap: 2px; color: var(--muted); font-size: 13.5px; }
.choice .opt b { color: var(--ink); font-size: 14.5px; }
.choice .hint { padding: 4px 6px 0; }
.boxed-sec { border: 1px solid var(--line2); border-radius: 14px; padding: 14px; display: grid; gap: 10px; background: rgba(255, 255, 255, .02); }
.sec-title { margin: 0; font-weight: 700; font-size: 14.5px; }
.boxed-sec .row .btn { flex: none; min-height: 40px; font-weight: 600; }
.pinbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.pinbtns .btn { min-height: 38px; border-radius: 999px; }
.photos { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.thumbs { display: contents; }
.ph { position: relative; width: 96px; height: 96px; }
.ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.ph button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--rose); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; }
.addphoto { width: 96px; height: 96px; border: 1.5px dashed #6f5bd3; border-radius: 12px; display: grid; place-content: center; justify-items: center; gap: 4px; color: #c9b8ff; font-size: 13px; cursor: pointer; text-align: center; }
.addphoto input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.addphoto .ico { width: 22px; height: 22px; }
.addphoto[hidden] { display: none; }
.check.boxed { border: 1px solid var(--line2); border-radius: 12px; padding: 12px; color: #c9cee6; }
.check.boxed.warn { border-color: rgba(245, 184, 46, .55); background: rgba(245, 184, 46, .06); }
.check.boxed.warn b { color: var(--gold); }
.hint.tight { margin-top: -8px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
.form-actions .btn { min-height: 42px; padding: 0 22px; font-weight: 600; }
.mapmode { position: absolute; z-index: 950; left: 50%; top: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 14px; font-weight: 600; white-space: nowrap; }
.mapmode[hidden] { display: none; }
.stage.mapmode-on .drawer, .stage.mapmode-on .pickhint { display: none; }
.cbadge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(122, 167, 255, .14); color: #a9c4ff; justify-self: start; }
.cbadge .ico { width: 12px; height: 12px; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 100%; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; scroll-snap-align: center; }
.gcount { position: absolute; z-index: 2; left: 14px; top: 14px; font: 700 11px 'Space Mono', monospace; background: rgba(6, 10, 28, .7); padding: 4px 8px; border-radius: 6px; }

/* ---------- sign-in ---------- */
.signin { position: fixed; inset: 0; z-index: 3000; display: grid; grid-template-columns: 49% 51%; background: #0a0e1c; overflow-y: auto; }
.signin[hidden] { display: none; }
.si-art { position: relative; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6, 10, 28, .25) 0%, rgba(6, 10, 28, .15) 45%, rgba(6, 10, 28, .9) 100%),
    var(--si-photo, none) center / cover no-repeat,
    radial-gradient(circle at 72% 12%, var(--g1) 0 3%, transparent 9%),
    radial-gradient(circle at 63% 26%, var(--g2) 0 1.2%, transparent 4%),
    radial-gradient(circle at 80% 30%, var(--g2) 0 1%, transparent 3.5%),
    radial-gradient(circle at 42% 52%, var(--g4) 0 1%, transparent 5%),
    radial-gradient(circle at 30% 60%, var(--g3) 0 1%, transparent 5%),
    radial-gradient(circle at 55% 58%, var(--g1) 0 1.5%, transparent 6%),
    radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--sky) 60%, #555) 0%, transparent 55%),
    linear-gradient(180deg, var(--sky) 0%, color-mix(in srgb, var(--sky) 80%, #333) 55%, color-mix(in srgb, var(--sky) 60%, #3a3a3a) 100%); }
.si-art::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(#fff 1px, transparent 1.4px); background-size: 46px 52px; mask-image: linear-gradient(#000, transparent 70%); -webkit-mask-image: linear-gradient(#000, transparent 70%); }
.si-art.has-photo::before { display: none; }
.si-logo { position: relative; display: flex; align-items: center; gap: 10px; font: 800 19px var(--head); color: #fff; text-decoration: none; }
.si-logo .ico { color: var(--gold); fill: var(--gold); width: 20px; height: 20px; }
.si-copy { position: relative; display: grid; gap: 14px; max-width: 470px; }
.si-copy h1 { font-size: clamp(36px, 4.6vw, 58px); letter-spacing: -.04em; line-height: 1.05; }
.si-copy p:last-child { margin: 0; color: #c9cee6; font-size: 16.5px; }
.si-side { display: grid; place-content: center; justify-items: center; gap: 22px; padding: 40px 24px; }
.si-card { width: min(460px, 92vw); background: #121a2e; border: 1px solid #1f2842; border-radius: 22px; padding: 30px 38px 32px; display: grid; gap: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.si-card h2 { font-size: 18px; text-align: center; letter-spacing: -.01em; }
.si-card label { font-size: 14px; }
.si-card input { background: #1d2740; border-color: #2a3555; font-size: 14px; padding: 8px 12px; }
.si-card [hidden] { display: none; }
#stepPw { display: grid; gap: 14px; }
#stepPw[hidden] { display: none; }
.si-card .error:empty { display: none; }
.si-note { margin: -6px 0 0; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.45; }
.si-grid { display: grid; gap: 14px; }
.si-grid[hidden] { display: none; }
.si-card .check.boxed { font-size: 13px; }
.si-card select { background: #1d2740; border-color: #2a3555; font-size: 14px; padding: 8px 10px; }
.si-email { margin: 0; font-size: 14px; color: var(--muted); }
.gbtn { background: transparent; color: #c9cee6; border-color: #2a3555; font-size: 13.5px; }
.gbtn[hidden], .or[hidden] { display: none; }
.or { display: flex; align-items: center; gap: 16px; margin: 0; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid #263048; }
#authSubmit .ico { width: 10px; height: 10px; fill: currentColor; stroke: none; }
.back { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14.5px; }
.back:hover { color: var(--ink); }

.dlg { border: 1px solid var(--line2); border-radius: 18px; background: var(--solid); color: var(--ink); padding: 0; width: min(440px, 94vw); box-shadow: var(--shadow); }
.dlg::backdrop { background: rgba(3, 6, 18, .7); backdrop-filter: blur(3px); }
.rules { padding: 18px; display: grid; gap: 12px; }
.rules p, .rules ul { margin: 0; }
.rules ul { padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.rules strong { color: var(--ink); }

.toast { position: fixed; z-index: 4000; right: 24px; bottom: 24px; width: min(356px, calc(100vw - 32px)); display: flex; align-items: center; gap: 12px; background: #04200f; border: 1px solid #0e4a28; color: #8ff0bf; padding: 15px 16px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; }
.toast[hidden] { display: none; }
.admin:not([hidden]) ~ .toast { right: auto; left: 24px; }
.toast .ico { color: #3ee0a0; }

/* ---------- smaller screens ---------- */
@media (max-width: 1560px) { .tagline { display: none; } }
@media (max-width: 1100px) {
  .toolbar { right: 12px; }
  .locate { top: 70px; }
}
@media (max-width: 820px) {
  .top { height: 64px; padding: 0 10px 0 12px; gap: 8px; }
  .wordmark { font-size: 21px; white-space: normal; line-height: .95; width: 112px; padding: 0; }
  .badge, .lbl, #holName { display: none; }
  .holbtn { padding: 0 8px; height: 36px; gap: 4px; }
  .top { gap: 6px; } .actions { gap: 6px; } #acctBtn.btn { padding: 0 4px; }
  .toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .toolbar::-webkit-scrollbar { display: none; }
  .seg-btn, .find { padding: 0 10px; font-size: 14px; }
  .holmenu { left: auto; right: -120px; }
  .lbl-s { display: inline; }
  .top .btn { padding: 0 10px; min-height: 36px; }
  #addEventBtn { width: 38px; padding: 0; }
  .toolbar { left: 12px; right: 12px; top: 12px; padding: 6px; }
  .quick { display: none; }
  .filterpop { left: 12px !important; right: 12px; width: auto; top: 58px; max-height: 60vh; }
  .locate { top: 66px; right: 12px; width: 40px; padding: 0; justify-content: center; }
  .side { left: 0; right: 0; top: auto; bottom: 10px; width: auto; height: 104px; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .side-head, .foot { display: none; }
  .list { display: flex; overflow-x: auto; overflow-y: hidden; gap: 10px; padding: 0 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .list::-webkit-scrollbar { display: none; }
  .item, .item.ev { flex: 0 0 82%; scroll-snap-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px; height: 96px; }
  .empty { background: var(--card); border-radius: 16px; flex: 1; }
  .tourbtn { bottom: 124px; }
  .tourpanel { left: 12px; right: 12px; width: auto; top: 120px; bottom: auto; max-height: calc(100% - 140px); }
  #displayDrawer, #eventDrawer { width: auto; }
  .mapmode { top: 70px; white-space: normal; width: calc(100% - 24px); justify-content: space-between; }
  .drawer { position: fixed; inset: auto 0 0 0; top: auto; width: auto; max-height: 84vh; border-radius: 20px 20px 0 0; z-index: 1200; }
  .detail, .admin { width: 100%; }
  .tagrow { grid-template-columns: 34px 104px 40px minmax(0, 1fr) 34px; }
  .admin:not([hidden]) ~ .toast { left: 16px; top: 16px; bottom: auto; }
  .signin { grid-template-columns: 1fr; }
  .si-art { min-height: 260px; padding: 24px; }
  .si-copy h1 { font-size: 34px; }
  .si-copy p:last-child { font-size: 15px; }
  .si-card { padding: 24px; }
}
@media (max-width: 420px) { .star { display: none; } .two { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .star .ico { animation: none; } }
