/* Directory, city, trade and city×trade lists. */

.page-hero-mini {
  padding: calc(var(--header) + 1.75rem) 0 1.75rem;
}

.page-hero-mini h1,
.directory-hero h1 {
  max-width: 18ch;
  margin-top: 0.65rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.directory-hero .eyebrow,
.page-hero-mini .eyebrow {
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.directory-hero p,
.page-hero-mini p {
  max-width: 40rem;
  margin-top: 0.9rem;
  color: var(--muted);
}

.directory-breadcrumb {
  margin-bottom: 0.8rem;
}

.directory-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.directory-breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.directory-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.7rem;
  color: var(--line);
}

.directory-filter-form {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.directory-filter-kicker {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.directory-filter-hint {
  margin-top: 0.35rem;
  color: var(--muted);
}

.directory-filter-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.directory-filter-grid .field span,
.directory-filter-grid .field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.directory-filter-intro {
  display: grid;
  gap: 0.3rem;
}

.directory-filter-intro .directory-filter-hint {
  margin-top: 0;
}

.directory-filter-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
}

.directory-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
}

.inner-section {
  padding: 0 0 clamp(3.5rem, 8vw, 6rem);
}

.inner-section > .wrap > h2:not(.directory-related-title) {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.inner-section > .wrap > h2:not(.directory-related-title) + p,
.inner-section > .wrap > h2:not(.directory-related-title) + .entry-steps,
.inner-section > .wrap > h2:not(.directory-related-title) + .faq-list {
  margin-top: 0.85rem;
}

.inner-section > .wrap > h2:not(.directory-related-title) + p {
  max-width: 42rem;
  color: var(--muted);
}

.inner-section > .wrap > p + .hub-grid,
.inner-section > .wrap > h2:not(.directory-related-title) + .hub-grid {
  margin-top: 1.25rem;
}

.inner-section > .wrap > .hub-grid + h2 {
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.entry-steps {
  display: grid;
  gap: 0.75rem;
}

.entry-steps li {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  padding: 1.15rem 1.15rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
}

.entry-steps .step-no {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--green);
}

.entry-steps h3 {
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.entry-steps li > p:last-child {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.hub-prose {
  max-width: 42rem;
  margin-bottom: 1.6rem;
}

.hub-prose p,
.listing-local p {
  color: var(--muted);
}

.listing-local {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 0.85rem;
  row-gap: 0;
  max-width: none;
  margin-top: 1.75rem;
  margin-bottom: 0.35rem;
}

.listing-local h2 {
  margin: 0;
  padding: 1.05rem 1.15rem 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-top: 3px solid var(--green);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.listing-local h2:nth-of-type(2) {
  margin-top: 0.75rem;
}

.listing-local p {
  margin: 0;
  padding: 0.5rem 1.15rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.hub-prose a,
.nearby-list a,
.biz-email a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.directory-related-title {
  margin: 1.8rem 0 0.55rem;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.listing-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-bottom: 0.8rem;
}

.listing-toolbar h2 {
  font-size: 1.15rem;
  font-weight: 500;
}

.listing-count,
.filter-count,
.listing-empty-filter {
  color: var(--muted);
  font-size: 0.92rem;
}

.listing-grid {
  display: grid;
  gap: 0.85rem;
}

.listing-card,
.hub-card,
.listing-empty,
.biz-aside {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1rem 1.05rem 1.1rem;
}

.listing-card h3,
.hub-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.listing-card h3 a:hover,
.hub-card:hover h3 {
  color: var(--green);
}

.listing-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem 0.8rem;
}

.listing-tags,
.biz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.listing-tags li,
.biz-tags li {
  padding: 0.15rem 0.45rem;
  background: var(--tile);
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.listing-tags a,
.biz-tags a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.qual-gloss {
  font-weight: 400;
  letter-spacing: 0;
}

.directory-source {
  margin-top: 0.75rem;
  max-width: 40rem;
}

.directory-source a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.directory-source a:hover {
  color: var(--green);
}

.listing-meta,
.listing-area,
.listing-distance,
.listing-hours,
.listing-services,
.listing-price {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.listing-empty h2 {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.listing-empty p {
  margin-top: 0.55rem;
  color: var(--muted);
}

.btn-accent {
  background: var(--green);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--green-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.hub-grid {
  display: grid;
  gap: 0.75rem;
}

.hub-card p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.6rem;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 500;
}

.faq-item p {
  margin-top: 0.45rem;
  max-width: 42rem;
  color: var(--muted);
}

.listing-crosslinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.8rem;
  font-size: 0;
}

.listing-crosslinks a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
}

.listing-crosslinks a:hover {
  background: var(--ink);
  color: var(--white);
}

.listing-crosslinks a:first-of-type {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.listing-crosslinks a:first-of-type:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  color: var(--white);
}

@media (min-width: 800px) {
  .listing-local {
    grid-template-columns: 1fr 1fr;
  }

  .listing-local h2:nth-of-type(1),
  .listing-local p:nth-of-type(1) {
    grid-column: 1;
  }

  .listing-local h2:nth-of-type(2),
  .listing-local p:nth-of-type(2) {
    grid-column: 2;
  }

  .listing-local h2 {
    grid-row: 1;
  }

  .listing-local p {
    grid-row: 2;
  }

  .listing-local h2:nth-of-type(2) {
    margin-top: 0;
  }

  .directory-filter-grid {
    grid-template-columns: minmax(12rem, 1fr) minmax(12rem, 1fr) auto auto;
    align-items: end;
  }

  .listing-grid,
  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (min-width: 1100px) {
  .listing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
