.as-public-page {
  --as-primary: var(--red-core, #f4730f);
  --as-primary-dark: var(--red-deep, #d35e08);
  --as-primary-soft: var(--red-50, #fff4ec);
  --as-surface: var(--white, #fff);
  --as-bg: var(--surf-1, #fafafa);
  --as-muted-bg: var(--surf-2, #f5f5f5);
  --as-text: var(--text-primary, #0a0a0a);
  --as-text-soft: var(--text-secondary, #2e2e2e);
  --as-muted: var(--text-muted, #8a8a8a);
  --as-border: var(--border-medium, rgba(0, 0, 0, .12));
  --as-border-soft: var(--border-light, rgba(0, 0, 0, .07));
  --as-border-brand: var(--border-red-soft, rgba(244, 115, 15, .14));
  --as-shadow: var(--shadow-card, 0 2px 12px rgba(0, 0, 0, .07));
  --as-shadow-hover: var(--shadow-card-hover, 0 16px 48px rgba(0, 0, 0, .13));
  --as-radius-sm: var(--r-sm, 8px);
  --as-radius-md: var(--r-md, 12px);
  --as-radius-lg: var(--r-lg, 16px);
  --as-radius-xl: var(--r-xl, 22px);
  background: var(--as-bg);
  color: var(--as-text);
  min-height: 100vh;
  padding: clamp(20px, 4vw, 36px) 0 clamp(44px, 7vw, 72px);
}

.as-public-page a {
  text-decoration: none;
}

.as-public-shell {
  width: min(100% - 28px, 1320px);
  margin-inline: auto;
}

.as-list-hero,
.as-detail-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 4vw, 36px);
  padding: clamp(22px, 4.5vw, 42px);
  border: 1px solid var(--as-border-brand);
  border-radius: var(--as-radius-xl);
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(255, 255, 255, .22) 0%, transparent 62%),
    linear-gradient(120deg, var(--as-primary) 0%, var(--as-primary-dark) 100%);
  box-shadow: var(--shadow-red-lg, 0 16px 48px rgba(244, 115, 15, .38));
}

.as-detail-hero {
  align-items: flex-start;
}

.as-list-hero__content,
.as-detail-hero__content,
.as-hero-action,
.as-detail-hero__mark {
  position: relative;
  z-index: 1;
}

.as-eyebrow,
.as-detail-hero__badges,
.as-hero-badges,
.as-business-card__topline,
.as-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.as-eyebrow {
  width: fit-content;
  min-height: 34px;
  margin-bottom: 10px;
  padding: 6px 13px;
  border-radius: var(--r-full, 9999px);
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: var(--fs-xs, 12px);
  font-weight: 900;
}

.as-list-hero__title,
.as-detail-hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 4.2vw, 38px);
  font-weight: 950;
  line-height: 1.4;
  letter-spacing: 0;
}

.as-list-hero__text,
.as-detail-hero__text {
  max-width: 700px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: var(--fs-sm, 13px);
  line-height: 2;
}

.as-hero-badges {
  margin-top: 18px;
}

.as-hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 11px;
  border-radius: var(--r-full, 9999px);
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .88);
  font-size: var(--fs-xs, 12px);
  font-weight: 800;
}

.as-hero-action,
.as-primary-action,
.as-secondary-action,
.as-empty-state__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: var(--as-radius-md);
  font-size: var(--fs-sm, 13px);
  font-weight: 900;
  transition: transform var(--t2, .26s) var(--ease, ease), box-shadow var(--t2, .26s) var(--ease, ease), background var(--t2, .26s) var(--ease, ease), color var(--t2, .26s) var(--ease, ease), border-color var(--t2, .26s) var(--ease, ease);
}

.as-hero-action {
  flex: 0 0 auto;
  background: #fff;
  color: var(--as-primary-dark);
  box-shadow: var(--shadow-md, 0 4px 16px rgba(0, 0, 0, .1));
}

.as-hero-action:hover,
.as-primary-action:hover,
.as-empty-state__action:hover {
  color: #fff;
  transform: translateY(-2px);
}

.as-hero-action:hover {
  background: var(--text-primary, #0a0a0a);
}

.as-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: clamp(28px, 5vw, 44px) 0 18px;
}

.as-section-title {
  display: inline-flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  color: var(--as-text);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 950;
  line-height: 1.45;
}

.as-section-title::after {
  content: "";
  width: 44px;
  height: 3px;
  border-radius: var(--r-full, 9999px);
  background: linear-gradient(90deg, var(--as-primary), var(--red-400, #ff8a3d));
  box-shadow: 0 0 12px var(--red-glow, rgba(244, 115, 15, .28));
}

.as-section-subtitle {
  margin: 9px 0 0;
  color: var(--as-muted);
  font-size: var(--fs-sm, 13px);
}

.as-business-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.as-business-card,
.as-panel,
.as-contact-card,
.as-empty-state {
  background: var(--as-surface);
  border: 1px solid var(--as-border-soft);
  border-radius: var(--as-radius-xl);
  box-shadow: var(--as-shadow);
}

.as-business-card {
  overflow: hidden;
  transition: transform var(--t2, .26s) var(--ease, ease), box-shadow var(--t2, .26s) var(--ease, ease), border-color var(--t2, .26s) var(--ease, ease);
}

.as-business-card:hover {
  transform: translateY(-4px);
  border-color: var(--as-border-brand);
  box-shadow: var(--as-shadow-hover);
}

.as-business-card__link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
}

.as-business-card__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 118px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .18) 0%, transparent 72%),
    linear-gradient(135deg, var(--as-primary), var(--as-primary-dark));
}

