/* Business directory — enrich listings within the existing theme */

.dir-hero {
  margin-bottom: 28px;
  padding: 28px 24px;
  background: linear-gradient(135deg, #1a1a1a 0%, #3d1f1f 55%, #5c2a2a 100%);
  color: #fff;
}
.dir-hero h1 {
  color: #fff;
  font-size: 32px;
  margin: 0 0 10px;
  border: none;
  padding: 0;
}
.dir-hero p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 16px;
  max-width: 36em;
  line-height: 1.55;
}
.dir-hero .btn {
  margin-right: 8px;
  margin-bottom: 6px;
}
.dir-hero .btn-primary {
  background: #e74c3c;
  border-color: #e74c3c;
}
.dir-hero .btn-outline-light {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
}
.dir-hero .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.dir-search-panel {
  margin-bottom: 28px;
  padding: 18px 20px;
  background: #faf7f5;
  border: 1px solid #efe6e0;
}

.dir-cat-grid {
  margin: 0 -8px 8px;
}
.dir-cat-grid .dir-cat-cell {
  padding: 8px;
}
.dir-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  min-height: 132px;
  padding: 18px 12px 14px;
  background: #fff;
  border: 1px solid #eee;
  text-decoration: none !important;
  color: #212121;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.dir-cat-card:hover {
  border-color: #ddd;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  color: #212121;
}
.dir-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  max-width: 52px;
  max-height: 52px;
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  overflow: hidden;
  box-sizing: border-box;
}
.dir-cat-icon .lnr {
  display: block;
  line-height: 1;
  width: auto;
  height: auto;
}
.dir-cat-card .dir-cat-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 4px;
}
.dir-cat-card .dir-cat-count {
  font-size: 12px;
  color: #888;
  margin: 0;
}

.dir-biz-card {
  height: 100%;
  padding: 0 0 12px;
  border: 1px solid #f0f0f0;
  background: #fff;
  margin-bottom: 20px;
  transition: box-shadow 0.2s ease;
}
.dir-biz-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.dir-biz-card .post-image {
  margin-bottom: 0;
}
.dir-biz-card .dir-biz-body {
  padding: 14px 16px 8px;
}
.dir-biz-card h2 {
  font-size: 17px;
  margin: 0 0 8px;
  line-height: 1.35;
}
.dir-biz-card .post-tags {
  margin-bottom: 8px;
}
.dir-biz-card p {
  font-size: 13px;
  color: #666;
  margin-bottom: 0;
}

.dir-sidebar .widget {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid #f1f1f1;
  background: #fff;
}
.dir-sidebar .widget .title-section {
  margin-bottom: 14px;
}
.dir-sidebar .widget .title-section h1 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c0392b;
  border-bottom: 1px solid #f1f1f1;
  padding-bottom: 10px;
  margin: 0;
}
.dir-sidebar-cats {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dir-sidebar-cats li {
  margin: 0;
  border-bottom: 1px solid #f5f5f5;
}
.dir-sidebar-cats li:last-child {
  border-bottom: none;
}
.dir-sidebar-cats a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: #333;
  text-decoration: none !important;
  font-size: 14px;
}
.dir-sidebar-cats a:hover {
  color: #c0392b;
}
.dir-sidebar-cats a.active {
  font-weight: 700;
  color: #c0392b;
}
.dir-sidebar-cats .dir-side-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}
.dir-sidebar-cats .dir-side-label {
  flex: 1 1 auto;
  line-height: 1.3;
}
.dir-sidebar-cats .dir-side-count {
  flex: 0 0 auto;
  color: #999;
  font-size: 13px;
}
.dir-sidebar-cta a {
  display: block;
  margin-bottom: 8px;
}

.dir-breadcrumb {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}
.dir-breadcrumb a {
  color: #c0392b;
}

/* Detail page: theme indents .single-post (h1 / tags / text-boxes) by 30px.
   Keep all sections flush with the breadcrumb left edge. */
.dir-detail .single-post > h1,
.dir-detail .single-post > .article-subtitle,
.dir-detail .single-post > ul.post-tags,
.dir-detail .single-post > img,
.dir-detail .single-post .text-boxes {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0;
  margin-right: 0;
}
.dir-detail .single-post > img.img-fluid {
  width: auto;
  max-width: 100%;
}
.dir-detail .contact-form-box,
.dir-detail .dir-actions,
.dir-detail .related-posts-block {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
.dir-detail .contact-form-box {
  padding: 24px !important; /* restore form inner padding only */
}

/* Action buttons — theme styles `.single-post p a` with teal underline,
   which makes Bootstrap btn-primary/secondary illegible inside <p>. */
.dir-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 24px;
}
.dir-actions .btn,
.dir-form .btn-primary,
.dir-sidebar-cta .btn {
  text-decoration: none !important;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  padding: 10px 18px;
  border-radius: 2px;
}
.dir-actions .btn-primary,
.dir-form .btn-primary,
.dir-sidebar-cta .btn-primary {
  color: #fff !important;
  background-color: #c0392b !important;
  border: 1px solid #a93226 !important;
}
.dir-actions .btn-primary:hover,
.dir-form .btn-primary:hover,
.dir-sidebar-cta .btn-primary:hover {
  color: #fff !important;
  background-color: #a93226 !important;
  border-color: #922b21 !important;
}
.dir-actions .btn-secondary,
.dir-sidebar-cta .btn-secondary {
  color: #fff !important;
  background-color: #2c3e50 !important;
  border: 1px solid #1a252f !important;
}
.dir-actions .btn-secondary:hover,
.dir-sidebar-cta .btn-secondary:hover {
  color: #fff !important;
  background-color: #1a252f !important;
  border-color: #11181f !important;
}

/* Captcha widget (shared by /business/submit/ and inquiry form). */
.dir-form .dir-captcha-widget {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.dir-form .dir-captcha-widget img.captcha,
.dir-form img.captcha {
  width: auto !important;
  max-width: min(100%, 280px) !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  display: inline-block !important;
  vertical-align: middle;
  border: 1px solid #ddd;
  background: #fff;
  box-sizing: content-box;
}
.dir-form .dir-captcha-widget input[name="captcha_1"],
.dir-form input[name="captcha_1"] {
  max-width: 200px;
  min-height: 40px;
  font-size: 18px;
  letter-spacing: 0.12em;
}

.dir-steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  counter-reset: dirstep;
}
.dir-steps li {
  position: relative;
  padding: 16px 16px 16px 64px;
  margin-bottom: 12px;
  border: 1px solid #eee;
  background: #fff;
  min-height: 64px;
}
.dir-steps li::before {
  counter-increment: dirstep;
  content: counter(dirstep);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #c0392b;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 36px;
  text-align: center;
}

.dir-country-chips a {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 8px 14px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #333;
  font-size: 13px;
  text-decoration: none !important;
}
.dir-country-chips a:hover {
  border-color: #c0392b;
  color: #c0392b;
}

@media (max-width: 767px) {
  .dir-hero h1 {
    font-size: 26px;
  }
  .dir-cat-card {
    min-height: 118px;
  }
}
