/* ==========================================================================
   Directory category + business pages (/businesses/<slug>) and the
   "Browse by category" tiles on /businesses. Shared by every town; colors come
   only from the town palette tokens (via the --hv-* aliases in home.css).
   ========================================================================== */

html:root body.hv.directory-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

html:root body.hv.directory-page .directory-main .section {
  padding: 56px 0;
}

/* ---------- Banner (town photo with palette tint, or a paid cover photo) ---------- */
html:root body.hv.directory-page .dir-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--hv-primary-strong);
  color: #fff;
}

html:root body.hv.directory-page .dir-banner-media,
html:root body.hv.directory-page .dir-banner-overlay {
  position: absolute;
  inset: 0;
}

html:root body.hv.directory-page .dir-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

html:root body.hv.directory-page .dir-banner-overlay {
  background:
    linear-gradient(105deg, rgba(var(--hv-primary-rgb), 0.86) 0%, rgba(var(--hv-primary-rgb), 0.56) 45%, rgba(var(--hv-accent-rgb), 0.5) 100%),
    linear-gradient(0deg, rgba(10, 16, 24, 0.36) 0%, rgba(10, 16, 24, 0.06) 60%);
}

html:root body.hv.directory-page .dir-banner.has-cover .dir-banner-overlay {
  background:
    linear-gradient(0deg, rgba(10, 16, 24, 0.5) 0%, rgba(10, 16, 24, 0.08) 55%, rgba(10, 16, 24, 0.32) 100%);
}

html:root body.hv.directory-page .dir-banner-inner {
  position: relative;
  z-index: 1;
  padding: 24px 0 52px;
}

html:root body.hv.directory-page .dir-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
  font-weight: 600;
}

html:root body.hv.directory-page .dir-breadcrumb li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

html:root body.hv.directory-page .dir-breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.55);
}

html:root body.hv.directory-page .dir-breadcrumb a {
  color: #fff;
  text-decoration: none;
}

html:root body.hv.directory-page .dir-breadcrumb a:hover {
  text-decoration: underline;
}

html:root body.hv.directory-page .dir-breadcrumb [aria-current] {
  overflow: hidden;
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.86);
  text-overflow: ellipsis;
  white-space: nowrap;
}

html:root body.hv.directory-page .dir-banner-copy {
  display: grid;
  max-width: 760px;
  justify-items: start;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.2);
}

html:root body.hv.directory-page .dir-banner-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: none;
  backdrop-filter: blur(4px);
}

html:root body.hv.directory-page .dir-banner h1 {
  margin: 0;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

html:root body.hv.directory-page .dir-intro {
  max-width: 62ch;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.1rem;
  line-height: 1.55;
}

html:root body.hv.directory-page .dir-count {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 20px 0 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--hv-text);
  font-size: 0.92rem;
  font-weight: 600;
  text-shadow: none;
  box-shadow: 0 6px 18px rgba(10, 16, 24, 0.14);
}

html:root body.hv.directory-page .dir-count strong {
  color: var(--hv-primary-strong);
  font-size: 1.05rem;
  font-weight: 800;
}

html:root body.hv.directory-page .dir-count-sep {
  color: var(--hv-muted);
}

/* Business pages: the banner is a backdrop; the identity card overlaps it. */
html:root body.hv.directory-page .dir-banner-business .dir-banner-inner {
  min-height: 250px;
  padding-bottom: 100px;
}

html:root body.hv.directory-page .dir-banner-business.has-cover .dir-banner-inner {
  min-height: 330px;
}

html:root body.hv.directory-page .dir-banner-business.is-basic .dir-banner-inner {
  min-height: 214px;
}

/* ---------- Toolbar: search + filter chips ---------- */
html:root body.hv.directory-page .dir-toolbar {
  position: relative;
  z-index: 2;
  margin-top: -30px;
}

html:root body.hv.directory-page .dir-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding: 16px 18px;
  border: 1px solid var(--hv-line);
  border-radius: calc(var(--hv-radius) + 2px);
  background: #fff;
  box-shadow: var(--hv-shadow);
}

html:root body.hv.directory-page .dir-search-field {
  position: relative;
  display: block;
  flex: 1 1 300px;
  max-width: 440px;
}

