/* Wrapper for map and info box */
.map-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: nowrap; /* prevent wrapping on desktop */
}

/* Map container */
.map-container {
  position: relative;
  width: 500px; /* fixed width for desktop */
  flex-shrink: 0;
}

/* Map image */
.map-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Spot styling */
.map-spot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #d00;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

/* Info box */
.info-box {
  flex-grow: 1;
  max-width: 350px;
  min-width: 250px;
  padding: 15px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  font-size: 16px;
  line-height: 1.5;
}

/* Responsive layout for mobile */
@media screen and (max-width: 768px) {
  .map-wrapper {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
  }

  .map-container {
    width: 100%;
    max-width: 100%;
  }

  .info-box {
    max-width: 90%;
    margin-top: 20px;
  }

  .map-spot {
    width: 24px;
    height: 24px;
  }
}