/* ═══════════════════════════ PAGES CONTAINER ═══════════════════════════ */
#pages {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: var(--footer-h);
}

.page {
  display: none;
  width: 100%;
  height: 100%;
}
.page.active { display: flex; }

/* Map page: side-by-side layout */
.page-map-layout {
  flex-direction: row;
  overflow: hidden;
}

/* Scrollable content pages */
.page-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 48px 24px 80px;
}

/* ── Page headers ─────────────────────────────────────────── */
.page-header { margin-bottom: 40px; max-width: 900px; margin-left: auto; margin-right: auto; }

.page-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.035em;
  margin-bottom: 12px;
  line-height: 1.1;
}

.page-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.65;
  letter-spacing: -0.005em;
}

/* ── Footer ─────────────────────────────────────────────────── */
#site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: var(--sidebar-bg);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 11px;
  color: var(--text-muted);
  z-index: 900;
  padding: 0 16px;
}
#site-footer strong { color: var(--text); font-weight: 600; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-links a {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); text-decoration: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .page-scroll { padding: 32px 16px 80px; }
  .page-title  { font-size: 24px; }
}
