.map-section {
  width: 100%;
  max-width: 100% !important;
  height: 520px;
  position: relative;
}

#googleMap {
  height: 520px;
}

/* Filter Button */
.filter-toggle-btn {
  display: none;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 40px;
  height: 40px;
  top: 10px;
  left: 10px;
  z-index: 20;
  background-color: #ffffff;
  border: 1px solid #489391;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.filter-toggle-btn:hover {
  background-color: #f0f7f6;
}
.filter-toggle-btn .filter-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 6px;
  pointer-events: none;
}

/* Shared Filter Styles */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 90%;
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.filter-wrapper {
  position: relative;
  flex: 1 1 140px;
  min-width: 140px;
}
.filter-select {
  width: 100%;
  height: 42px;
  padding-left: 5px;
  padding-right: 32px;
  appearance: none;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}
.filter-select:focus {
  border-color: #489391;
  outline: none;
  box-shadow: 0 0 3px #489391;
}

.icon-wrap {
  position: absolute;
  top: 33%;
  right: 2px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.icon.open {
  pointer-events: none;
  display: inline-flex;
}
.icon.close {
  display: none;
  cursor: pointer;
  pointer-events: auto;
  font-weight: bold;
  font-size: 18px;
  color: #489391;
}
.filter-wrapper.filtered .icon.open {
  display: none !important;
}
.filter-wrapper.filtered .icon.close {
  display: inline !important;
}

/* Mobile Style */
@media (max-width: 1024px) {
  .filter-toggle-btn {
    display: flex;
  }

  .filter-container {
    flex-direction: column; /* Ensure vertical layout */
    align-items: flex-start;
    position: absolute;
    top: 0;
    left: -164px;
    width: 330px;
    height: 100%;
    max-height: 520px;
    background: white;
    padding: 15px;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
    gap: 15px; /* Space between stacked filters */
  }

  .filter-container.open {
    left: 164px;
  }

  .filter-wrapper {
    width: 100%; /* Full width for column layout */
    flex: none;
  }
}
.custom-infowindow {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #fff;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 280px;
  color: #333;
  line-height: 1.4;
}

.custom-infowindow h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #2c3e50;
  border-bottom: 2px solid #489391;
  padding-bottom: 6px;
}

.custom-infowindow p {
  margin: 6px 0;
  font-size: 0.95rem;
}

.custom-infowindow strong {
  color: #489391;
}

.infowindow-btn {
  display: inline-block;
  margin-top: 10px;
  background-color: #489391;
  color: white !important;
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.infowindow-btn:hover,
.infowindow-btn:focus {
  background-color: #fa0;
  outline: none;
  color: black !important;
  text-decoration: none !important;
}
.filter-wrapper.filtered select.filter-select:disabled {
  opacity: 1;
  color: inherit;
  background-color: white;
  cursor: default;
  pointer-events: none;
}
