.search-page {
  min-height: calc(100vh - 76px);
  padding: 24px 0 64px;
  background:
    radial-gradient(circle at 7% 0%, rgba(22, 134, 121, .08), transparent 28%),
    #f6f8fa;
}

.search-container { max-width: 1120px; }

.search-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted, #667085);
  font-size: 13px;
}
.search-breadcrumb a { color: var(--primary, #087f72); text-decoration: none; }
.search-breadcrumb a:hover { text-decoration: underline; }

.results-label {
  margin: 0 0 7px;
  color: var(--primary, #087f72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.search-results { margin-top: 8px; }
.results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.results-header h2 {
  margin: 0;
  color: #17212b;
  font-size: 22px;
  line-height: 1.35;
  word-break: break-word;
}
.results-count {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #d8e1e8;
  border-radius: 999px;
  background: #fff;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}
.result-list { display: grid; gap: 12px; }
.result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 22px;
  border: 1px solid #e2e8ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(16, 24, 40, .035);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.result-card:hover {
  transform: translateY(-1px);
  border-color: #b9d8d4;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .07);
}
.result-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.result-title-row h3 {
  flex: 1;
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}
.result-title-row h3 a { color: #17212b; text-decoration: none; }
.result-title-row h3 a:hover { color: var(--primary, #087f72); }
.result-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.status-active { background: #e8f7ef; color: #16794a; }
.status-suspended { background: #fff5db; color: #946200; }
.status-inactive,
.status-closed { background: #ffeded; color: #b42318; }
.status-unknown { background: #eef2f6; color: #596579; }

.result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #667085;
  font-size: 13px;
}
.tax-code-label { color: #7a8697; }
.result-meta strong { color: #344054; font-size: 14px; }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: #b8c0cc; }
.result-details {
  display: grid;
  gap: 7px;
  margin: 16px 0 0;
}
.result-details > div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 10px;
}
.result-details dt { color: #7a8697; font-size: 13px; }
.result-details dd { margin: 0; color: #475467; font-size: 13px; line-height: 1.55; }
.result-side {
  display: flex;
  min-width: 135px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.province-chip {
  padding: 6px 9px;
  border-radius: 8px;
  background: #f0f7f6;
  color: #35736d;
  font-size: 12px;
  font-weight: 650;
}
.result-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary, #087f72);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.result-link svg { width: 17px; height: 17px; }

.search-empty-state,
.search-alert {
  margin-top: 28px;
  padding: 48px 24px;
  border: 1px solid #e2e8ee;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}
.empty-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 15px;
  place-items: center;
  border-radius: 15px;
  background: #eef7f6;
  color: var(--primary, #087f72);
}
.search-empty-state h2 { margin: 0; color: #263342; font-size: 20px; }
.search-empty-state p { max-width: 560px; margin: 9px auto 0; color: #667085; line-height: 1.6; }
.search-alert-error { border-color: #ffd2d2; background: #fff7f7; color: #a52222; }

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
}
.page-link {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe3e9;
  border-radius: 9px;
  background: #fff;
  color: #475467;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.page-link:hover { border-color: #9fcac5; color: var(--primary, #087f72); }
.page-link.is-current { border-color: var(--primary, #087f72); background: var(--primary, #087f72); color: #fff; }
.page-dots { padding: 0 2px; color: #98a2b3; }

@media (max-width: 760px) {
  .search-page { padding-top: 16px; }
  .results-header { align-items: flex-start; }
  .result-card { grid-template-columns: 1fr; gap: 15px; padding: 18px; }
  .result-title-row { display: block; }
  .result-status { display: inline-flex; margin-top: 9px; }
  .result-side { min-width: 0; flex-direction: row; align-items: center; }
  .result-details > div { grid-template-columns: 1fr; gap: 3px; }
}

@media (max-width: 480px) {
  .results-header { display: block; }
  .results-count { display: inline-flex; margin-top: 10px; }
  .result-side { align-items: flex-start; flex-direction: column; gap: 10px; }
  .page-prev,
  .page-next { min-width: 64px; }
}