/* General layout and colours */
body {
  margin: 0;
  font-family: 'Georgia', serif;
  background-color: #f8f4ed;
  color: #222;
}

/* Outer container */
.journey-map-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  padding: 1rem;
}

/* Scrollable horizontal container for the map */
.scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  box-shadow: inset -10px 0 10px -10px rgba(0, 0, 0, 0.15);
  position: relative;
}

/* The journey map image */
.journey-map {
  width: 100%;
  min-width: 800px;  /* Minimum width for readability */
  max-width: 1536px; /* Your original size */
  height: auto;
  display: block;
}

/* Scroll instruction text */
.scroll-hint {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
  font-style: italic;
}

/* Hotspot styling */
.hotspot {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hotspot:hover {
  transform: scale(1.3);
}

/* Tooltip container */
#tooltip {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  color: #222;
  padding: 16px;
  border-radius: 8px;
  max-width: 280px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: none;
  z-index: 10;
}

/* Tooltip title and text */
#tooltip h4 {
  margin: 0 0 6px;
  font-size: 1em;
  font-weight: bold;
}

#tooltip p {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.4em;
}

/* Tooltip close button */
#tooltip-close {
  position: absolute;
  top: 4px;
  right: 6px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #555;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

#tooltip-close:hover {
  color: #000;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .journey-map-container {
    padding: 0.5rem;
  }
  
  .journey-map {
    min-width: 600px; /* Smaller minimum for mobile */
  }
  
  .hotspot {
    width: 36px;
    height: 36px;
  }

  #tooltip {
    font-size: 1rem;
    padding: 20px;
    max-width: 90%;
  }

  #tooltip h4 {
    font-size: 1.1rem;
  }

  #tooltip p {
    font-size: 0.95rem;
  }
}