/* ------------------------------
   🔍 Search Page Styling
   File: search.css
--------------------------------*/

/* 🎯 Hero section at top */
.search-hero {
  max-width: 900px;
  margin: auto;
  padding: 2rem;
}

.search-hero h1 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.search-hero p {
  text-align: center;
  margin-bottom: 2rem;
  color: #555;
}

/* 📌 Card style for the search box */
.search-form {
  background: #fff;
  border-radius: 12px;   /* more rounded corners */
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* soft shadow */
  margin: 0 auto; /* center it */
}

/* 📌 Stronger section titles */
.search-form h3 {
  font-weight: 600;
  color: #333;
  margin-top: 1.5rem; /* more breathing room */
  margin-bottom: 0.5rem;
}


/* --- Form field layout --- */
.field {
  display: grid;
  grid-template-columns: 180px 1fr 250px; /* label | input | hint */
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.field label {
  font-weight: 500;
  text-align: right;
  color: #333;
}

.field .input-wrap {
  display: flex;
  align-items: center;
  width: 100%;
}

.field input,
.field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.field small {
  font-size: 12px;
  color: #666;
}

/* --- Checkboxes --- */
.checkbox-group {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.checkbox-group label {
  font-weight: normal;
  text-align: left;
  color: #444;
}

/* --- Slider and extra filters --- */
.range-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.range-group output {
  min-width: 40px;
  font-weight: 500;
  color: #333;
}

/* --- Buttons --- */
.form-actions {
  text-align: center;
  margin-top: 2rem;
}

/* 📌 Increase spacing between groups */
.form-group {
  margin-bottom: 1.25rem;
}

.search-button {
  background: #0073e6;
  color: #fff;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-button:hover {
  background: #005bb5;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .field {
    grid-template-columns: 1fr; /* stack on small screens */
    text-align: left;
  }

  .field label {
    text-align: left;
    margin-bottom: 4px;
  }

  .field small {
    margin-top: 4px;
  }
}
