/* -------------------------------------------------- */
/* PAGE — SEARCH                                      */
/* -------------------------------------------------- */

.page-search {
  padding: 4rem 0;
}

.page-search .section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 4rem;
}

.section-eyebrow {
  font-size: 0.85rem;
  opacity: 0.85;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.35rem;
  margin: 0.4rem 0 0.8rem;
  line-height: 1.2;
}

.section-subtext {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 690px;
  margin: 0.35rem auto;
  line-height: 1.65;
}



/* -------------------------------------------------- */
/* LAYOUT — FILTERS + RESULTS                         */
/* -------------------------------------------------- */

.search-wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}



/* -------------------------------------------------- */
/* FILTERS PANEL                                      */
/* -------------------------------------------------- */

.search-filters {
  border-radius: 20px;
  padding: 2.2rem 2rem;
  backdrop-filter: blur(25px);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-filters h3 {
  margin-bottom: 0.35rem;
  font-size: 1.3rem;
}

.search-filters .section-subtext.small {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.filters-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.form-group label {
  font-size: 0.93rem;
  display: block;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  font-size: 0.9rem;
  color: white;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
}

.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.full-btn {
  margin-top: 0.6rem;
  padding: 0.85rem 0;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  transition: 0.25s;
}

.full-btn:hover {
  opacity: 0.85;
}

.filters-tip {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 1rem;
  line-height: 1.5;
}



/* -------------------------------------------------- */
/* RESULTS PANEL                                      */
/* -------------------------------------------------- */

.search-results {
  border-radius: 20px;
  padding: 2.4rem 2rem;
  backdrop-filter: blur(25px);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title-sm {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

.results-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}



/* -------------------------------------------------- */
/* RESULT CARDS                                       */
/* -------------------------------------------------- */

.result-card {
  border-radius: 18px;
  padding: 1.7rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255,255,255,0.12);
  transition: 0.25s ease;
  cursor: pointer;
}

.result-card:hover {
  transform: translateY(-4px);
  border-color: rgba(147, 51, 234, 0.45);
  box-shadow: 0px 25px 55px rgba(147, 51, 234, 0.25);
}

.result-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.result-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.result-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.1rem;
}



/* -------------------------------------------------- */
/* RESPONSIVE                                         */
/* -------------------------------------------------- */

@media (max-width: 1080px) {
  .search-wrapper {
    grid-template-columns: 260px 1fr;
    gap: 2rem;
  }
}

@media (max-width: 960px) {
  .search-wrapper {
    grid-template-columns: 1fr;
  }

  .search-filters {
    order: 2;
    width: 100%;
  }

  .search-results {
    order: 1;
    width: 100%;
  }

  .form-two {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  .page-search .section-title {
    font-size: 1.85rem;
  }

  .search-filters,
  .search-results {
    padding: 1.7rem 1.4rem;
  }

  .result-card {
    padding: 1.4rem;
  }
}
