/************ Main Search Page *************/

#search {
  position: relative;
  height: 70vh;
  overflow-x: hidden;
}

#search form {
  position: absolute;
  z-index: 1;
  bottom: 12px;
  left: 12px;
  right: 12px;
}

#search .search-query {
  width: 100%;
  color: black;
}

#search .map-results {
  position: absolute;

  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
}

#search .search-query input {
  transition: width 0.3s ease;
}

#search .search-query input:focus {
  width: 100%;
  outline: 2px solid #d5a422; /* Brand Bronze */
  outline-offset: 2px;
}

#search .category-option {
  position: relative;
}

#search .category-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 64px;
  font-weight: bold;
  font-size: 0.8rem;
}

#search .category-label:hover {
  /* box-shadow: 0 2px 12px rgba(82, 18, 255, 0.5); */
  border-color: #d5a422; /* Brand Bronze */
}

#search .category-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 2px;
}

#search .category-label span {
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
}

/* Selected state */
#search input[type="radio"]:checked + .category-label {
  border-color: #d5a422; /* Brand Bronze */
  background-color: #d5a422; /* Brand Bronze */
  color: white;
  transition: all 0.2s ease;
}

/* Hover state */
#search input[type="radio"]:hover + .category-label {
  transform: scale(1.03);
}

#search .category-label .category-icon {
  filter: brightness(0) saturate(100%) sepia(100%) hue-rotate(10deg)
    brightness(1.1) contrast(1.2);
}

#search input[type="radio"]:checked + .category-label .category-icon {
  filter: brightness(0) invert(1);
  transition: all 0.2s ease;
}

#search #search-here {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  transition: all 0.2s ease;
}

/* ************* Animation ************

#search .search-category-option:first-of-type {
  z-index: 2;
}
#search .search-category-option:not(:first-of-type) {
  opacity: 0;
  transform: translateX(-60px) scale(0.95);
  animation: category-label-in 0.5s 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55)
    forwards;
}

@keyframes category-label-in {
  0% {
    opacity: 0;
    transform: translateX(-6px) scale(0.99);
  }
  60% {
    opacity: 1;
    transform: translateX(3px) scale(1.02);
  }
  80% {
    transform: translateX(-4px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
} */
