@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

/* Shared dark paranormal theme. Existing token names remain compatible. */
:root {
  color-scheme: dark;
  --bg-deep: #0c0911;
  --bg-page: #110e19;
  --surface-1: #1a1524;
  --surface-2: #272033;
  --surface-raised: #352a45;
  --ink: #f5f0fa;
  --muted: #b9afc7;
  --text-secondary: #d6ccdf;
  --line: #44364f;
  --control-border: #897795;
  --purple: #684495;
  --purple-dark: #d4b5f5;
  --accent-hover: #7650a3;
  --lilac: #332340;
  --green: #8bdbbd;
  --accent-ghost: #e0cef5;
  --success-bg: #193a33;
  --warning: #f1cc8e;
  --warning-bg: #3c3021;
  --danger: #ffb0b5;
  --danger-bg: #452731;
  --paper: var(--surface-1);
  --focus: var(--accent-ghost);
  --glow: #af7be826;
  --mist: #b79bcc14;
  --nav-surface: #130f1bf5;
  --backdrop: #08050ebf;
  --shadow: 0 12px 40px #08050e50;
  --nav: 82px;
  --panel: 350px;
  --font: 'DM Sans','Segoe UI',sans-serif;
}

*{box-sizing:border-box}
body{margin:0;background:var(--bg-page);color:var(--ink);font-family:var(--font);font-size:14px;line-height:1.5}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button{color:inherit}
button:disabled{cursor:not-allowed;opacity:1;color:var(--muted)}
button:focus-visible,a:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
input:focus,textarea:focus,select:focus{outline:2px solid var(--focus);outline-offset:3px}
button{border:0}
a{color:var(--purple-dark)}
svg.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}
h1,h2,h3,h4,p{margin-top:0}
h1,h2,h3,h4{font-family:'Manrope',var(--font)}
h1{font-size:27px;letter-spacing:-1px;line-height:1.3}
h2{font-size:23px;letter-spacing:-.7px}
h3{font-size:16px;letter-spacing:-.3px}
p{line-height:1.65}
small{font-size:12px}
button[hidden],[hidden]{display:none!important}
.skip-link{position:fixed;top:-60px;left:100px;z-index:3000;background:var(--surface-2);padding:12px}
.skip-link:focus{top:10px}
.navigation{position:fixed;inset:0 auto 0 0;width:var(--nav);z-index:1100;background:var(--nav-surface);color:var(--muted);display:flex;align-items:center;flex-direction:column;border-right:1px solid var(--line)}
.brand-mark{color:var(--text-secondary);margin:29px 0 49px}
.brand-mark .icon{width:40px;height:40px;stroke-width:1.4}
.nav-items{display:flex;flex-direction:column;gap:17px;width:100%;padding:0 7px}
.nav-item{background:none;border-radius:12px;display:flex;align-items:center;flex-direction:column;gap:7px;width:100%;padding:13px 0;color:var(--text-secondary);font-size:10px;font-weight:500;transition:background .2s;text-decoration:none;min-height:54px;position:relative}
.nav-item .icon{width:23px;height:23px}
.nav-item:hover{background:var(--surface-2);color:var(--text-secondary)}
.nav-item.active{background:var(--lilac);color:var(--purple-dark);box-shadow:inset 0 0 18px var(--glow)}
.nav-item.active:before{content:'';position:absolute;left:0;height:23px;width:3px;background:var(--accent-ghost);border-radius:0 3px 3px 0}
.nav-add{order:3}
.profile-nav{order:5}
.nav-item.admin-nav-item{order:6}
.rail-caption{margin-top:auto;font-size:8px;letter-spacing:2.3px;writing-mode:vertical-rl;transform:rotate(180deg);padding:28px 0;color:var(--text-secondary)}
.app-shell{position:fixed;inset:0 0 0 var(--nav)}
#map{position:absolute;inset:0;background:var(--bg-deep);z-index:0}
.leaflet-container .leaflet-control-attribution{font-size:10px!important;background:var(--surface-1);padding:3px 7px;color:var(--text-secondary)}
.leaflet-container .leaflet-control-attribution a{color:var(--accent-ghost)}
.leaflet-container{font:inherit}
.map-header{position:absolute;z-index:800;top:24px;left:calc(var(--panel) + 44px);right:25px;max-width:630px}
.search-row{display:flex;gap:12px}
.search-box{height:54px;border-radius:14px;background:var(--paper);box-shadow:var(--shadow);display:flex;align-items:center;flex:1;border:1px solid var(--control-border);min-width:0;padding:0 7px}
.search-box input{border:0;background:none;min-width:0;flex:1;font-size:13px;outline:none;height:45px;color:var(--ink)}
.search-box input::placeholder{color:var(--muted)}
.icon-button{width:39px;height:39px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border-radius:10px;flex-shrink:0}
.icon-button:hover{background:var(--lilac);color:var(--purple-dark)}
.search-box .icon-button{color:var(--text-secondary)}
.locate-button{border-left:1px solid var(--line);border-radius:0!important;width:42px}
.chip{display:flex;align-items:center;gap:7px;background:var(--surface-1);white-space:nowrap;padding:10px 13px;border-radius:22px;font-size:12px;box-shadow:var(--shadow);border:1px solid var(--control-border);min-height:44px}
.chip .icon{width:16px;height:16px}
.chip:hover,.chip.selected{color:var(--purple-dark);border-color:var(--purple-dark);background:var(--lilac)}
.filter-trigger{font-weight:650;flex-shrink:0;min-width:49px;height:54px;justify-content:center;border-radius:14px;position:relative}
.map-header .filter-trigger .icon{width:20px;height:20px}
#filter-count{background:var(--purple);color:var(--ink);padding:1px 5px;border-radius:9px;font-size:10px}
.mobile-brand{display:none}
.search-results{background:var(--paper);border-radius:14px;box-shadow:var(--shadow);position:absolute;top:calc(100% + 7px);left:0;right:0;max-height:380px;overflow:auto;z-index:30;padding:7px}
.search-result{width:100%;text-align:left;display:flex;gap:10px;padding:13px 10px;background:none;border-radius:8px}
.search-result:hover{background:var(--lilac)}
.search-result .icon{color:var(--purple-dark);margin-top:2px}
.search-result strong{display:block;font-size:13px}
.search-result small{display:block;color:var(--muted);margin-top:3px}
.search-caption{font-size:11px;color:var(--muted);padding:9px}
.map-error{position:absolute;left:calc(var(--panel) + 44px);top:173px;right:90px;z-index:800;background:var(--warning-bg);border:1px solid var(--warning);padding:12px;border-radius:10px;font-size:12px;color:var(--warning)}
.map-error button{color:var(--purple-dark);background:none;text-decoration:underline}
.panel{position:absolute;z-index:850;top:20px;bottom:20px;left:20px;width:var(--panel);background:var(--paper);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);overflow:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.panel-head{padding:26px 24px 18px}
.wordmark{display:flex;align-items:center;gap:8px;font-size:25px;letter-spacing:-1.25px;font-family:'Manrope',sans-serif;font-weight:800;margin-bottom:28px}
.wordmark .icon{color:var(--purple-dark);width:30px;height:30px}
.beta{font:600 8px var(--font);letter-spacing:1px;color:var(--purple-dark);background:var(--lilac);padding:4px 6px;border-radius:4px;align-self:center;margin-left:3px}
.eyebrow{display:block;font-size:10px;letter-spacing:1.7px;font-weight:700;color:var(--accent-ghost);margin-bottom:10px}
.panel-head h1{margin-bottom:8px}
.subheading{font-size:12px;color:var(--muted);margin:0}
.intro-card{margin:0 20px 22px;border-radius:14px;padding:23px 20px 20px;color:var(--text-secondary);background:radial-gradient(ellipse at 100% 0,var(--glow),transparent 70%),var(--bg-deep);position:relative;overflow:hidden;border:1px solid var(--line)}
.intro-card:after{content:'';position:absolute;width:160px;height:160px;border-radius:50%;border:1px solid var(--line);right:-64px;top:0;box-shadow:0 0 0 18px var(--glow),0 0 0 36px var(--mist);pointer-events:none;border-color:var(--line)}
.intro-card .eyebrow{color:var(--text-secondary);font-size:8px;letter-spacing:1.6px}
.intro-card h2{font-size:23px;font-weight:500;line-height:1.4;position:relative;z-index:1;letter-spacing:-.7px;margin-bottom:11px}
.intro-card p{color:var(--text-secondary);font-size:11px;max-width:215px;line-height:1.6;margin-bottom:17px}
.intro-card button{background:none;color:var(--text-secondary);padding:0;display:flex;gap:10px;align-items:center;font-size:11px;font-weight:600}
.intro-card button .icon{width:15px}
.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:10px}
.section-heading h3{margin:0}
.text-button{background:none;color:var(--purple-dark);font-size:11px;font-weight:600;padding:5px 0;display:inline-flex;align-items:center;gap:4px}
.text-button .icon{width:14px;height:14px}
.panel-section{padding:0 23px 22px}
.result-count{color:var(--muted);font-size:11px;margin:0 0 15px}
.place-card{width:100%;display:flex;gap:12px;align-items:center;text-align:left;background:none;border-bottom:1px solid var(--line);padding:16px 0}
.place-card:first-child{padding-top:3px}
.place-card:last-child{border-bottom:0}
.place-card:hover .place-name{color:var(--purple-dark)}
.place-visual{width:57px;height:65px;border-radius:11px;background:linear-gradient(145deg,var(--surface-raised),var(--bg-deep));color:var(--accent-ghost);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;flex-shrink:0}
.place-visual:after{content:'';position:absolute;width:80px;height:80px;border:1px solid var(--line);border-radius:50%;top:29px;left:-26px;box-shadow:var(--shadow)}
.place-visual .icon{width:29px;height:29px;stroke-width:1.2;z-index:1}
.place-visual.tone-1{background:linear-gradient(145deg,var(--lilac),var(--bg-deep));color:var(--purple-dark)}
.place-visual.tone-2{background:linear-gradient(145deg,var(--success-bg),var(--bg-deep));color:var(--green)}
.place-visual.tone-3{background:linear-gradient(145deg,var(--warning-bg),var(--bg-deep));color:var(--warning)}
.place-copy{min-width:0;flex:1}
.place-name{display:block;font-weight:650;font-size:13px;line-height:1.5;margin-bottom:3px}
.place-category{font-size:10px;color:var(--muted);display:block;margin-bottom:7px}
.place-meta{display:flex;gap:8px;align-items:center;font-size:10px;color:var(--muted);flex-wrap:wrap}
.score-inline{color:var(--purple-dark);display:inline-flex;align-items:center;gap:3px;font-weight:700}
.score-inline .icon{width:12px;height:12px}
.tiny-check{color:var(--green);margin-left:3px}
.tiny-check .icon{width:13px;height:13px}
.card-arrow{color:var(--text-secondary);width:14px!important}
.community-note{background:var(--success-bg);border-radius:11px;padding:15px;display:flex;gap:10px;color:var(--green)}
.community-note .icon{width:19px;height:19px;flex-shrink:0;margin-top:2px}
.community-note strong{font-size:11px;display:block;margin-bottom:5px}
.community-note p{font-size:10px;line-height:1.6;margin:0}
.panel-footer{padding:0 24px 24px;font-size:10px;color:var(--text-secondary);display:flex;align-items:center;gap:6px}
.panel-footer .icon{width:12px;height:12px}
.panel-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.panel-close{display:none}
.panel-toolbar{display:flex;justify-content:space-between;align-items:center;padding:15px 18px 8px}
.panel-toolbar .text-button{color:var(--muted);font-size:12px}
.detail-hero{margin:5px 20px 20px;background:radial-gradient(ellipse at 70% 30%,var(--glow),transparent 70%),var(--bg-deep);height:126px;border-radius:13px;display:flex;align-items:center;justify-content:center;color:var(--purple-dark);position:relative;overflow:hidden}
.detail-hero:before,.detail-hero:after{content:'';position:absolute;width:300px;height:300px;border:1px solid var(--line);transform:rotate(35deg);top:50px;left:0;box-shadow:var(--shadow)}
.detail-hero>.icon{width:65px;height:65px;stroke-width:1;z-index:1}
.detail-hero .badge{position:absolute;bottom:12px;left:12px;z-index:2;background:var(--surface-1)}
.detail-body{padding:0 23px 24px}
.detail-body h1{font-size:25px;margin-bottom:8px}
.detail-address{display:flex;align-items:flex-start;gap:5px;font-size:11px;color:var(--muted);line-height:1.5;margin-bottom:18px}
.detail-address .icon{width:14px;height:14px;margin-top:2px}
.badge{display:inline-flex;align-items:center;gap:4px;color:var(--text-secondary);background:var(--surface-2);padding:5px 8px;border-radius:5px;font-size:10px;font-weight:600;border:1px solid var(--line)}
.badge .icon{width:12px;height:12px}
.badge.new{color:var(--warning);background:var(--warning-bg)}
.badge.disputed{color:var(--danger);background:var(--danger-bg)}
.badge.supported,.badge.community-supported{color:var(--purple-dark);background:var(--lilac)}
.detail-stats{display:flex;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px 0;margin:17px 0 19px;gap:20px}
.detail-stats>div{flex:1}
.detail-stats>div+div{border-left:1px solid var(--line);padding-left:20px}
.detail-stats strong{font-size:22px;font-family:Manrope,var(--font);display:block}
.detail-stats small{font-size:9px;color:var(--muted);display:block;margin-top:5px}
.detail-stats .score-value{color:var(--purple-dark)}
.detail-description{font-size:12px;color:var(--text-secondary);line-height:1.8}
.button{padding:12px 15px;border-radius:10px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;text-decoration:none;border:1px solid transparent;line-height:1.5}
.button .icon{width:17px;height:17px}
.button.primary{background:var(--purple);color:var(--ink)}
.button.primary:hover{background:var(--accent-hover)}
.button.secondary{background:var(--surface-2);color:var(--ink);border-color:var(--control-border)}
.button.outline{border:1px solid var(--line);background:transparent;color:var(--text-secondary);border-color:var(--control-border)}
.button.voted{background:var(--success-bg);color:var(--green);border-color:var(--green)}
.button-row{display:flex;gap:8px}
.button-row .button{flex:1}
.full-width{width:100%}
.detail-expanded h3{margin-top:24px;margin-bottom:10px}
.detail-expanded p{font-size:12px;color:var(--text-secondary)}
.activity-tags{display:flex;gap:6px;flex-wrap:wrap}
.activity-tag{font-size:10px;padding:7px 9px;background:var(--surface-2);border-radius:6px;color:var(--text-secondary)}
.support-block{margin-top:22px;border:1px solid var(--line);padding:14px;border-radius:11px}
.support-block p{font-size:11px;margin-bottom:10px}
.support-block small{font-size:10px;color:var(--muted);line-height:1.5;display:block;margin-top:11px}
.support-block .button{font-size:10px;padding:9px;min-height:44px}
.report{padding:17px 0;border-top:1px solid var(--line)}
.report-header{display:flex;gap:9px;align-items:center;margin-bottom:12px}
.avatar{width:32px;height:32px;border-radius:50%;background:var(--lilac);display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;color:var(--purple-dark);flex-shrink:0;border:1px solid var(--line)}
.report-header strong{font-size:11px;display:block}
.report-header small{font-size:9px;color:var(--muted);display:block;margin-top:3px}
.report-header .badge{margin-left:auto;font-size:8px}
.report p{font-size:12px;line-height:1.75;margin-bottom:10px;color:var(--text-secondary)}
.report-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--muted);font-size:9px}
.vote-report{background:var(--surface-2);color:var(--text-secondary);border-radius:6px;padding:6px 9px;display:flex;align-items:center;gap:5px;font-size:10px;min-height:44px;min-width:44px;border:1px solid var(--control-border)}
.vote-report .icon{width:13px;height:13px}
.vote-report.voted{background:var(--success-bg);color:var(--green);border-color:var(--green)}
.evidence-note{font-size:10px!important;padding:8px;background:var(--warning-bg);border-radius:6px}
.demo-notice{display:flex;align-items:flex-start;gap:6px;background:var(--surface-2);color:var(--text-secondary);padding:11px;border-radius:8px;font-size:10px;line-height:1.6;margin-top:16px}
.demo-notice .icon{width:14px;height:14px;flex-shrink:0;margin-top:2px}
.empty-state{text-align:center;padding:35px 12px;color:var(--muted)}
.empty-state>.icon{width:36px;height:36px;color:var(--text-secondary);margin-bottom:15px}
.empty-state h3{color:var(--ink);font-size:15px}
.empty-state p{font-size:12px}
.sort-select{border:1px solid var(--line);border-radius:8px;background:var(--bg-page);color:var(--ink);max-width:100%;padding:9px;font-size:11px;border-color:var(--control-border);min-height:44px}
.list-summary{display:flex;justify-content:space-between;align-items:center;margin:0 0 18px}
.list-summary small{color:var(--muted);font-size:10px}
.community-tabs{display:flex;gap:5px;overflow:auto;scrollbar-width:thin;padding-bottom:9px;margin-bottom:14px}
.community-tabs button{padding:8px 10px;font-size:10px;background:var(--surface-2);border-radius:8px;white-space:nowrap;color:var(--text-secondary);min-height:44px}
.community-tabs button.active{background:var(--purple);color:var(--ink)}
.community-card{padding:17px;background:var(--surface-2);border:1px solid var(--line);border-radius:12px;margin-bottom:12px}
.community-card .place-card{padding:0}
.community-card p{font-size:12px;color:var(--muted);margin:12px 0}
.community-card .text-button{font-size:11px;text-align:left}
.community-intro{display:flex;align-items:center;gap:0;margin:0 0 20px}
.community-intro .avatar{border:2px solid var(--paper);margin-right:-7px;background:var(--surface-2)}
.community-intro .avatar:nth-child(2){background:var(--surface-2)}
.community-intro .avatar:nth-child(3){background:var(--surface-2)}
.community-intro small{margin-left:18px;font-size:10px;color:var(--muted)}
.profile-hero{text-align:center;padding:12px 0 20px}
.profile-hero .avatar{width:70px;height:70px;font-size:21px;margin:0 auto 15px}
.profile-hero h2{font-size:21px;overflow-wrap:anywhere}
.profile-hero p{font-size:12px;color:var(--muted)}
.profile-switch{display:flex;align-items:center;gap:10px;width:100%;padding:13px 0;text-align:left;border-bottom:1px solid var(--line);background:none;font-size:12px}
.profile-switch .icon{margin-left:auto;color:var(--purple-dark);width:16px}
.profile-switch small{margin-left:auto;color:var(--green)}
.map-controls{position:absolute;right:24px;bottom:150px;z-index:700;background:var(--paper);padding:5px;border-radius:12px;box-shadow:var(--shadow);display:flex;flex-direction:column}
.map-controls>span{height:1px;background:var(--line);margin:3px 6px}
.map-controls .icon-button{width:35px;height:37px;color:var(--text-secondary)}
.drop-button{position:absolute;right:24px;bottom:64px;background:var(--purple);box-shadow:var(--shadow);color:var(--ink);padding:16px 21px;border-radius:14px;display:flex;align-items:center;gap:10px;font-size:12px;font-weight:600;z-index:700}
.drop-button:hover{background:var(--accent-hover)}
.drop-button .icon{width:20px;height:20px}
.map-legend{position:absolute;bottom:26px;left:calc(var(--panel) + 45px);z-index:500;display:flex;align-items:center;gap:6px;padding:9px 12px;background:var(--nav-surface);border-radius:8px;font-size:9px;color:var(--text-secondary);border:1px solid var(--line)}
.legend-pin{width:9px;height:9px;background:var(--purple);border-radius:3px;margin-left:8px}
.legend-pin:first-child{margin-left:0}
.legend-pin.verified{background:var(--success-bg);border:2px solid var(--green)}
.legend-dot{width:6px;height:6px;border-radius:50%;background:var(--surface-2);margin-left:8px}
.haunt-marker{background:none;border:none}
.pin{width:34px;height:38px;display:flex;align-items:center;justify-content:center;background:var(--purple);color:var(--ink);border:2px solid var(--purple-dark);border-radius:12px 12px 12px 4px;transform:rotate(-10deg);box-shadow:0 3px 10px var(--backdrop);position:relative;transition:filter .2s}
.pin>.icon{width:18px;height:18px;transform:rotate(10deg)}
.pin.high{background:var(--bg-page);width:41px;height:45px;border:2px solid var(--purple-dark);border-radius:14px 14px 14px 5px}
.pin.high>.icon{width:21px;height:21px}
.pin.low{width:22px;height:25px;border-radius:9px 9px 9px 3px;background:var(--surface-raised);border-color:var(--purple-dark)}
.pin.low>.icon{width:12px;height:12px}
.pin.active{background:var(--purple);box-shadow:0 0 0 4px var(--bg-deep),0 0 0 7px var(--accent-ghost),var(--shadow);border-color:var(--accent-ghost)}
.pin-check{position:absolute;top:-5px;right:-5px;width:14px;height:14px;border:2px solid var(--line);border-radius:50%;background:var(--success-bg);color:var(--green);display:flex;align-items:center;justify-content:center;border-color:var(--green)}
.pin-check .icon{width:9px;height:9px;stroke-width:3}
.marker-cluster{width:36px;height:36px;border-radius:50%;border:2px solid var(--purple-dark);background:var(--bg-page);color:var(--purple-dark);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12px;box-shadow:0 0 0 5px var(--glow),var(--shadow)}
.leaflet-tooltip{font:600 11px var(--font);border:1px solid var(--line);border-radius:7px;padding:7px 10px;color:var(--ink);box-shadow:var(--shadow);background:var(--surface-1)}
.user-position{width:17px;height:17px;border:3px solid var(--line);background:var(--accent-ghost);border-radius:50%;box-shadow:var(--shadow);border-color:var(--bg-deep)}
.search-position{width:15px;height:15px;border:3px solid var(--line);background:var(--purple-dark);border-radius:50%;box-shadow:var(--shadow);border-color:var(--bg-deep)}
.modal{border:1px solid var(--line);border-radius:20px;background:var(--paper);padding:0;width:520px;max-width:calc(100% - 30px);max-height:90dvh;box-shadow:var(--shadow);color:var(--ink)}
.modal::backdrop{background:var(--backdrop);backdrop-filter:blur(3px)}
.modal-head{padding:24px 26px 16px;display:flex;justify-content:space-between;align-items:flex-start;gap:14px;border-bottom:1px solid var(--line)}
.modal-head h2{font-size:22px;margin-bottom:5px}
.modal-head p{font-size:11px;color:var(--muted);margin:0}
.modal-head .icon-button{margin:-4px -7px 0 0}
.modal-form{padding:22px 26px 26px}
.field{display:block;margin-bottom:17px}
.field>span,.form-label{display:block;font-size:11px;font-weight:600;margin-bottom:7px}
.field input,.field select,.field textarea{display:block;width:100%;border:1px solid var(--control-border);background:var(--bg-page);border-radius:8px;padding:11px 12px;color:var(--ink);font-size:14px;min-height:44px}
.field textarea{resize:vertical;min-height:88px}
.field input::placeholder,.field textarea::placeholder{color:var(--muted);opacity:1}
.field small{font-size:10px;font-weight:400;color:var(--muted)}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.checkbox{display:flex;align-items:center;gap:9px;font-size:11px;line-height:1.5;margin:14px 0}
.checkbox input{accent-color:var(--purple-dark);width:16px;height:16px;margin:0;flex-shrink:0}
.form-hint{font-size:10px;line-height:1.6;color:var(--text-secondary);background:var(--surface-2);border-radius:8px;padding:12px;margin:17px 0}
.form-error{padding:11px;background:var(--danger-bg);color:var(--danger);font-size:12px;border-radius:7px;margin-bottom:15px;border:1px solid var(--danger)}
.filter-heading{font-size:13px;margin:22px 0 12px}
.filter-heading:first-child{margin-top:0}
.distance-options,.verification-options{display:flex;flex-wrap:wrap;gap:7px}
.choice{position:relative}
.choice input{position:absolute;opacity:0;width:1px;height:1px}
.choice span{display:flex;padding:8px 11px;border-radius:8px;border:1px solid var(--line);font-size:11px;color:var(--text-secondary);cursor:pointer;border-color:var(--control-border);min-height:44px;align-items:center}
.choice input:checked+span{background:var(--lilac);border-color:var(--purple-dark);color:var(--purple-dark)}
.choice input:focus-visible+span{outline:3px solid var(--focus);outline-offset:3px}
.category-options{display:grid;grid-template-columns:1fr 1fr;gap:3px}
.category-options .checkbox{margin:6px 0}
.filter-footer{margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
.filter-modal{--filter-height:min(740px,90dvh);max-height:var(--filter-height);overflow:hidden}
.filter-modal #modal-content{display:flex;flex-direction:column;max-height:calc(var(--filter-height) - 2px - env(safe-area-inset-bottom,0px))}
.filter-modal .modal-head{flex-shrink:0}
.filter-modal .modal-head h2{font-size:24px}
.filter-modal .modal-head .icon-button{min-width:44px;min-height:44px}
.filter-modal .modal-form{display:flex;flex-direction:column;min-height:0;padding:0}
.filter-options{overflow:auto;overscroll-behavior:contain;padding:18px 24px 0}
.filter-options fieldset{border:0;padding:0;margin:0 0 18px;min-width:0}
.filter-options .filter-heading{padding:0;margin:0 0 10px;font-weight:600}
.filter-hint{font-size:11px;color:var(--muted);margin:10px 0 0}
.filter-options .category-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px}
.filter-options .checkbox{min-height:44px;margin:0;font-size:12px;padding:4px;border-radius:8px}
.filter-options .checkbox:has(:checked){background:var(--lilac);color:var(--purple-dark)}
.filter-modal .filter-footer{flex-shrink:0;justify-content:space-between;gap:8px;margin:0;padding:12px 24px;background:var(--paper)}
.filter-footer .button{min-height:44px}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:2500;max-width:calc(100% - 36px);width:max-content;background:var(--surface-raised);color:var(--ink);padding:14px 21px;border-radius:12px;box-shadow:var(--shadow);font-size:12px;line-height:1.5;border:1px solid var(--control-border)}
.loading-state{padding:80px 20px;text-align:center;color:var(--muted);font-size:12px}
.loading-orbit{display:block;border:2px solid var(--line);border-top-color:var(--purple-dark);border-radius:50%;width:29px;height:29px;margin:0 auto 17px;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}
}
.no-js{position:fixed;inset:30%;z-index:3000;padding:30px;background:var(--surface-2)}
.muted{color:var(--muted)}
.separator{height:1px;background:var(--line);margin:20px 0}
@media(min-width:1450px){:root{--panel:375px}
.panel-head{padding:30px 27px 20px}
.panel-section{padding:0 27px 25px}
.intro-card{margin:0 24px 26px;padding:26px 23px}
.place-card{padding:19px 0}
.map-header{max-width:680px}
}
@media(max-width:1100px) and (min-width:761px){:root{--panel:315px;--nav:72px}
.map-header{left:calc(var(--panel) + 35px);right:16px}
.chip{font-size:11px;padding:9px 11px}
.filter-trigger .filter-label{display:none}
.filter-trigger #filter-count{position:absolute;right:-4px;top:-5px}
.search-results{right:0}
.search-box input{font-size:11px}
.map-legend{left:calc(var(--panel) + 35px)}
.map-legend{font-size:8px}
.drop-button{bottom:90px}
.map-controls{bottom:166px}
}
@media(max-width:760px){
  :root{--nav:0px;--panel:100%}
body{font-size:14px}
.app-shell{inset:0 0 calc(71px + env(safe-area-inset-bottom)) 0}
.navigation{inset:auto 0 0;width:auto;height:calc(71px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);border:0;background:var(--nav-surface);box-shadow:var(--shadow);z-index:1100;display:block;color:var(--text-secondary)}
.brand-mark,.rail-caption{display:none}
.nav-items{padding:0 8px;gap:0;flex-direction:row;justify-content:space-around;align-items:center;height:71px}
.nav-item{padding:8px 3px;gap:5px;font-size:9px;width:20%;color:var(--text-secondary);border-radius:0;background:none}
.nav-item .icon{width:22px;height:22px}
.nav-item.active{color:var(--purple-dark)}
.nav-item.active:before{display:none}
.nav-item:hover{color:var(--purple-dark)}
.nav-add{order:0}
.profile-nav{order:0}
.nav-add>span:first-child{background:var(--purple);color:var(--ink);border-radius:13px;width:39px;height:33px;display:flex;align-items:center;justify-content:center;margin-top:-7px}
.nav-add .icon{width:20px;height:20px}
.map-header{top:0;left:0;right:0;max-width:none;padding:14px 14px 0;background:linear-gradient(var(--bg-page) 0%,var(--nav-surface) 65%,transparent 100%);pointer-events:none}
.map-header>*{pointer-events:auto}
.mobile-brand{display:flex;align-items:center;font:800 21px Manrope,var(--font);letter-spacing:-1px;margin:0 3px 12px;gap:7px}
.mobile-brand>.icon{width:28px;height:28px;color:var(--purple-dark)}
.mobile-brand .beta{font-size:7px;margin-left:auto;letter-spacing:1px}
.search-box{height:49px;border-radius:12px}
.search-box input{font-size:11px}
.search-box .icon-button{width:30px}
.search-box .locate-button{width:35px}
.search-row{gap:8px}
.filter-trigger{height:49px;border-radius:12px}
.chip{font-size:11px;padding:9px 11px}
.chip .icon{width:14px;height:14px}
.search-results{left:14px;right:14px}
.map-error{left:15px;right:15px;top:191px;font-size:11px}
.panel{display:none;top:auto;bottom:10px;left:9px;right:9px;width:auto;max-height:calc(100% - 175px);border-radius:20px 20px 15px 15px;box-shadow:var(--shadow);overscroll-behavior:contain}
.panel.is-open{display:block}
.panel:before{content:'';display:block;position:sticky;top:0;margin:8px auto 0;width:34px;height:4px;border-radius:3px;background:var(--surface-2);z-index:2}
.panel-head{padding:18px 20px}
.panel-head h1{font-size:25px}
.panel-close{display:inline-flex}
.panel-section{padding:0 20px 20px}
.panel-toolbar{padding:5px 14px 8px}
.detail-hero{display:none}
.detail-body{padding:0 20px 20px}
.detail-body h1{font-size:23px}
.detail-address{margin-bottom:10px}
.detail-stats{padding:12px 0;margin:12px 0 14px}
.detail-stats strong{font-size:20px}
.detail-description{font-size:12px;line-height:1.7;margin-bottom:15px}
.detail-expanded[hidden]{display:none}
.map-controls{right:15px;bottom:90px;padding:3px;border-radius:11px}
.map-controls .icon-button{width:44px;height:44px}
.drop-button{right:15px;bottom:29px;padding:12px;border-radius:13px}
.drop-button>span:last-child{display:none}
.drop-button .icon{width:21px;height:21px}
.map-legend{display:none}
.has-panel .drop-button{display:none}
.has-panel .map-controls{bottom:auto;top:206px}
.modal{max-height:94dvh;width:100%;max-width:100%;margin:auto 0 0;border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom)}
.modal-head{padding:23px 22px 17px}
.modal-form{padding:20px 22px 25px}
.modal-head h2{font-size:21px}
.toast{bottom:calc(85px + env(safe-area-inset-bottom));font-size:11px}
.leaflet-control-attribution{font-size:8px!important;padding:3px 4px!important}
.category-options .checkbox{font-size:10px}
.panel-footer{padding-bottom:18px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}
/* Product identity and private preview. */
.wordmark{display:grid;grid-template-columns:26px 1fr;column-gap:8px;row-gap:7px;font-size:15px;letter-spacing:.3px;align-items:center}
.wordmark .beta{grid-column:2;justify-self:start;margin:0;font-size:7px;letter-spacing:1.1px}
.preview-logout{margin-top:22px;padding-top:16px;border-top:1px solid var(--line)}
.preview-logout .text-button{font-size:12px;color:var(--purple-dark)}
.preview-page{height:auto;overflow:auto;display:grid;place-items:center;padding:30px 20px;background:radial-gradient(ellipse at 15% 15%,var(--glow),transparent 55%),radial-gradient(ellipse at 90% 95%,var(--mist),transparent 55%),var(--bg-deep);min-height:100dvh}
.preview-card{width:100%;max-width:440px;padding:42px 36px 28px;border:1px solid var(--line);border-radius:22px;background:var(--paper);box-shadow:var(--shadow);text-align:center}
.preview-orbit.icon{width:48px;height:48px;color:var(--purple-dark);stroke-width:1.1;margin-bottom:22px}
.preview-card h1{font-size:30px;letter-spacing:-1px;margin-bottom:10px}
.preview-tagline{font-size:14px;color:var(--muted);margin-bottom:30px}
.preview-label{display:inline-block;padding:7px 11px;border-radius:6px;background:var(--lilac);color:var(--purple-dark);font-size:10px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase}
.preview-intro{font-size:14px;color:var(--muted);line-height:1.7;margin:20px 0 26px}
.preview-card form{text-align:left}
.preview-card .field>span{font-size:12px}
.preview-card .field input{font-size:16px;min-height:48px}
.preview-card .button{font-size:13px;min-height:48px}
.preview-invitation{font-size:11px;color:var(--muted);line-height:1.6;margin:24px 0 0}
@media(max-width:760px){.mobile-brand{font-size:clamp(13px,3.9vw,17px);letter-spacing:.2px}
.mobile-brand .brand-name{white-space:nowrap}
.mobile-brand .beta{max-width:62px;white-space:normal;line-height:1.5;text-align:center}
.mobile-brand>.icon{flex-shrink:0}
}
@media(max-width:380px){.preview-page{padding:20px 14px}
.preview-card{padding:32px 24px 24px}
.preview-card h1{font-size:26px}
}
/* Member accounts and moderation extend the map's existing surfaces. */
.account-brand{font:800 19px Manrope,var(--font);color:var(--ink);text-decoration:none;display:inline-block;margin-bottom:10px}
.member-page{height:100dvh;overflow:auto;padding:28px max(20px,calc((100vw - 940px)/2));background:var(--bg-page);scroll-behavior:smooth}
.member-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px;flex-wrap:wrap}
.member-header .account-brand{margin:0}
.member-card{background:var(--surface-1);border:1px solid var(--line);border-radius:18px;padding:32px;overflow-wrap:anywhere;box-shadow:var(--shadow)}
.member-card h1{font-size:28px}
.member-card h2{font-size:20px;margin:30px 0 15px}
.member-card h3{margin:22px 0 12px}
.member-card p{line-height:1.75;font-size:14px}
.member-card small{font-size:11px;color:var(--muted)}
.member-card section{scroll-margin-top:22px}
.member-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:18px;margin:24px 0;padding:22px 0;border-block:1px solid var(--line)}
.member-stats strong{display:block;font:700 25px Manrope,var(--font);color:var(--ink)}
.member-stats span{display:block;font-size:11px;color:var(--muted);margin-top:6px}
.member-stats.compact{grid-template-columns:repeat(2,1fr);gap:17px}
.member-stats.compact strong{font-size:22px}
.profile-reputation{background:var(--bg-page);border-radius:12px;text-align:center;padding:0;margin-bottom:22px;border:1px solid var(--line);overflow:hidden}
.profile-reputation strong{display:block;font:700 24px Manrope,var(--font);color:var(--purple-dark);margin-bottom:8px}
.profile-reputation span{display:block;font-size:12px;color:var(--muted);line-height:1.7}
.member-tabs{display:flex;gap:18px;flex-wrap:wrap;padding:14px 0;font-size:13px}
.member-tabs a{color:var(--purple-dark);text-decoration:none}
.member-tabs a:hover{text-decoration:underline}
.member-actions{display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin-top:25px}
.member-actions .text-button{font-size:12px}
.member-actions form{margin:0}
.contribution{padding:18px 0;border-bottom:1px solid var(--line)}
.contribution>a,.contribution>.text-button{font-size:14px;font-weight:600;color:var(--purple-dark)}
.contribution p{font-size:12px;color:var(--muted);line-height:1.7;margin:8px 0}
.contribution small{font-size:10px;color:var(--muted);line-height:1.7}
.moderation-note{background:var(--warning-bg);padding:10px;border-radius:8px;color:var(--warning)}
.badge-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.earned-badge{background:radial-gradient(ellipse at 0 0,var(--glow),transparent 75%),var(--surface-2);border:1px solid var(--line);padding:18px;border-radius:12px;margin-bottom:12px}
.earned-badge strong{display:block;font-size:13px;color:var(--purple-dark);margin-bottom:7px}
.earned-badge p{font-size:12px;color:var(--muted);margin:0;line-height:1.6}
.earned-badge>.icon{color:var(--purple-dark);margin-bottom:10px}
.save-place{margin-top:14px;font-size:12px;padding:8px 13px;min-height:44px}
.button:disabled{opacity:1;cursor:not-allowed;background:var(--surface-2);color:var(--muted);border-color:var(--line);box-shadow:none}
.moderation-form{margin-top:28px;padding:24px;background:var(--paper);border:1px solid var(--line);border-radius:12px}
.moderation-form .field>span{font-size:13px}
.moderation-form select,.moderation-form textarea{font-size:14px}
.preserve-text{white-space:pre-wrap}
.member-card details{margin-top:24px}
.member-card summary{cursor:pointer;color:var(--purple-dark);font-size:13px}
@media(max-width:760px){.member-page{padding:20px 14px}
.member-card{padding:22px 18px}
.member-header{gap:10px;margin-bottom:18px}
.member-card h1{font-size:25px}
.member-card h2{font-size:18px}
.moderation-form{padding:17px}
.member-stats{gap:14px}
.preview-card .account-brand{font-size:18px}
}

