@import url("variables.d41d8cd98f00.css");

#formid {
    position: fixed;
}

/* Suchleiste Container Styling - Flexbox Ansatz */
.search {
    box-shadow: 0 20px 10px -10px rgba(200, 200, 200, 0.5);
    display: flex; /* Flexbox statt inline-block */
    top: calc(var(--navbar-height) + 10px);
    left: 25px;
    height: auto; /* Feste Höhe definieren */
    width: 22rem;
    max-width: calc(100vw - 40px);

    border-radius: 4px;
    overflow: visible;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.2);
}


/* Search Input - Flexbox Ansatz */
.search__input {
    border: none;
    outline: 0;
    line-height: 50px;
    font-size: 14px;
    padding: 0 20px;
    padding-left: 20px; /* No longer needs space for burger button */
    background: transparent;
    box-shadow: none;
    flex: 1; /* Nimmt den verfügbaren Platz ein */
    height: 50px;
}

.search__input:focus {
    outline: none;
    background-color: rgba(90, 238, 209, 0.05);
}

@media only screen and (max-width: 458px) {
    .marker-detail {
        width: 80%;
    }
}

.leaflet-control-layers-expanded {
    top: calc(var(--navbar-height) + 35px);
    left: 10px;
}

/* Search Button - Flexbox Ansatz */
.search__button {
    background-color: #5aeed1;
    width: 50px; /* Feste Breite */
    height: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0;
    font-size: 21px;
    cursor: pointer;
    outline: 0;
    transition: background-color 0.3s ease;
    text-transform: none;
    box-shadow: none;
    border-radius: 0;
    flex-shrink: 0; /* Verhindert Schrumpfung */
}

.search__button:hover {
    background-color: #4dd4b8;
}

.search__button:active {
    background-color: #45c7ab;
}

.search-error {
    position: absolute; /* ← Add absolute positioning */
    top: 100%; /* ← Position below the search input */
    left: 0; /* ← Align to left edge */
    right: 0; /* ← Stretch to right edge */
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    margin-top: 8px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
    font-size: 14px;
    animation: fadeIn 0.3s ease-out;
    box-sizing: border-box;
    word-wrap: break-word;
    z-index: 1001; /* ← Ensure it appears above other elements */
}


.search-error i {
    color: #f39c12;
    flex-shrink: 0; /* ← Prevent icon from shrinking */
    margin-top: 2px; /* ← Slight adjustment for better alignment */
}

.search-error span {
    flex: 1; /* ← Allow text to take remaining space */
    line-height: 1.4; /* ← Better line spacing for multi-line text */
}

.leaflet-bottom {
    bottom: 40px !important;
}

.leaflet-bottom {
    bottom: 30px !important;
}

/* GPS Button - Professioneller Stil */
.leaflet-control-locate {
    background: whitesmoke !important;
    width: 44px !important;
    height: 44px !important;

    border: 2px solid rgba(0, 0, 0, 1) !important;
    box-shadow: 0 20px 10px -10px rgba(200, 200, 200, 1) !important;
    transition: all 0.2s ease !important;
    margin-bottom: 20px !important;
    margin-right: 20px !important;
    border-radius: 50% !important;


}

.leaflet-control-locate:hover {
    border-radius: 50% !important;

    box-shadow: 0 20px 10px -10px rgba(200, 200, 200, 0.5) !important;
    transform: translateY(-1px) !important;
}

.leaflet-touch .leaflet-bar a {

    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 30px !important;

}

.leaflet-control-locate a .leaflet-control-locate-location-arrow {
    width: 30px !important;
    height: 30px !important;
    margin: 5px !important;
}

.leaflet-control-locate a .leaflet-control-locate-spinner {
    width: 30px !important;
    height: 30px !important;
    margin: 5px !important;
}

.leaflet-control-locate a {
    border-radius: 50% !important;

}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(90, 238, 209, 0.7);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(90, 238, 209, 0.7);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(90, 238, 209, 0.7);
    }
}

.marker-cluster span {
    font-weight: bold;
    color: white;
}

