/* Listing profile presentation only. Keep sticky geometry, scroll offsets,
   visibility classes, overflow, anchors, and JS-controlled layout untouched. */
.dir-hero--detail {
  --profile-ink: #193331;
  --profile-muted: #61726b;
  --profile-accent: #146b58;
  --profile-line: #e2e9e4;
  --tg-link: #146b58;
  --tg-link-hover: #105745;
  color: var(--profile-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dir-hero--detail .card {
  background: #fff;
  border: 1px solid var(--profile-line);
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(25, 51, 49, .045);
}

/* Content panels are not clickable: retain their neutral surface when a
   descendant is hovered or focused, without changing individual focus rings. */
.dir-hero--detail .card:hover,
.dir-hero--detail .card:focus-within,
.dir-hero--detail .card:has(.card-body:hover),
.dir-hero--detail .card:has(.card-body:focus-within) {
  border-color: var(--profile-line);
  box-shadow: 0 3px 12px rgba(25, 51, 49, .045);
}

.dir-hero--detail .card > .card-body { padding: 1.5rem; }
.dir-hero--detail h2,
.dir-hero--detail h3 { color: var(--profile-ink); }
.dir-hero--detail .directory-promo-card-2 h2.mb-4 { color: #fff; }
.dir-hero--detail .card-body > h2 {
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.3;
}
.dir-hero--detail .breadcrumb { font-size: .85rem; }
.dir-hero--detail .breadcrumb a { color: var(--profile-accent); }
.dir-hero--detail .breadcrumb-item.active { color: var(--profile-muted); }

.dir-hero--detail .detail-neo-layout {
  border-radius: 12px;
  background: #fff;
  border-color: var(--profile-line);
  box-shadow: none;
}
.dir-hero--detail .detail-neo-main { background: #fff; }
.dir-hero--detail .detail-neo-rail {
  background: #f7f9f6;
  border-color: var(--profile-line);
  box-shadow: none;
}
.dir-hero--detail .listing-hero .listing-title,
.dir-hero--detail .detail-neo-title {
  color: var(--profile-ink);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 750;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.dir-hero--detail .listing-meta,
.dir-hero--detail .detail-neo-rating-count,
.dir-hero--detail .detail-neo-summary-title,
.dir-hero--detail .detail-neo-section-label { color: var(--profile-muted); }
.dir-hero--detail .detail-neo-section-label,
.dir-hero--detail .detail-neo-summary-title {
  font-size: .73rem;
  font-weight: 650;
  letter-spacing: .07em;
}
.dir-hero--detail .detail-neo-summary-item {
  color: var(--profile-ink);
  font-weight: 500;
  line-height: 1.6;
}
.dir-hero--detail .detail-neo-summary-dot { background: #51a775; }
.dir-hero--detail .detail-neo-rail-divider { background: var(--profile-line); }
.dir-hero--detail .detail-neo-service {
  color: #245744;
  background: #edf4ee;
  border-color: #dce8dd;
  border-radius: 6px;
  font-weight: 600;
  font-size: .9rem;
}
.dir-hero--detail .detail-neo-partner-chip {
  background: #fff;
  border: 1px solid var(--profile-line);
  border-radius: 7px;
  box-shadow: none;
}
.dir-hero--detail .detail-neo-cred,
.dir-hero--detail .detail-neo-registration {
  color: #465c52;
  background: #f7f9f6;
  border-color: var(--profile-line);
  border-radius: 6px;
}
.dir-hero--detail .detail-neo-cred .cred-bg { fill: #e3f1e9; }
.dir-hero--detail .detail-neo-cred .cred-fg { stroke: #39765c; }

.dir-hero--detail .btn-primary,
#scrollTopBanner .banner-cta {
  --bs-btn-color: #fff;
  --bs-btn-bg: #146b58;
  --bs-btn-border-color: #146b58;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #105745;
  --bs-btn-hover-border-color: #105745;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #105745;
  --bs-btn-active-border-color: #105745;
  --bs-btn-disabled-bg: #146b58;
  --bs-btn-disabled-border-color: #146b58;
  --bs-btn-focus-shadow-rgb: 20, 107, 88;
  color: #fff;
  background: #146b58;
  border-color: #146b58;
  box-shadow: none;
}
.dir-hero--detail .btn-primary:hover,
#scrollTopBanner .banner-cta:hover { background: #105745; border-color: #105745; }
.dir-hero--detail .btn-outline-dark,
.dir-hero--detail .owner-tool-trigger {
  color: #146b58;
  background: #fff;
  border-color: #bfd7c8;
  box-shadow: none;
}
.dir-hero--detail .btn-outline-dark:hover,
.dir-hero--detail .owner-tool-trigger:hover {
  color: #175a45;
  background: #eaf3ec;
  border-color: #9fbea9;
}
.dir-hero--detail .owner-tool-panel {
  border-radius: 8px;
  background: #f5f8f3;
  border-color: var(--profile-line);
}
.dir-hero--detail .owner-tool-heading { color: var(--profile-muted); }

.dir-hero--detail .service-item {
  background: #fff;
  border-color: var(--profile-line);
  border-radius: 9px;
  box-shadow: none;
}
.dir-hero--detail .service-item:hover,
.dir-hero--detail .service-item--primary {
  background: #f5faf6;
  border-color: #91b69e;
  box-shadow: 0 0 0 1px #dce8dd;
}
.dir-hero--detail .service-title {
  color: var(--profile-ink);
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.35;
}
.dir-hero--detail .service-icon,
.dir-hero--detail .service-item:hover .service-icon,
.dir-hero--detail .review-highlight-icon {
  color: #146b58;
  background: #e3f1e9;
}
.dir-hero--detail .service-item--primary .service-title::after,
.dir-hero--detail .intent-badge,
.dir-hero--detail .primary-intent-chip .intent-badge {
  color: #245744;
  background: #e3f1e9;
  border-color: #dce8dd;
}
.dir-hero--detail .primary-intent-chip .intent-badge:hover { border-color: #dce8dd; }
.dir-hero--detail .resource-item { border-color: var(--profile-line); }

/* Color overrides deliberately retain navigation sizing, overflow and offsets. */
#scrollTopBanner {
  color: #193331;
  background: rgba(255, 255, 255, .98);
  border-color: #e2e9e4;
  box-shadow: 0 3px 12px rgba(25, 51, 49, .07);
}
#scrollTopBanner .listing-title { color: #193331; }
.dir-hero--detail .quicklinks a,
#scrollTopBanner .quicklinks a { color: #61726b; }
.dir-hero--detail .quicklinks a:hover,
.dir-hero--detail .quicklinks a:focus,
#scrollTopBanner .quicklinks a:hover,
#scrollTopBanner .quicklinks a:focus { color: #146b58; }
.dir-hero--detail .quicklinks .anchor-item a.is-active,
body #scrollTopBanner .quicklinks .anchor-item a.is-active {
  color: #146b58;
  border-bottom-color: #146b58;
  box-shadow: inset 0 -1px 0 #146b58;
}
.dir-hero--detail .ql-nav,
#scrollTopBanner .ql-nav {
  color: #146b58;
  background: #fff;
  border-color: #d5e2d8;
  box-shadow: none;
}
.dir-hero--detail .ql-nav:hover:not(:disabled),
#scrollTopBanner .ql-nav:hover:not(:disabled) { background: #eaf3ec; }
.dir-hero--detail a:focus-visible,
.dir-hero--detail button:focus-visible,
#scrollTopBanner a:focus-visible,
#scrollTopBanner button:focus-visible {
  outline: 3px solid #31b989;
  outline-offset: 3px;
}

@media (max-width: 576px) {
  .dir-hero--detail .card > .card-body { padding: 1.1rem; }
}

.dir-hero--detail .detail-neo-location { color: #61726b; }
.dir-hero--detail .btn-link { color: #146b58; }
.dir-hero--detail .badge.bg-primary-subtle {
  color: #245744 !important;
  background-color: #e3f1e9 !important;
}
#performanceReportDrawer {
  color: #193331;
  background: #fff;
  border-color: #e2e9e4;
}
body #performanceReportDrawer .drawer-header { background: #f7f9f6; border-color: #e2e9e4; }
#performanceReportDrawer .btn-primary {
  --bs-btn-bg: #146b58;
  --bs-btn-border-color: #146b58;
  --bs-btn-hover-bg: #105745;
  --bs-btn-hover-border-color: #105745;
  --bs-btn-active-bg: #105745;
  --bs-btn-active-border-color: #105745;
  --bs-btn-focus-shadow-rgb: 20, 107, 88;
}

/* Profile actions share the dashboard's compact rectangular button treatment.
   Preserve the existing IDs, links, drawer trigger and sticky-banner sizing. */
.dir-hero--detail #view_website_pill_button,
.dir-hero--detail #call_now_pill_button,
.dir-hero--detail #openPerformanceReportDrawer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  min-height: 44px;
  padding: .7rem 1rem;
  border-radius: 7px !important; /* Override Bootstrap's rounded-pill utility. */
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  box-shadow: none;
  --bs-btn-focus-shadow-rgb: 20, 107, 88;
}

.dir-hero--detail #view_website_pill_button {
  color: #fff;
  background: #146b58;
  border-color: #146b58;
}
.dir-hero--detail #view_website_pill_button:hover,
.dir-hero--detail #view_website_pill_button:active {
  color: #fff;
  background: #105745;
  border-color: #105745;
}

.dir-hero--detail #call_now_pill_button,
.dir-hero--detail #openPerformanceReportDrawer {
  color: #146b58;
  background: #fff;
  border-color: #bfd7c8;
  --bs-btn-active-color: #175a45;
  --bs-btn-active-bg: #e3f1e9;
  --bs-btn-active-border-color: #9fbea9;
}
.dir-hero--detail #call_now_pill_button:hover,
.dir-hero--detail #openPerformanceReportDrawer:hover,
.dir-hero--detail #call_now_pill_button:active,
.dir-hero--detail #openPerformanceReportDrawer:active {
  color: #175a45;
  background: #eaf3ec;
  border-color: #9fbea9;
}

