.map-section {
  position: relative;
  z-index: 2;
}

.map-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 1.2rem;
  align-items: start;
}

.map-interactive {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b0f14;
  overflow: hidden;
  position: relative;
}

.map-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.map-stage.is-dragging {
  cursor: grabbing;
}

.map-base {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: 0 0;
  user-select: none;
  pointer-events: none;
}

.map-markers {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  pointer-events: none;
}

.map-marker {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--fn-blue);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.15s ease;
  z-index: 2;
}

.map-marker.is-named {
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  background: var(--fn-yellow);
}

.map-marker:hover,
.map-marker.is-active {
  transform: scale(1.3);
  z-index: 5;
}

.map-marker.is-hidden {
  display: none;
}

.map-tooltip {
  position: absolute;
  left: 12px;
  bottom: 56px;
  z-index: 6;
  max-width: min(280px, calc(100% - 24px));
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(10, 12, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  pointer-events: none;
}

.map-tooltip small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8rem;
}

.map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.map-controls button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.map-controls button.is-active,
.map-controls button:hover {
  color: #121212;
  border-color: var(--fn-yellow);
  background: var(--fn-yellow);
}

.map-pois {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.2rem 1.3rem;
}

.map-pois h3 {
  margin-bottom: 0.9rem;
  font-size: 1.35rem;
}

.map-pois ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  max-height: 560px;
  overflow: auto;
}

.map-pois li button {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.92rem;
  cursor: pointer;
}

.map-pois li button:hover,
.map-pois li button.is-active {
  border-color: rgba(245, 197, 24, 0.45);
  background: rgba(245, 197, 24, 0.1);
}

.map-pois li small {
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-pois ul {
    max-height: 260px;
  }
}
