#map {
  width: 100%;
  /* Default to 100% */
  height: 85vh;
  /* Adjust height as needed */
  transition: width 0.3s ease;
  /* Smooth transition */
  font-family: "Faune", sans-serif;
}

#map.open {
  width: 100%;
  /* 75% when the city list is open */
}

#map-title {
  display: flex;
  margin-top: 45px;
  margin-bottom: 25px;
  align-self: center;
  justify-content: center;
}

#city-list {
  padding-top: 20px;
  position: absolute;
  left: -430px;
  /* Initially hidden off-screen */
  top: 0;
  width: 45%;
  height: 100%;
  max-width: 400px;
  /* Full height of the map container */
  background-color: white;
  overflow-y: auto;
  overflow-x: hidden;
  transition: left 0.3s ease;
  z-index: 1000;
}

/* Style for the toggle button */
#toggle-button-closed {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
  /* Ensure it is above other content */
  background-color: black;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

#toggle-button-open {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  /* Ensure it is above other content */
  background-color: white;
  color: black;
  border: none;
  padding: 10px;
  cursor: pointer;
}

#toggle-button-open {
  display: none;
}

#city-list.open {
  left: 0;
  /* Slide in */
}

#city-list.open #toggle-button-closed {
  display: none;
}

#city-list.open #toggle-button-open {
  display: block;
}

#city-list ul {
  padding: 0;
  margin: 0;
  margin-top: 20px;
}

#city-list h3 {
  padding-top: 20px;
}

.city-item {
  margin: 10px 10px 10px 0px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 9px;
}

.city-date {
  margin-left: auto; /* This pushes the date to the right */
  text-align: right; /* Align text to the right */
}
.date-collapse {
  display: flex;
}
.popup-city-name {
  font-size: 1.5em;
  margin: 0px;
  padding-bottom: 3px;
}

.popup-date,
.popup-time {
  padding-top: 2px;
  padding-bottom: 2px;
  font-size: 1em;
  /* Adjust the font size as needed */
}

.mapboxgl-popup-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.city-item:last-child {
  border-bottom: none;
}

.map-container {
  position: relative;
  width: 100%;
  height: 100%;
  justify-content: flex-end;
  display: flex;
}

.map-container h2 {
  margin: 30px;
}

.next-city {
  font-size: 1.2em;
  /* Adjust the font size as needed */
  text-decoration: underline;
}

.collapse-box {
  user-select: none;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}

.collapse-box-icon {
  cursor: pointer;
  margin-left: auto;
}

.collapse-box-content {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  margin-top: 5px;
  margin-bottom: 5px;
  font-size: 0.9em;
}

.collapse-box-content.open {
  display: flex;
  max-height: 300px; /* Adjust as necessary */
  flex-direction: column;
}

.collapse-box-content.open img {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.collapse-box-icon {
  margin-left: auto;
  margin-right: 5px;
  padding-left: 20px;
}

.next-city-date {
  font-weight: bold;
}

.city-list-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.mapboxgl-popup {
  max-width: 200px;
}
.passed-show-container .passed-show-msg {
  margin-bottom: 5px;
  font-size: 0.9em;
}
.passed-show-msg {
  font-style: italic;
  margin-bottom: 5px;
  font-size: 1.1em;
}

.popup-img {
  width: 100%;
  object-fit: contain;
  height: auto;
  margin-top: 10px;
}

.popup-btn {
  width: 100%;
}

.collapse-box-content.open .show-info {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  margin-bottom: 10px;
}

.popup-show-info {
  display: flex;
  flex-direction: column;
}

@media only screen and (max-width: 800px) {
  .collapse-box {
    display: flex;
    flex-direction: column;
    margin-right: 25px;
    gap: 10px;
  }

  .collapse-box-icon {
    position: absolute;
    right: 10px;
  }

  #city-list {
    min-width: 180px;
  }

  .collapse-box-content.open .show-info {
    flex-direction: column;
  }
}