.as-business-card__icon,
.as-detail-hero__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.as-business-card__icon {
  width: 68px;
  height: 68px;
  border-radius: var(--as-radius-lg);
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: 34px;
}

.as-business-card__verified {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: var(--r-full, 9999px);
  background: rgba(255, 255, 255, .94);
  color: #15803d;
  font-size: var(--fs-2xs, 10.5px);
  font-weight: 900;
}

.as-business-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.as-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: var(--r-full, 9999px);
  background: var(--as-muted-bg);
  color: var(--as-text-soft);
  border: 1px solid var(--as-border-soft);
  font-size: var(--fs-xs, 12px);
  font-weight: 850;
  line-height: 1.2;
}

.as-chip--orange {
  background: var(--as-primary-soft);
  color: var(--as-primary-dark);
  border-color: var(--as-border-brand);
}

.as-chip--success {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.as-business-card__title {
  margin: 0;
  color: var(--as-text);
  font-size: var(--fs-md, 16px);
  font-weight: 950;
  line-height: 1.6;
}

.as-business-card__description {
  display: -webkit-box;
  min-height: 4.6rem;
  margin: 0;
  overflow: hidden;
  color: var(--as-muted);
  font-size: var(--fs-sm, 13px);
  line-height: 1.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.as-business-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--as-border-soft);
}

.as-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--as-muted);
  font-size: var(--fs-xs, 12px);
  font-weight: 800;
}

.as-card-meta i {
  color: var(--as-primary);
}

.as-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: var(--as-radius-md);
  background: linear-gradient(135deg, var(--as-primary), var(--as-primary-dark));
  color: #fff;
  box-shadow: 0 7px 15px rgba(244, 115, 15, .2);
  transition: transform var(--t2, .26s) var(--ease, ease);
}

.as-business-card:hover .as-card-arrow {
  transform: translateX(-2px);
}

.as-pagination {
  margin-top: 28px;
  text-align: center;
}

.as-pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.as-pagination__link,
.as-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: var(--as-radius-md);
  border: 1px solid var(--as-border-soft);
  background: #fff;
  color: var(--as-text-soft);
  font-size: var(--fs-sm, 13px);
  font-weight: 850;
}

.as-pagination__link:hover,
.as-pagination__link.is-active {
  background: var(--as-primary);
  border-color: var(--as-primary);
  color: #fff;
}

.as-pagination__link--nav {
  gap: 6px;
  min-width: 78px;
}

.as-pagination__link.is-disabled {
  opacity: .48;
  pointer-events: none;
}

.as-pagination__summary {
  margin: 10px 0 0;
  color: var(--as-muted);
  font-size: var(--fs-xs, 12px);
}

.as-empty-state,
.as-inline-empty {
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
}

.as-empty-state {
  min-height: 300px;
  padding: 34px 18px;
  border-style: dashed;
}

.as-empty-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: var(--as-radius-xl);
  background: var(--as-primary-soft);
  color: var(--as-primary);
  font-size: 34px;
}

.as-empty-state__title {
  margin: 0;
  color: var(--as-text);
  font-size: var(--fs-lg, 18px);
  font-weight: 950;
}

.as-empty-state__text,
.as-inline-empty p {
  margin: 0;
  color: var(--as-muted);
  font-size: var(--fs-sm, 13px);
  line-height: 1.9;
}

.as-empty-state__action,
.as-primary-action {
  border: 0;
  background: linear-gradient(135deg, var(--as-primary), var(--as-primary-dark));
  color: #fff;
  box-shadow: 0 8px 22px rgba(244, 115, 15, .24);
}

.as-secondary-action {
  color: var(--as-primary-dark);
  background: #fff;
  border: 1px solid var(--as-border-brand);
}

.as-secondary-action:hover {
  color: #fff;
  background: var(--as-text);
  border-color: var(--as-text);
}

.as-breadcrumb {
  margin-bottom: 16px;
}

.as-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--as-muted);
  font-size: var(--fs-xs, 12px);
  font-weight: 750;
}

.as-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-inline-start: 8px;
  color: var(--border-strong, rgba(0, 0, 0, .2));
}

.as-breadcrumb a {
  color: var(--as-text-soft);
}

.as-breadcrumb a:hover {
  color: var(--as-primary);
}

.as-detail-hero__mark {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  border-radius: var(--as-radius-xl);
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 46px;
}

.as-detail-hero__badges {
  margin-bottom: 12px;
}

.as-detail-hero__badges .as-chip {
  background: rgba(255, 255, 255, .92);
}

.as-detail-actions {
  margin-top: 20px;
}

