@import url("https://fonts.googleapis.com/css2?family=Poppins");
@import url("variables.css");



.search {
    box-shadow: 0 20px 10px -10px rgba(200, 200, 200, 0.5);
    display: inline-block;
    position: fixed;
    top: calc(var(--navbar-height) - 5px);
    left: 25px;
    height: auto;
    width: 16rem;  /* ← Fixed width prevents expansion */
    max-width: calc(100vw - 40px);  /* ← Responsive on small screens */
    z-index: 5;
}

.search__input {
    border: 0;
    outline: 0;
    line-height: 50px;
    font-size: 14px;
    padding: 0 50px;
    float: left;
    width: 80%;
}

@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 {
    box-shadow: -10px 0 10px -5px rgba(90, 238, 209, 0.5);

    background-color: #5aeed1;
    width: 50px;
    height: 50px;
    text-align: center;
    border: 0;
    padding: 0;
    cursor: pointer;
    outline: 0;
    transition: box-shadow 0.3s ease-out;
    text-transform: none;
}

.search__button:active {
    box-shadow: -10px 0 10px -10px rgba(90, 238, 209, 0.5);
}
.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-control-layers-toggle {
    width: auto;
    background-position: 3px 50%;

    text-decoration: none;
    line-height: 36px;

}

.leaflet-left .leaflet-control {
    left: 11px;
    top: calc(var(--navbar-height) + 25px);
}

.leaflet-retina .leaflet-control-layers-toggle {
    background-size: 38px 26px
}

.leaflet-control-layers-toggle {
    background-size: 38px 26px
}

.leaflet-control-layers-expanded {
    box-shadow: 0 20px 10px -10px rgba(200, 200, 200, 0.5);

    font-size: 1.2rem;
    font-family: Poppins;
    font-weight: bold;
    left: 10px;
    top: 70px;
}

.leaflet-control-layers-selector {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #5aeed1;
}

.leaflet-bar a:focus {
    background: white;
}

.leaflet-control-locate {
    background: white;
    width: 44px;
    height: 44px;
}

.leaflet-right .leaflet-control {
    margin-right: 16px;
    margin-top: 20px; /* Geändert von 25px auf 20px */

}


.leaflet-touch .leaflet-bar a {
    width: 40px;
    height: 40px;
}

.leaflet-control-locate a .leaflet-control-locate-location-arrow {
    width: 25px;
    height: 25px;
    margin: 8px;
}

.leaflet-control-locate a .leaflet-control-locate-spinner {
    width: 25px;
    height: 25px;
    margin: 8px;
}

.leaflet-control-locate-location-arrow {
    color: #5aeed1;
}

.leaflet-bottom {
    bottom: 30px;
}

.cluster-playground {
    background-color: rgba(0, 158, 26, 0.44);
}

.cluster-playground div {
    background-color: rgba(0, 158, 26, 0.44);
}

.cluster-pingpong div {
    background-color: rgba(2, 104, 115, 0.4);
}

.cluster-pingpong {
    background-color:   rgba(2, 104, 115, 0.40);
}

.cluster-toilet div {
    background-color: rgba(29, 93, 230, 0.4);
}

.cluster-toilet {
    background-color: rgba(29, 93, 230, 0.4);
}
.cluster-basketball div {
    background-color: rgba(238, 103, 48, 0.5);
}

.cluster-basketball {
     background-color: rgba(238, 103, 48, 0.5);
}
.cluster-soccer div {
    background-color: rgba(140, 24, 34, 0.5);
}

.cluster-soccer {
   background-color: rgba(140, 24, 34, 0.5);
}
.marker-cluster span{
    font-weight: bold;
    color: white;
}

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

::-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: Poppins;
}

.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 */
}

/* 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 */
    }
}

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

    .search__input {


        width: 65%; /* Schmaler */

    }
}
