.page-home main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  border-bottom: none;
}

.page-home .info-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--DEF-border);
  background: var(--DEF-Background);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--DEF-Blue-Styling);
  text-decoration: none;
}

.view-toggle {
  display: inline-flex;
  background: var(--DEF-Background);
  border-radius: 999px;
  padding: 4px;
  margin-top: 10px;
  gap: 4px;
  width: 100%;
}

.viewSwitch {
  width: 50%;
  padding: 6px 50px;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--DEF-Grey-Tekst);
  transition: background-color 0.5s ease, color 0.5s ease;
}

.active {
  background: var(--DEF-White);
  color: var(--DEF-Blue-Styling);
  box-shadow: var(--DEF-shadow-Small);
  transition: background-color 0.5s ease, color 0.5s ease;
}

.home-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 10px;
}

.page-home #map {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

#controls {
  flex-shrink: 0;
}

#controls span h2 {
  color: var(--DEF-Blue-Tekst);
}

#view {
  flex: 1;
  display: flex;
  overflow: hidden;
}

#mapView {
  flex: 1;
  display: flex;
  min-height: 320px;
}

#tableView {
  display: none;
  width: 100%;
}

#map {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}