/* ============================================
   地图样式
   ============================================ */

.map-locations-editor {
  margin-top: 16px;
}

.locations-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.locations-header h4 {
  font-size: 14px;
  font-weight: 600;
}

.locations-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 350px;
  overflow-y: auto;
}

.location-card {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  align-items: flex-start;
  transition: border-color var(--transition-fast);
}
.location-card:hover {
  border-color: var(--accent);
}

.location-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.location-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.location-fields .location-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.location-fields input {
  width: 100%;
  border: 1px solid var(--border-light);
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
  font-size: 12px;
}
.location-fields textarea {
  width: 100%;
  border: 1px solid var(--border-light);
  padding: 6px 8px;
  border-radius: var(--border-radius-sm);
  font-size: 12px;
  line-height: 1.4;
  min-height: 40px;
  resize: vertical;
}
.location-fields input:focus,
.location-fields textarea:focus {
  border-color: var(--accent);
}

.location-delete {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  flex-shrink: 0;
}
.location-delete:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

/* 地图卡片（侧边栏中） */
.map-card {
  padding: 10px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.map-card:hover {
  background: var(--bg-sidebar-hover);
}
.map-card .map-name {
  font-size: 13px;
  font-weight: 500;
  color: #ddd;
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-card .map-info {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}

/* 地图可视化（简易文字版） */
.map-visual {
  padding: 16px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--border-radius);
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #aaa;
  white-space: pre-wrap;
  line-height: 1.6;
}
