﻿/*---------------------------------------------------------------------*/
/* Legend                                                              */
/*---------------------------------------------------------------------*/

#btn-legend {
    position: absolute;
    top: 86px;
    right: 11px;
    background: white;
    padding: 6px 6px 4px 6px;
    border-radius: 5px;
}

#legend-popup {
    position: absolute;
    right: 70px;
    top: 88px;
    background: #f9bfbf;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    font-size: 14px;
    color: #333;
}

#legend-dialog {
    padding: 0px;
}

#legend-dialog-content {
    display: flex;
    flex-direction: column;
}

.legend-group-header {
    padding: 4px;
    margin-bottom: 4px;
}

.legend-row {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.legend-title {
    font-size: 0.9em;
    padding-left: 6px;
    margin: 3px 0;
}

.legend-item {
    margin-bottom: 10px;
}

.legend-content {
    display: flex;
    align-items: center;
}

.legend-symbol {
    font-weight: bold;
    padding-left: 10px;
}

.legend-remove {
    display: none;
    color: red;
    margin-left: 10px;
    cursor: pointer;
}

.legend-item:hover .legend-remove {
    display: inline;
}

.legend-empty-message {
    color: #939393;
    padding: 18px;
    padding-top: 0px;
    font-style: italic;
    line-height: 1.4em;
}

/*---------------------------------------------------------------------*/
/* Geocoding                                                           */
/*---------------------------------------------------------------------*/

#geocoding-container {
    position: absolute;
    top: 86px;
    right: 62px;
    display: flex;
    align-items: center;
    gap: 0;
    font-family: Ubuntu;
}

#btn-geocoding {
    background: white;
    padding: 6px 6px 4px 6px;
    border-radius: 5px;
}

    #btn-geocoding svg {
        fill: black;
    }

    #btn-geocoding.active {
        border-radius: 0px 5px 5px 0px;
        background: #0070C0;
    }

        #btn-geocoding.active svg {
            fill: white;
        }

#geocoding-search {
    height: 43px;
    width: 0px;
    border-radius: 5px 0 0 5px;
    border: none;
    outline: none;
    padding: 0px 30px 0px 8px;
    display: none;
    font-size: medium;
}

#geocoding-results {
    position: absolute;
    top: 42px;
    right: 0;
    width: 300px;
    background: white;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    color: black;
}

.geocode-result {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

    .geocode-result:hover {
        background-color: #eee;
    }

    .geocode-result.selected {
        background-color: #0070C0;
        color: white;
        font-weight: bold;
    }

#clear-search {
    position: absolute;
    top: 12px;
    right: 48px;
    font-size: 18px;
    color: gray;
    cursor: pointer;
    user-select: none;
    display: none;
}

    #clear-search:hover {
        color: #0070C0;
    }


.geocoding-no-results {
    padding: 6px;
    color: gray;
    cursor: default;
}

.geocoding-error {
    padding: 6px;
    color: lightcoral;
    cursor: default;
}
