/* 地图容器样式 */
.map-section {
    width: 100%;
    background: #f5f5f5;
}

.map-container {
    width: 100%;
    height: 450px;
    position: relative;
}

#company-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 自定义标记弹出框样式 */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 12px 16px;
    font-family: 'Noto Sans SC', sans-serif;
}

.map-popup {
    min-width: 200px;
}

.map-popup h4 {
    color: #00a99d;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #00a99d;
}

.map-popup p {
    margin: 6px 0;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

.map-popup p i {
    color: #00a99d;
    width: 18px;
    margin-right: 6px;
}

.map-popup .popup-address {
    color: #666;
}

.map-popup .popup-phone {
    color: #333;
    font-weight: 500;
}

/* 导航按钮区域 */
.map-popup .popup-nav {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #ddd;
}

.map-popup .nav-title {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.map-popup .nav-title i {
    color: #00a99d;
    margin-right: 6px;
}

.map-popup .nav-buttons {
    display: flex;
    gap: 8px;
}

.map-popup .nav-btn {
    flex: 1;
    display: inline-block;
    padding: 8px 12px;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.map-popup .nav-amap {
    background: #0091ff;
    color: white;
}

.map-popup .nav-amap:hover {
    background: #0077d9;
}

.map-popup .nav-bmap {
    background: #3385ff;
    color: white;
}

.map-popup .nav-bmap:hover {
    background: #2370e0;
}

/* 自定义标记图标 */
.custom-marker {
    background: #00a99d;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 169, 157, 0.4);
}

.custom-marker::after {
    content: '';
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    transform: rotate(45deg);
}

/* 地图控件样式覆盖 */
.leaflet-control-zoom a {
    background: white !important;
    color: #00a99d !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-zoom a:hover {
    background: #00a99d !important;
    color: white !important;
}

/* 响应式 */
@media (max-width: 768px) {
    .map-container {
        height: 350px;
    }
    
    .map-popup h4 {
        font-size: 14px;
    }
    
    .map-popup p {
        font-size: 12px;
    }
}

