/* CORAL COVE — original playful undersea cartoon navigation, with live roads. */
body[data-theme=coral]{
  --sigma-mint:#17b4bf;--accent:#ed6d70;--accent-rgb:237,109,112;--accent-ink:#fff9e8;
  --shell-bg:#fff4dd;--shell-bg-raised:#fffaf0;--shell-ink:#245a77;
  --shell-muted:#648396;--shell-stroke:#7ac9ce99;
  --shell-shadow:#1b7b9e35;--shell-shine:#fffefa;
  --radius-control:22px;--radius-sheet:27px;
  --experience-font:'Nunito','DM Sans',sans-serif;
}
body[data-theme=coral][data-ui=day]{--shell-bg:#fff4dd;--shell-bg-raised:#fffaf0;--shell-ink:#245a77;--shell-muted:#648396}
body[data-theme=coral] .map-shell,body[data-theme=coral] .leaflet-container{background:#f8e9b9}
body[data-theme=coral] .world-illustration{display:none}
body[data-theme=coral] .grain{display:none}
body[data-theme=coral] .map-vignette{background:linear-gradient(180deg,#51cce21a,transparent 25%,transparent 75%,#f0a7a51a);mix-blend-mode:normal}
body[data-theme=coral] .map-caption{color:#326b85;text-shadow:0 1px 0 #fff8e5;font-weight:800}
body[data-theme=coral] .brand{background:linear-gradient(145deg,#fffdf1,#d9fbef);border:2px solid #fcffef;border-radius:21px;box-shadow:inset 0 2px #fff,0 7px 20px #1b849f40}
body[data-theme=coral] .brand-type strong{color:#246b84;font:900 21px 'Nunito',sans-serif;letter-spacing:-.075em}
body[data-theme=coral] :is(.circle-button,.tool-button,.theme-close,.drawer-close,.route-close,.clear-search,.studio-launch,.route-style-button){
  background:linear-gradient(155deg,#fffdf3,#d6f6ef);color:#216d89;
  border:2px solid #fafff5;border-radius:18px;
  box-shadow:inset 0 2px #fff,0 4px 12px #1c819e30;
}
body[data-theme=coral] :is(.circle-button,.tool-button):hover{background:#fff5ce;border-color:#7ccfc6}
body[data-theme=coral] .search-box{background:linear-gradient(120deg,#fffdf3,#ebfff8);border:2px solid #fffdf2;border-radius:24px;box-shadow:inset 0 2px #fff,0 8px 30px #127d9f31}
body[data-theme=coral] .search-box input{color:#1e5e77;font:800 16px 'Nunito',sans-serif}
body[data-theme=coral] .search-box input::placeholder{color:#7395a1;opacity:1}
body[data-theme=coral] .search-shortcut{color:#4e9dac}
body[data-theme=coral] .styles-launcher{background:linear-gradient(145deg,#fff6db,#9cefe2);color:#1b6580;border:2px solid #fff7de;border-radius:22px;box-shadow:inset 0 2px #fff,0 8px 20px #2790a63c}
body[data-theme=coral] .styles-launcher:after{background:linear-gradient(90deg,#ff9b70,#ef5b8e)}
body[data-theme=coral] .styles-copy strong{color:#285b75}
body[data-theme=coral] .styles-copy small{color:#4c8c98}
body[data-theme=coral] .quick-label{color:#227d83;background:#fff7e8dc;border-radius:20px;padding:5px 9px;font-weight:800}
body[data-theme=coral] .quick-places button{background:linear-gradient(145deg,#fffcf0,#e7fff5);color:#286b79;border:1px solid #fffaf0;border-radius:20px;box-shadow:0 3px 12px #2c92982d}
body[data-theme=coral] .quick-places .place-dot{background:#ff9474}
body[data-theme=coral] :is(.route-card,.theme-dock,.places-drawer){
  color:#265b72;background:linear-gradient(155deg,#fffaf0 0%,#fff2da 52%,#d8f6ed 100%);
  border:2px solid #fffdf1;border-radius:26px;box-shadow:inset 0 2px #fff,0 15px 45px #216a8440;
}
body[data-theme=coral] :is(.route-card,.theme-dock):before{height:4px;background:linear-gradient(90deg,#fba36c,#f46788,#58d5c6);border-radius:100px;opacity:.95}
body[data-theme=coral] :is(.route-kicker,.dock-eyebrow){color:#e86c75;font:900 10px 'Nunito',sans-serif;letter-spacing:.13em}
body[data-theme=coral] .route-kicker-dot{background:#f58970;box-shadow:0 0 0 3px #ffd3bc}
body[data-theme=coral] :is(.route-destination,.dock-heading h2,.drawer-heading h2){color:#265975;font:900 25px/1.13 'Nunito',sans-serif;letter-spacing:-.045em}
body[data-theme=coral] :is(.route-subline,.route-notice,.dock-foot,.drawer-foot,.places-empty){color:#6c8491}
body[data-theme=coral] .route-place-symbol{background:radial-gradient(circle at 35% 12%,#fff,#b5f8e6 70%,#7edfd5);border:2px solid white;border-radius:18px}
body[data-theme=coral] .route-stats{background:#e8f8e8;border:1px solid #91d8c2;border-radius:16px}
body[data-theme=coral] .route-stats strong{color:#276e85}
body[data-theme=coral] :is(.secondary-button,.utility-button,.origin-summary,.origin-shortcuts button){background:#fff7e5;color:#32677a;border:1px solid #b9dccc;border-radius:16px}
body[data-theme=coral] .primary-button{background:linear-gradient(145deg,#ffa770,#f56d78 60%,#ed5c97);color:white;border:2px solid #ffe3ca;border-radius:18px;box-shadow:inset 0 2px #ffcbad,0 7px 17px #e46c755c;font:900 15px 'Nunito',sans-serif}
body[data-theme=coral] .theme-card{background:#fff9e9;border:1px solid #f3dfc5;border-radius:18px}
body[data-theme=coral] .theme-card[aria-pressed=true]{background:#e1fff3;border:2px solid #ef8f87;box-shadow:0 0 0 2px #ffd3b2}
body[data-theme=coral] .theme-details strong{color:#276b80;font:900 13px 'Nunito',sans-serif}
body[data-theme=coral] .theme-details small{color:#77929a}
body[data-theme=coral] .selected-badge{background:#f1757c;color:white}
body[data-theme=coral] .modal{background:#fff8e8;color:#2f6677;border:1px solid #aee2d7}
body[data-theme=coral] .toast{background:#fff4df;color:#256d80;border:2px solid #79cfc9;border-radius:15px}
body[data-theme=coral] .place-row{background:#fff9ec;border-color:#c3e5d1;border-radius:15px}
body[data-theme=coral] .place-row-select{color:#326a7f}
body[data-theme=coral] .map-tools:before{content:none!important}
body[data-theme=coral] :is(.search-box,.styles-launcher,.route-card,.theme-dock,.places-drawer){clip-path:none!important}

/* Generated UI icons. Existing SVG remains for actions without generated art,
   including the precise centered X buttons. */
.coral-ui-glyph{display:none;width:24px;height:24px;object-fit:contain;flex:0 0 auto}
body[data-theme=coral] .coral-ui-glyph{display:inline-block}
body[data-theme=coral] .coral-fallback-glyph{display:none!important}
body[data-theme=coral] :is(.circle-button,.tool-button)>.coral-ui-glyph{width:29px;height:29px}
body[data-theme=coral] .search-icon>.coral-ui-glyph{width:25px;height:25px}
body[data-theme=coral] .route-place-symbol>.coral-ui-glyph{width:35px;height:35px}
body[data-theme=coral] .primary-button>.coral-ui-glyph{width:28px;height:28px}
body[data-theme=coral] .studio-launch>.coral-ui-glyph{width:21px;height:21px}

/* Standalone, transparent icons are normalized to one central canvas origin.
   Avoid per-icon CSS nudges that would move the new centred artwork off-axis. */
body[data-theme=coral] :is(.circle-button,.tool-button){position:relative;display:grid!important;place-items:center!important;padding:0!important;line-height:0}
body[data-theme=coral] :is(.circle-button,.tool-button)>.coral-ui-glyph{
  position:absolute;left:50%;top:50%;margin:0!important;
  transform:translate(-50%,-50%);object-position:center;
}

/* Generated marker assets replace flat marker circles, without extra rings. */
body[data-theme=coral] .sigma-marker.sigma-destination{width:38px;height:46px;padding:0;margin:0;border:0!important;border-radius:0!important;background:url('./assets/coral/icons/poi_primary/destination.png') center bottom/contain no-repeat!important;box-shadow:none!important;clip-path:none;filter:drop-shadow(0 2px 3px #385b7180)}
body[data-theme=coral] .sigma-marker.sigma-destination .marker-centre{display:none}
body[data-theme=coral] .nav-here-dot{width:28px;height:28px;background:url('./assets/coral/icons/poi_primary/current_position.png') center/contain no-repeat;border:0;border-radius:0;box-shadow:none}
body[data-theme=coral] .nav-here-dot:after{display:none}
.nav-pointer-coral{display:none}
body[data-theme=coral] :is(.nav-pointer-aero,.nav-pointer-frontier,.nav-pointer-kawaii,.nav-pointer-neon,.nav-pointer-atomic,.nav-pointer-block){display:none}
body[data-theme=coral] .nav-pointer-coral{display:block;width:52px;height:52px;object-fit:contain;filter:drop-shadow(0 3px 3px #1c7c9470)}
body[data-theme=coral][data-renderer=raster] .leaflet-tile-pane img{filter:saturate(1.3) hue-rotate(5deg) brightness(1.04)}

/* A seven-world library uses two balanced rows on desktops and one swipeable
   strip on phones, regardless of which of the seven designs is selected. */
@media(min-width:901px){
  body[data-theme] .theme-list{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:900px){
  body[data-theme] .theme-list{display:flex;overflow-x:auto;gap:10px;padding-bottom:8px;scroll-snap-type:x mandatory;overscroll-behavior-x:contain}
  body[data-theme] .theme-card{flex:0 0 min(53vw,210px);scroll-snap-align:start}
}

@media(max-width:600px){
  body[data-theme=coral] .brand-type strong{font-size:19px}
  body[data-theme=coral] :is(.route-card,.theme-dock){border-radius:22px 22px 0 0}
}
