/*
 * Leaflet.BootstrapDropdowns v1.0.3 - 2025-02-16
 *
 * Copyright 2024 mfhsieh
 * mfhsieh@gmail.com
 *
 * Licensed under the MIT license.
 *
 * Demos:
 * https://mfhsieh.github.io/leaflet-bootstrap-dropdowns/
 *
 * Source:
 * git@github.com:mfhsieh/leaflet-bootstrap-dropdowns.git
 *
 */
@-moz-document url-prefix() {

    .leaflet-bootstrap-dropdowns button .fa,
    .leaflet-bootstrap-dropdowns button .fab,
    .leaflet-bootstrap-dropdowns button .far,
    .leaflet-bootstrap-dropdowns button .fas {
        margin-top: .05rem;
        margin-bottom: -.05rem;
    }
}

body {
    --primary-rgb: 25, 135, 84;
}

.leaflet-bootstrap-dropdowns .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    /* to make webkit and moz consistent */
    box-sizing: border-box;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    margin: 0;
    font-size: 1.375rem;
    color: white;
    background-color: rgba(var(--primary-rgb), 1) !important;
    border: .125rem solid white !important;
    border-radius: 2.5rem;
    box-shadow: rgba(0, 0, 0, .33) 0 .125rem .375rem;
    /* opacity: .5;
    transition: opacity .2s; */
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    text-size-adjust: none;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    -khtml-text-size-adjust: none;
}

.leaflet-bootstrap-dropdowns .btn svg {
    fill: white;
    width: 1.375rem;
    height: 1.375rem;
}

/* .leaflet-bootstrap-dropdowns .btn:hover,
.leaflet-bootstrap-dropdowns .btn.show {
    opacity: 1;
} */

.leaflet-bootstrap-dropdowns .btn.show {
    color: rgba(var(--primary-rgb), 1);
    background-color: white !important;
    border-color: rgba(var(--primary-rgb), 1) !important;
}

.leaflet-bootstrap-dropdowns .btn.show svg {
    fill: rgba(var(--primary-rgb), 1);
}

.leaflet-bootstrap-dropdowns .btn:focus {
    box-shadow: 0 0 0 .25rem rgba(255, 255, 255, .5);
}

.leaflet-bootstrap-dropdowns .btn:focus-visible {
    /* border-color: black !important; */
    border-color: rgba(var(--primary-rgb), 1) !important;
}

.leaflet-bootstrap-dropdowns.menu {
    position: fixed;
    margin: 0 !important;
    right: .5rem;
    top: .5rem;
}

.leaflet-bootstrap-dropdowns .dropdown-header {
    text-wrap: auto;
}

.leaflet-bootstrap-dropdowns .dropdown-header h1,
.leaflet-bootstrap-dropdowns .dropdown-header h2,
.leaflet-bootstrap-dropdowns .dropdown-header h3,
.leaflet-bootstrap-dropdowns .dropdown-header h4,
.leaflet-bootstrap-dropdowns .dropdown-header h5,
.leaflet-bootstrap-dropdowns .dropdown-header h6 {
    color: rgba(var(--primary-rgb), 1);
}

.leaflet-bootstrap-dropdowns .dropdown-header p {
    margin: 0;
    padding: 0;
}


.leaflet-bootstrap-dropdowns .dropdown-item {
    font-family: var(--bs-body-font-family);
    font-size: 1.25rem;
    font-weight: normal;
    color: black;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
}

.leaflet-bootstrap-dropdowns .dropdown-item i {
    width: 1.75rem;
    text-align: center;
}

.leaflet-bootstrap-dropdowns .dropdown-item.current {
    font-weight: bold;
    color: rgba(var(--primary-rgb), 1);
    cursor: default;
}

.leaflet-bootstrap-dropdowns .dropdown-item:active,
.leaflet-bootstrap-dropdowns .dropdown-item:hover,
.leaflet-bootstrap-dropdowns .dropdown-item.current:active {
    color: white;
    background-color: rgba(var(--primary-rgb), 1) !important;
}

.leaflet-bootstrap-dropdowns .dropdown-item.current:hover {
    color: white;
    background-color: rgba(128, 128, 128, 1) !important;
}

