/* Mapa (MapLibre GL, ClientApp/src/map/base-map.ts) – společné pro stránku řeky, widget frame.aspx a návrh změny. */

/* Značky a ovládání mapy zůstávají uvnitř mapy – nad ní jsou legenda a panely stránky. */
.maplibregl-map { isolation: isolate; font: inherit; }

/* přepínač podkladu (Vodácká / Turistická …) */
.map-base-switch { display: flex; flex-direction: column; }
.map-base-switch .map-base-toggle { display: flex; align-items: center; justify-content: center; color: #333; }
.map-base-list { display: flex; flex-direction: column; padding: 4px 0; border-top: 1px solid #ddd; }
.map-base-list[hidden] { display: none; }
.maplibregl-ctrl-group .map-base-list button {
  width: auto; height: auto; min-height: 32px; padding: 6px 14px 6px 28px; border: 0; text-align: left; white-space: nowrap;
  font-size: var(--fs-sub, 14px); color: var(--c-text, #1c2b2a); position: relative;
}
.maplibregl-ctrl-group .map-base-list button + button { border-top: 0; }
.map-base-list button[aria-pressed="true"] { font-weight: 700; color: var(--c-primary, #1b6fb5); }
.map-base-list button[aria-pressed="true"]::before {
  content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: currentColor;
}

/* Logo Mapy.com je podmínkou užití API – jen u podkladu Mapy.com. */
.map-mapy-logo { display: block; line-height: 0; }
.map-mapy-logo[hidden] { display: none; }