#map {
    height: calc(100dvh - var(--navbar-height));
    width: 100%;
    position: fixed;
    left: 0;
    top: var(--navbar-height);
    padding: 0;
}

::-moz-placeholder {
    color: hsl(0, 0%, 48%) !important;
    opacity: 2 !important;

}


a:link {
    color: black;
    background-color: transparent;
    text-decoration: none;
}

a:visited {
    color: black;
    background-color: transparent;
    text-decoration: none;
}

a:hover {
    color: #5aeed1;
    background-color: transparent;
    text-decoration: underline;
}

a:active {
    color: black;
    background-color: transparent;
    text-decoration: underline;
}


#footer {
    position: fixed; /* Changed from absolute to fixed */
    z-index: 999;
    padding: 0 !important;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #eeeeee;
    border-top: 1px solid rgba(94, 88, 88, 0.1);
}

/* Unterkategorien (fee, nofee, unknown) - kleiner und eingerückt */
.leaflet-layerstree-children .leaflet-layerstree-header {


    font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

.leaflet-layerstree-children .leaflet-layerstree-children .leaflet-layerstree-header {
    font-size: 1rem;
    font-weight: normal;
    padding-left: 30px; /* Erhöht die Einrückung von 10px auf 20px */
}

#cookieModal {
    z-index: 2000 !important;
}


/* Cookie Modal Mobile Responsiveness - Hybrid Approach */
@media screen and (max-width: 768px) {
    #cookieModal .modal-card {
        margin: 10px !important;
        max-height: calc(100vh - 20px) !important;
        width: calc(100vw - 20px) !important;
        max-width: none !important;
    }

    #cookieModal .modal-card-head {
        padding: 15px !important;
    }

    #cookieModal .modal-card-body {
        padding: 15px !important;
    }

    #cookieModal .modal-card-foot {
        padding: 15px !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    #cookieModal .modal-card-foot .button {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Für sehr kleine Bildschirme (unter 480px) */
@media screen and (max-width: 480px) {
    #cookieModal .modal-card {
        margin: 5px !important;
        width: calc(100vw - 10px) !important;
        max-height: calc(100vh - 10px) !important;
    }

    #cookieModal .modal-card-head,
    #cookieModal .modal-card-body,
    #cookieModal .modal-card-foot {
        padding: 12px !important;
    }
}

/* Zusätzliche Sicherheit für Viewport */
#cookieModal .modal-card {
    position: relative;
    overflow-y: auto;
}

/* Dropdown-Indikator für Navbar */
.custom-map-dropdown > .custom-map-navbar-item::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.5rem;
    vertical-align: middle;
    border-top: 4px solid #333;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transition: transform 0.2s ease;
}

/* Pfeil dreht sich beim Hover */
.custom-map-dropdown:hover > .custom-map-navbar-item::after {
    transform: rotate(180deg);
}

/* Pfeil-Farbe ändert sich beim Hover */
.custom-map-dropdown > .custom-map-navbar-item:hover::after {
    border-top-color: #5aeed1;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .custom-map-navbar-menu {
        gap: 0.5rem;
    }
}

.custom-map-navbar-item:active,
.button:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}

/* Responsive Typography für Karten-Seite */
@media (max-width: 768px) {
    .custom-map-navbar-item {
        font-size: 16px; /* Mindestens 16px für Touch-Geräte */
    }

    .leaflet-control-layers-expanded {
        font-size: 1rem; /* Aktuell: 1.2rem - kleiner auf Mobile */
    }

    .search__input {
        font-size: 16px; /* Aktuell: 14px - zu klein für Mobile */
    }

    /* Neue Regel für mobile Suchleiste */
    .search {
        width: min(22rem, calc(100vw - 50px)); /* Volle Breite minus Margin */
        left: 25px;
        right: 25px;
    }
}