#scrollTopBanner .banner-cta { border-radius: 7px !important; }

/* Supersede the legacy ID-specific blue !important rules in index.css. */
.dir-hero--detail #view_website_pill_button,
#scrollTopBanner .banner-cta {
  --btn-blue: #146b58;
  --btn-blue-light: #105745;
  background-color: #146b58 !important;
  border-color: #146b58 !important;
}
.dir-hero--detail #view_website_pill_button:hover,
.dir-hero--detail #view_website_pill_button:focus,
.dir-hero--detail #view_website_pill_button:active,
#scrollTopBanner .banner-cta:hover,
#scrollTopBanner .banner-cta:focus,
#scrollTopBanner .banner-cta:active {
  background-color: #105745 !important;
  border-color: #105745 !important;
}
#scrollTopBanner .banner-cta.rounded-pill { border-radius: 7px !important; }

/* Compact profile introduction: identity, contact actions, facts, owner access.
   Section navigation remains outside this summary in its original location. */
#details .detail-neo-layout {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: #fff;
  box-shadow: none;
}
#details .profile-summary-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  align-items: start;
  padding: 0;
  background: transparent;
}
#details .profile-summary-identity { min-width: 0; }
#details .detail-neo-title { overflow-wrap: anywhere; }
#details .detail-neo-meta { margin-top: .5rem; color: #61726b; }
#details .detail-neo-meta a { color: #61726b; }
#details .detail-neo-meta a:hover { color: #146b58; }
#details .detail-neo-rail {
  padding: .25rem 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
