.search-page {
  min-height: 100vh;
  background: #eef3f7;
}

.search-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 72px;
}

.search-box {
  padding: 34px;
  background: #ffffff;
  border: 1px solid rgba(20, 35, 58, 0.12);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(12, 35, 66, 0.1);
}

.search-box__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.search-box__form input {
  min-height: 58px;
  padding: 0 18px;
  color: #14233a;
  background: #ffffff;
  border: 1px solid #c9d4df;
  border-radius: 8px;
  font-size: 1rem;
}

.search-box__form button {
  min-width: 82px;
  min-height: 58px;
  padding: 0 22px;
  color: #ffffff;
  background: #0085a8;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.search-box__form button:disabled {
  color: #5f7187;
  background: #dce6f0;
  cursor: not-allowed;
}

.search-status {
  margin: 18px 0 0;
  color: #324866;
  font-size: 0.98rem;
}

.search-directory-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0 18px;
  padding: 20px 22px;
  color: #ffffff;
  background: #0085a8;
  border-radius: 10px;
}

.search-directory-callout strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.12rem;
}

.search-directory-callout p {
  margin: 0;
}

.search-directory-callout a {
  flex: 0 0 auto;
  padding: 13px 18px;
  color: #00364c;
  background: #ffffff;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.search-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 24px;
}

.search-filter-tabs button {
  min-height: 42px;
  padding: 0 18px;
  color: #004a6a;
  background: #ffffff;
  border: 1px solid #b9d8e9;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.search-filter-tabs button.is-active {
  color: #ffffff;
  background: #004a6a;
  border-color: #004a6a;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.search-result-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #ffffff;
  border: 1px solid #d8e1ea;
  border-radius: 10px;
  overflow: hidden;
}

.search-result-card[hidden] {
  display: none;
}

.search-result-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  color: #ffffff;
  background: #004a6a;
}

.search-result-card__header h2 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}

.search-result-card__count {
  font-weight: 900;
}

.search-result-list {
  display: grid;
}

.search-result-item {
  display: grid;
  gap: 5px;
  padding: 14px 18px;
  color: #001b3f;
  border-bottom: 1px solid #e3e9ef;
  text-decoration: none;
}

.search-result-item[hidden] {
  display: none;
}

.search-result-item:hover,
.search-result-item:focus-visible {
  background: #f3fbff;
  outline: none;
}

.search-result-item strong {
  font-size: 0.98rem;
  line-height: 1.25;
}

.search-result-item span {
  color: #53677f;
  font-size: 0.88rem;
}

.search-result-card__footer {
  margin-top: auto;
  padding: 14px 18px;
  color: #004a6a;
  background: #edf8fc;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.search-result-card__footer:hover,
.search-result-card__footer:focus-visible {
  color: #ffffff;
  background: #0085a8;
  outline: none;
}

.search-empty {
  margin: 24px 0 0;
  padding: 18px;
  color: #344963;
  background: #ffffff;
  border: 1px dashed #b9c8d6;
  border-radius: 10px;
}

.search-empty[hidden] {
  display: none;
}

@media (max-width: 820px) {
  .search-main {
    width: min(100% - 24px, 680px);
    padding-top: 24px;
  }

  .search-box,
  .search-directory-callout {
    padding: 18px;
  }

  .search-box__form,
  .search-results {
    grid-template-columns: 1fr;
  }

  .search-directory-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .search-directory-callout a {
    text-align: center;
  }
}
