#map-container {
    /* border: 20px solid #0078d7; */
    /* border-radius: 12px; */
    position: relative;
    width: 80%;
    height: 60vh;
    margin: 40px auto;
    border: 4px solid #333;
    border-radius: 8px;
    /* overflow: hidden; */
    overflow:hidden
}

/* 地图填满父容器 */
#map {
    width: 100%;
    height: 100%;
}
.species-container {
    padding-top: 60px; /* 整体往下移 */
}
/* /* SELECT 按钮固定右下角 
#select-panel {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#toggle-select {
    padding: 8px 12px;
    background: #0078d7;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#species-list {
    margin-top: 10px;
    background: white;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    width: 200px;
}

#species-container {
    list-style: none;
    padding: 0;
    margin: 0;
}



/* SELECT 按钮固定右下角 */
#select-panel {
    position: absolute;   /* 相对父容器定位 */
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* SELECT 按钮 */
#toggle-select {
    padding: 8px 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* 弹框在按钮上方，并加宽 */
#species-list {
    display: none;          /* 默认隐藏 */
    position: absolute;     /* 相对父容器定位 */
    bottom: 50px;           /* 高度距离按钮 */
    right: 0;               /* 紧贴按钮右边 */
    background: white;
    border: 1px solid #ccc;
    max-height: 500px;      /* 高度可滚动 */
    width: 300px;           /* 弹框加宽 */
    overflow-y: auto;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 1001;          /* 确保在按钮之上 */
}

#species-container {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 全选按钮放在弹框顶部 */
#select-all {
    margin-bottom: 8px;
    padding: 5px 10px;
    width: 100%;
    background-color: #0078d7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
/* 高亮卡片 */
.species-card {
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
} */

/* 缩放 + 全屏按钮紧凑排列 */
.leaflet-control-zoom,
.leaflet-control-fullscreen {
    margin: 0;
}

.leaflet-control-fullscreen {
    margin-left: 2px; /* 按钮间距微调 */
}

