/* ============================================================
   Karten-Seite – vollbild ohne Scrollbar
   ============================================================ */

html, body {
    overflow: hidden;
}

#map-container {
    height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    position: relative;
}

#map {
    width: 100%;
    flex: 1;
    min-height: 0;
}

/* ----------------------------------------------------------------
   Aktionsleiste (in-flow, über Footer)
   ---------------------------------------------------------------- */

#map-actions {
    height: 54px;
    flex-shrink: 0;
    background: rgba(13, 27, 42, 0.94);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(141, 169, 196, 0.12);
    display: flex;
    align-items: stretch;
}

.map-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: none;
    border-right: 1px solid rgba(141, 169, 196, 0.1);
    background: transparent;
    color: rgba(196, 212, 227, 0.72);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    line-height: 1;
}

.map-action-btn:last-child {
    border-right: none;
}

.map-action-btn i {
    font-size: 1.15rem;
    line-height: 1;
}

.map-action-btn:hover {
    background: rgba(141, 169, 196, 0.08);
    color: #e8edf2;
}

.map-action-btn.active {
    color: #b8e8ca;
    background: rgba(90, 158, 111, 0.12);
}

#btn-catch-fab.map-action-btn {
    color: rgba(184, 232, 202, 0.85);
}

#btn-catch-fab.map-action-btn:hover {
    color: #b8e8ca;
    background: rgba(90, 158, 111, 0.15);
}

/* ----------------------------------------------------------------
   Filter-Panel-Buttons
   ---------------------------------------------------------------- */

.filter-btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
    background: transparent;
    color: rgba(196, 212, 227, 0.72);
    white-space: nowrap;
}

.filter-btn:hover {
    color: #e8edf2;
    background: rgba(141, 169, 196, 0.12);
    border-color: rgba(141, 169, 196, 0.2);
}

.filter-btn.active {
    background: rgba(90, 158, 111, 0.22);
    border-color: rgba(90, 158, 111, 0.55);
    color: #b8e8ca;
    box-shadow: 0 0 0 1px rgba(90, 158, 111, 0.2) inset;
}


#club-filter {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    background: transparent;
    color: rgba(196, 212, 227, 0.6);
    -webkit-appearance: none;
    appearance: none;
    max-width: 200px;
}

#club-filter:hover {
    color: #e8edf2;
    background: rgba(141, 169, 196, 0.1);
}

#club-filter:focus {
    outline: none;
    color: #e8edf2;
}

#club-filter option {
    background: #0d1b2a;
    color: #c4d4e3;
    text-transform: none;
    letter-spacing: 0;
}

#club-filter.active {
    background: rgba(74, 124, 89, 0.3);
    border-color: rgba(90, 158, 111, 0.5);
    color: #a8d5b5;
}


/* ----------------------------------------------------------------
   Leaflet Popups
   ---------------------------------------------------------------- */

.leaflet-popup-content-wrapper {
    background: var(--popup-bg);
    color: var(--popup-text);
    border: 1px solid var(--popup-border);
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

.leaflet-popup-tip {
    background: var(--popup-bg);
}

.leaflet-popup-close-button {
    color: var(--text-muted) !important;
}

.leaflet-popup-content h6 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.leaflet-popup-content .badge {
    font-size: 0.7em;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.06em;
}

.leaflet-popup-content a {
    color: var(--mist);
    font-size: 0.85em;
}

/* ----------------------------------------------------------------
   Filter-Panel
   ---------------------------------------------------------------- */

#filter-panel {
    position: absolute;
    bottom: 62px;          /* über Aktionsleiste (54px) + Footer (30px) + 8px */
    right: 12px;
    left: 12px;
    z-index: 10000;
    background: rgba(13, 27, 42, 0.96);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(141, 169, 196, 0.18);
    border-radius: 8px;
    min-width: 300px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.fp-section {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(141, 169, 196, 0.08);
}

.fp-section:last-of-type {
    border-bottom: none;
}

.fp-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(141, 169, 196, 0.85);
    margin-bottom: 8px;
}

.fp-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Filter-Panel-Buttons erben den Pill-Stil */
#filter-panel .filter-btn {
    font-size: 0.8rem;
    padding: 5px 12px;
}

#filter-panel #club-filter {
    width: 100%;
    max-width: 100%;
}

/* ----------------------------------------------------------------
   Mobile (< 576px)
   ---------------------------------------------------------------- */

@media (max-width: 575px) {

    /* Filter-Panel: von unten aufgehen, volle Breite */
    #filter-panel {
        bottom: 62px;
        right: 8px;
        left: 8px;
        min-width: 0;
    }

    /* Footer: kompakter */
    #map-footer {
        gap: 12px;
        padding: 0 10px;
        font-size: 0.72rem;
    }

    /* Copyright + Zoom auf Mobile ausblenden */
    #map-footer > span:first-child,
    #zoom-display {
        display: none;
    }
}
