/* F-2 Karten-Hülle (OV-00/GF-B1). Farben/Radien aus shared/tokens.css und shared/buttons.css. Nur angemeldet sichtbar
   (Posts sind nur angemeldet lesbar); die Klasse setzt screens/map-shell.js. Touch-Ziele ≥ 56 px. */
#ldMapTop, #ldMapBottom { display: none; }
body.ld-map-shell-on #ldMapTop { display: flex; position: fixed; z-index: 450; gap: 8px; align-items: stretch;
    top: calc(var(--ld-header-h, 70px) + 10px); left: calc(12px + var(--ld-safe-left, 0px)); right: calc(12px + var(--ld-safe-right, 0px));
    max-width: 560px; margin: 0 auto; }
body.ld-map-shell-on #ldMapBottom { display: flex; position: fixed; z-index: 450; align-items: center; justify-content: center; gap: 8px;
    left: 0; right: 0; bottom: calc(16px + var(--ld-safe-bottom, 0px)); pointer-events: none; }
body.ld-map-shell-on #ldMapBottom > * { pointer-events: auto; }
/* Ohne Leiste sitzt die Attribution über dem Footer, damit das © nicht unter den Rechtslinks verschwindet. */
body:not(.ld-map-shell-on) #mainMap .leaflet-bottom.leaflet-right { bottom: calc(16px + var(--ld-safe-bottom, 0px)); }
/* Credit an der unteren Bildkante, nicht über der Map/List-Leiste. OSM-Credit bleibt. */
body.ld-map-shell-on .leaflet-bottom.leaflet-right { bottom: 0; }
body.ld-map-shell-on #mainMap .leaflet-control-attribution { position: fixed; left: 0; right: 0; bottom: var(--ld-safe-bottom, 0px); margin: 0 !important; width: auto; max-height: 22px; overflow: hidden; border-radius: 0; text-align: center; z-index: 440; background: rgba(255, 248, 236, .94); padding: 2px 8px; font-size: 11px; }
body.ld-map-shell-on #ldMapBottom { bottom: calc(96px + var(--ld-safe-bottom, 0px)); left: calc(12px + var(--ld-safe-left, 0px)); right: auto; width: max-content; max-width: calc(100vw - 96px); justify-content: flex-start; }
/* Filterleiste und Zoom unter das Suchfeld schieben */
body.ld-map-shell-on #mapFilterBar { top: calc(var(--ld-header-h, 70px) + 76px); }
body.ld-map-shell-on #mainMap .leaflet-top.leaflet-left { margin-top: 128px; }
body:has(#navbarNav.show) :is(#ldMapTop, #ldMapBottom), body:has(#navbarNav.collapsing) :is(#ldMapTop, #ldMapBottom) { visibility: hidden; }

/* Karten-Aktionen: links unten, über dem Credit, links von Standort und Chats. */
.ld-map-actions { position: fixed; z-index: 1100; display: flex; flex-wrap: nowrap; gap: 6px; align-items: stretch;
    left: calc(8px + var(--ld-safe-left, 0px));
    right: calc(118px + var(--ld-safe-right, 0px));
    bottom: calc(30px + var(--ld-safe-bottom, 0px));
    pointer-events: none; }
.ld-map-act { pointer-events: auto; flex: 1 1 0; min-height: 44px; min-width: 0; padding: 6px 8px; border-radius: 999px; white-space: normal;
    border: 2px solid var(--ld-ink, #23263A); font-weight: 800; font-size: 15px; line-height: 1.1;
    box-shadow: var(--ld-shadow-sticker, 3px 5px 0 0 var(--ld-ink, #23263A)); }
.ld-map-act-report { background: var(--ld-caramel, #A0612A); color: var(--ld-on-color, #fff); }
/* Punkt 2 (Richard 18.11.2026): Verlust/Fund-Paar-Icon vorne (kein Plus), Knopf breiter als „Tier verloren“ (figma bro Option A angepasst). */
.ld-map-act.ld-map-act-report { flex: 1.45 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 6px 10px; }
.ld-map-act-pair { display: inline-flex; flex: 0 0 auto; align-items: center; }
.ld-map-act-pair .ld-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.ld-map-act-pair > span + span { margin-left: -6px; }
/* „Verlust/Fund“ bleibt eine Zeile (\u2060 im Text + nowrap); nie mitten im Wort, nie abgeschnitten. */
.ld-map-act-label { min-width: 0; text-align: left; white-space: nowrap; overflow-wrap: normal; word-break: keep-all; }
/* ≤360 px (Referenz-Viewport): Melden breiter + 13 px + engere Paar-Icon-Lücke, damit Verlust/Fund eine Zeile bleibt und nicht abgeschnitten wird. */
@media (max-width: 360px) {
    .ld-map-act { font-size: 13px; padding: 6px 6px; }
    .ld-map-act.ld-map-act-report { flex: 1.85 1 0; padding: 6px 7px; gap: 2px; font-size: 13px; }
    .ld-map-act-pair .ld-icon { width: 16px; height: 16px; flex-basis: 16px; }
    .ld-map-act-pair > span + span { margin-left: -7px; }
}
/* Sehr schmale Geräte (≤ 340 px): noch etwas kleinere Schrift und Icons. */
@media (max-width: 340px) {
    .ld-map-act { font-size: 13px; padding: 6px 6px; }
    .ld-map-act.ld-map-act-report { padding: 6px 6px; gap: 2px; font-size: 13px; }
    .ld-map-act-pair .ld-icon { width: 16px; height: 16px; flex-basis: 16px; }
}
.ld-map-act-lost { background: var(--ld-coral, #C2413B); color: var(--ld-on-color, #fff); }
:root[data-theme="dark"] .ld-map-act-report,
:root[data-theme="dark"] .ld-map-act-lost { color: var(--ld-on-color, #23263A); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .ld-map-act-report,
    :root:not([data-theme="light"]) .ld-map-act-lost { color: var(--ld-on-color, #23263A); }
}
body:is(.ld-rq-open, .ld-ch-open, .ld-create-open, .ld-faq-open, .ld-ad-open, .ld-search-sheet-open) .ld-map-actions,
body:has(#navbarNav.show) .ld-map-actions { visibility: hidden; }

/* Standortpunkt: Hell Teal mit 3 px Weiß und 1,5 px Ink außen, damit er auf Wasser (Sky #CFE8F0) bleibt.
   Dunkel bleibt Teal mit Ink-Rand. Pins unverändert. Der Leaflet-Rahmen um das DivIcon wäre sonst ein weißes Quadrat. */
.ld-me { width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box; background: #1F7A72; border: 3px solid #fff; box-shadow: 0 0 0 1.5px #23263A, 0 0 0 10px rgba(31, 122, 114, .18); }
.leaflet-div-icon:has(.ld-me) { background: transparent; border: 0; }
:root[data-theme="dark"] .ld-me { background: #5EC4B8; border-color: #23263A; box-shadow: 0 0 0 10px rgba(94, 196, 184, .18); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .ld-me { background: #5EC4B8; border-color: #23263A; box-shadow: 0 0 0 10px rgba(94, 196, 184, .18); }
}
.ld-ms-field, .ld-ms-pill, .ld-ms-seg-btn, .ld-ms-locate { font-family: inherit; color: var(--ld-ink, #23263A); cursor: pointer; }
.ld-ms-field:focus-visible, .ld-ms-pill:focus-visible, .ld-ms-seg-btn:focus-visible, .ld-ms-locate:focus-visible { outline: 2px solid var(--ld-teal, #1F7A72); outline-offset: 2px; }
.ld-ms-field { flex: 1 1 auto; min-width: 0; min-height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 14px;
    background: var(--ld-white, #fff); border: 1.75px solid var(--ld-ink, #23263A); border-radius: 14px; text-align: left; }
.ld-ms-placeholder { color: var(--ld-ink-60, #5C5E6E); font-size: 15px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ld-ms-pill { flex: 0 0 auto; min-width: 72px; min-height: 56px; padding: 0 14px; border-radius: 14px; border: 0;
    background: var(--ld-ink, #23263A); color: var(--ld-white, #fff); font-weight: 800; font-size: 16px; }
.ld-ms-seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--ld-cream, #FFF8EC); border: 2px solid var(--ld-ink, #23263A); border-radius: 16px; box-shadow: 0 2px 12px rgba(35, 38, 58, .18); }
.ld-ms-seg-btn { min-height: 48px; min-width: 88px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; border-radius: 12px; background: transparent; font-weight: 800; font-size: 15px; }
.ld-ms-seg-btn[aria-pressed="true"] { background: var(--ld-ink, #23263A); color: var(--ld-white, #fff); }
.ld-ms-seg-btn .ld-icon, .ld-ms-field .ld-icon { width: 22px; height: 22px; flex: 0 0 auto; }
.ld-ms-locate { position: static; flex: 0 0 56px; width: 56px; height: 56px; padding: 0; display: inline-flex; align-items: center; justify-content: center; line-height: 0;
    background: #fff; color: #23263A; border: 2.5px solid #23263A; border-radius: 50%; box-shadow: 3px 5px 0 0 #23263A; }
.ld-ms-locate .ld-icon { display: block; width: 24px; height: 24px; margin: 0; flex: 0 0 24px; }
body.ld-map-shell-on .ld-ms-locate { position: fixed; right: calc(16px + var(--ld-safe-right, 0px)); bottom: calc(84px + var(--ld-safe-bottom, 0px)); z-index: 1100; }
:root[data-theme="dark"] .ld-ms-locate { background: #2C3047; color: #FFF8EC; border-color: #FFF8EC; box-shadow: 3px 5px 0 0 #12141F; }
.ld-ms-locate[aria-busy="true"] { opacity: .6; }
.ld-ms-status { position: absolute; bottom: 68px; left: 12px; right: 12px; max-width: 420px; margin: 0 auto; padding: 10px 14px;
    background: var(--ld-ink, #23263A); color: var(--ld-white, #fff); border-radius: 14px; font-size: 14px; text-align: center; }
@media (max-width: 400px) { .ld-ms-seg-btn { min-width: 76px; } body.ld-map-shell-on #ldMapBottom { justify-content: flex-start; padding-left: calc(12px + var(--ld-safe-left, 0px)); padding-right: calc(16px + var(--ld-safe-right, 0px)); } }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .ld-ms-locate { background: #2C3047; color: #FFF8EC; border-color: #FFF8EC; box-shadow: 3px 5px 0 0 #12141F; }
}
.leaflet-bar { border: 0 !important; box-shadow: none; }
.leaflet-control-zoom a { width: 56px; height: 56px; line-height: 52px; font-size: 22px; font-weight: 800;
    background: var(--ld-white, #fff); color: var(--ld-ink, #23263A); border: 1.75px solid var(--ld-ink, #23263A) !important; border-radius: 50%; margin: 4px 0; }
