.df-maps-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.df-maps-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(143, 164, 200, 0.28);
  background: rgba(21, 29, 46, 0.9);
  color: var(--ink-soft);
  font-weight: 900;
  font-size: 0.86rem;
  cursor: pointer;
  text-decoration: none;
}
.df-maps-tab i { color: var(--purple-2); }
.df-maps-tab:hover {
  border-color: rgba(143, 164, 200, 0.55);
  color: var(--ink);
}
.df-maps-tab.on {
  background: rgba(61, 95, 154, 0.22);
  border-color: rgba(143, 164, 200, 0.7);
  color: #f0eef6;
  box-shadow: 0 0 0 1px rgba(143, 164, 200, 0.18);
}
.df-maps-tab .df-maps-tab-hint {
  display: none;
  font-size: 0.72rem;
  font-weight: 750;
  color: rgba(155, 197, 207, 0.85);
}
@media (min-width: 900px) {
  .df-maps-tab .df-maps-tab-hint { display: inline; }
}

.df-map-panel {
  display: none;
  border: 1px solid rgba(143, 164, 200, 0.22);
  border-radius: 14px;
  overflow: hidden;
  background: #f4f7fa;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}
.df-map-panel.on { display: block; }

.df-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #eef3f7 100%);
  border-bottom: 1px solid rgba(15, 40, 55, 0.1);
  color: #1a3340;
}
.df-map-toolbar h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: 0.01em;
  color: #123040;
}
.df-map-toolbar p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  font-weight: 750;
  color: #4a6673;
}
.df-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.df-map-actions a,
.df-map-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(20, 80, 100, 0.18);
  background: #fff;
  color: #174556;
  font-weight: 900;
  font-size: 0.78rem;
  text-decoration: none;
  cursor: pointer;
}
.df-map-actions a:hover,
.df-map-actions button:hover {
  border-color: rgba(61, 95, 154, 0.55);
  color: #0d6f86;
}

.df-map-canvas {
  /* Light board so transparent line art stays readable */
  background:
    linear-gradient(180deg, #ffffff 0%, #f3f6f9 100%);
  padding: 12px;
  overflow: auto;
  max-height: min(78vh, 920px);
  -webkit-overflow-scrolling: touch;
}
.df-map-canvas img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  background: transparent;
}

.df-map-note {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 750;
}

@media (max-width: 640px) {
  .df-map-canvas {
    padding: 8px;
    max-height: min(70vh, 720px);
  }
  .df-maps-tab {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}