/* ========================================
   地图页面专用样式
   ======================================== */

/* 统计数据样式 */
.map-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: linear-gradient(135deg, #EA580C 0%, #DC2626 100%);
  border-radius: 12px;
  color: white;
  box-shadow: 0 4px 12px rgba(234,88,12,0.2);
}

.map-stats .stat-item {
  flex: 1 !important;
  text-align: center !important;
  padding: 8px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.map-stats .stat-item i {
  display: block !important;
  font-size: 24px;
  margin-bottom: 8px;
  opacity: 0.9;
  text-align: center !important;
  width: 100% !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.map-stats .stat-item span {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  opacity: 0.85;
}

.map-stats .stat-item strong {
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 移动端统计数据优化 */
@media (max-width: 768px) {
  .map-stats {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }
  
  /* 重要：覆盖common.css中的.stat-item样式 */
  .map-stats .stat-item {
    flex: none !important;
    width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
  }
  
  .map-stats .stat-item i {
    font-size: 20px;
    margin-bottom: 0;
    margin-right: 12px;
    width: 20px;
    text-align: center;
  }
  
  .map-stats .stat-item > span,
  .map-stats .stat-item > strong {
    flex: 1;
  }
  
  .map-stats .stat-item span {
    margin-bottom: 2px;
    font-size: 11px;
  }
  
  .map-stats .stat-item strong {
    font-size: 16px;
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .map-stats {
    padding: 10px;
    gap: 6px;
  }
  
  .map-stats .stat-item {
    padding: 6px 10px;
  }
  
  .map-stats .stat-item i {
    font-size: 18px;
    margin-right: 8px;
    width: 18px;
  }
  
  .map-stats .stat-item span {
    font-size: 10px;
  }
  
  .map-stats .stat-item strong {
    font-size: 14px;
  }
}

/* 地图容器样式 */
.map-container {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  margin-bottom: 24px;
}

/* 地图控制面板 */
.map-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.map-control-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: var(--primary-color);
  color: white;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 14px;
  font-weight: 500;
}

.map-control-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.map-control-btn.active {
  background: var(--primary-dark);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

/* 地图信息面板 */
.map-info-panel {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-light);
  margin-bottom: 24px;
}

.map-info-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-info-title i {
  color: var(--primary-color);
}

.map-info-content {
  color: var(--medium-text);
  line-height: 1.6;
}

/* 地图搜索框 */
.map-search {
  position: relative;
  margin-bottom: 20px;
}

.map-search input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color var(--transition-normal);
}

.map-search input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(235, 102, 48, 0.1);
}

.map-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color var(--transition-normal);
}

.map-search-btn:hover {
  background: var(--primary-dark);
}

/* 地图图例 */
.map-legend {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--medium-text);
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .map-container {
    height: 400px;
  }
  
  .map-controls {
    justify-content: center;
  }
  
  .map-control-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .map-info-panel {
    padding: 16px;
  }
  
  .map-info-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .map-container {
    height: 350px;
  }
  
  .map-controls {
    gap: 8px;
  }
  
  .map-control-btn {
    padding: 5px 10px;
    font-size: 12px;
  }
  
  .map-search input {
    padding: 10px 14px;
    font-size: 14px;
  }
  
  .map-search-btn {
    padding: 6px 10px;
  }
}

/* ===== 从map.php提取的内联样式 ===== */

/* 移动端模态框优化 */
@media (max-width: 768px) {
    .modal-header {
        padding: 20px 24px 16px !important;
        gap: 12px !important;
    }
    
    .modal-body {
        padding: 24px !important;
    }
    
    .store-info-grid {
        gap: 16px !important;
        margin-bottom: 24px !important;
    }
    
    .info-item {
        padding: 16px !important;
        gap: 12px !important;
        border-radius: 12px !important;
    }
    
    .info-item i {
        width: 20px !important;
        height: 20px !important;
        font-size: 16px !important;
    }
    
    .info-item div label {
        font-size: 11px !important;
        margin-bottom: 6px !important;
    }
    
    .info-item div span {
        font-size: 14px !important;
    }
    
    .services-section {
        margin-top: 20px !important;
    }
    
    .services-section label {
        font-size: 15px !important;
        margin-bottom: 12px !important;
    }
    
    .services-list {
        gap: 8px !important;
    }
    
    .services-list .service-tag {
        padding: 6px 12px !important;
        font-size: 12px !important;
        border-radius: 10px !important;
    }
    
    .map-btn {
        padding: 12px 16px !important;
        font-size: 13px !important;
        min-height: 44px !important;
        border-radius: 10px !important;
    }
    
    .store-title-section h3 {
        font-size: 20px !important;
        margin-bottom: 6px !important;
    }
    
    .store-location-info .location-city {
        font-size: 13px !important;
    }
    
    .store-location-info .location-district {
        font-size: 12px !important;
    }
    
    .store-status-section {
        gap: 6px !important;
    }
    
    .store-status-section .store-status {
        padding: 3px 10px !important;
        font-size: 10px !important;
    }
    
    .close-btn {
        width: 32px !important;
        height: 32px !important;
        top: 20px !important;
        right: 20px !important;
    }
    
    .close-btn i {
        font-size: 14px !important;
    }
    
    .shop-card {
        padding: 12px 16px !important;
        margin-bottom: 10px;
    }
    
    .shop-header {
        gap: 8px !important;
        padding-right: 75px !important;
    }
    
    .shop-status {
        top: 8px !important;
        right: 12px !important;
        padding: 3px 8px !important;
        font-size: 10px !important;
    }
    
    .shop-index {
        width: 22px !important;
        height: 22px !important;
        font-size: 11px !important;
    }
    
    .shop-name {
        font-size: 14px !important;
        min-width: 70px !important;
    }
    
    .shop-location {
        max-width: 120px !important;
    }
    
    .location-city {
        font-size: 10px !important;
    }
    
    .location-district {
        font-size: 9px !important;
    }
    
    .shop-detail {
        font-size: 12px !important;
        gap: 8px !important;
    }
    
    .service-tag {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }
    
    .action-btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
        gap: 4px !important;
    }
}

