#map {
  height: 100vh;
}

.filter-base {
  z-index: 1000;
  position: fixed;
}

#elections-filter {
  top: 50px;
  left: 75px;
  width: clamp(100px, 100%, 230px);
}

#rik-filter {
  top: 10px;
  left: 75px;
  width: clamp(100px, 100%, 230px);
}

#sections-select {
  top: 10px;
  left: calc(75px + 250px);
  width: clamp(100px, 100%, 230px);
}

#address-search-container {
  position: fixed;
  top: 10px;
  left: calc(75px + 500px + 20px);
  width: clamp(200px, 100%, 250px);
  z-index: 1000;
}

#address-suggestions {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

#address-suggestions li {
  padding: 8px;
  cursor: pointer;
}

#address-suggestions li:hover {
  background-color: #f8f9fa;
}

#sections-filter {
  top: 10px;
  left: calc(75px + 500px + 300px);
  width: clamp(100px, 100%, 200px);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 5px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}

.modal-backdrop {
  --bs-backdrop-zindex: 1;
  z-index: 1;
}

.size-6 {
  width: 24px;
  height: 24px;
}

@media (max-width: 1280px) {
  #filters-overlay {
    display: flex;
    position: absolute;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    top: 20px;
    right: 10px;
    width: calc(100% - 120px);
    max-width: 300px;
  }

  #rik-filter,
  #sections-select,
  #address-search-container,
  #sections-filter {
    position: static;
    width: 100%;
  }

  #address-suggestions {
    width: 100%;
  }
}
