/* ============================================================
   地图页样式（复用 style.css 的设计变量）
   ============================================================ */

.map-page { background: var(--paper-tint); }

.map-hero {
  padding: 108px 0 18px;
  background:
    repeating-linear-gradient(180deg, rgba(90, 62, 32, .05) 0 2px, transparent 2px 4px),
    var(--paper-tint);
}
.map-hero-inner {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.map-hero h1 {
  font-size: 30px; font-weight: normal; letter-spacing: 4px;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .12);
}
.map-sub { color: var(--ink-dim); font-size: 13px; margin-top: 6px; }
.map-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.map-actions .mc-btn { font-size: 13.5px; padding: 8px 18px; }

.map-hint {
  margin-top: 14px; margin-bottom: 12px;
  background: rgba(248, 195, 28, .13);
  border: 2px dashed rgba(150, 118, 20, .5);
  padding: 11px 15px;
  font-size: 12.5px; color: #6b5410; line-height: 1.8;
  position: relative;
}
.map-hint[hidden] { display: none; }
.map-hint-warn { display: block; margin-top: 3px; }
.map-hint-close {
  position: absolute; top: 8px; right: 12px;
  cursor: pointer; font-size: 12px;
  color: #8a6a20; text-decoration: underline;
}

/* 全屏的地图容器：铺满视口，底部留出页脚 */
.map-frame-wrap {
  position: relative;
  height: calc(100vh - 150px);
  min-height: 460px;
  border-top: 3px solid var(--border);
}
.map-frame {
  display: block; width: 100%; height: 100%;
  border: 0; background: #0b0b0b;
}
/* 注意：作者样式的 display 会盖掉 hidden 属性，必须显式处理 */
.map-frame[hidden] { display: none; }

/* 全屏模式：隐藏页脚与多余留白 */
.map-page.fs .map-frame-wrap { height: calc(100vh - 76px); }
.map-page.fs .footer { display: none; }
.map-page.fs .map-hero { padding-bottom: 10px; }

@media (max-width: 720px) {
  .map-hero { padding: 96px 0 14px; }
  .map-hero h1 { font-size: 24px; letter-spacing: 2px; }
  .map-actions { width: 100%; }
  .map-actions .mc-btn { flex: 1; text-align: center; }
  .map-frame-wrap { height: calc(100vh - 210px); min-height: 380px; }
}

/* 地图服务未运行时的替代面板 */
.map-down {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; padding: 28px;
  background:
    repeating-linear-gradient(180deg, rgba(90, 62, 32, .05) 0 2px, transparent 2px 4px),
    var(--paper);
}
.map-down[hidden] { display: none; }
.map-down-icon {
  width: 42px; height: 42px; border: 3px solid var(--border);
  box-shadow: var(--shadow-hard); image-rendering: pixelated;
}
.map-down h2 { font-size: 21px; font-weight: normal; letter-spacing: 2px; }
.map-down p { color: var(--ink-dim); font-size: 13.5px; max-width: 560px; line-height: 1.85; }
.map-down-list {
  text-align: left; max-width: 620px; margin: 4px 0 8px 22px;
  color: var(--ink-dim); font-size: 12.5px; line-height: 2;
}
.map-down-list code {
  font-family: inherit; background: rgba(29, 184, 196, .12); color: #0e7a83;
  border: 2px solid rgba(29, 184, 196, .3); padding: 0 6px; font-size: 12px;
}
.map-down-foot { font-size: 12px; color: #a89e8c; }