/* 小屏移动端优化 */
@media (max-width: 480px) {
    .store-detail-modal .modal-content {
        width: 95% !important;
        border-radius: 20px !important;
    }
    
    .modal-header {
        padding: 16px 20px 12px !important;
        gap: 10px !important;
        border-radius: 20px 20px 0 0 !important;
    }
    
    .modal-body {
        padding: 20px !important;
        border-radius: 0 0 20px 20px !important;
    }
    
    .store-info-grid {
        gap: 12px !important;
        margin-bottom: 20px !important;
    }
    
    .info-item {
        padding: 14px !important;
        gap: 10px !important;
        border-radius: 10px !important;
    }
    
    .info-item i {
        width: 18px !important;
        height: 18px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
    }
    
    .info-item div label {
        font-size: 10px !important;
        margin-bottom: 4px !important;
        letter-spacing: 0.6px !important;
    }
    
    .info-item div span {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }
    
    .services-section {
        margin-top: 16px !important;
    }
    
    .services-section label {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    
    .services-list {
        gap: 6px !important;
    }
    
    .services-list .service-tag {
        padding: 5px 10px !important;
        font-size: 11px !important;
        border-radius: 8px !important;
    }
    
    .store-status-section {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    .store-title-section h3 {
        font-size: 18px !important;
        margin-bottom: 4px !important;
    }
    
    .store-location-info .location-city {
        font-size: 12px !important;
    }
    
    .store-location-info .location-district {
        font-size: 11px !important;
    }
    
    .store-status-section .store-status {
        padding: 2px 8px !important;
        font-size: 9px !important;
    }
    
    .close-btn {
        width: 28px !important;
        height: 28px !important;
        top: 16px !important;
        right: 16px !important;
    }
    
    .close-btn i {
        font-size: 12px !important;
    }
    
    .shop-card {
        padding: 10px 12px !important;
    }
    
    .shop-header {
        gap: 6px !important;
        padding-right: 65px !important;
    }
    
    .shop-status {
        top: 6px !important;
        right: 8px !important;
        padding: 2px 6px !important;
        font-size: 9px !important;
    }
    
    .shop-index {
        width: 20px !important;
        height: 20px !important;
        font-size: 10px !important;
    }
    
    .shop-name {
        font-size: 13px !important;
        min-width: 60px !important;
    }
    
    .shop-location {
        max-width: 100px !important;
    }
    
    .location-city {
        font-size: 9px !important;
    }
    
    .location-district {
        font-size: 8px !important;
    }
}

/* ===== 门店卡片布局优化 ===== */

/* 门店卡片基础样式重新定义 */
.shop-card {
    position: relative;
    padding: 16px 20px !important;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid #E2E8F0 !important;
    border-left: 3px solid #EB6630 !important;
    transition: all 0.3s ease;
}

.shop-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* 状态标签重新设计 */
.shop-status {
    position: absolute !important;
    top: 12px !important;
    right: 16px !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    z-index: 2 !important;
    border: 1.5px solid transparent !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.shop-status.direct {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #fff !important;
    border-color: #065f46 !important;
}

.shop-status.franchise {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
    color: #fff !important;
    border-color: #92400E !important;
}

/* 店铺头部区域优化 */
.shop-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
    padding-right: 85px !important;
}

.shop-index {
    width: 26px !important;
    height: 26px !important;
    background: linear-gradient(135deg, #EA580C 0%, #DC2626 100%) !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px rgba(234,88,12,0.3) !important;
}

.shop-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1F2937 !important;
    margin-bottom: 3px !important;
    flex-shrink: 0 !important;
    min-width: 80px !important;
}

/* 地址信息布局 */
.shop-location {
    display: flex !important;
    flex-direction: row !important;
    gap: 4px !important;
    flex: 1 !important;
    align-items: center !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    max-width: 150px !important;
}

.location-city {
    font-size: 11px !important;
    color: #EA580C !important;
    font-weight: 500 !important;
    flex-shrink: 0 !important;
}

.location-district {
    font-size: 10px !important;
    color: #6B7280 !important;
    font-weight: 400 !important;
    flex-shrink: 1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 店铺信息区域 */
.shop-info {
    margin-bottom: 12px !important;
}

.shop-detail {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 6px !important;
    font-size: 13px !important;
    color: #4B5563 !important;
}

.shop-detail-icon {
    width: 14px !important;
    color: #9CA3AF !important;
    flex-shrink: 0 !important;
}

/* 服务标签区域 */
.shop-services {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
}

.service-tag {
    background: #FEF3E2 !important;
    color: #EA580C !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    border: 1px solid #FED7AA !important;
}

/* 操作按钮区域 */
.shop-actions {
    display: flex !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

.action-btn {
    flex: 1 !important;
    padding: 8px 12px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.locate-btn {
    background: #F0F9FF !important;
    color: #0369A1 !important;
    border: 1px solid #E0F2FE !important;
}

.locate-btn:hover {
    background: #E0F2FE !important;
    color: #075985 !important;
}

.call-btn {
    background: #F0FDF4 !important;
    color: #15803D !important;
    border: 1px solid #DCFCE7 !important;
}

.call-btn:hover {
    background: #DCFCE7 !important;
    color: #166534 !important;
}

