/* CSS Document */

html,body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
//    overflow: hidden;
    overflow: auto;
    font-family: Verdana, sans-serif
    }
    
#map {
    inset: 0; /* Entspricht top: 0; right: 0; bottom: 0; left: 0; */
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1;    
    
    }
  /* Schwebender Filter-Container mittig oben */
        .filter-wrapper {
            position: fixed;
            top: 16px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000;
            width: 94vw;
            max-width: 900px;
            pointer-events: none;
        }

        /* Stark halbtransparenter Glassmorphism-Stil */
        .glass-panel {
            background: rgba(255, 255, 255, 0.15) !important;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.35);
            pointer-events: auto;
        }

        .glass-subpanel {
            background: rgba(255, 255, 255, 0.25) !important;
            border: 1px solid rgba(255, 255, 255, 0.4);
        }

        /* Scrollbarer Filter-Inhaltsbereich für eigene Formulare */
        #filterBody {
            display:none;
            max-height: 70vh;
            overflow-y: auto;
            overflow-x: hidden;
            padding-right: 4px;
            margin-top: 12px;
        }

        /* Dezente Custom-Scrollbar */
        .filter-scroll::-webkit-scrollbar {
            width: 6px;
        }
        .filter-scroll::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 9999px;
        }
        .filter-scroll::-webkit-scrollbar-thumb {
            background: rgba(30, 41, 59, 0.3);
            border-radius: 9999px;
        }
        .filter-scroll::-webkit-scrollbar-thumb:hover {
            background: rgba(30, 41, 59, 0.5);
        }
        .filter-scroll {
            max-height: 65vh;
            overflow-y: auto;
            overflow-x: hidden;
            padding-right: 5px;

/*            scrollbar-width: thin;
            scrollbar-color: rgba(30, 41, 59, 0.3) rgba(255, 255, 255, 0.1);
*/
        }

/* Steuerelemente anordnung*/
.leaflet-bottom.leaflet-right {
    display: flex;
    flex-direction: row-reverse; /* Ordnet die Controls nebeneinander an */
    align-items: flex-end;
    gap: 10px; /* Abstand zwischen den Buttons */
}

        /* Leaflet Zoom-Steuerung abrunden */
        .leaflet-control-zoom {
            border: none !important;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14) !important;
            border-radius: 12px !important;
            overflow: hidden;
            margin-right: 16px !important;
            margin-bottom: 24px !important;
        }
        .leaflet-control-zoom a {
            background: rgba(255, 255, 255, 0.85) !important;
            backdrop-filter: blur(8px);
            color: #1e293b !important;
            width: 38px !important;
            height: 38px !important;
            line-height: 38px !important;
        }
        .leaflet-control-scale-line {
            background: rgba(255, 255, 255, 0.82) !important;
            border-radius: 0 0 6px 6px;
        }
        

.leaflet-control-layers {
    background-color: #ffffff !important;
    border-radius: 8px !important; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important; 
    border: 1px solid #ddd !important;
    padding: 10px 14px !important;
    font-family: inherit !important; 
    line-height: 1.6;
}

/* Abstand zwischen den Checkboxen/Radio-Buttons und dem Text */

.leaflet-control-layers label {
    cursor: pointer;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: left;
    gap: 8px; 
    margin-bottom: 4px;
}



/* =================================================================
   Radiales Menü für Leaflet-Marker (Mein-Traumstall.de)
   =================================================================== */

/* 1. Leaflet-Popup-Hülle für den Kreis anpassen */
.leaflet-popup.radial-popup .leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 200px;
    height: 200px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid #ddd;
}

/* 2. Inhalt der Sprechblase auf exakte Kreisgröße zwingen */
.leaflet-popup.radial-popup .leaflet-popup-content {
    margin: 0 !important;
    width: 200px !important;
    height: 200px !important;
    line-height: normal;
}

/* 3. Schließen-Kreuz von Leaflet im Kreis ausblenden oder anpassen */
.leaflet-popup.radial-popup .leaflet-popup-close-button {
    display: none; 
}

/* 4. Hauptcontainer des radialen Menüs */
.radial-menu-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-sizing: border-box;
}

/* 5. Stalltitel im exakten Zentrum des Kreises */
.radial-center-title {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    color: #333;
    max-width: 150px;
    line-height: 1.2;
    pointer-events: none;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/*    max-width: 75px; */

/* 6. Gemeinsemes Styling für die 4 kreisförmigen Buttons w,h:44 */
.radial-item {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #000000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
    text-align: center;
    padding: 2px;
    box-sizing: border-box;
}

.radial-item:hover {
    transform: scale(1.5);
    color: white;
    text-decoration: none;
}

/* 7. Positionierung und Farbgebung der 4 Menüpunkte */

/* Oben: Infos (Blau) */
.radial-item.item-infos {
    top: 6px;
    left: 68px;
    background: #2196F3;
}

/* Rechts: Bearbeiten (Orange / Traumstall-Ton) */
.radial-item.item-bearbeiten {
    top: 68px;
    right: 6px;
    background: #FF9800;
    font-size: 11px; /* Etwas kleiner wegen längerem Text */
}

/* Unten: Melden (Rot) */
.radial-item.item-melden {
    bottom: 6px;
    left: 68px;
    background: #ff7a7a;
}

/* Links: Ausblenden (Grau) */
.radial-item.item-ausblenden {
    top: 68px;
    left: 6px;
    background: #DEDEDE;
    font-size: 11px; /* Etwas kleiner wegen längerem Text */
}

/* für ajax save button*/
button:disabled {
    opacity: 1 !important;
    cursor: not-allowed; /* Zeigt ein "Nicht erlaubt"-Symbol, bleibt aber voll sichtbar */
}