/* General styles remain the same */
#map {
  height: 100%;
  width: 100%;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', Arial, sans-serif;
}

.filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 10px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
  font-family: 'Poppins', Arial, sans-serif;
}

.filters label {
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.filters input[type="text"],
.filters select {
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s ease;
}

.filters input[type="text"]:focus,
.filters select:focus {
  border-color: #007bff;
}

.filters input[type="text"] {
  width: 200px;
}

.filters select {
  width: 150px;
}

.filters option {
  font-size: 14px;
  font-family: 'Poppins', Arial, sans-serif;
}

.filters.sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  display: none;
}

.loader::after {
  content: "";
  width: 60px;
  height: 60px;
  border: 8px solid #eee;
  border-top: 8px solid #2268b1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.filters img {
  width: 80px;
  height: auto;
  margin-right: 10px;
}

.location-button {
  padding: 8px 12px;
  background-color: #0050a6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-family: 'Poppins', Arial, sans-serif;
}

/* Add responsiveness for mobile view */
@media (max-width: 768px) {
  .filters {
    flex-direction: column; /* Change to column layout */
    align-items: flex-start; /* Align items to the start */
    gap: 10px; /* Reduce gap between elements */
    padding: 15px; /* Add more padding for better spacing */
  }

  .filters img {
    margin: 0 auto; /* Center the logo */
    margin-bottom: 10px; /* Add spacing below the logo */
  }

  .filters input[type="text"],
  .filters select {
    width: 100%; /* Make inputs and selects full width */
  }

  .location-button {
    width: 100%; /* Make the button full width */
    text-align: center; /* Center the text */
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}