/* =========================================================
 * 门店地图定位卡片（电脑端 / 手机端共用）
 * ========================================================= */
[data-map-card] { display: block; }
[data-map-card][hidden] { display: none !important; }

.map-card {
  border: 1px solid var(--line, #e7e7de);
  border-top: 2px solid var(--gold-500, #c7a96d);
  border-radius: var(--radius, 10px);
  background: var(--card, #fffefa);
  box-shadow: var(--shadow, 0 1px 2px rgba(12,38,32,.035), 0 10px 30px rgba(12,38,32,.055));
  padding: 22px 24px 18px;
}
.map-top { display: flex; align-items: flex-start; gap: 13px; }
.map-pin {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--gold-100, #f7f0e0); color: var(--gold-700, #8b6b30);
}
.map-pin .icon { width: 19px; height: 19px; }
.map-txt { min-width: 0; padding-top: 1px; }
.map-txt b {
  display: block; font-family: var(--serif, Georgia, serif);
  font-size: 16px; font-weight: 600; letter-spacing: 1px;
  color: var(--ink-900, #1a2924);
}
.map-txt span {
  display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.7;
  color: var(--ink-500, #6c7b74); word-break: break-all;
}
.map-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  margin: 15px 0 0; padding: 10px 0 0;
  border-top: 1px solid var(--line, #e7e7de);
  font-size: 11px; color: var(--ink-400, #98a69f); letter-spacing: .4px;
}
.map-meta span::before { content: '·'; margin-right: 6px; color: var(--gold-500, #c7a96d); }
.map-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.map-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 16px; border-radius: 6px;
  border: 1px solid var(--line-2, #d8dbd0); background: transparent;
  color: var(--ink-700, #3a4b44); font-size: 12.5px; letter-spacing: .5px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .16s, border-color .16s, color .16s;
}
.map-btn:hover { border-color: var(--gold-500, #c7a96d); color: var(--gold-700, #8b6b30); background: var(--gold-100, #f7f0e0); }
.map-btn-primary {
  background: linear-gradient(135deg, #1b4a3c, #0f3028);
  border-color: #1b4a3c; color: #fff;
}
.map-btn-primary:hover { background: linear-gradient(135deg, #266b54, #164033); border-color: #266b54; color: #fff; }
.map-embed {
  margin-top: 16px; border: 1px solid var(--line, #e7e7de); border-radius: 8px;
  overflow: hidden; background: var(--green-50, #eff5f1);
}
.map-embed iframe { display: block; width: 100%; height: 260px; border: 0; }
.map-hint { margin: 14px 0 0; font-size: 11px; line-height: 1.7; color: var(--ink-400, #98a69f); }

/* 电脑端：放在「门店位置」区块里，左右留白与整站一致 */
.map-slot .map-card { max-width: 1180px; }

/* 手机端：紧凑留白，按钮两列 */
.m-map-slot { margin-top: 14px; }
.m-map-slot[hidden] { display: none !important; }
.map-card-mobile { padding: 16px 14px 14px; margin: 0 16px; }
.map-card-mobile .map-pin { width: 36px; height: 36px; }
.map-card-mobile .map-txt b { font-size: 14.5px; }
.map-card-mobile .map-txt span { font-size: 12px; }
.map-card-mobile .map-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.map-card-mobile .map-btn { padding: 0 8px; font-size: 12px; }
.map-card-mobile .map-btn:last-child { grid-column: 1 / -1; }
.map-card-mobile .map-embed iframe { height: 210px; }

/* 隐藏开关：data-ui 元素默认显示，后台关闭后由 Brand.apply 加 hidden */
[data-ui][hidden] { display: none !important; }
/* 「专业持证」隐藏后，品牌宣言由三列重排为两列，避免右侧留空 */
.creed-inner:has(.creed-item[hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
