/* NEON VICE — original Miami-after-dark world. Live geometry remains untouched. */
body[data-theme=neon]{
  --skin-accent:#ff53ab;--skin-accent-rgb:255,83,171;
  --sigma-mint:#ff53ab;--accent:#ff53ab;--accent-rgb:255,83,171;--accent-ink:#1b0e2b;
  --shell-bg:rgba(23,12,43,.94);--shell-bg-raised:rgba(30,15,52,.98);
  --shell-ink:#fff0fa;--shell-muted:#c5a5d3;--shell-stroke:rgba(240,97,189,.48);
  --shell-shadow:rgba(7,2,25,.52);--shell-shine:rgba(255,205,244,.28);
  --radius-control:18px;--radius-sheet:25px;--experience-font:'Space Grotesk',sans-serif;
}
body[data-theme=neon] .map-shell,body[data-theme=neon] .leaflet-container{background:#151027}
body[data-theme=neon] .map-vignette{background:linear-gradient(180deg,rgba(22,5,35,.24),transparent 25%,transparent 68%,rgba(17,2,30,.31));mix-blend-mode:normal}
body[data-theme=neon] .grain{opacity:.035;mix-blend-mode:screen}
body[data-theme=neon] .world-illustration{display:none}
body[data-theme=neon] .brand{background:linear-gradient(145deg,rgba(59,29,75,.95),rgba(20,10,39,.97));border:1px solid rgba(255,101,192,.57);padding:5px 14px 5px 5px;border-radius:18px;box-shadow:inset 0 1px rgba(255,220,248,.29),0 7px 27px rgba(255,46,156,.18)}
body[data-theme=neon] .brand-type strong{font:800 19px/1 'Space Grotesk',sans-serif;letter-spacing:-.065em;color:#fff0fa;text-shadow:0 0 13px #f84caa88}
body[data-theme=neon] .brand-type>span{color:#48e6e1;font:700 8px/1.2 'Space Grotesk',sans-serif}
body[data-theme=neon] .map-caption{color:#e7b7e0;text-shadow:0 1px 4px #170729;font-family:'Space Grotesk',sans-serif}
body[data-theme=neon] .caption-dash{background:#fc5cae}
body[data-theme=neon] .caption-coords{color:#77bdc9}
body[data-theme=neon] .status-ring,body[data-theme=neon] .live-dot{background:#3be8e1;box-shadow:0 0 7px #40f7e9}
body[data-theme=neon] :is(.circle-button,.tool-button,.theme-close,.drawer-close,.route-close,.modal-close,.clear-search,.studio-launch,.route-style-button,.utility-button,.secondary-button,.origin-shortcuts button,.quick-places button){
  color:#f8d7ee;background:linear-gradient(160deg,rgba(76,40,90,.98),rgba(20,16,49,.98));
  border:1px solid rgba(250,95,179,.54);border-radius:13px;
  box-shadow:inset 0 1px rgba(255,222,249,.29),0 5px 16px rgba(7,4,32,.4);backdrop-filter:blur(14px);
}
body[data-theme=neon] :is(.circle-button,.tool-button,.theme-close,.drawer-close,.route-close,.studio-launch,.utility-button):hover:not(:disabled){background:linear-gradient(145deg,#683164,#251844);border-color:#ff90c8;filter:drop-shadow(0 0 5px #ff53a955)}
body[data-theme=neon] :is(.circle-button,.tool-button).active{border-color:#4dece9;box-shadow:inset 0 0 8px #4dece933,0 0 10px #4dece944}
body[data-theme=neon] .search-box{background:linear-gradient(120deg,rgba(38,19,67,.98),rgba(18,16,47,.97));border:1px solid #e857aeaa;border-radius:18px;box-shadow:inset 0 1px #ffd4ed33,0 11px 30px #08052699}
body[data-theme=neon] .search-box input{color:#fff5fc;font:600 16px 'Space Grotesk',sans-serif}
body[data-theme=neon] .search-box input::placeholder{color:#cfadd7;opacity:1}
body[data-theme=neon] .search-shortcut{color:#65e4df;border-color:#85417d}
body[data-theme=neon] .search-results,body[data-theme=neon] .origin-results{color:#f7d9ee;background:rgba(28,16,53,.98);border:1px solid #af508e;border-radius:15px;box-shadow:0 12px 38px #080420bb}
body[data-theme=neon] .search-result,body[data-theme=neon] .origin-result{color:#fff0fa}
body[data-theme=neon] :is(.search-result,.origin-result):hover{background:#643260}
body[data-theme=neon] .search-result small,body[data-theme=neon] .search-message{color:#caacd4}
body[data-theme=neon] .styles-launcher{background:linear-gradient(155deg,#502356,#201338);border:1px solid #f563b5;border-radius:18px;color:#fff0fa;box-shadow:inset 0 1px #fff3,0 10px 25px #11062c88}
body[data-theme=neon] .styles-launcher:after{background:linear-gradient(90deg,#ff4fae,#49e3e2);opacity:1;height:2px}
body[data-theme=neon] .styles-copy strong{color:#fff0fa}
body[data-theme=neon] .styles-copy small{color:#74e3dd}
body[data-theme=neon] .quick-label{color:#a7eae7;background:#25153dce;padding:6px 10px;border:1px solid #4bdcd455;border-radius:8px;font-size:9px}
body[data-theme=neon] .quick-places button{color:#f6ddeb;border:1px solid #804a84;background:#261739ec;border-radius:12px;box-shadow:0 4px 15px #0a062c77}
body[data-theme=neon] .quick-places .place-dot{background:#ff5fb1;border:1px solid #ffb3dc;box-shadow:0 0 8px #fb4ba8}
body[data-theme=neon] :is(.route-card,.theme-dock,.places-drawer){
  background:linear-gradient(145deg,rgba(48,22,69,.98),rgba(21,14,48,.98) 78%);
  color:#fff0fa;border:1px solid #f45ca99c;border-radius:23px;
  box-shadow:inset 0 1px #ffdcf333,0 18px 65px #080422ba;backdrop-filter:blur(30px);
}
body[data-theme=neon] :is(.route-card,.theme-dock):before{height:2px;background:linear-gradient(90deg,#f945a6,#5bece9,#e57dff);opacity:1;border-radius:2px}
body[data-theme=neon] :is(.route-kicker,.dock-eyebrow){color:#5aeee6;font:800 9px 'Space Grotesk',sans-serif;letter-spacing:.15em}
body[data-theme=neon] .route-kicker-dot{background:#ff5caa;box-shadow:0 0 9px #ff58a8}
body[data-theme=neon] :is(.route-destination,.dock-heading h2,.drawer-heading h2){color:#fff0fb;font-family:'Space Grotesk',sans-serif;font-weight:700;letter-spacing:-.05em}
body[data-theme=neon] :is(.route-subline,.route-notice,.dock-heading p,.dock-foot,.drawer-foot,.places-empty){color:#cab1d5}
body[data-theme=neon] .route-place-symbol{background:linear-gradient(155deg,#452356,#1b173f);border:1px solid #c959a4;border-radius:15px;box-shadow:0 4px 16px #12072c77}
body[data-theme=neon] .route-stats{background:#28183f;border:1px solid #6d4074;border-radius:15px}
body[data-theme=neon] .route-stats strong{color:#fc8cca}
body[data-theme=neon] .route-stats span{color:#bba4cf}
body[data-theme=neon] :is(.origin-summary,.secondary-button,.utility-button){color:#f5d9e9;background:#2f1b48;border:1px solid #87518c;border-radius:13px}
body[data-theme=neon] .origin-summary strong{color:#fff}
body[data-theme=neon] .primary-button{background:linear-gradient(110deg,#ff76c6,#ff4b9d 58%,#f94c78);color:#220e37;border:1px solid #ffb6da;border-radius:14px;box-shadow:inset 0 2px #ffe0ef99,0 6px 22px #e72c9288;font-weight:800;letter-spacing:.04em}
body[data-theme=neon] .primary-button:hover{filter:brightness(1.08)}
body[data-theme=neon] .theme-card{background:#28183f;border:1px solid #724675;border-radius:15px}
body[data-theme=neon] .theme-card[aria-pressed=true]{border-color:#ff6eb5;box-shadow:0 0 0 1px #ff6eb5,0 0 13px #ff4f9d77;background:#3b214f}
body[data-theme=neon] .theme-details strong{color:#ffe3f4;font-family:'Space Grotesk',sans-serif}
body[data-theme=neon] .theme-details small{color:#c8a5d2}
body[data-theme=neon] .selected-badge{background:#f652a7;color:#190e35;box-shadow:0 0 8px #f652a7}
body[data-theme=neon] .modal{background:linear-gradient(140deg,#3e2457,#18122d);border:1px solid #ed60b5;color:#ffebf8}
body[data-theme=neon] .modal h2{color:#ffe5f5}
body[data-theme=neon] .modal p,body[data-theme=neon] .modal-note,body[data-theme=neon] .modal-credits{color:#cbb1d6}
body[data-theme=neon] .modal-grid>div{background:#261839;border-color:#674372}
body[data-theme=neon] .modal-grid b{color:#59ece6}
body[data-theme=neon] .toast{background:#2c1845;color:#ffe5f5;border:1px solid #e65bac}
body[data-theme=neon] .place-row-select{color:#f8ddeb}
body[data-theme=neon] .place-row{border-color:#653b6e;background:#2b1b44}
/* Legacy prototype applied a second filter to the entire tile pane; avoid
   double inversion when the vector service is not reachable. */
body[data-theme=neon] .leaflet-tile-pane{filter:none!important}
body[data-theme=neon][data-renderer=raster] .leaflet-tile-pane img{filter:grayscale(.82) invert(.94) sepia(.42) hue-rotate(190deg) saturate(1.2) brightness(.85) contrast(1.18)}
/* Keep navigation free of decorative version labels and old angular HUD cuts. */
body[data-theme=neon] .map-tools:before{content:none!important}
body[data-theme=neon] :is(.circle-button,.tool-button,.search-box,.styles-launcher,.route-card,.theme-dock,.places-drawer,.quick-places button){clip-path:none!important}

/* Genuine icon art with no duplicate circular backing inside each control. */
.neon-ui-glyph{display:none;object-fit:contain;flex-shrink:0;vertical-align:middle;pointer-events:none;user-select:none;-webkit-user-drag:none}
body[data-theme=neon] .neon-ui-glyph{display:inline-block;width:24px;height:24px}
body[data-theme=neon] .neon-fallback-glyph{display:none!important}
body[data-theme=neon] :is(.circle-button,.tool-button)>.neon-ui-glyph{width:28px;height:28px}
body[data-theme=neon] :is(.search-icon,.route-style-button,.utility-button,.origin-summary)>.neon-ui-glyph{width:23px;height:23px}
body[data-theme=neon] .styles-launcher>.neon-ui-glyph{width:31px;height:31px}
body[data-theme=neon] .route-place-symbol>.neon-ui-glyph{width:39px;height:39px}
body[data-theme=neon] :is(#clearSearch,#routeClose,#themeClose,#placesClose,#aboutClose){display:grid;place-items:center;padding:0!important;line-height:0}
body[data-theme=neon] :is(#clearSearch,#routeClose,#themeClose,#placesClose,#aboutClose)>.neon-ui-glyph{width:24px;height:24px;display:block;margin:0!important;place-self:center}
body[data-theme=neon] .drawer-section-heading>.neon-ui-glyph{width:20px;height:20px}
body[data-theme=neon] .studio-launch>.neon-ui-glyph{width:24px;height:24px;margin-right:3px}
body[data-theme=neon] .studio-spark{display:none}
body[data-theme=neon] #routeButton>.neon-ui-glyph{width:33px;height:33px;object-fit:contain;margin:0}

/* Full-alpha PNG markers stay anchored to real geographical coordinates. */
body[data-theme=neon] .sigma-marker.sigma-destination{width:35px;height:44px;padding:0;margin:0;border:0!important;border-radius:0!important;background:url('./assets/neon/icons/destination.png') center bottom/contain no-repeat!important;box-shadow:none!important;clip-path:none;filter:drop-shadow(0 0 7px #ff55af66)}
body[data-theme=neon] .sigma-marker.sigma-destination .marker-centre{display:none}
body[data-theme=neon] .nav-here-dot{width:22px;height:22px;border:3px solid #f5ecff;background:#ff4fa6;box-shadow:0 0 0 3px #3ff3e5,0 0 12px #32f5e8}
body[data-theme=neon] .nav-here-dot:after{display:none}
.nav-pointer-neon{display:none}
body[data-theme=neon] .nav-pointer-aero,body[data-theme=neon] .nav-pointer-frontier,body[data-theme=neon] .nav-pointer-kawaii{display:none}
body[data-theme=neon] .nav-pointer-neon{display:block;width:52px;height:52px;object-fit:contain;filter:drop-shadow(0 0 5px #ff48a988)}

/* Compact previews remain accessible on touch screens. */
body[data-theme=neon] .theme-list{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:900px){body[data-theme=neon] .theme-list{display:flex;overflow-x:auto;gap:10px;padding-bottom:7px;scroll-snap-type:x mandatory}body[data-theme=neon] .theme-card{flex:0 0 min(45vw,208px);scroll-snap-align:start}body[data-theme=neon] .theme-dock,body[data-theme=neon] .route-card{border-radius:23px 23px 0 0}}
@media(prefers-reduced-motion:reduce){body[data-theme=neon] .neon-ui-glyph{transition:none;animation:none}}