.as-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.as-detail-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.as-panel,
.as-contact-card {
  padding: clamp(18px, 3vw, 24px);
}

.as-panel__header,
.as-contact-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.as-panel__icon,
.as-contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: var(--as-radius-md);
  background: linear-gradient(135deg, var(--as-primary), var(--as-primary-dark));
  color: #fff;
  box-shadow: 0 8px 18px rgba(244, 115, 15, .2);
}

.as-panel__title,
.as-contact-card__title {
  margin: 0;
  color: var(--as-text);
  font-size: var(--fs-md, 16px);
  font-weight: 950;
}

.as-panel__subtitle,
.as-contact-card__subtitle {
  margin: 3px 0 0;
  color: var(--as-muted);
  font-size: var(--fs-xs, 12px);
  line-height: 1.7;
}

.as-offerings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.as-offering-card {
  min-height: 100%;
  padding: 15px;
  border: 1px solid var(--as-border-soft);
  border-radius: var(--as-radius-lg);
  background: linear-gradient(180deg, #fff 0%, var(--surf-1, #fafafa) 100%);
}

.as-offering-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.as-offering-card__title {
  margin: 0;
  color: var(--as-text);
  font-size: var(--fs-sm, 13px);
  font-weight: 950;
  line-height: 1.8;
}

.as-offering-card__price {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: var(--r-full, 9999px);
  background: var(--as-primary-soft);
  color: var(--as-primary-dark);
  border: 1px solid var(--as-border-brand);
  font-size: var(--fs-xs, 12px);
  font-weight: 900;
  white-space: nowrap;
}

.as-offering-card__description {
  margin: 9px 0 0;
  color: var(--as-muted);
  font-size: var(--fs-xs, 12px);
  line-height: 1.9;
}

.as-offering-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--as-muted);
  font-size: var(--fs-xs, 12px);
  font-weight: 800;
}

.as-inline-empty {
  min-height: 130px;
  padding: 18px;
  border: 1px dashed var(--as-border);
  border-radius: var(--as-radius-lg);
  background: var(--as-muted-bg);
}

.as-inline-empty i {
  color: var(--as-primary);
  font-size: 24px;
}

.as-detail-sidebar {
  position: sticky;
  top: 92px;
}

.as-contact-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.as-contact-item {
  padding: 13px 0;
  border-top: 1px solid var(--as-border-soft);
}

.as-contact-item dt {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: var(--as-muted);
  font-size: var(--fs-xs, 12px);
  font-weight: 850;
}

.as-contact-item dt i {
  color: var(--as-primary);
}

.as-contact-item dd {
  margin: 0;
  color: var(--as-text-soft);
  font-size: var(--fs-sm, 13px);
  font-weight: 750;
  line-height: 1.9;
}

.as-phone-link {
  color: var(--as-text);
  direction: ltr;
  unicode-bidi: plaintext;
}

.as-phone-link:hover {
  color: var(--as-primary);
}

.as-navigation-links {
  padding-top: 16px;
  border-top: 1px solid var(--as-border-soft);
}

.as-navigation-links h3 {
  margin: 0 0 10px;
  color: var(--as-text);
  font-size: var(--fs-sm, 13px);
  font-weight: 950;
}

.as-navigation-links > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.as-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 11px;
  border-radius: var(--as-radius-md);
  background: var(--as-primary-soft);
  color: var(--as-primary-dark);
  border: 1px solid var(--as-border-brand);
  font-size: var(--fs-xs, 12px);
  font-weight: 900;
}

.as-nav-link:hover {
  background: var(--as-primary);
  color: #fff;
}

.as-public-map-shell .as-map {
  border-color: var(--as-border-soft);
  border-radius: var(--as-radius-lg);
}

.as-public-page :is(a, button):focus-visible {
  outline: 3px solid rgba(244, 115, 15, .24);
  outline-offset: 3px;
}

@media (max-width: 991.98px) {
  .as-business-grid,
  .as-offerings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .as-detail-layout {
    grid-template-columns: 1fr;
  }

  .as-detail-sidebar {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .as-list-hero,
  .as-detail-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .as-hero-action,
  .as-primary-action,
  .as-secondary-action,
  .as-empty-state__action {
    width: 100%;
  }

  .as-detail-hero__mark {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    font-size: 34px;
  }
}

@media (max-width: 575.98px) {
  .as-public-page {
    padding-top: 14px;
  }

  .as-public-shell {
    width: min(100% - 24px, 1320px);
  }

  .as-business-grid,
  .as-offerings-grid {
    grid-template-columns: 1fr;
  }

  .as-list-hero,
  .as-detail-hero,
  .as-panel,
  .as-contact-card,
  .as-empty-state {
    border-radius: var(--as-radius-lg);
  }

  .as-business-card__description {
    min-height: auto;
  }

  .as-offering-card__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .as-pagination__link--nav span {
    display: none;
  }

  .as-pagination__link--nav {
    min-width: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .as-public-page *,
  .as-public-page *::before,
  .as-public-page *::after {
    transition: none !important;
    animation: none !important;
  }
}
