/* ======================================================
   GF Hearts — Vendor Directory
   Archive and single-post styles.
   ====================================================== */

/* ── Archive ─────────────────────────────────────────── */

.gfh-vendors-archive {
  padding: 2rem 0;
}

.gfh-vendors-archive__intro {
  margin-bottom: 2rem;
}

.gfh-vendor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 767px) {
  .gfh-vendor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gfh-vendor-grid {
    grid-template-columns: 1fr;
  }
}

.gfh-vendor-card {
  background: var(--gfh-surface);
  border-radius: var(--gfh-radius-card);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gfh-vendor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.gfh-vendor-card__link {
  color: inherit;
  text-decoration: none;
}

.gfh-vendor-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.gfh-vendor-card__image-link {
  display: block;
}

.gfh-vendor-card__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: var(--gfh-radius-card) var(--gfh-radius-card) 0 0;
}

.gfh-vendor-card__body {
  padding: 1rem;
}

.gfh-vendor-card__title {
  font-family: var(--gfh-font-display);
  font-size: 1.125rem;
  color: var(--gfh-teal);
  margin: 0 0 0.5rem;
}

.gfh-vendor-card__excerpt {
  font-size: 0.875rem;
  color: var(--gfh-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.gfh-no-vendors {
  text-align: center;
  color: var(--gfh-text-muted);
  padding: 3rem 0;
}

/* ── Single ──────────────────────────────────────────── */

.gfh-vendor-back {
  padding: 1.25rem 0;
}

.gfh-vendor-back__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gfh-accent);
  font-weight: 700;
  text-decoration: none;
  /* Had no padding at all - tap target was just the text's own line-height. */
  padding: 0.75rem 0;
  margin: -0.75rem 0;
}

.gfh-vendor-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 1rem 0 2.5rem;
  align-items: start;
}

.gfh-vendor-layout__media {
  position: sticky;
  top: calc(var(--gfh-header-h) + 1.5rem);
}

body.logged-in .gfh-vendor-layout__media {
  top: calc(var(--gfh-app-nav-h) + 1.5rem);
}

.gfh-vendor-layout__image img {
  width: 100%;
  border-radius: var(--gfh-radius-card);
  display: block;
}

.gfh-vendor-header__title {
  font-family: var(--gfh-font-display);
  font-size: 2rem;
  color: var(--gfh-teal);
  margin: 0 0 0.75rem;
}

.gfh-vendor-header__description {
  font-size: 1.125rem;
  color: var(--gfh-text-muted);
  margin: 0 0 1rem;
}

.gfh-vendor-section__content {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.gfh-vendor-contact {
  border-top: 1px solid color-mix(in srgb, var(--gfh-teal) 10%, transparent);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}

.gfh-vendor-contact__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  color: var(--gfh-text);
}

.gfh-vendor-contact__row i {
  color: var(--gfh-accent);
  width: 1.1rem;
  text-align: center;
}

.gfh-vendor-contact__link {
  display: inline-block;
  color: var(--gfh-accent);
  font-weight: 700;
  text-decoration: none;
  /* Had no padding at all - tap target was just the text's own line-height. */
  padding: 0.75rem 0;
  margin: -0.75rem 0;
}

.gfh-vendor-single__website {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

@media (max-width: 767px) {
  .gfh-vendor-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gfh-vendor-layout__media {
    position: static;
    top: auto;
  }
}