#details .detail-neo-rating { flex-wrap: wrap; gap: .45rem; }
#details .detail-neo-rating-score { font-size: 1.7rem; }
#details .detail-neo-rating-count { font-size: .85rem; }
#details .detail-neo-summary {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  row-gap: .45rem;
}
#details .detail-neo-summary-title { flex-basis: 100%; }
#details .detail-neo-summary-item { font-size: .88rem; }
#details .detail-neo-actions {
  flex-direction: row;
  flex-wrap: wrap;
  gap: .65rem;
}
#details .detail-neo-actions #view_website_pill_button,
#details .detail-neo-actions #call_now_pill_button { width: auto; }
#details .profile-summary-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: start;
  gap: 1.25rem 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid #e2e9e4;
}
#details .profile-summary-facts > div { min-width: 0; }
#details .detail-neo-section-label { margin: 0 0 .65rem; }
#details .detail-neo-partners { margin: 0 0 .65rem; }
#details .detail-neo-registration { margin-top: .65rem; flex-wrap: wrap; }
#details .detail-neo-registration .text-primary { color: #39765c !important; }
#details .detail-neo-owner-wrap { margin: 0; }
#details .owner-tool-panel {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  padding: .8rem 1rem;
  border-radius: 8px;
}
#details #openPerformanceReportDrawer { width: auto; }
#details .card-body > .quicklinks-container {
  margin-top: 1.15rem;
  padding-top: .75rem;
  border-top: 1px solid #e2e9e4;
}
@media (max-width: 576px) {
  #details .profile-summary-header { grid-template-columns: 1fr; gap: .75rem; }
  #details .detail-neo-rail { padding: 0; }
  #details .detail-neo-actions > a { flex: 1 1 145px; }
  #details .owner-tool-panel { align-items: stretch; }
  #details #openPerformanceReportDrawer { width: 100%; }
}

/* Business Details uses the same action shape and spacing as the summary. */
.dir-hero--detail .business-detail-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .7rem 1rem;
  border-radius: 7px !important;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: none;
}
