/* map-filters.css */

.category-filters {
  padding: 10px;
  border-radius: 5px;
  margin: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: 15rem !important;
  margin-right: 6rem !important;
}

.category-filter-btn {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.category-filter-btn:hover {
  background-color: #e0e0e0;
}

.category-filter-btn.active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

.search-location-btn {
  background-color: #28a745; /* A distinct color for the search button */
  color: #fff;
  border-color: #28a745;
}

.search-location-btn:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

/* Styles for the search input within the modal */
#pac-input {
  width: calc(100% - 22px); /* Adjust for padding and border */
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px; /* Space below input */
}

#pac-input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
  padding-top: 60px;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  position: relative;
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 15px;
  top: 10px;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
