/* Frontier Atlas / original expedition art: scoped to the parchment world. */
.frontier-ui-glyph{display:none;flex-shrink:0;object-fit:contain;vertical-align:middle;pointer-events:none;user-select:none;-webkit-user-drag:none}
body[data-theme=frontier] .frontier-ui-glyph{display:inline-block;width:24px;height:24px}
body[data-theme=frontier] .frontier-fallback-glyph{display:none!important}
body[data-theme=frontier] :is(.circle-button,.tool-button)>.frontier-ui-glyph{width:28px;height:28px}
body[data-theme=frontier] .search-icon>.frontier-ui-glyph{width:27px;height:27px}
body[data-theme=frontier] .styles-launcher>.frontier-ui-glyph{width:31px;height:31px}
body[data-theme=frontier] .route-place-symbol>.frontier-ui-glyph{width:36px;height:36px}
body[data-theme=frontier] :is(.utility-button,.route-style-button,.origin-summary,.origin-shortcuts button)>.frontier-ui-glyph{width:22px;height:22px}
body[data-theme=frontier] :is(.search-result,.origin-result,.place-row-select)>.frontier-ui-glyph{width:24px;height:24px}
body[data-theme=frontier] :is(.route-close,.theme-close,.drawer-close,.modal-close,.clear-search)>.frontier-ui-glyph{width:23px;height:23px}
body[data-theme=frontier] .studio-launch>.frontier-ui-glyph{width:26px;height:26px;margin-right:3px}
body[data-theme=frontier] .studio-launch>.studio-spark{display:none}
body[data-theme=frontier] .drawer-section-heading>.frontier-ui-glyph{width:20px;height:20px}
body[data-theme=frontier] .route-kicker-dot{width:16px;height:16px;border:0;border-radius:0;background:url('./assets/frontier/saved-marker.png') center/contain no-repeat;box-shadow:none}

/* Restrained brass hardware gives sufficient separation from cream parchment. */
body[data-theme=frontier] :is(.circle-button,.tool-button,.theme-close,.drawer-close,.route-close,.modal-close,.clear-search){
  border-color:rgba(115,77,35,.58);
  background:linear-gradient(160deg,#fff1d3,#d8bc89 92%);
  box-shadow:inset 0 1px 0 rgba(255,252,227,.9),0 2px 5px rgba(64,42,23,.22);
}
body[data-theme=frontier] :is(.circle-button,.tool-button,.theme-close,.drawer-close,.route-close,.modal-close,.clear-search):active{filter:brightness(.93)}
/* The map-view toggle stays visible alongside the compass and reset controls. */
body[data-theme=frontier] #pitchButton{position:relative;overflow:visible}
body[data-theme=frontier] #pitchButton.active{border-color:#7e6238;background:linear-gradient(160deg,#fff0ce,#c8a569 92%)}
body[data-theme=frontier] #pitchButton::after{
  content:'2D';position:absolute;bottom:-5px;right:-5px;min-width:19px;height:14px;
  padding:0 2px;display:grid;place-items:center;border-radius:3px;
  background:#f0dbaf;border:1px solid #80623c;color:#533821;
  font:700 9px/1 Georgia,serif;letter-spacing:0;box-shadow:0 1px 3px rgba(50,32,18,.25)
}
body[data-theme=frontier] #pitchButton.active::after{content:'3D';background:#87643b;color:#fff0cb}

/* MapLibre positions the marker wrapper at the destination geographic point.
   The image's tip, not its visual centre, is the anchoring pixel. */
body[data-theme=frontier] .sigma-marker.sigma-destination{
  width:35px;height:42px;padding:0;margin:0;border:0!important;border-radius:0!important;
  background:url('./assets/frontier-rustic/destination.png') center bottom/contain no-repeat!important;
  transform:none;box-shadow:none!important;clip-path:none;
  filter:drop-shadow(0 2px 2px rgba(54,37,16,.32));
}
body[data-theme=frontier] .sigma-marker.sigma-destination .marker-centre{display:none}
body[data-theme=frontier] .nav-here-dot{
  display:block;width:28px;height:28px;border:0;border-radius:0;
  background:url('./assets/frontier/route-start.png') center/contain no-repeat;
  box-shadow:none;filter:drop-shadow(0 1px 1.5px rgba(54,37,16,.32));
}
body[data-theme=frontier] .nav-here-dot:after{display:none}
body[data-theme=frontier] .nav-pointer-frontier{width:52px;height:52px;object-fit:contain}

@media(max-width:760px){
  body[data-theme=frontier] :is(.circle-button,.tool-button)>.frontier-ui-glyph{width:26px;height:26px}
  body[data-theme=frontier] .search-icon>.frontier-ui-glyph{width:24px;height:24px}
  body[data-theme=frontier] .styles-launcher>.frontier-ui-glyph{width:28px;height:28px}
  body[data-theme=frontier] .studio-launch>.frontier-ui-glyph{width:21px;height:21px}
}
