/* 整体左右布局容器 */
.container {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    height: calc(100vh - 40px);
}

/* 左侧面板：占 35% 宽度 */
.left-panel {
    width: 35%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.left-panel h2 {
    font-size: 22px;
    color: #1a202c;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

/* 筛选栏样式 */
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    min-width: 120px;
    cursor: pointer;
    flex: 1;
}

.search-btn {
    padding: 8px 16px;
    background: #1a365d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #2c5282;
}

.locate-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 门店列表 */
.sidebar {
    flex: 1;
    overflow-y: auto;
    margin-top: 8px;
}

.sidebar h3 {
    font-size: 16px;
    color: #1a202c;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.store-item {
    padding: 12px 8px;
    border-bottom: 1px solid #f7fafc;
    cursor: pointer;
    transition: background 0.2s;
}

.store-item:hover {
    background: #f7fafc;
    border-radius: 6px;
}

.store-item h4 {
    font-size: 14px;
    color: #2d3748;
    margin: 0 0 4px 0;
}

.store-item p {
    font-size: 12px;
    color: #718096;
    margin: 0;
    line-height: 1.4;
}

/* 右侧面板：占 65% 宽度 */
.right-panel {
    width: 65%;
}

/* 地图卡片样式 */
.map-card {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    background: #ffffff;
}

#map {
    width: 100%;
    height: 100%;
    background-color: #fae2e1;
}

/* 自定义标注点样式 */
.custom-marker {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #de0202;
    border: 2px solid white;
    transition: all 0.2s ease;
    position: relative;
}

.custom-marker::after {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(222, 2, 2, 0.3);
    animation: pulse 2s infinite;
}

.custom-marker:hover {
    transform: scale(1.4);
    box-shadow: 0 0 0 3px rgba(206, 49, 49, 0.5);
}

/* 标注点提示框样式 */
.custom-tooltip {
    background: white;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 8px 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    color: #4a5568;
    min-width: 100px;
    text-align: center;
}

/* 定义脉冲动画 */
@keyframes pulse {
    0% {
        transform: scale(0.8);
        transform-origin: center;
    }

    50% {
        transform: scale(1.2);
        transform-origin: center;
    }

    100% {
        transform: scale(0.8);
        transform-origin: center;
    }
}

/* 响应式适配 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .left-panel,
    .right-panel {
        width: 100%;
        height: auto;
    }

    .right-panel {
        height: 400px;
        margin-top: 20px;
    }

    .filter-bar {
        width: 100%;
    }

    .filter-select {
        flex: 1 1 100px;
    }
}