.preview-map-tools{position:absolute;right:28px;top:20px;z-index:25;display:flex;gap:10px;padding:8px 10px;border-radius:18px;background:#fffef6ed;box-shadow:0 4px 20px #183c3015}
.preview-map-tools button{display:grid;justify-items:center;gap:2px;min-width:54px;padding:0;background:transparent;color:#65491a;font-size:10px}
.preview-map-tools svg{width:48px;height:48px}
@media(max-width:700px){
 .preview-map-tools{top:12px;right:12px;gap:6px;padding:6px 8px}
}
/* Transparent map actions: retain the shapes without filled icon backgrounds. */
.preview-map-tools{background:transparent;box-shadow:none}
.preview-map-tools svg>circle:first-child{fill:none;stroke:#a36b27;stroke-width:2}
.preview-map-tools svg>g{stroke:#a36b27}
.preview-map-tools svg>circle:not(:first-child){fill:none}
.preview-map-tools button:hover{background:#fffdf730;border-radius:10px}
.charger-map-tools{position:absolute}
.charger-map-tools .desktop-map-base{display:none}
.charger-map-tools .selected-save-badge,.charger-map-tools .selected-create-badge{position:absolute;top:-4px;z-index:2;display:grid;place-items:center;min-width:0;width:24px;height:24px;padding:0;border:2px solid #fffdf7;border-radius:50%;background:#f26a00;color:white;box-shadow:0 2px 7px #6b3c1838;font-size:20px;font-weight:700;line-height:1}
.charger-map-tools .selected-save-badge{right:23px}
.charger-map-tools .selected-save-badge .open-route-symbol{display:block;width:17px;height:17px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.charger-map-tools .selected-save-badge .add-route-symbol{display:none}
.charger-map-tools.selection-actions .selected-save-badge .open-route-symbol{display:none}
.charger-map-tools.selection-actions .selected-save-badge .add-route-symbol{display:block}
.charger-map-tools .selected-create-badge{right:-8px;top:16px;width:32px;height:32px;border-radius:50%;background:#fffdf7}
.charger-map-tools .selected-create-badge img{width:24px;height:24px;display:block}
.charger-map-tools .selected-create-badge span{position:absolute;right:-3px;top:-6px;display:grid;place-items:center;width:16px;height:16px;border:2px solid #fffdf7;border-radius:50%;background:#f26a00;color:#fff;font-size:13px;line-height:1}
.charger-map-tools .show-hide-badge{display:block;margin-top:-4px;padding:2px 5px;border-radius:999px;background:#fff3bd;color:#76511a;font-size:8px;font-weight:700;line-height:1.2;white-space:nowrap;box-shadow:0 1px 4px #513b1c20}
.charger-map-tools:not(.selection-actions) .selected-create-badge span{display:none}
.charger-map-tools .selected-save-badge:hover{background:#df5c00;border-radius:50%}
.charger-map-tools .selected-create-badge:hover{background:#fff7e8;border-radius:50%}
.charger-map-tools .selected-save-badge[hidden],.charger-map-tools .selected-create-badge[hidden]{display:none!important}
main.search-map-only #story-search,main.search-map-only #welcome,main.search-map-only #planner,main.search-map-only #story,main.search-map-only .map-bottom{display:none!important}
main.search-map-only #demo-map,main.search-map-only #map{inset:0;height:100%}
@media(min-width:701px){
 .charger-map-tools .selected-save-badge,.charger-map-tools .selected-create-badge{position:relative;inset:auto;display:block;width:54px;height:54px;min-width:54px;padding:0;border:0;border-radius:0;background:transparent;color:#fff;box-shadow:none}
 .charger-map-tools .desktop-map-base{display:block;width:48px;height:48px;margin:0 auto}
 .charger-map-tools .selected-save-badge .open-route-symbol{position:absolute;right:0;top:0;width:24px;height:24px;padding:3px;border:2px solid #fffdf7;border-radius:50%;background:#f26a00}
 .charger-map-tools .selected-save-badge .add-route-symbol{position:absolute;right:0;top:0;width:24px;height:24px;border:2px solid #fffdf7;border-radius:50%;background:#f26a00;font-size:20px;line-height:20px}
 .charger-map-tools .selected-create-badge img{position:absolute;right:0;top:0;bottom:auto;width:24px;height:24px;padding:2px;border:2px solid #fffdf7;border-radius:50%;background:#fffdf7}
 .charger-map-tools .selected-create-badge span{right:-3px;top:-6px}
 .charger-map-tools .selected-save-badge:hover,.charger-map-tools .selected-create-badge:hover{background:#fffdf730;border-radius:10px}
}
