/* ==========================================================================
   Map Component — Live MeshCore kaart (iframe embed)
   ========================================================================== */

.map-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto var(--space-2xl);
}

.map-wrapper--live {
  max-width: 100%;
}

.map-container {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.map-container--iframe {
  aspect-ratio: 16 / 10;
  min-height: 70vh;
}

.map-container--iframe iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border: none;
  display: block;
}

.map-fallback {
  padding: var(--space-lg);
  text-align: center;
  color: var(--color-text-muted);
}

.map-source {
  margin-top: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .map-container--iframe {
    aspect-ratio: auto;
    min-height: 80vh;
    height: 80vh;
  }
}
