/* map.css */

* { box-sizing: border-box; }

.map-body {
  margin: 0;
  padding: 0;
  background: #1a1a1a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-home {
  position: fixed;
  top: 1rem;
  left: 1rem;
  font-size: 0.85rem;
  color: pink;
  text-decoration: none;
  opacity: 0.7;
  z-index: 1000;
  transition: opacity 0.2s ease;
}

.back-home:hover { opacity: 1; }

/* ── map ── */

.map-container {
  position: relative;
  display: inline-block;
  max-width: 100vw;
}

.map-img {
  display: block;
  width: 100%;
  max-width: 1200px;
  height: auto;
}

/* ── hotspots ── */

.hotspot {
  position: absolute;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  cursor: crosshair;
  z-index: 10;
}

/* invisible trigger area — no visual dot */
.hotspot::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
}

/* ── popup box ── */

.map-popup {
  display: none;
  position: absolute;
  width: 280px;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 4px 4px 16px rgba(0,0,0,0.3);
  z-index: 100;
  overflow: hidden;
}

.hotspot:hover .map-popup {
  display: block;
}

.map-popup img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.popup-info {
  padding: 0.75rem 1rem;
}

.popup-place {
  font-size: 0.95rem;
  font-weight: bold;
  color: #222;
  margin: 0 0 0.2rem;
}

.popup-item {
  font-size: 0.82rem;
  color: #555;
  margin: 0 0 0.6rem;
  font-style: italic;
}

.popup-maps {
  font-size: 0.78rem;
  color: #4a90d9;
  text-decoration: none;
}

.popup-maps:hover {
  text-decoration: underline;
}