#map-wrapper {
    width: 100%;
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    position:relative;
}

#map {
    height: 550px;
    width: 100%;
}

#map-info {
    position: absolute;
    padding: 8px;
    border: 0 solid #ccc;
    border-radius: 16px;
    background-color: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
    overflow: hidden;
    z-index: 999;
    right: -8px;
    /* Todo anders machen nicht mit scale */
    transform: scale(0.8);
    max-height: 200px;
    visibility:hidden;
}

.compact {
    height: 400px !important;
}

#map-wrapper.compact .map,
#map-wrapper.compact {
    height: 400px !important;
}

#map-wrapper.compact #map-info {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    transform: none !important;
    border-radius: 0px 0px 0 0 !important;
    padding:12px;
    max-height: 450px;
}

#map-wrapper.compact #map-info {
    font-size: 14px;
    line-height: 1.3;
}

#map-wrapper.compact #map-info h4 {
    font-size: 16px;
}

#map-wrapper.compact #map-info span,
#map-wrapper.compact #map-info a {
    font-size: 13px;
}

#map-wrapper.compact #map-info a {
    text-decoration: none;
}

#map-wrapper.compact #map-info-opening-hours-weekdays {
    font-size: 13px;
}

#map-wrapper.compact .leaflet-marker-icon {
    width: 28px !important;
    height: 28px !important;
    background-size: cover;
}

#map-info.active {
    animation: fadeIn 0.125s ease-in forwards;
}

#map-info.closing {
    animation: fadeOut 0.125s ease-in forwards;
}

.input-width-clear {
    position: relative;
    display: inline-block;
}

#map-info-close,
#zipcode-search-close{
    float: right;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    padding: 4px 8px;
    line-height: 1;
    color: #333;
    border: 0px solid transparent;
    background-color: rgba(0, 0, 0, 0);
    transition: transform 0.2s ease;
}

#map-info-close:hover {
    transform: scale(1.05)
}

#zipcode-search-close {
    position: absolute;
    top: 25%;
    right: 25%;
}

#zipcode-search-wrapper {
    display: flex;
    align-items: center;
    margin: 10px 0;
    justify-content: center;
    position: absolute;
    z-index: 9999;
    margin-left: 56px;
}

#zipcode-input {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 120px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    pointer-events: auto;
    cursor: auto;
}

#zipcode-input:focus {
    outline: none;
    box-shadow: 0 0 4px rgba(0,120,70,0.25);
    pointer-events: auto;
}

svg {
    color: gray;
}

.input-close {
    margin-right: 4px;
    transform: scale(0.8);
}

#zipcode-search-button {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f3f3f3;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-left: 4px;
}

#zipcode-search-button:hover {
    background-color: #e6e6e6;
    transform: scale(1.05);
    cursor: auto;
}

/* leaflet customization*/

/*Top Left plus and minus*/
.leaflet-control {
    border: 0px solid black !important;
    box-shadow: 0px 0px 5px rgba(0,0,0,0.15);
    background-color: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
}

.leaflet-bar a {
    background-color: rgba(0,0,0,0);
}


.awigo-marker-icon {
    /*transition: transform 0.2s ease, box-shadow 0.2s ease;*/
    width:41px !important;
    background-size: cover;
}

.hidden{
    visibility: hidden !important;
}

.awigo-marker-icon + .leaflet-marker-shadow {
    /*display: none !important;*/
}

.leaflet-marker-icon:hover {
    /*box-shadow: 0px 0px 5px rgba(0,0,0,0.3);*/
    /*border-radius: 5px;*/
}

.input-shake-error {
    animation: shake 0.3s ease-in;
    border-color: red;
}

/*animations*/
@keyframes fadeIn {
    from {
        opacity: 0;
        visibility: visible;
    }
    to {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}