@media (max-width: 480px) {
    .leaflet-control-layers-expanded {
        font-size: 0.9rem;
    }

    .search__input {
        font-size: 16px;
        width: 80%; /* Vergrößert von 65% auf 85% für mehr Platz */
    }

    /* Maximale Breite für sehr kleine Bildschirme */
    .search {
        width: min(22rem, 100vw); /* Noch weniger Margin */

    }
}

/* Leaflet Marker Cluster Styling - Korrekte Zentrierung */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 50% !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s ease !important;
}


.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    border-radius: 50% !important;
    width: 100% !important;
    height: 100% !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.marker-cluster-small span,
.marker-cluster-medium span,
.marker-cluster-large span {
    font-weight: 700 !important;
    color: white !important;
    font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
!important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.marker-cluster-small span {
    font-size: 13px !important;
}

.marker-cluster-medium span {
    font-size: 13px !important;
}

.marker-cluster-large span {
    font-size: 13px !important;
}

/* Verbesserte Farben für verschiedene Cluster-Typen */
.cluster-playground.marker-cluster-small,
.cluster-playground.marker-cluster-medium,
.cluster-playground.marker-cluster-large,
.cluster-playground.marker-cluster-small div,
.cluster-playground.marker-cluster-medium div,
.cluster-playground.marker-cluster-large div {
    background: linear-gradient(135deg, #009e1a 0%, #00c61e 100%) !important;
}

.cluster-pingpong.marker-cluster-small,
.cluster-pingpong.marker-cluster-medium,
.cluster-pingpong.marker-cluster-large,
.cluster-pingpong.marker-cluster-small div,
.cluster-pingpong.marker-cluster-medium div,
.cluster-pingpong.marker-cluster-large div {
    background: linear-gradient(135deg, #026873 0%, #028291 100%) !important;
}

.cluster-toilet.marker-cluster-small,
.cluster-toilet.marker-cluster-medium,
.cluster-toilet.marker-cluster-large,
.cluster-toilet.marker-cluster-small div,
.cluster-toilet.marker-cluster-medium div,
.cluster-toilet.marker-cluster-large div {
    background: linear-gradient(135deg, #1d5de6 0%, #2870ff 100%) !important;
}

.cluster-basketball.marker-cluster-small,
.cluster-basketball.marker-cluster-medium,
.cluster-basketball.marker-cluster-large,
.cluster-basketball.marker-cluster-small div,
.cluster-basketball.marker-cluster-medium div,
.cluster-basketball.marker-cluster-large div {
    background: linear-gradient(135deg, #ee6730 0%, #ff8246 100%) !important;
}

.cluster-soccer.marker-cluster-small,
.cluster-soccer.marker-cluster-medium,
.cluster-soccer.marker-cluster-large,
.cluster-soccer.marker-cluster-small div,
.cluster-soccer.marker-cluster-medium div,
.cluster-soccer.marker-cluster-large div {
    background: linear-gradient(135deg, #8c1822 0%, #b42832 100%) !important;
}

.cluster-dogpark.marker-cluster-small,
.cluster-dogpark.marker-cluster-medium,
.cluster-dogpark.marker-cluster-large,
.cluster-dogpark.marker-cluster-small div,
.cluster-dogpark.marker-cluster-medium div,
.cluster-dogpark.marker-cluster-large div {
    background: rgba(139, 69, 19, 0.8) !important;
}

/* Entferne die alten, generischen Regeln */
.marker-cluster,
.marker-cluster div,
.marker-cluster span,
.cluster-playground,
.cluster-playground div,
.cluster-pingpong,
.cluster-pingpong div,
.cluster-toilet,
.cluster-toilet div,
.cluster-basketball,
.cluster-basketball div,
.cluster-soccer,
.cluster-soccer div {
    /* Diese werden durch die spezifischeren Regeln oben ersetzt */
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .marker-cluster-small,
    .marker-cluster-medium,
    .marker-cluster-large {
        border-width: 1.5px !important;
    }

    .marker-cluster-small span {
        font-size: 13px !important;
    }

    .marker-cluster-medium span {
        font-size: 13px !important;
    }

    .marker-cluster-large span {
        font-size: 13px !important;
    }
}

