/* Info boxes */
.info { 
    padding: 6px 8px; 
    font: 14px/16px Arial, Helvetica, sans-serif; 
    background: white; 
    background: rgba(255,255,255,0.95); 
    box-shadow: 0 0 15px rgba(0,0,0,0.2); 
    border-radius: 5px; 
    width: 600px;
} 

.info h4 { 
    margin: 0 0 5px; 
    color: #777; 
}

/* Legend */
.legend { 
    text-align: left; 
    line-height: 18px; 
    color: #555; 
    width: 550px;
} 

.legend i { 
    width: 18px; 
    height: 18px; 
    float: left; 
    margin-right: 8px; 
    opacity: 0.7;
}

/* Title */
.gtitle {
    width: 300px;
}

/* Logo */
.logo {
    padding: 6px 8px; 
    font: 14px/16px Arial, Helvetica, sans-serif; 
    background: white; 
    background: rgba(255,255,255,0.95); 
    box-shadow: 0 0 15px rgba(0,0,0,0.2); 
    border-radius: 5px;
}

/* Tooltips */
.itooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

.itooltip .itooltiptext {
    visibility: hidden;
    width: 300px;
    right: 0px;
    bottom: 20px;
    background-color: black;
    color: #fff;
    text-align: left;
    border-radius: 10px;
    padding: 5px 5px;
    position: absolute;
    z-index: 1;
}

.itooltip:hover .itooltiptext {
    visibility: visible;
}

/* Flex boxes */
.fl-box {
    width: 100%;
    height: 18px;
    background-color: #f5f5f5;
    display: flex;
    font-size: 12px;
    font-weight: bold;
}

.fl-ziffer {
    color: white;
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    padding-right: 10px;
}

.fl-status {
    width: 100%;
    display: flex;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
    align-items: center;
    color: white;
    padding-left: 10px;
}

.fl-svg {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 18px;
}

/* Search Control Styles */
.leaflet-control-search {
    width: 30px;
    height: 30px;
    background-color: #fff;
    border: 2px solid rgba(0,0,0,0.2);
    background-clip: padding-box;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.leaflet-control-search.expanded {
    width: 320px;
    padding: 0;
    justify-content: space-between;
}

.leaflet-control-search .search-icon {
    width: 30px;
    height: 30px;
    background-image: url('../svg/magnify.svg');
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
}

.leaflet-control-search .search-input {
    display: none;
    width: calc(100% - 60px);
    height: 26px;
    border: none;
    outline: none;
    padding: 0 4px;
    margin: 0;
    font-size: 14px;
}

.leaflet-control-search .close-button {
    display: none;
    width: 30px;
    height: 30px;
    background-image: url('../svg/close-circle-outline.svg');
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    flex-shrink: 0;
}

.leaflet-control-search.expanded .search-icon {
    display: none;
}

.leaflet-control-search.expanded .search-input,
.leaflet-control-search.expanded .close-button {
    display: block;
}

/* Search Results Dropdown */
.leaflet-control-search .search-results {
    display: none;
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.leaflet-control-search .search-results.visible {
    display: block;
}

.leaflet-control-search .search-result-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.leaflet-control-search .search-result-item:last-child {
    border-bottom: none;
}

.leaflet-control-search .search-result-item:hover {
    background-color: #f5f5f5;
}