html:root body.hv.directory-page .dir-search-field svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--hv-muted);
  stroke-linecap: round;
  stroke-width: 2.2;
  pointer-events: none;
}

html:root body.hv.directory-page .dir-search-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px 0 44px;
  border: 1.5px solid var(--hv-line);
  border-radius: 999px;
  background: var(--hv-soft);
  color: var(--hv-ink);
  font: inherit;
  font-size: 0.98rem;
}

html:root body.hv.directory-page .dir-search-field input:focus {
  border-color: var(--hv-primary);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(var(--hv-primary-rgb), 0.14);
}

html:root body.hv.directory-page .dir-chips {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
}

html:root body.hv.directory-page .dir-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 8px 0 15px;
  border: 1.5px solid var(--hv-line);
  border-radius: 999px;
  background: #fff;
  color: var(--hv-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

html:root body.hv.directory-page .dir-chip span {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  place-items: center;
  border-radius: 999px;
  background: var(--hv-soft);
  color: var(--hv-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

html:root body.hv.directory-page .dir-chip:hover {
  border-color: var(--hv-primary);
  color: var(--hv-primary-strong);
}

html:root body.hv.directory-page .dir-chip.is-active {
  border-color: var(--hv-primary);
  background: var(--hv-primary);
  color: var(--hv-on-primary);
  box-shadow: 0 4px 12px rgba(var(--hv-primary-rgb), 0.24);
}

html:root body.hv.directory-page .dir-chip.is-active span {
  background: rgba(255, 255, 255, 0.24);
  color: var(--hv-on-primary);
}

/* ---------- Results ---------- */
html:root body.hv.directory-page .directory-main .dir-results {
  padding-top: 40px;
}

html:root body.hv.directory-page .dir-group + .dir-group {
  margin-top: 44px;
}

html:root body.hv.directory-page .dir-group[hidden] {
  display: none;
}

html:root body.hv.directory-page .dir-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 18px;
  margin-bottom: 18px;
}

html:root body.hv.directory-page .dir-group-head p {
  margin: 0;
  color: var(--hv-muted);
  font-size: 0.94rem;
}

html:root body.hv.directory-page .dir-group-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--hv-ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

html:root body.hv.directory-page .dir-group-title::before {
  content: "";
  width: 6px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--hv-primary), var(--hv-accent));
}

html:root body.hv.directory-page .dir-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--hv-gap);
}

html:root body.hv.directory-page .dir-grid-featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html:root body.hv.directory-page .dir-grid-related {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- Business cards ---------- */
html:root body.hv.directory-page .dir-card {
  min-width: 0;
}

html:root body.hv.directory-page .dir-card[hidden] {
  display: none;
}

html:root body.hv.directory-page .dir-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--hv-line);
  border-radius: var(--hv-radius);
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--hv-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

html:root body.hv.directory-page .dir-card-link:hover {
  border-color: rgba(var(--hv-primary-rgb), 0.35);
  box-shadow: var(--hv-shadow-hover);
  transform: translateY(-3px);
}

html:root body.hv.directory-page .dir-card-link:focus-visible {
  outline: 3px solid var(--hv-accent);
  outline-offset: 3px;
}

html:root body.hv.directory-page .dir-card.is-featured .dir-card-link {
  border-color: rgba(var(--hv-primary-rgb), 0.3);
}

html:root body.hv.directory-page .dir-card-media {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--hv-primary-tint), var(--hv-accent-tint));
}

html:root body.hv.directory-page .dir-card.is-wide .dir-card-media {
  aspect-ratio: 2 / 1;
}

html:root body.hv.directory-page .dir-card-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

html:root body.hv.directory-page .dir-card-link:hover .dir-card-cover {
  transform: scale(1.04);
}

html:root body.hv.directory-page .dir-card-logo {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: grid;
  width: 58px;
  height: 58px;
  padding: 6px;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(10, 16, 24, 0.2);
}

html:root body.hv.directory-page .dir-card-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

html:root body.hv.directory-page .dir-card-logo-stage {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 18px 26px;
  place-items: center;
}

html:root body.hv.directory-page .dir-card-logo-stage img {
  max-width: min(78%, 240px);
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(16, 24, 40, 0.1));
}

