/* Basic reset */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  text-align: center;
}

header {
  background-color: #0077b6;
  color: white;
  padding: 15px;
  font-size: 1.5em;
}

/* Information Bar */
#info-bar {
  background-color: #f0f0f0;
  color: #333;
  padding: 10px 20px;
  text-align: left;
  font-size: 1.1em;
  border-bottom: 1px solid #ccc;
}

#info-bar p {
  margin: 5px 0;
}

#info-bar a {
  color: #0077b6;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  margin-left: 10px;
}

#info-bar a:hover {
  text-decoration: underline;
}

/* Additional Information Bar (same width as map) */
#additional-info-bar {
  background-color: #f8f8f8;
  color: #333;
  padding: 15px 20px;
  text-align: left;
  font-size: 1.1em;
  border-radius: 8px; /* Rounded edges */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 90%; /* Ensures it matches the map width */
  max-width: 630px; /* Matches the map max-width */
  margin: 20px auto; /* Centered with spacing */
}

#additional-info-bar p {
  margin: 5px 0;
}

/* Map Wrapper */
#map-wrapper {
  width: 90%;
  max-width: 630px;
  margin: 20px auto;
  position: relative; /* Allows positioning of child elements */
  height: 400px; /* Ensure wrapper height matches map */
}

/* Left Bar */
#left-bar, #right-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  background-color: #f8f8f8f8;
  padding: 10px;
  text-align: center;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

#left-bar {
  left: -250px; /* Position it outside the left of the map */

  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

#right-bar {
  right: -250px; /* Position it outside the right of the map */
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}


#left-bar p, #right-bar p {
  margin: 10px 0;
  color: #333;
  font-size: 1em;
  font-weight: normal;
}

/* Map */
#map {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Details Container */
#details-container {
  width: 90%;
  max-width: 600px;
  margin: 10px auto;
  display: flex;
  flex-direction: column;
}

/* Individual panel */
.detail-panel {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 15px;
  width: 100%;
  text-align: left;
  position: relative;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.detail-panel.active {
  transform: translateY(0);
  opacity: 1;
}

/* Move to top animation */
.detail-panel.moving {
  animation: moveUp 0.5s ease forwards;
}

@keyframes moveUp {
  0% {
    transform: translateY(10px);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Close button */
.detail-panel button {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #e63946;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 3px 6px;
  cursor: pointer;
}

