.province-page {
  padding-bottom: 56px;
}

.province-summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 30px 32px;
  border: 1px solid #cce5e2;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 5%, rgba(13, 118, 110, .14), transparent 15rem),
    linear-gradient(135deg, var(--primary-soft), var(--surface) 68%);
  box-shadow: var(--shadow);
}

.province-summary::after {
  position: absolute;
  right: -48px;
  bottom: -72px;
  width: 180px;
  height: 180px;
  border: 30px solid rgba(13, 118, 110, .05);
  border-radius: 50%;
  content: "";
}

.province-summary__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.province-summary__label {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.province-summary h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.province-summary p {
  max-width: 690px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.province-summary__count {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-width: 170px;
  padding: 18px 22px;
  border: 1px solid rgba(13, 118, 110, .16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .82);
  text-align: center;
  box-shadow: 0 8px 20px rgba(31, 49, 57, .06);
  backdrop-filter: blur(8px);
}

.province-summary__count strong,
.province-summary__count span {
  display: block;
}

.province-summary__count strong {
  color: var(--primary-dark);
  font-size: 27px;
  line-height: 1.2;
}

.province-summary__count span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.province-directory {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.province-directory__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.province-directory__header h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -.025em;
}

.province-directory__header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.province-directory__total {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.enterprise-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.enterprise-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.enterprise-item:hover {
  border-color: #a8d9d4;
  box-shadow: 0 12px 25px rgba(31, 49, 57, .08);
  transform: translateY(-2px);
}

.enterprise-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.enterprise-item__identity {
  min-width: 0;
}

.enterprise-item__name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.enterprise-item__name:hover {
  color: var(--primary);
}

.enterprise-item__tax {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.enterprise-item__tax a {
  color: var(--primary-dark);
  font-weight: 800;
}

.enterprise-status {
  flex: 0 0 auto;
  max-width: 160px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.status-active {
  background: var(--success-soft);
  color: var(--success);
}

.status-suspended {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-inactive,
.status-closed {
  background: #fef0f0;
  color: #b42318;
}

.status-unknown {
  background: #eef2f4;
  color: #566470;
}

.enterprise-item__details {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}

.enterprise-detail {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.enterprise-detail svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  fill: #82909b;
}

.enterprise-detail span {
  min-width: 0;
}

.enterprise-detail--address span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.enterprise-item__footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 15px;
  color: var(--muted);
  font-size: 11px;
}

.enterprise-head-office {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
}

.enterprise-item__view {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.enterprise-item__view:hover {
  color: var(--primary-dark);
}

.enterprise-item__view svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.load-more-controls {
  display: grid;
  justify-items: center;
  gap: 9px;
  margin-top: 22px;
  text-align: center;
}

.load-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 150px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(13, 118, 110, .16);
  transition:
    background-color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.load-more-button:hover:not(:disabled) {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  box-shadow: 0 10px 22px rgba(13, 118, 110, .22);
  transform: translateY(-1px);
}

.load-more-button:focus-visible {
  outline: 3px solid rgba(13, 118, 110, .22);
  outline-offset: 3px;
}

.load-more-button:disabled {
  cursor: wait;
  opacity: .78;
}

.load-more-button[hidden] {
  display: none;
}

.load-more-button__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: province-spin .75s linear infinite;
}

.load-more-message {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.load-more-controls[data-state="error"] .load-more-message {
  color: #b42318;
}

.load-more-controls[data-state="done"] .load-more-message {
  color: #7b8892;
}

.enterprise-view-count {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.province-empty {
  display: grid;
  justify-items: center;
  padding: 50px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  text-align: center;
}

.province-empty__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--primary-soft);
}

.province-empty__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.province-empty strong {
  font-size: 16px;
}

.province-empty p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@keyframes province-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 820px) {
  .province-summary {
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
    padding: 27px;
  }

  .province-summary__count {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 7px;
    min-width: 0;
  }

  .province-summary__count span {
    margin-top: 0;
  }

  .enterprise-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .province-page {
    padding-bottom: 38px;
  }

  .province-summary {
    margin-bottom: 14px;
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }

  .province-summary h1 {
    font-size: 25px;
  }

  .province-summary p {
    font-size: 14px;
  }

  .province-directory {
    padding: 16px 12px;
    border-radius: var(--radius-md);
  }

  .province-directory__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .enterprise-item {
    padding: 16px 14px;
  }

  .enterprise-item__top {
    display: block;
  }

  .enterprise-status {
    display: inline-flex;
    margin-top: 10px;
    max-width: none;
  }

  .enterprise-item__footer {
    align-items: flex-start;
  }

  .enterprise-item__view {
    width: 100%;
    margin-top: 4px;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .enterprise-item,
  .load-more-button,
  .load-more-button__spinner {
    transition: none;
    animation-duration: .01ms;
    animation-iteration-count: 1;
  }
}