/* ACF Search Widget Styles */

.acf-search-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

.acf-search-form {
  width: 100%;
  display: flex;
  gap: 10px;
  font-size: 14px !important;
  flex-wrap: wrap;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .acf-search-col {
    flex: 0 0 100%;
  }
}

.acf-search-label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
}

.acf-search-input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

.acf-search-input:focus {
  outline: none;
  border-color: #aaa;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.acf-search-input::placeholder {
  color: #999;
}

select.acf-search-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("../img/arrow.svg");
  background-repeat: no-repeat;
  background-size: 14px;
  background-position: right 15px center;
  cursor: pointer;
  padding-right: 35px;
}

.acf-search-price-wrapper {
  display: flex;
  align-items: center;
}

.acf-search-price {
  flex: 1;
  width: 50%;
}

/* Hide number input arrows/spinners */
input[type="number"].acf-search-input::-webkit-outer-spin-button,
input[type="number"].acf-search-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"].acf-search-input {
  -moz-appearance: textfield;
  appearance: textfield;
}

.acf-search-price-separator {
  padding: 0 10px;
  font-weight: 600;
  color: #666;
}

.acf-search-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.acf-search-advanced-col {
  flex: 1;
  text-align: left;
}

.acf-search-button-col {
  flex: 1;
  text-align: right;
}

.acf-advanced-toggle {
  background: none;
  border: none;
  color: #0073aa;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.acf-advanced-toggle:hover {
  color: #00a0d2;
  text-decoration: underline;
}

.acf-advanced-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 5px;
  background-image: url("../img/advange.svg");
  background-repeat: no-repeat;
  background-size: contain;
}

.acf-search-button {
  display: inline-block;
  background-color: #222;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.acf-search-button:hover {
  background-color: #000;
}

.acf-search-advanced-fields {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
