html.map-page-root,
body.map-page {
  margin: 0;
  height: 100%;
  max-height: 100%;
}

body.map-page {
  padding-bottom: 0;
  min-height: 100dvh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.map-header {
  flex-shrink: 0;
  padding-bottom: 4px;
}

.map-nav {
  margin-bottom: 8px;
}

.map-nav__link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.map-nav__link:hover {
  text-decoration: underline;
}

.meme-map {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  position: relative;
  border-top: 1px solid var(--border);
}

/* Google Maps riempie il contenitore */
.meme-map > div {
  border-radius: 0;
}

.map-status {
  flex-shrink: 0;
  margin: 0;
  padding: 8px 16px 12px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* Popup meme (InfoWindow) */
.meme-popup {
  min-width: 200px;
  max-width: 280px;
  padding: 4px 2px;
}

.meme-popup__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--bg);
}

.meme-popup__title {
  margin: 8px 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.meme-popup__meta {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
}

.meme-popup__link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #0ea5e9;
}
