/* 覆盖Leaflet默认控件样式 */
.leaflet-control-layers {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    color: #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    padding: 6px !important;
}

.leaflet-control-layers-expanded {
    padding: 10px !important;
    background: rgba(15, 23, 42, 0.9) !important;
}

.leaflet-control-layers-separator {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin: 8px 0 !important;
}

.leaflet-control-layers label {
    display: flex !important;
    align-items: center;
    margin-bottom: 4px !important;
    cursor: pointer;
}

.leaflet-control-layers label span {
    font-size: 13px;
    font-weight: 500;
}

/* 自定义单选按钮颜色 */
.leaflet-control-layers input[type="radio"] {
    accent-color: #3b82f6; /* Blue-500 */
    margin-right: 8px;
}

/* 缩放控件美化 */
.leaflet-bar {
    border: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.leaflet-bar a {
    background-color: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(8px);
    color: #e2e8f0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    transition: all 0.2s ease;
}

.leaflet-bar a:hover {
    background-color: rgba(59, 130, 246, 0.8) !important; /* Blue-500 hover */
    color: white !important;
}

.leaflet-bar a:first-child {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}

.leaflet-bar a:last-child {
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    border-bottom: none !important;
}
