.map-container-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin: 3.4375rem auto 0 auto;
  align-items: start;
}

.sidebar {
  grid-column: span 3;
  padding-right: 0.5rem;
}

.map-wrapper {
  grid-column: span 9;
  height: calc(100vh - 2.5rem);
  min-height: 40.625rem;
  position: sticky;
  top: 1.25rem;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #f2f2f2;
}

#map {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
}

.continent-tabs {
  display: none;
}

.continent-group {
  margin-bottom: 2.75rem;
}

.continent-group:last-child {
  margin-bottom: 0;
}

.continent-title {
  font-size: 1rem;
  font-weight: 800;
  color: #31719d;
  padding: 0.8125rem 0.9375rem;
  border-radius: 1.5625rem;
  background-color: #ecf4fa;
  width: fit-content;
  margin-bottom: 2.1875rem;
}

.dm-accordion-item {
  border-radius: 0.25rem;
  transition: border-color 0.2s ease;
  margin-bottom: 0.625rem;
}

.dm-accordion-item:last-child {
  margin-bottom: 0;
}

.dm-accordion-header {
  width: 100%;
  border: none;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 400;
  color: #31719d;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s,
  color 0.2s;
  background-color: transparent;
  padding: 0;
  outline: none;
  box-shadow: none;
}

.dm-accordion-header span:first-child:before {
  content: "";
  display: inline-block;
  width: 0.3125rem;
  height: 0.6875rem;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5LjEzNyIgaGVpZ2h0PSIxNi44NjEiIHZpZXdCb3g9IjAgMCA5LjEzNyAxNi44NjEiPjxwYXRoIGQ9Ik0uMzU0LDE2LjUwOC0uMzU0LDE1LjgsNy4zLDguMDc3LS4zNTQuMzU0LjM1NC0uMzU0bDguNDMsOC40M1oiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuMzU0IDAuMzU0KSIgZmlsbD0iIzJiMmIyYiIvPjwvc3ZnPg==);
  background-size: contain;
  background-repeat: no-repeat;
  float: none;
  margin-right: 0.5625rem;
}

.dm-chevron {
  font-size: 0.7rem;
  color: #8d8d8d;
  transition: transform 0.2s ease;
}

.dm-accordion-content {
  display: none;
  padding: 0.9375rem 0 0.625rem 0.9375rem;
  font-size: 1rem;
  line-height: 1.4375rem;
  color: #2b2b2b;
}

.dm-accordion-content p {
  margin-bottom: 0;
  line-height: 1.5625rem;
}

.map-container-grid .dm-accordion-content a {
  text-decoration: none;
  color: #31719d;
  transition: color 0.2s ease;
}

.map-container-grid .dm-accordion-content a:hover {
  text-decoration: underline;
}

.dm-accordion-item.active {
  border-color: #31719d;
}

.dm-accordion-item.active .dm-accordion-header {
  border-bottom: 1px solid #c6c6c6;
}

.dm-accordion-item.active .dm-chevron {
  transform: rotate(180deg);
  color: #31719d;
}

.dm-accordion-item.active .dm-accordion-content {
  display: block;
}

@media (max-width: 62rem) {
  .sidebar {
    grid-column: span 12;
    padding-right: 0;
  }

  .map-wrapper {
    grid-column: span 12;
    position: static;
    height: 24rem;
    min-height: 24rem;
  }

  .continent-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .continent-tab-btn {
    flex: 1 1 auto;
    border: none;
    background-color: #ecf4fa;
    color: #31719d;
    font-size: 0.9375rem;
    font-weight: 700;
    padding: 0.625rem 1rem;
    border-radius: 1.5625rem;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    transition: background-color 0.2s,
    color 0.2s;
  }

  .continent-tab-btn.active {
    background-color: #31719d;
    color: #ffffff;
  }

  .continent-title {
    display: none;
  }

  .continent-group {
    display: none;
    margin-bottom: 0;
  }

  .continent-group.active {
    display: block;
  }
}