/* Shared interaction, provenance and account components. */
::selection{background:var(--lilac);color:var(--ink)}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
input,select,textarea{color:var(--ink);accent-color:var(--purple-dark);max-width:100%}
input:disabled,select:disabled,textarea:disabled{background:var(--surface-2);color:var(--muted);cursor:not-allowed;border-style:dashed}
input[readonly],textarea[readonly]{background:var(--surface-2)}
input[aria-invalid=true],textarea[aria-invalid=true],select[aria-invalid=true]{border-color:var(--danger)}
input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus{box-shadow:0 0 0 1000px var(--bg-page) inset;-webkit-text-fill-color:var(--ink);caret-color:var(--ink)}
input::file-selector-button{background:var(--surface-raised);color:var(--ink);border:1px solid var(--control-border);border-radius:6px;padding:8px;margin-right:10px;font:inherit;cursor:pointer}
.field>span,.form-label{color:var(--text-secondary);font-size:12px}
.field,.field-row>*{min-width:0}
.search-box:focus-within{outline:2px solid var(--focus);outline-offset:3px}
.button.secondary:hover,.button.outline:hover,.vote-report:hover{background:var(--surface-raised);border-color:var(--purple-dark);color:var(--ink)}
.button.primary:focus-visible,.drop-button:focus-visible{outline-offset:4px}
.button.danger{background:var(--danger-bg);color:var(--danger);border-color:var(--danger)}
.button.danger:hover{background:var(--danger);color:var(--bg-deep)}
.button[aria-pressed=true],.button.voted:hover,.vote-report.voted:hover{background:var(--success-bg);border-color:var(--green);color:var(--green)}
.button:disabled:hover{background:var(--surface-2);color:var(--muted);border-color:var(--line)}
.icon-button{min-width:44px;min-height:44px}
.text-button{min-height:44px}
.checkbox{min-height:44px}
.checkbox input{width:18px;height:18px}
.button-row{flex-wrap:wrap}
.button-row>.button{flex-basis:100px}
.badge.verified,.badge.admin,.badge.published,.badge.merged{color:var(--green);background:var(--success-bg)}
.badge.sourced{color:var(--accent-ghost);background:var(--success-bg)}
.badge.pending{color:var(--warning);background:var(--warning-bg)}
.badge.rejected{color:var(--danger);background:var(--danger-bg)}
.badge.member,.badge.demo{color:var(--text-secondary);background:var(--surface-2)}
.claimed-activity{border-left:2px solid var(--warning);padding:4px 14px 14px;margin:24px 0;background:var(--warning-bg);border-radius:0 10px 10px 0}
.claimed-activity .activity-tag{background:var(--bg-page)}
.claimed-activity h2,.claimed-activity h3{color:var(--warning)}
.source-list{font-size:12px;overflow-wrap:anywhere}
.source-list li strong{color:var(--accent-ghost)}
.report{border-left:2px solid var(--accent-ghost);padding-left:12px;margin-top:16px}
.report-header{flex-wrap:wrap}
.report-footer{margin-top:12px}
.score-denominator{font-size:11px;color:var(--muted)}
.detail-expand{margin-top:13px}
.experiences-heading{margin-top:25px}
.origin-note{font-size:10px;margin-top:13px}
.profile-points{padding:20px;background:radial-gradient(ellipse at 50% 0,var(--glow),transparent 80%),var(--lilac)}
.profile-trust{padding:16px;border-top:1px solid var(--line)}
.profile-trust strong{font-size:16px;color:var(--accent-ghost);margin:4px 0}
.profile-hero .avatar{box-shadow:0 0 0 7px var(--glow)}
.earned-badge{box-shadow:inset 0 1px var(--line)}
.account-brand{display:inline-flex;align-items:center;gap:10px}
.account-brand:before{content:'';width:30px;height:30px;flex-shrink:0;background:url('favicon.svg') center/contain no-repeat}
.brand-mark,.wordmark .icon,.mobile-brand>.icon{color:var(--accent-ghost)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.leaflet-tooltip-top:before{border-top-color:var(--surface-1)}
.leaflet-tooltip-bottom:before{border-bottom-color:var(--surface-1)}
.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:var(--surface-1);color:var(--ink)}
.leaflet-bar a{background:var(--surface-1);color:var(--ink);border-color:var(--line)}
.leaflet-bar a:hover{background:var(--surface-raised);color:var(--accent-ghost)}
.leaflet-bar a.leaflet-disabled{background:var(--surface-2);color:var(--muted)}
.leaflet-container a.leaflet-popup-close-button{color:var(--ink)}
.pin.active{border-color:var(--accent-ghost)}
.admin-page .contribution{padding:20px 12px;border-radius:8px}
.admin-page .contribution:hover{background:var(--surface-2)}
.admin-page summary{min-height:44px;padding:10px 0}
.admin-page .member-tabs a{padding:8px 0;min-height:44px}
.admin-page .member-tabs a[aria-current]{color:var(--accent-ghost);text-decoration:underline;text-underline-offset:7px}
#candidate-map{height:260px;border-radius:15px;margin:20px 0;border:1px solid var(--line)}
.candidate-position{stroke:var(--accent-ghost);fill:var(--purple)}
table{width:100%;border-collapse:collapse;text-align:left}
th,td{padding:12px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
th{background:var(--surface-2);color:var(--ink)}
tbody tr:hover{background:var(--surface-2)}
@media(max-width:760px){
  .navigation{background:var(--nav-surface);border-top:1px solid var(--line)}
  .nav-item.active{background:var(--lilac);border-radius:10px;box-shadow:inset 0 0 18px var(--glow)}
  .field input,.field select,.field textarea,.search-box input{font-size:16px}
  .panel{max-height:calc(100% - 200px)}
  .search-results{max-height:calc(100dvh - 220px)}
  .map-error{top:210px}
  .category-options{grid-template-columns:1fr}
}
@media(max-width:380px){
  .filter-trigger .filter-label{display:none}
  .filter-trigger #filter-count{position:absolute;right:-4px;top:-5px}
  .filter-options .category-options{grid-template-columns:minmax(0,1fr)}
  .filter-modal .filter-footer{padding-inline:16px}
  .filter-footer .button{padding-inline:10px;font-size:12px}
  .field-row{grid-template-columns:1fr}
  .preview-card{padding-inline:20px}
  .preview-card .account-brand{font-size:16px}
  .detail-stats{gap:10px}
  .detail-stats>div+div{padding-left:10px}
}
