.business-card-clickable {
  cursor: pointer;
}
.business-page-wrap {
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 40px 24px;
}
#business-details {
  margin-top: 18px;
  padding: 32px;
  border: 1px solid #e0e7f0;
  border-radius: 18px;
  background: white;
  box-shadow: 0 8px 24px #213b5e08;
}
.business-detail-page .business-detail-header h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.business-detail-page .business-detail-content .business-cover {
  height: 300px;
}
.business-details-button {
  display: block;
  text-align: center;
  text-decoration: none;
}
@media (max-width: 560px) {
  .business-page-wrap {
    padding: 24px 16px;
  }
  #business-details {
    padding: 20px;
  }
  .business-detail-page .business-detail-content .business-cover {
    height: 200px;
  }
  .business-detail-page .topbar {
    gap: 12px;
    flex-wrap: wrap;
  }
}
.business-service-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e0e7f0;
}
.business-service-facts > div {
  display: grid;
  gap: 4px;
}
.business-service-facts dt {
  color: var(--muted);
  font-size: 11px;
}
.business-service-facts dd {
  margin: 0;
  color: #2457b8;
  font-size: 15px;
  font-weight: 700;
}
.business-employees {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e0e7f0;
}
.business-employees h3 {
  margin: 0 0 16px;
  font-size: 20px;
  letter-spacing: -0.025em;
}
.business-employee-list {
  display: grid;
  gap: 12px;
}
.business-employee-card {
  padding: 18px;
  border: 1px solid #e0e7f0;
  border-radius: 12px;
  background: #f7faff;
}
.business-employee-card h4 {
  margin: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.business-employee-biography {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.business-details-button {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #d8e5f5;
  border-radius: 9px;
  background: #edf4fc;
  color: #2457b8;
  font-size: 12px;
  font-weight: 700;
}
.business-details-button:hover {
  background: #dfeafb;
}
.business-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.business-detail-header h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.business-detail-message {
  color: var(--muted);
  line-height: 1.6;
}
.business-detail-content .business-card {
  border: 0;
  box-shadow: none;
  border-radius: 12px;
}
.business-detail-content .business-card:hover {
  transform: none;
  box-shadow: none;
}
.business-detail-content .business-cover {
  height: 230px;
}
.business-detail-content .business-body {
  padding: 22px 0 0;
}
.business-detail-content .business-name,
.business-detail-content .business-address {
  display: none;
}
.business-detail-content .business-description {
  display: block;
  min-height: 0;
  overflow: visible;
  white-space: pre-wrap;
}
.business-detail-facts {
  margin: 20px 0;
}
.business-detail-fact {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid #edf1f6;
  font-size: 13px;
  line-height: 1.5;
}
.business-detail-fact dt {
  color: var(--muted);
}
.business-detail-fact dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}
@media (max-width: 560px) {
  .business-detail-content .business-cover {
    height: 180px;
  }
  .business-detail-fact {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
.business-directory {
  margin-bottom: 32px;
  scroll-margin-top: 24px;
}
.directory-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border: 1px solid #d8e5f5;
  border-radius: 18px;
  background: radial-gradient(ellipse at top right, #dcecff, transparent 65%), #edf4fc;
}
.directory-intro h2 {
  margin: 12px 0;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.045em;
  line-height: 1.15;
}
.directory-intro p:last-child {
  margin: 0;
  color: #536b89;
  font-size: 14px;
  line-height: 1.6;
}
.directory-mark {
  display: grid;
  place-items: center;
  flex: 0 0 70px;
  height: 70px;
  border: 1px solid #c2d7ef;
  border-radius: 50%;
  color: #2457b8;
  font-size: 40px;
  background: #ffffff80;
}
.directory-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.5fr) minmax(180px, 0.6fr);
  gap: 16px;
  margin: 24px 0;
}
.directory-filters label {
  display: grid;
  gap: 8px;
  color: #52637a;
  font-size: 12px;
  font-weight: 650;
}
.directory-filters input,
.directory-filters select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 15px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.directory-filters input::placeholder {
  color: #8290a3;
}
.directory-filters input:focus-visible,
.directory-filters select:focus-visible {
  outline: 3px solid #b9d7ff;
  outline-offset: 2px;
  border-color: #2457b8;
}
.directory-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.directory-results-heading h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.025em;
}
#business-count {
  color: var(--muted);
  font-size: 12px;
}
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.business-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid #e0e7f0;
  border-radius: 16px;
  background: white;
  box-shadow: 0 6px 20px #213b5e08;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}
.business-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px #213b5e16;
}
.business-cover {
  position: relative;
  display: grid;
  place-items: center;
  height: 170px;
  overflow: hidden;
  background: linear-gradient(135deg, #dbe8fa, #f0f5fc);
}
.business-monogram {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: #6385b2;
}
.business-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.business-type {
  position: absolute;
  bottom: 14px;
  left: 16px;
  max-width: calc(100% - 32px);
  padding: 7px 11px;
  border-radius: 7px;
  background: #fffffff2;
  color: #244e91;
  font-size: 11px;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.business-body {
  padding: 20px;
}
.business-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}
.business-name {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.business-status {
  flex-shrink: 0;
  padding: 5px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #18704e;
  background: #eaf7f0;
}
.business-status.is-inactive {
  color: #6b7280;
  background: #f0f2f5;
}
.business-location {
  margin: 8px 0 15px;
  font-size: 12px;
  color: #2457b8;
  text-transform: capitalize;
}
.business-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 63px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.business-address {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid #edf1f6;
  color: #52637a;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.business-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  min-height: 38px;
}
.business-contact {
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
  background: #2457b8;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.business-contact:hover {
  background: #184796;
}
.business-email {
  color: #2457b8;
  font-size: 12px;
  text-underline-offset: 4px;
}
.business-no-contact {
  color: var(--muted);
  font-size: 12px;
}
.business-state {
  padding: 38px 24px;
  border: 1px dashed #cedcec;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}
.business-state p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.business-state .button {
  margin-top: 18px;
}
@media (max-width: 1180px) {
  .business-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .directory-intro {
    padding: 24px;
  }
  .directory-mark {
    display: none;
  }
}
@media (max-width: 560px) {
  .business-grid,
  .directory-filters {
    grid-template-columns: 1fr;
  }
  .business-cover {
    height: 190px;
  }
  .directory-results-heading {
    align-items: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .business-card {
    transition: none;
  }
  .business-card:hover {
    transform: none;
  }
}
