/*GBU Map (Mapbox)*/
#map {
    position: relative;
/*    width: 72rem;*/
/*    height: 45rem;*/
    width: 100%;
    height: 100vh;
    cursor: default;
}

#search {
    background-color: rgba(var(--primary), .8);
    z-index: 99;
}

#search input {
    font-size: 1.2rem;
}

#tree-map {
    position: relative;
    width: 100%;
    height: 100%;
}

#location-input{
    width: 40rem;
}

#controls {
    background-color: rgba(var(--foreground), .8);
    z-index: 9999;
}

#mapWrapper[mode="select"] .marker {
    cursor: pointer;
}

#mapWrapper #toggleSelectMode,
#mapWrapper #toggleCreateTreeMode, 
#mapWrapper #toggleCreateJobMode {
    transition: 0s outline;
}

#mapWrapper[mode="select"] #toggleSelectMode {
    outline: 2px solid rgb(var(--primary)) !important;
}

#mapWrapper[mode="createTree"] canvas,
#mapWrapper[mode="createJob"] canvas {
    cursor: crosshair;
}

#mapWrapper[mode="createTree"] #toggleCreateTreeMode,
#mapWrapper[mode="createJob"] #toggleCreateJobMode {
    outline: 4px solid rgb(var(--secondary)) !important;
}


.mapboxgl-popup-close-button {
    font-size: 2.5rem !important;
}

.mapboxgl-popup-content {
    font-size: 1rem;
}

.mapboxgl-popup {
    max-width: 20rem !important;
}

.marker-tree:before {
    font-family: 'Font Awesome 5 Free';
    content: "\f1bb";
    color: rgb(var(--primary));
    font-weight: 700;
}

.marker-job:before {
    font-family: 'Font Awesome 5 Free';
    content: "\f0d1";
    color: rgb(var(--primary));
    font-weight: 700;
}

.marker.selected {
    border: 2px solid red;
    border-radius: 100%;
}

.marker {
    padding: .5rem;
}

.marker:before {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #473a1c;
    width: 35px;
    height: 35px;
    font-size: 1.25rem;
}

.marker .popup {
    display: none;
    position: absolute;
    background-color: #fff;
    padding: 1rem;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
}

.marker .popup {
    font-size: 0.875rem;
}

.marker .popup .title {
    font-size: 1.25rem;
    font-weight: bold;
}

.marker:hover {
    z-index: 999;
}

.marker:hover .popup {
    display: block;
}

#controls .active-mode {
    background-color: rgb(var(--primary)) !important;
}

#controls .active-mode i {
    color: rgb(var(--on-primary)) !important;
}

.loading-wrapper {
    z-index: 99; 
    display: none; 
    opacity: .9;
}

.loading-wrapper.active {
    display: flex;
}

.hckselnkleinesfahrzeug:before,
.hckselngroesfahrzeug:before {
    color: #FF5722;
}

.stammholz:before {
    color: #b92020;
}

.frsen:before {
    color: #6f2929;
}

.schilderstellen:before {
    color: #0f0f69;
}


@media (max-width: 991px) {
    #location-input{
        width: auto;
    }

    #map {
        margin-top: 110px;
        height: calc(100vh - 110px);
    }
}
