/* fallback */
.note.small{font-size:13px; padding:10px 12px; border-radius:14px; border:1px solid var(--line); background:var(--soft); display:inline-block;}
code{background:#f1f5f9;padding:2px 6px;border-radius:8px;border:1px solid var(--line);}

/* Badge pill layout */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  background: #f5f7fa;
  color: #222;
  margin: 0;
}

/* Icon sizing (THIS fixes the issue) */
.pill img {
  width: 16px;
  height: 16px;
  display: block;
}

/* Optional hover polish */
.pill:hover {
  background: #e9eef5;
}

/* Supplier image container */
/* Larger featured image in supplier cards */
.listing-thumb {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;

  border: 2px solid #333;   /* darker border */
  padding: 8px;
  display: block;

  margin: 0 auto 10px;      /* center the image + add a bit of spacing below */
}



/* Supplier card base */
.listing-card {
  border: 1px solid #e6e8eb;   /* soft light gray */
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.listing-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* Responsive grid container */
#listingGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* Make each card fill its grid cell */
#listingGrid .listing-card {
  height: 100%;
}

@media (max-width: 480px) {
  #listingGrid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .listing-thumb {
    width: 72px;
    height: 72px;
    padding: 6px;
  }
}


/* Directory grid layout */
#listingGrid{
  display:grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap:16px;
  align-items:stretch;
}

@media (min-width: 700px){
  #listingGrid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* Let the directory section use most of the viewport width */
#directoryApp{
  max-width: 1400px;   /* adjust: 1200–1600 depending on taste */
  width: 100%;
  margin: 0 auto;
  padding: 0 12px;     /* small breathing room on edges */
}

/* Vertical stacking inside card */
.listing-body{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Contact rows: icon + value */
/* Vertical contacts block */
.contacts{
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* One contact line: icon + text */
.contact-row{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-family: inherit;     /* ensures same font */
  color:#333;
  text-decoration:none;
}

.contact-row img{
  width:14px;
  height:14px;
  display:block;
  flex-shrink:0;
}

.contact-row:hover{
  text-decoration:underline;
}


.pills{ display:flex; flex-direction:column; gap:6px; }

.listing-title h3{
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;   /* NEW */
}


/* Make Directory intro text match supplier grid width */
.page-id-18 .kpd-intro {
    max-width: 1200px;   /* match your card grid width */
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Make the Directory page H1 match the card grid width */
.page-id-18 #kpd-intro-title {
  display: block !important;
  width: 100% !important;
  max-width: 1200px !important;   /* adjust to match your card grid */
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
  text-align: center;             /* optional */
}

/* Taxonomy pages only: shrink common header/logo/icon blocks */
.tax-supplier_category .wp-block-site-logo img,
.tax-location .wp-block-site-logo img,
.tax-supplier_category .wp-block-site-logo svg,
.tax-location .wp-block-site-logo svg {
  width: 48px !important;
  height: auto !important;
  max-width: 48px !important;
}

/* Taxonomy pages: stop giant thumbnails/featured images */
.tax-supplier_category img.wp-post-image,
.tax-location img.wp-post-image,
.tax-supplier_category .wp-block-post-featured-image img,
.tax-location .wp-block-post-featured-image img {
  width: 80px !important;
  height: 80px !important;
  object-fit: contain !important;
  border-radius: 12px; /* optional */
}

.tax-supplier_category .wp-block-post-featured-image,
.tax-location .wp-block-post-featured-image {
  max-width: 80px !important;
  max-height: 80px !important;
}

/* Make header/navigation container wider to prevent wrapping */
.wp-site-blocks header,
.wp-site-blocks .wp-block-template-part,
.wp-site-blocks .wp-block-group {
  max-width: 1400px !important;   /* adjust if needed */
  margin-left: auto;
  margin-right: auto;
}

/* Enlarge the Add Your Company illustration */
/* Enlarge just this image block by 2.5× */
.page-id-128 figure.wp-block-image.size-full {
  transform: scale(2.5);
  transform-origin: center center; /* or center center */
}

/* Prevent cropping */
.page-id-128 .wp-block-column,
.page-id-128 .wp-block-group,
.page-id-128 .wp-block-columns,
.page-id-128 .entry-content {
  overflow: visible !important;
}

/* TESTING */
.page-id-128 figure.wp-block-image.size-full {
  outline: 3px solid red;
}

body { outline: 8px solid hotpink !important; }

/* Align Province + Town columns neatly */
.kpd-loc-col{
  display: grid;
  grid-template-rows: 22px auto;  /* Province row, then towns */
  align-items: start;
}

/* Province header line */
.kpd-loc-prov{
  margin: 0;
  height: 22px;
  line-height: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

/* Towns start at same Y position */
.kpd-loc-town{
  margin: 4px 0 0;
  line-height: 1.2;
}