html:root body.hv.directory-page .dir-card-media.has-fallback {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(var(--hv-accent-rgb), 0.85) 0%, rgba(var(--hv-accent-rgb), 0) 60%),
    linear-gradient(135deg, var(--hv-primary), var(--hv-primary-strong));
}

html:root body.hv.directory-page .dir-fallback-logo {
  display: grid;
  place-items: center;
  color: var(--hv-primary-strong);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}

html:root body.hv.directory-page .dir-card-media .dir-fallback-logo {
  width: 88px;
  height: 88px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px);
}

html:root body.hv.directory-page .dir-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff;
  color: var(--hv-primary-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(10, 16, 24, 0.16);
}

html:root body.hv.directory-page .dir-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px 18px 18px;
}

html:root body.hv.directory-page .dir-card-chip {
  display: inline-flex;
  max-width: 100%;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--hv-primary-tint);
  color: var(--hv-primary-strong);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.4;
}

html:root body.hv.directory-page .dir-card-name {
  color: var(--hv-ink);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

html:root body.hv.directory-page .dir-card.is-wide .dir-card-name {
  font-size: 1.22rem;
}

html:root body.hv.directory-page .dir-card-link:hover .dir-card-name {
  color: var(--hv-primary-strong);
}

html:root body.hv.directory-page .dir-card-location {
  color: var(--hv-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

html:root body.hv.directory-page .dir-card-summary {
  display: -webkit-box;
  overflow: hidden;
  color: var(--hv-text);
  font-size: 0.93rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

html:root body.hv.directory-page .dir-card-foot {
  margin-top: auto;
  padding-top: 8px;
  color: var(--hv-primary-strong);
  font-size: 0.88rem;
  font-weight: 800;
}

/* "Your listing here" card for thin categories. */
html:root body.hv.directory-page .dir-card-invite .dir-card-link {
  border: 2px dashed rgba(var(--hv-primary-rgb), 0.35);
  background: linear-gradient(160deg, var(--hv-primary-tint), #fff 60%);
  box-shadow: none;
}

html:root body.hv.directory-page .dir-card-media.has-invite {
  background: transparent;
}

html:root body.hv.directory-page .dir-invite-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--hv-primary);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
  box-shadow: var(--hv-shadow);
}

/* ---------- Empty search ---------- */
html:root body.hv.directory-page .dir-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 48px 24px;
  border: 2px dashed var(--hv-line);
  border-radius: var(--hv-radius);
  background: var(--hv-soft);
  color: var(--hv-text);
  text-align: center;
}

html:root body.hv.directory-page .dir-empty[hidden] {
  display: none;
}

html:root body.hv.directory-page .dir-empty-icon {
  font-size: 2rem;
}

html:root body.hv.directory-page .dir-empty strong {
  color: var(--hv-ink);
  font-size: 1.1rem;
}

html:root body.hv.directory-page .dir-empty a,
html:root body.hv.directory-page .dir-empty-clear {
  padding: 0;
  border: 0;
  background: none;
  color: var(--hv-primary-strong);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Other-category pills ---------- */
html:root body.hv.directory-page .dir-category-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--hv-line);
}

html:root body.hv.directory-page .dir-category-pills-label {
  margin-right: 4px;
  color: var(--hv-muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html:root body.hv.directory-page .dir-category-pills a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--hv-line);
  border-radius: 999px;
  background: #fff;
  color: var(--hv-ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

html:root body.hv.directory-page .dir-category-pills a:hover {
  border-color: var(--hv-primary);
  background: var(--hv-primary-tint);
  color: var(--hv-primary-strong);
}

html:root body.hv.directory-page .dir-category-pills small {
  color: var(--hv-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

html:root body.hv.directory-page .dir-related .dir-category-pills {
  justify-content: center;
}

/* ---------- List-your-business CTA ---------- */
html:root body.hv.directory-page .dir-cta-section {
  padding-top: 0;
}

html:root body.hv.directory-page .dir-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: 34px 38px;
  border-radius: calc(var(--hv-radius) + 6px);
  background: linear-gradient(120deg, var(--hv-primary-tint), var(--hv-accent-tint));
  border: 1px solid var(--hv-line);
}

html:root body.hv.directory-page .dir-cta h2 {
  margin: 0 0 8px;
  color: var(--hv-ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
}

html:root body.hv.directory-page .dir-cta p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: var(--hv-text);
  line-height: 1.55;
}

html:root body.hv.directory-page .dir-cta-actions {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: 12px;
}

/* ---------- Business page: identity card overlapping the banner ---------- */
html:root body.hv.directory-page .dir-identity {
  position: relative;
  z-index: 2;
  margin-top: -72px;
}

html:root body.hv.directory-page .dir-identity-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px 28px;
  padding: 24px 28px;
  border: 1px solid var(--hv-line);
  border-radius: calc(var(--hv-radius) + 4px);
  background: #fff;
  box-shadow: var(--hv-shadow-hover);
}

html:root body.hv.directory-page .dir-business-logo {
  display: grid;
  width: 148px;
  height: 148px;
  margin-top: -76px;
  padding: 14px;
  place-items: center;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(10, 16, 24, 0.18);
}

html:root body.hv.directory-page .dir-business-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

html:root body.hv.directory-page .dir-business-logo.has-fallback {
  padding: 0;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(var(--hv-accent-rgb), 0.85) 0%, rgba(var(--hv-accent-rgb), 0) 60%),
    linear-gradient(135deg, var(--hv-primary), var(--hv-primary-strong));
}

html:root body.hv.directory-page .dir-business-logo .dir-fallback-logo {
  color: #fff;
  font-size: 3rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

html:root body.hv.directory-page .dir-identity-copy {
  display: grid;
  justify-items: start;
  gap: 8px;
  min-width: 0;
}

html:root body.hv.directory-page .dir-identity-copy h1 {
  margin: 0;
  color: var(--hv-ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

html:root body.hv.directory-page .dir-badge-inline {
  position: static;
  background: var(--hv-primary);
  color: var(--hv-on-primary);
  box-shadow: 0 4px 12px rgba(var(--hv-primary-rgb), 0.28);
}

html:root body.hv.directory-page .dir-business-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
}

html:root body.hv.directory-page .dir-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--hv-primary-tint);
  color: var(--hv-primary-strong);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

html:root body.hv.directory-page a.dir-pill:hover {
  background: var(--hv-primary-soft);
}

html:root body.hv.directory-page .dir-pill-soft {
  background: var(--hv-accent-tint);
  color: var(--hv-accent-strong);
}

html:root body.hv.directory-page .dir-business-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--hv-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

html:root body.hv.directory-page .dir-business-location svg,
html:root body.hv.directory-page .dir-action svg,
html:root body.hv.directory-page .dir-map-pin svg {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

html:root body.hv.directory-page .dir-business-location svg {
  width: 16px;
  height: 16px;
}

html:root body.hv.directory-page .dir-business-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 420px;
}

html:root body.hv.directory-page .dir-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  white-space: nowrap;
}

html:root body.hv.directory-page .dir-action svg {
  width: 18px;
  height: 18px;
}

/* ---------- Business page body ---------- */
html:root body.hv.directory-page .directory-main .dir-business-body {
  padding-top: 40px;
}

html:root body.hv.directory-page .dir-business-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  align-items: start;
  gap: 36px 44px;
}

html:root body.hv.directory-page .dir-business-main {
  display: grid;
  gap: 40px;
  min-width: 0;
}

html:root body.hv.directory-page .dir-about h2,
html:root body.hv.directory-page .dir-gallery h2 {
  margin: 0 0 14px;
  color: var(--hv-ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

html:root body.hv.directory-page .dir-business-description {
  max-width: 68ch;
  color: var(--hv-text);
  font-size: 1.06rem;
  line-height: 1.75;
}

html:root body.hv.directory-page .dir-business-description p {
  margin: 0 0 1.05em;
}

html:root body.hv.directory-page .dir-business-description p:first-child {
  color: var(--hv-ink);
  font-size: 1.16rem;
  line-height: 1.65;
}

html:root body.hv.directory-page .dir-business-description p:last-child {
  margin-bottom: 0;
}

html:root body.hv.directory-page .dir-business-description ul,
html:root body.hv.directory-page .dir-business-description ol {
  margin: 0 0 1.05em;
  padding-left: 1.3em;
}

html:root body.hv.directory-page .dir-business-description li {
  margin: 0.3em 0;
}

html:root body.hv.directory-page .dir-business-description li::marker {
  color: var(--hv-primary);
}

html:root body.hv.directory-page .dir-business-description a {
  color: var(--hv-primary-strong);
  font-weight: 650;
}

/* Gallery */
html:root body.hv.directory-page .dir-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

html:root body.hv.directory-page .dir-gallery-grid[data-count="1"] {
  grid-template-columns: 1fr;
}

html:root body.hv.directory-page .dir-gallery-grid[data-count="2"],
html:root body.hv.directory-page .dir-gallery-grid[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html:root body.hv.directory-page .dir-gallery-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: var(--hv-soft);
}

html:root body.hv.directory-page .dir-gallery-grid[data-count="1"] .dir-gallery-item {
  aspect-ratio: 16 / 9;
}

html:root body.hv.directory-page .dir-gallery-grid[data-count="3"] .dir-gallery-item:first-child,
html:root body.hv.directory-page .dir-gallery-grid[data-count="5"] .dir-gallery-item:first-child,
html:root body.hv.directory-page .dir-gallery-grid[data-count="7"] .dir-gallery-item:first-child {
  grid-row: span 2;
  grid-column: span 2;
  aspect-ratio: auto;
}

html:root body.hv.directory-page .dir-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

html:root body.hv.directory-page .dir-gallery-item:hover img {
  transform: scale(1.04);
}

/* Sidebar */
html:root body.hv.directory-page .dir-business-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

html:root body.hv.directory-page .dir-side-card {
  padding: 24px;
  border: 1px solid var(--hv-line);
  border-radius: var(--hv-radius);
  background: #fff;
  box-shadow: var(--hv-shadow);
}

html:root body.hv.directory-page .dir-side-card h2 {
  margin: 0 0 16px;
  color: var(--hv-ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

html:root body.hv.directory-page .dir-map-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--hv-line);
  border-radius: 14px;
  background:
    repeating-linear-gradient(0deg, rgba(var(--hv-accent-rgb), 0.07) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(var(--hv-accent-rgb), 0.07) 0 1px, transparent 1px 22px),
    linear-gradient(135deg, var(--hv-accent-tint), var(--hv-primary-tint));
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

html:root body.hv.directory-page a.dir-map-card:hover {
  border-color: var(--hv-primary);
  box-shadow: 0 6px 18px rgba(var(--hv-primary-rgb), 0.14);
}

html:root body.hv.directory-page .dir-map-pin {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--hv-primary);
  color: var(--hv-on-primary);
  box-shadow: 0 6px 14px rgba(var(--hv-primary-rgb), 0.3);
}

html:root body.hv.directory-page .dir-map-pin svg {
  width: 22px;
  height: 22px;
}

html:root body.hv.directory-page .dir-map-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}

html:root body.hv.directory-page .dir-map-copy strong {
  color: var(--hv-ink);
  font-size: 0.98rem;
  line-height: 1.35;
}

html:root body.hv.directory-page .dir-map-copy small {
  color: var(--hv-primary-strong);
  font-size: 0.84rem;
  font-weight: 700;
}

html:root body.hv.directory-page .dir-hours-block {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hv-line);
}

html:root body.hv.directory-page .dir-manage-note {
  margin: 0;
  color: var(--hv-muted);
  font-size: 0.88rem;
  text-align: center;
}

html:root body.hv.directory-page .dir-manage-note a {
  color: var(--hv-primary-strong);
  font-weight: 700;
}

@media (min-width: 961px) {
  html:root body.hv.directory-page .dir-business-side {
    position: sticky;
    top: 104px;
  }
}

html:root body.hv.directory-page .dir-details {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

html:root body.hv.directory-page .dir-details li {
  display: grid;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}

html:root body.hv.directory-page .dir-detail-label {
  color: var(--hv-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html:root body.hv.directory-page .dir-details a {
  color: var(--hv-primary-strong);
  font-weight: 650;
  text-decoration: none;
}

html:root body.hv.directory-page .dir-details a:hover {
  text-decoration: underline;
}

html:root body.hv.directory-page .dir-details a small {
  display: block;
  color: var(--hv-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

html:root body.hv.directory-page .dir-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

html:root body.hv.directory-page .dir-details .dir-social {
  padding: 5px 12px;
  border: 1.5px solid var(--hv-line);
  border-radius: 999px;
  color: var(--hv-ink);
  font-size: 0.86rem;
}

html:root body.hv.directory-page .dir-details .dir-social:hover {
  border-color: var(--hv-primary);
  color: var(--hv-primary-strong);
  text-decoration: none;
}

html:root body.hv.directory-page .dir-hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

html:root body.hv.directory-page .dir-hours th,
html:root body.hv.directory-page .dir-hours td {
  padding: 7px 0;
  border-bottom: 1px solid var(--hv-line);
  text-align: left;
}

html:root body.hv.directory-page .dir-hours tr:last-child th,
html:root body.hv.directory-page .dir-hours tr:last-child td {
  border-bottom: 0;
}

html:root body.hv.directory-page .dir-hours th {
  color: var(--hv-ink);
  font-weight: 650;
}

html:root body.hv.directory-page .dir-hours td {
  color: var(--hv-text);
  text-align: right;
}

html:root body.hv.directory-page .dir-hours tr.is-today th,
html:root body.hv.directory-page .dir-hours tr.is-today td {
  color: var(--hv-primary-strong);
  font-weight: 800;
}


html:root body.hv.directory-page .dir-claim-card {
  border-color: rgba(var(--hv-primary-rgb), 0.3);
  background: linear-gradient(150deg, var(--hv-primary-tint), #fff 70%);
}

html:root body.hv.directory-page .dir-claim-card p {
  margin: 0 0 16px;
  color: var(--hv-text);
  line-height: 1.55;
}

html:root body.hv.directory-page .dir-claim-card .button {
  width: 100%;
}

/* ---------- Free listing: upgrade band ---------- */
html:root body.hv.directory-page .dir-upgrade {
  padding: 0 0 56px;
}

html:root body.hv.directory-page .dir-upgrade-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 40px;
  padding: 34px 40px;
  border-radius: calc(var(--hv-radius) + 6px);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(var(--hv-accent-rgb), 0.75) 0%, rgba(var(--hv-accent-rgb), 0) 60%),
    linear-gradient(120deg, var(--hv-primary), var(--hv-primary-strong));
  color: #fff;
  box-shadow: 0 18px 40px rgba(var(--hv-primary-rgb), 0.25);
}

html:root body.hv.directory-page .dir-upgrade-card .eyebrow {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.9);
}

html:root body.hv.directory-page .dir-upgrade-card h2 {
  margin: 0 0 8px;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
}

html:root body.hv.directory-page .dir-upgrade-copy > p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.55;
}

html:root body.hv.directory-page .dir-upgrade-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

html:root body.hv.directory-page .dir-upgrade-list li {
  position: relative;
  padding-left: 26px;
  color: #fff;
  font-weight: 600;
  line-height: 1.4;
}

html:root body.hv.directory-page .dir-upgrade-list li::before {
  content: "✓";
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  font-size: 0.72rem;
  font-weight: 800;
}

html:root body.hv.directory-page .dir-upgrade-actions {
  display: grid;
  gap: 10px;
  min-width: 220px;
}

html:root body.hv.directory-page .dir-upgrade-actions .button-primary {
  border-color: #fff;
  background: #fff;
  color: var(--hv-primary-strong);
  box-shadow: 0 8px 20px rgba(10, 16, 24, 0.18);
}

html:root body.hv.directory-page .dir-upgrade-actions .button-outline {
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #fff;
}

html:root body.hv.directory-page .dir-upgrade-actions .button-outline:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ---------- Paid listing: more from around town ---------- */
html:root body.hv.directory-page .dir-around {
  border-top: 1px solid var(--hv-line);
  background: var(--hv-soft);
}

html:root body.hv.directory-page .dir-town-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

html:root body.hv.directory-page .dir-town-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--hv-line);
  border-radius: var(--hv-radius-sm);
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--hv-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

html:root body.hv.directory-page .dir-town-card:hover {
  box-shadow: var(--hv-shadow-hover);
  transform: translateY(-2px);
}

html:root body.hv.directory-page .dir-town-date {
  display: grid;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  place-content: center;
  border-radius: 14px;
  background: var(--hv-primary-tint);
  color: var(--hv-primary-strong);
  text-align: center;
}

html:root body.hv.directory-page .dir-town-date.is-news {
  background: var(--hv-accent-tint);
  color: var(--hv-accent-strong);
}

html:root body.hv.directory-page .dir-town-date small {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html:root body.hv.directory-page .dir-town-date strong {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.05;
}

html:root body.hv.directory-page .dir-town-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

html:root body.hv.directory-page .dir-town-kind {
  color: var(--hv-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html:root body.hv.directory-page .dir-town-copy strong {
  color: var(--hv-ink);
  font-size: 1rem;
  line-height: 1.3;
}

html:root body.hv.directory-page .dir-town-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--hv-muted);
  font-size: 0.86rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

html:root body.hv.directory-page .dir-pills-band {
  padding: 0 0 56px;
  background: var(--hv-soft);
}

html:root body.hv.directory-page .dir-pills-band .dir-category-pills {
  margin-top: 0;
}

html:root body.hv.directory-page .dir-related {
  border-top: 1px solid var(--hv-line);
  background: var(--hv-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  html:root body.hv.directory-page .dir-grid-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html:root body.hv.directory-page .dir-identity-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  html:root body.hv.directory-page .dir-business-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 960px) {
  html:root body.hv.directory-page .dir-business-grid {
    grid-template-columns: 1fr;
  }

  html:root body.hv.directory-page .dir-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html:root body.hv.directory-page .dir-town-grid {
    grid-template-columns: 1fr;
  }

  html:root body.hv.directory-page .dir-upgrade-card {
    grid-template-columns: 1fr;
  }

  html:root body.hv.directory-page .dir-upgrade-actions {
    grid-template-columns: repeat(2, minmax(0, max-content));
  }

  html:root body.hv.directory-page .dir-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  html:root body.hv.directory-page .directory-main .section {
    padding: 40px 0;
  }

  html:root body.hv.directory-page .dir-banner-inner {
    padding: 16px 0 50px;
  }

  html:root body.hv.directory-page .dir-breadcrumb ol {
    margin-bottom: 18px;
    font-size: 0.82rem;
  }

  html:root body.hv.directory-page .dir-breadcrumb [aria-current] {
    max-width: 18ch;
  }

  html:root body.hv.directory-page .dir-banner h1 {
    font-size: 2rem;
  }

  html:root body.hv.directory-page .dir-intro {
    font-size: 1rem;
  }

  html:root body.hv.directory-page .dir-count {
    font-size: 0.86rem;
  }

  html:root body.hv.directory-page .dir-banner-business .dir-banner-inner {
    min-height: 186px;
    padding-bottom: 70px;
  }

  /* The H1 below already names the business; keep the crumb trail on one line above the logo. */
  html:root body.hv.directory-page .dir-banner-business .dir-breadcrumb [aria-current] {
    display: none;
  }

  html:root body.hv.directory-page .dir-banner-business .dir-breadcrumb ol {
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
  }

  html:root body.hv.directory-page .dir-banner-business.has-cover .dir-banner-inner {
    min-height: 220px;
  }

  html:root body.hv.directory-page .dir-banner-business.is-basic .dir-banner-inner {
    min-height: 186px;
  }

  html:root body.hv.directory-page .dir-filter {
    padding: 14px;
  }

  html:root body.hv.directory-page .dir-search-field {
    flex-basis: 100%;
    max-width: none;
  }

  html:root body.hv.directory-page .dir-chips {
    flex-wrap: nowrap;
    margin: 0 -14px;
    padding: 0 14px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  html:root body.hv.directory-page .dir-chip {
    flex: 0 0 auto;
  }

  html:root body.hv.directory-page .dir-grid,
  html:root body.hv.directory-page .dir-grid-featured,
  html:root body.hv.directory-page .dir-grid-related {
    grid-template-columns: 1fr;
  }

  html:root body.hv.directory-page .dir-card.is-wide .dir-card-media {
    aspect-ratio: 16 / 9;
  }

  html:root body.hv.directory-page .dir-identity {
    margin-top: -56px;
  }

  html:root body.hv.directory-page .dir-identity-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  html:root body.hv.directory-page .dir-business-logo {
    width: 104px;
    height: 104px;
    margin-top: -64px;
    padding: 10px;
    border-radius: 22px;
  }

  html:root body.hv.directory-page .dir-business-logo .dir-fallback-logo {
    font-size: 2.2rem;
  }

  html:root body.hv.directory-page .dir-identity-copy h1 {
    font-size: 1.75rem;
  }

  html:root body.hv.directory-page .dir-business-actions .dir-action {
    flex: 1 1 calc(50% - 5px);
    padding: 0 12px;
  }

  html:root body.hv.directory-page .dir-business-actions .dir-action:first-child {
    flex-basis: 100%;
  }

  html:root body.hv.directory-page .dir-business-description {
    font-size: 1rem;
  }

  html:root body.hv.directory-page .dir-business-description p:first-child {
    font-size: 1.08rem;
  }

  html:root body.hv.directory-page .dir-gallery-grid,
  html:root body.hv.directory-page .dir-gallery-grid[data-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html:root body.hv.directory-page .dir-gallery-grid[data-count="3"] .dir-gallery-item:first-child,
  html:root body.hv.directory-page .dir-gallery-grid[data-count="5"] .dir-gallery-item:first-child,
  html:root body.hv.directory-page .dir-gallery-grid[data-count="7"] .dir-gallery-item:first-child {
    grid-row: auto;
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  html:root body.hv.directory-page .dir-side-card {
    padding: 20px;
  }

  html:root body.hv.directory-page .dir-upgrade-card {
    padding: 26px 20px;
  }

  html:root body.hv.directory-page .dir-upgrade-list {
    grid-template-columns: 1fr;
  }

  html:root body.hv.directory-page .dir-upgrade-actions {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  html:root body.hv.directory-page .dir-cta {
    padding: 26px 22px;
  }

  html:root body.hv.directory-page .dir-cta-actions,
  html:root body.hv.directory-page .dir-cta-actions .button {
    width: 100%;
  }
}

/* ---------- /businesses: Browse by category tiles ---------- */
.dir-cat-band {
  padding: 48px 0 8px;
}

.dir-cat-band-head {
  max-width: 680px;
  margin: 0 auto 24px;
  text-align: center;
}

.dir-cat-band-head h2 {
  margin: 0 0 6px;
  color: var(--buzz-primary-strong, #c2410c);
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.dir-cat-band-head p {
  margin: 0;
  color: #5d6b7a;
}

.dir-cat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.dir-cat-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 14px 18px;
  border: 1px solid #e7ebf0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 22px rgba(16, 24, 40, 0.06);
  color: #17212b;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dir-cat-tile:hover,
.dir-cat-tile:focus-visible {
  border-color: var(--buzz-primary, #ea580c);
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.06), 0 16px 34px rgba(16, 24, 40, 0.1);
  transform: translateY(-2px);
}

.dir-cat-tile-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: var(--buzz-primary-tint, #fef5f0);
  font-size: 1.4rem;
}

.dir-cat-tile-copy {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.dir-cat-tile-copy strong {
  font-size: 1rem;
  font-weight: 800;
}

.dir-cat-tile-copy small {
  color: #5d6b7a;
  font-size: 0.84rem;
}

.dir-cat-tile-arrow {
  color: var(--buzz-primary-strong, #c2410c);
  font-weight: 800;
}

@media (max-width: 640px) {
  .dir-cat-band {
    padding-top: 32px;
  }

  .dir-cat-tiles {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .dir-cat-tile {
    gap: 10px;
    min-height: 64px;
    padding: 12px;
  }

  .dir-cat-tile-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 1.1rem;
  }

  .dir-cat-tile-copy strong {
    font-size: 0.9rem;
  }

  .dir-cat-tile-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:root body.hv.directory-page .dir-card-link,
  .dir-cat-tile {
    transition: none;
  }

  html:root body.hv.directory-page .dir-card-link:hover,
  .dir-cat-tile:hover {
    transform: none;
  }
}

/* ---------- /businesses list + map: links to each listing's page ---------- */
.business-list-card.is-page-link {
  cursor: pointer;
}

.business-list-name-link {
  color: inherit;
  text-decoration: none;
}

.business-list-name-link:hover,
.business-list-name-link:focus-visible {
  color: var(--buzz-primary-strong, #c2410c);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.business-list-details-link,
.mapbox-popup-details-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  color: var(--buzz-primary-strong, #c2410c);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.business-list-details-link:hover,
.mapbox-popup-details-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
