/* 1. Reset and typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: sans-serif;
  background-color: #121212;
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 2. Header */
header {
  padding: 1rem;
  text-align: center;
  background: rgba(255,255,255,0.05);
}

/* 3. Centering the map */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 4. Figure styling */
.map-figure {
  text-align: center;
}
.map-figure img {
  max-width: 90%;
  height: auto;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.7);
  transition: transform 0.3s;
}
.map-figure img:hover {
  transform: scale(1.03);
}

/* 5. Caption */
.map-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #aaa;
}

/* Container must be relative so children can be absolute */
.map-container {
  position: relative;
  display: inline-block; /* shrink-wrap to the image */
}

/* The map itself */
.map-container img {
  display: block;
  max-width: 90%;
  height: auto;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.7);
}

/* Visible tag styling */
.map-tag {
  position: absolute;
  transform: translate(-50%, -50%); /* center at the point */
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  padding: 2px 6px;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: default;
  white-space: nowrap;
  transition: background 0.2s;
}

/* Optional hover effect */
.map-tag:hover {
  background: rgba(255, 255, 255, 1);
  font-weight: bold;
}