* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
}
#container {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
}
#map {
    flex: 1;
    height: 100%;
}

/* 面板容器 */
.panel-container {
    position: absolute;
    top: 10px;
    bottom: 10px;
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
    overflow-y: auto;
    padding: 5px;
}

.left-panel {
    left: 10px;
}

.right-panel {
    right: 10px;
}

/* 搜索框样式 */
.search-box {
    background-color: white;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.search-box h4 {
    margin-bottom: 8px;
    font-size: 13px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* API Key链接 */
.api-key-link {
    font-size: 10px;
    color: #666;
    text-decoration: none;
    padding: 2px 6px;
    background-color: #f5f5f5;
    border-radius: 3px;
}

/* 输入组 */
.input-group {
    display: flex;
    margin-bottom: 8px;
}

.input-group input {
    flex: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 11px;
    height: 24px;
}

.input-group button {
    width: 50px;
    padding: 0;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 11px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

/* 搜索行 */
.search-row {
    margin-bottom: 3px;
}

.search-input-group {
    margin-bottom: 6px;
}

.search-input-group label {
    display: block;
    font-size: 10px;
    margin-bottom: 3px;
    color: #666;
}

.search-input-group.inline-label label {
    display: inline-block;
    font-size: 10px;
    margin-right: 5px;
    margin-bottom: 0;
    color: #666;
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 11px;
    height: 24px;
}

/* 坐标输入 */
.coordinate-inputs {
    display: flex;
    gap: 5px;
    margin-bottom: 6px;
    flex: 1;
}

.coordinate-inputs input {
    flex: 1;
}

/* 中心点坐标和搜索半径在同一行 */
.search-row.coordinate-radius-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.search-row.coordinate-radius-row .search-input-group:first-child {
    flex: 1;
}

.search-row.coordinate-radius-row .search-input-group:last-child {
    width: 26%;
}

/* 意向店铺信息行 */
.shop-info-row {
    display: flex;
    gap: 8px;
}

.shop-name-input {
    width: 60%;
}

.shop-rent-input {
    width: 30%;
}

/* 按钮 */
button {
    width: 100%;
    padding: 6px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    margin-top: 5px;
}

button:hover {
    background-color: #45a049;
}

/* 快捷搜索 */
.quick-search {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #eee;
}

.quick-search label {
    font-size: 10px;
    margin-right: 8px;
    color: #666;
}

.quick-search-item {
    display: inline-block;
    padding: 3px 6px;
    margin-right: 6px;
    margin-bottom: 6px;
    background-color: #f0f0f0;
    border-radius: 10px;
    font-size: 10px;
    cursor: pointer;
}

.quick-search-item:hover {
    background-color: #e0e0e0;
}

/* 复选框组 */
.checkbox-group {
    margin-top: 6px;
    display: flex;
    align-items: center;
    font-size: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 5px;
    width: auto;
}

.checkbox-group label {
    color: #666;
    margin-right: 8px;
}

.hint {
    color: #999;
    font-size: 9px;
}

/* 扩展搜索选项 */
#expand-search-options {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #eee;
    display: none;
}

#expand-search-options label {
    display: block;
    font-size: 10px;
    margin-bottom: 3px;
    color: #666;
}

/* 地址建议 */
#address-suggestions {
    max-height: 150px;
    overflow-y: auto;
    margin-top: 6px;
    font-size: 10px;
}

/* 搜索结果 */
#search-results {
    max-height: 300px;
    overflow-y: auto;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #eee;
    border-radius: 3px;
    margin-bottom: 4px;
    font-size: 11px;
}

.result-item input[type="checkbox"] {
    margin-right: 5px;
    width: auto;
}

.result-item .brand-name {
    font-weight: bold;
    flex: 1;
}

.result-item .count {
    margin-left: 6px;
    color: #666;
    font-size: 10px;
}

.result-item .actions {
    margin-left: 6px;
    display: flex;
    gap: 2px;
}

.result-item .action-btn {
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 2px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-item .action-btn:hover {
    background-color: #e0e0e0;
}

.result-item .delete-btn {
    color: #f44336;
    border-color: #f44336;
}

.result-item .refresh-btn {
    color: #2196f3;
    border-color: #2196f3;
}

/* 已添加店铺列表 */
#shop-list {
    max-height: 300px;
    overflow-y: auto;
}

/* 加载状态 */
.loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container {
    padding: 8px;
    text-align: center;
    font-size: 11px;
}

/* 滚动条样式 */
.panel-container::-webkit-scrollbar {
    width: 6px;
}

.panel-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.panel-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.panel-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
