.leaflet-control-attribution {
    display: none !important;
}


.distance-label {
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 1px;
    font-size: 9px;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ----- Pinpoint Style ----- */

/* Keep your original pinpoint base */
.pinpoint {
    position: relative;
    width: 30px;
    height: 30px;
    top: -15.5px;
    left: 0.4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background-color: white; /* default circle color */
    border-radius: 50%; /* circle shape */
    border: 6px solid black; /* circle border */
    box-shadow:
        inset 0 0 5px rgba(255, 255, 255, 0.3),
        0 5px 10px rgba(0, 0, 0, 1);
}

    /* Triangle pointer */
    .pinpoint:before {
        content: '';
        position: absolute;
        bottom: -22px;
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-top: 22px solid black; /* default triangle color */
    }


    /* ----- Pinpoint Colors ----- */

    /* Online Rover Fixed: Brighter, modern green */
    .pinpoint.onlinerf {
        background-color: #4CAF50;
        border-color: #388E3C;
    }

        .pinpoint.onlinerf:before {
            border-top-color: #388E3C;
        }

    /* Online Rover No Fix: Vibrant amber-orange */
    .pinpoint.onliner {
        background-color: #FFC107;
        border-color: #FFA000;
    }

        .pinpoint.onliner:before {
            border-top-color: #FFA000;
        }

    /* Online Base: Blue */
    .pinpoint.onlineb {
        background-color: #2196F3; /* Blue */
        border-color: #1976D2; /* Darker Blue */
    }

        .pinpoint.onlineb:before {
            border-top-color: #1976D2;
        }

    /* Offline: Cool slate blue-grey */
    .pinpoint.offline {
        background-color: #90A4AE;
        border-color: #607D8B;
    }

        .pinpoint.offline:before {
            border-top-color: #607D8B;
        }

    /* Warning: Light red */
    .pinpoint.warning {
        background-color: #FF9999;
        border-color: #CC6666;
    }

        .pinpoint.warning:before {
            border-top-color: #CC6666;
        }


    /* Error: Strong but elegant red */
    .pinpoint.error {
        background-color: #F44336;
        border-color: #D32F2F;
    }

        .pinpoint.error:before {
            border-top-color: #D32F2F;
        }


@keyframes pulse-error {
    0% {
        box-shadow: 0 0 0 0 rgba(165, 40, 40, 0.6), inset 0 0 5px rgba(255, 255, 255, 0.4), 0 4px 10px rgba(0, 0, 0, 1);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(165, 40, 40, 0), inset 0 0 5px rgba(255, 255, 255, 0.4), 0 4px 10px rgba(0, 0, 0, 1);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(165, 40, 40, 0), inset 0 0 5px rgba(255, 255, 255, 0.4), 0 4px 10px rgba(0, 0, 0, 1);
    }
}

.pinpoint.error {
    animation: pulse-error 1s infinite;
}



/* Colored status dots */
.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.dot-onlinerf {
    background: #28a745;
}

.dot-onliner {
    background: #ffc107;
}

.dot-onlineb {
    background: #2196f3;
}

.dot-offline {
    background: #6c757d;
}

.dot-warning {
    background: #ff9999;
}

.dot-error {
    background: #dc3545;
}


/* ----- Left Control Tab ----- */
.gmap-controls {
    width: 100%;
}

.gmap-control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}


#sessionSelect {
    font-size: 12px;
    display: inline-block;
    width: auto;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    appearance: auto; /* for modern browsers */
    -webkit-appearance: auto; /* for Safari/Chrome */
    -moz-appearance: none; /* for Firefox */
}
    #sessionSelect:hover {
        border-color: #888;
        box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
        background: #f9f9f9;
    }

    #sessionSelect:focus {
        outline: none;
        border-color: #3a8ee6;
        box-shadow: 0 0 8px rgba(58, 142, 230, 0.6);
        background: #fff;
    }

form#gmap_controls input[type="checkbox"] {
    margin: 0 1rem 0 0;
    width: 16px;
    height: 16px;
}

.gmap-control-label {
    display: flex;
    align-items: center;
    font-size: 14px;
}
    .gmap-control-label label {
        margin: 0;
    }

#gmap_controls button {
    font-size: 12px;
    padding: 6px 12px;
    border: 1px solid #999;
    border-radius: 6px;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    margin-right: 1%;
    color: rgba(0, 0, 0, 0.85);
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
}
    #gmap_controls button:hover {
        background: rgba(0, 0, 0, 0.15);
        border-color: #666;
    }
    #gmap_controls button:focus {
        outline: none;
        border-color: #3a8ee6;
        box-shadow: 0 0 8px rgba(58, 142, 230, 0.7);
    }





/* ----- Status Filter + Legend ----- */

#filterToggleBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5000;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    color: black;
    font-family: Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    user-select: none;
    transition: background 0.5s ease;
}

    #filterToggleBtn:hover,
    #filterToggleBtn:focus-visible {
        background: rgba(255, 255, 255, 0.8);
        outline: none;
    }

#statusFilterPanel {
    position: absolute;
    top: 40px;
    right: 10px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    padding: 6px 8px;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    display: none;
    font-family: Arial, sans-serif;
    font-size: 12px;
    user-select: none;
}

    #statusFilterPanel label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        margin-bottom: 2px;
    }

        #statusFilterPanel label:last-child {
            margin-bottom: 0;
        }

    #statusFilterPanel input[type="checkbox"] {
        margin-left: 6px;
        width: 12px;
        height: 12px;
        cursor: pointer;
    }




/* ----- User Filter Button ----- */
#userFilterToggleBtn {
    position: absolute;
    top: 10px;
    right: 70px;
    z-index: 5000;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    color: black;
    font-family: Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    user-select: none;
    transition: background 0.5s ease;
}

    #userFilterToggleBtn:hover,
    #userFilterToggleBtn:focus-visible {
        background: rgba(255, 255, 255, 0.8);
        outline: none;
    }

#userFilterPanel {
    position: absolute;
    top: 40px;
    right: 70px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    display: none; /* initially hidden */
    font-family: Arial, sans-serif;
    font-size: 12px;
    user-select: none;
    max-width: 150px;
    max-height: 200px;
    overflow-y: auto;
}

    #userFilterPanel button {
        color: rgba(0, 0, 0, 0.9);
        background: rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        padding: 4px 6px;
        font-family: Arial, sans-serif;
        font-size: 12px;
        transition: background 0.5s ease;
    }
        #userFilterPanel button:hover {
            background: rgba(0, 0, 0, 0.25); /* slightly darker on hover */
        }
        #userFilterPanel button:focus {
            outline: none;
            box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
        }


