        :root { --primary: #004b9c; --primary-dark: #003a7a; }

        /* Page wrap */
        #page-wrap { width: 80%; margin: 0 auto; overflow: hidden; padding-top: 1.5rem; }
        @media (max-width:768px) { #page-wrap { width:100%; padding-top:.75rem; } }

        /* Map */
        #map-section {
            position: relative; height: 48vh; min-height: 260px;
            border-radius: 16px; overflow: hidden;
        }
        #map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
        .map-legend {
            position: absolute; bottom: 28px; left: 10px; z-index: 500;
            background: rgba(255,255,255,.92); border-radius: 6px;
            padding: .35rem .6rem; font-size: .76rem;
            box-shadow: 0 2px 8px rgba(0,0,0,.15); pointer-events: none; line-height: 1.8;
        }

        /* Floating search bar */
        #search-bar {
            position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
            width: min(520px, 88%); z-index: 1000; background: #fff;
            border-radius: 12px; border: 1px solid rgba(0,0,0,.08);
            box-shadow: 0 4px 16px rgba(0,0,0,.1);
            padding: .5rem .85rem .6rem;
        }
        .sb-tabs { display:flex; gap:.25rem; margin-bottom:.45rem; border-bottom:1px solid #eee; padding-bottom:.35rem; }
        .sb-tab { flex:1; background:none; border:none; border-radius:6px; padding:.25rem .4rem; font-size:.78rem; font-weight:600; color:#999; cursor:pointer; transition:background .15s,color .15s; text-decoration:none; text-align:center; }
        .sb-tab:hover { background:#f5f5f5; color:#555; }
        .sb-tab.active { background:#e8f0fe; color:var(--primary); }
        [data-bs-theme="dark"] .sb-tabs { border-bottom-color:#333; }
        [data-bs-theme="dark"] .sb-tab { color:#777; }
        [data-bs-theme="dark"] .sb-tab:hover { background:#2a2a2a; color:#aaa; }
        [data-bs-theme="dark"] .sb-tab.active { background:#0d2d5e; color:#7ab0f5; }
        #search-bar .sb-input-wrap { display:flex; align-items:center; border:1px solid #e0e0e0; border-radius:6px; overflow:hidden; background:#fff; }
        #search-bar .sb-input-wrap .sb-icon { padding:0 .55rem; color:#bbb; font-size:.95rem; flex-shrink:0; }
        #search-bar .sb-input-wrap input { flex:1; border:none; outline:none; font-size:1rem; padding:.42rem .4rem; background:transparent; -webkit-appearance:none; line-height:normal; }
        #search-bar .sb-input-wrap button { border:none; background:var(--primary); color:#fff; width:34px; height:34px; flex-shrink:0; border-radius:5px; margin:2px; display:flex; align-items:center; justify-content:center; font-size:.9rem; transition:background .2s; cursor:pointer; }
        #search-bar .sb-input-wrap button:hover { background:var(--primary-dark); }
        #search-results { position:absolute; bottom:calc(100% + 8px); left:0; right:0; background:#fff; border-radius:12px; box-shadow:0 4px 28px rgba(0,0,0,.18); overflow:hidden; max-height:340px; overflow-y:auto; z-index:1001; display:none; }
        .sr-item { display:flex; align-items:flex-start; gap:.6rem; padding:.55rem .9rem; cursor:pointer; text-decoration:none; color:inherit; border-bottom:1px solid #f0f0f0; transition:background .12s; }
        .sr-item:last-child { border-bottom:none; }
        .sr-item:hover { background:#f0f4ff; }
        .sr-ico { font-size:1rem; flex-shrink:0; margin-top:.15rem; }
        .sr-text { line-height:1.4; font-size:.88rem; overflow:hidden; }
        .sr-text strong { display:block; font-size:.9rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
        .sr-text small { color:#777; }
        .sr-empty { color:#888; font-size:.85rem; padding:.65rem .9rem; }
        [data-bs-theme="dark"] #search-results { background:#1e1e1e; border:1px solid #333; }
        [data-bs-theme="dark"] .sr-item { border-bottom-color:#2a2a2a; color:#e0e0e0; }
        [data-bs-theme="dark"] .sr-item:hover { background:#252535; }
        [data-bs-theme="dark"] .sr-text small { color:#999; }
        [data-bs-theme="dark"] #search-bar { background:#1e1e1e !important; border-color:#333 !important; }
        [data-bs-theme="dark"] #search-bar .sb-input-wrap { background:#252525; border-color:#555; }
        [data-bs-theme="dark"] #search-bar .sb-input-wrap input { background:#252525; color:#f0f0f0; }
        [data-bs-theme="dark"] #search-bar .sb-input-wrap input::placeholder { color:#777; }
        [data-bs-theme="dark"] .map-legend { background:rgba(30,30,30,.9); color:#ddd; }

        /* Search */
        .loc-search { max-width: 320px; }

        /* Umkreissuche + Trefferanzahl (2026-11-15, wie Vereinsseite) */
        #radius-bar { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; padding:.6rem .9rem; background:#f8f9fa; border-radius:.6rem; margin-bottom:1rem; }
        #radius-bar label { font-size:.84rem; font-weight:600; color:#555; white-space:nowrap; }
        #plzInput { width:160px; }
        #radiusStatus { font-size:.82rem; }
        [data-bs-theme="dark"] #radius-bar { background:#252525; }
        [data-bs-theme="dark"] #radius-bar label { color:#aaa; }
        #listMeta { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; font-size:.85rem; color:#6c757d; margin-bottom:.75rem; }
        #listMeta .lm-count { font-weight:700; color:var(--primary); }
        .vc-dist { font-size:.78rem; color:var(--primary); font-weight:600; margin-top:.15rem; }
        @media (max-width:576px) {
            #radius-bar { display:grid; grid-template-columns:1fr auto; gap:.45rem; padding:.6rem; }
            #radius-bar label, #radiusStatus { grid-column:1 / -1; }
            #nearBtn { grid-column:1 / -1; padding:.6rem; font-weight:600; }
            #discSelect, #trapToggle { grid-column:1 / -1; width:100% !important; margin-left:0 !important; }
            #plzInput { width:100%; font-size:16px; }
            #radiusSelect { font-size:16px; }
            #radiusBtn, #radiusClear { grid-column:1 / -1; padding:.55rem; }
        }

        /* Stand cards */
        .loc-card {
            background: #fff; border: 1px solid #dee2e6; border-radius: .75rem;
            padding: 1rem 1.1rem; transition: box-shadow .15s, border-color .15s;
            height: 100%; cursor: pointer;
        }
        .loc-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); border-color: var(--primary); }
        .loc-card-title { font-weight: 700; font-size: 1rem; margin-bottom: .15rem; line-height: 1.35; }
        .loc-card-city { font-size: .82rem; color: #6c757d; }
        .loc-card-hint { font-size: .75rem; color: var(--primary); margin-top: .5rem; opacity: .7; }

        /* Modal detail styles */
        .lc-row { display: flex; gap: .45rem; font-size: .9rem; margin-bottom: .3rem; align-items: flex-start; }
        .lc-row .icon { flex-shrink: 0; width: 1.2rem; text-align: center; opacity: .75; }
        .lc-row a { color: inherit; word-break: break-all; }
        .lc-row a:hover { color: var(--primary); }
        .lc-badge { display: inline-block; font-size: .75rem; background: #e8f0fe; color: #1a4a9c; border-radius: .35rem; padding: .12rem .45rem; }
        .map-btn {
            font-size: .82rem; border: 1px solid #dee2e6; border-radius: .4rem;
            padding: .25rem .6rem; background: transparent; cursor: pointer;
            color: var(--primary); transition: background .12s; white-space: nowrap;
        }
        .map-btn:hover { background: #e8f0fe; }

        /* Empty state */
        .loc-empty { color: #888; font-size: .9rem; font-style: italic; padding: 2rem 0; text-align: center; }

        /* Dark mode */
        [data-bs-theme="dark"] .loc-card { background: #1e1e1e; border-color: #333; color: #e0e0e0; }
        [data-bs-theme="dark"] .loc-card:hover { border-color: #7ab0f5; }
        [data-bs-theme="dark"] .loc-card-city { color: #999; }
        [data-bs-theme="dark"] .loc-card-hint { color: #7ab0f5; }
        [data-bs-theme="dark"] .lc-badge { background: #1a2d5a; color: #7ab0f5; }
        [data-bs-theme="dark"] .map-btn { border-color: #444; color: #7ab0f5; }
        [data-bs-theme="dark"] .map-btn:hover { background: #1a2d5a; }
        [data-bs-theme="dark"] .border { border-color: #333 !important; }
        [data-bs-theme="dark"] .bg-white { background: #1e1e1e !important; }
    

/* Bearbeiten für Berechtigte (2026-11-22) */
.stand-item { position: relative; }
.loc-edit { position:absolute; top:.45rem; right:1.15rem; z-index:2; width:1.9rem; height:1.9rem; border-radius:50%;
            display:inline-flex; align-items:center; justify-content:center; text-decoration:none;
            background:var(--bs-primary-bg-subtle, #e7f0ff); color:var(--primary, #004b9c); border:1px solid rgba(0,75,156,.2); transition:transform .15s, background .15s; }
.loc-edit:hover { background:var(--primary, #004b9c); color:#fff; transform:scale(1.08); }
.loc-admin-badge { display:inline-flex; align-items:center; font-size:.78rem; font-weight:600; border-radius:2rem; padding:.2rem .7rem;
                   background:var(--bs-warning-bg-subtle, #fff3cd); color:var(--bs-warning-text-emphasis, #664d03); }
.loc-admin-btn { border-radius:2rem; }
.stand-item:has(.loc-edit) .loc-card { padding-right: 2.75rem; }

/* Suchreiter: Symbol und Wort nie umbrechen (iPhone, 2026-11-29) */
.sb-tab { flex:1 1 auto; white-space:nowrap; display:inline-flex; align-items:center; justify-content:center; }
.sb-tabs .sb-tab { min-width:0; }
@media (max-width:430px) { .sb-tabs { gap:.15rem; } .sb-tab { padding:.3rem .15rem; font-size:.72rem; } .sb-tab i { margin-right:.15rem !important; } }   /* 4 Reiter inkl. Schützenfeste (2026-11-30) */

/* „In meiner Nähe“ nach ?nah=1 hervorheben (2026-11-29) */
@keyframes nearPulse { 0%,100% { box-shadow:0 0 0 0 rgba(13,110,253,.45); } 50% { box-shadow:0 0 0 .45rem rgba(13,110,253,0); } }
#nearBtn.near-pulse { background:var(--bs-primary); color:#fff; border-color:var(--bs-primary); animation:nearPulse 1.4s ease-in-out infinite; }
#nearHelpModal .near-help-steps { padding-left:1.25rem; }
#nearHelpModal .near-help-steps li { margin-bottom:.55rem; line-height:1.45; }
@media (max-width:576px) { #nearHelpModal .modal-footer .btn { flex:1 1 100%; padding:.6rem; } }
/* Gastschießen-Abzeichen und Filter (2026-11-29) */
.vc-gast { font-size:.78rem; font-weight:600; color:var(--bs-success-text-emphasis); margin-top:.15rem; }
@media (max-width:576px) { #gastToggle { grid-column:1 / -1; width:100%; } }
.vc-premium { font-size:.78rem; font-weight:700; color:#92400e; margin-top:.15rem; } /* Premium Verein (2026-11-29) */
.verein-card:has(.vc-premium), .loc-card:has(.vc-premium) { border-color:#fcd34d; box-shadow:0 0 0 1px #fcd34d inset; }
