 @charset "UTF-8";

/************************************************
 * REFINE SEARCH TOGGLE
 ************************************************/
.refine-search-toggle {
  display: block;
  padding: 15px;
  background: var(--primary-color, #333);
  color: #fff;
  text-decoration: none;
  border-radius: 8px; /* or use var(--border-radius) */
  font-weight: bold;
  position: relative;
  transition: 0.3s ease; /* or var(--transition) if you have that set */
  max-width: 1200px;
  
  /* Use margin: 10px auto to center horizontally */
  margin: 10px auto; 
  text-align: center;  /* optional if you want the text centered as well */
}

/* Little arrow on the refine-search-toggle */
.refine-search-toggle::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  transition: 0.3s ease;
}

/* When active, rotate arrow */
.refine-search-toggle.active::after {
  transform: translateY(-50%) rotate(-135deg);
}

/************************************************
 * SEARCH FORM
 ************************************************/
.search-form {
  background: #fff;
  /* Center horizontally with auto + set a max-width if desired */
  margin: 10px auto; 
  max-width: 1200px; /* so it doesn't exceed 1200px if you want a limit */
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
  max-height: 0;       /* Collapsed by default */
  opacity: 0;          /* Invisible by default */
  transition: all 0.3s ease;
  pointer-events: none;/* Non-clickable when collapsed */
}

/* Expanded search form */
.search-form.active {
  max-height: 2000px; /* large enough to fit content */
  opacity: 1;
  pointer-events: auto;
  padding-bottom: 70px; /* room for the Go button container */
}

/************************************************
 * GO BUTTON CONTAINER
 ************************************************/
.go-button-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  display: none; /* hidden by default */
  z-index: 1000;
  /* Typically, you wouldn't put margin on a fixed element, 
     but you can if you really want spacing from edges. */
  /* margin: 10px; */
}

/* Show the button container when form is active */
.search-form.active .go-button-container {
  display: block;
}

/************************************************
 * SEARCH FIELDS / ACCORDION CONTENT
 ************************************************/
.accordion-section {
  border-bottom: 1px solid #eee;
  /* 10px margin if you want space between sections */
  margin: 10px; 
}

.accordion-header {
  padding: 15px;
  background: #f8f8f8;
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: 0.3s ease;
}

/* Arrow on accordion header */
.accordion-header::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: rotate(45deg);
  transition: 0.3s ease;
  position: absolute;
  right: 15px;
  top: 50%;
  margin-top: -6px;
}

.accordion-section.active .accordion-header::after {
  transform: rotate(-135deg);
  margin-top: -4px;
}

/* The collapsible content area */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fff;
  margin: 10px; /* optional for spacing around content */
}

/* Expanded */
.accordion-section.active .accordion-content {
  max-height: 200px;   /* adjust for your content needs */
  overflow-y: auto;
}

/* If you have a search-group */
.search-group {
  padding: 15px;
}

.search-group label {
  display: block;
  margin-bottom: 8px;
  color: #666;
  font-size: 14px;
  font-weight: bold;
}

.search-group select,
.search-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 5px;
}

/************************************************
 * EXAMPLE GO-BUTTON STYLE
 ************************************************/
.go-button {
  width: 100%;
  padding: 15px;
  background: #2ecc71;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.go-button:hover {
  background: #27ae60;
}

.go-button:active {
  transform: translateY(1px);
}
