
.section-container-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.map-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

#map {
  width: 69%;
  height: auto;
  position: sticky;
  top: 0;
}

#sidebar {
  width: 30%;
  overflow-y: auto;
  max-height: 90vh;
}

.sidebar-title {
  padding-left: 10px;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 5px 0 5px 10px;

  p {
    font-size: var(--font-size-medium);
    font-weight: 400;
  }
}

#agent-list {
  display: flex;
  flex-direction: column;

  div {
    background-color: var(--gray-light);
    padding: 10px;
    height: max-content;
    border-bottom: .5px solid var(--primary);
  }

  button {
    background-color: var(--gray-light);
    color: var(--gold);
    font-size: var(--font-size-small);
    font-weight: var(--typo-medium);
    font-family: var(--font);
    border: 0;
    border-radius: var(--button-radius);
    width: fit-content;
    margin: 5px 0 5px 0;
    cursor: pointer;
    margin-right: 5px;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
    transition: color 0.3s, color 0.3s;
    font-style: italic;
  }

  button:hover {
    color: var(--gold);
  }

  p {
    margin: 5px;
    font-size: var(--font-size-small);
    font-weight: var(--typo-regular);
  }

  h3 {
    margin: 5px;
    font-size: var(--font-size-regular);
    font-weight: var(--typo-medium);
  }
}

.service-point-details {
  background-color: var(--gray-light);
  gap: 50px;
  padding-left: 8%;
  padding-right: 8%;
  padding-top: 3rem;
  padding-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;

  .section-text p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: var(--font-size-regular);
    font-weight: var(--typo-regular);

    img {
      height: 30px;
    }

  }

  h3 {
    margin: 0;
    font-size: var(--font-size-medium);
    font-weight: var(--typo-medium);
  }

  a {
    text-decoration: none;
  }

}

.section-container-3 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

@media (max-width: 1200px) {
  #map {
  width: 50%;
}

#sidebar {
  width: 49%;
}
}

.agent-summary{
  padding: 16px;
  text-align: end;
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #666;
}
.sidebar-toggle {
  display: none;
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 999;
  color: #666;
  background-color: var(--gray-light);
  border: 1px solid #666;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .agent-summary{
    margin-right: 16px;
  }
  .map-container {
    position: relative;
  }

  #map {
    width: 100%;
    height: 80vh;
  }

  #sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    height: 100%;
    background-color: #fff;
    z-index: 998;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    max-height: none;
  }

  #sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 8px;
  }

  .sidebar-toggle.open {
    left: calc(85% - 20px);
    transform: rotate(180deg);
  }
}