/* Jobs Directory Modern CSS */
:root {
  --font-sans: "Vazirmatn", Tahoma, sans-serif;
  --color-jdm-primary: #059669;
  --color-jdm-on-primary: #ffffff;
  --color-jdm-secondary: #10b981;
  --color-jdm-accent: #d97706;
  --color-jdm-bg: #ecfdf5;
  --color-jdm-fg: #064e3b;
  --color-jdm-muted: #e8f1f3;
  --color-jdm-muted-text: #047857;
  --color-jdm-border: #a7f3d0;
  --color-jdm-surface: #ffffff;
  --color-jdm-soft: #f0fdf4;
  --color-jdm-gold: #f59e0b;
  --color-jdm-destructive: #dc2626;
  --radius-jdm: 14px;
  --radius-jdm-lg: 18px;
  --shadow-jdm: 0 8px 28px rgba(6, 78, 59, 0.08);
}
/*
 * کامپوننت‌های فرانت — بدون @layer تا روی استایل هسته وردپرس اولویت داشته باشند
 */

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  color: var(--color-jdm-fg, #064e3b);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(16, 185, 129, 0.1), transparent 55%),
    var(--color-jdm-bg, #ecfdf5);
}

body.single-business {
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(16, 185, 129, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 30%, rgba(217, 119, 6, 0.06), transparent 50%),
    #f3fbf7;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in oklab, var(--color-jdm-border, #a7f3d0) 70%, transparent);
  backdrop-filter: blur(12px);
  background: rgba(236, 253, 245, 0.88);
}

.site-nav__inner {
  max-width: 64rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  color: var(--color-jdm-fg, #064e3b);
}

.brand__mark {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: var(--color-jdm-primary, #059669);
  color: #fff;
  box-shadow: 0 8px 28px rgba(6, 78, 59, 0.08);
}

.nav-toggle {
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid var(--color-jdm-border, #a7f3d0);
  background: var(--color-jdm-surface, #fff);
  padding: 0.5rem;
  color: var(--color-jdm-fg, #064e3b);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-links .menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .nav-links .menu {
    display: flex;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-back {
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-jdm-muted-text, #047857);
}

.btn {
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 14px;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 0;
  transition: 0.2s ease;
}

.btn--primary {
  background: var(--color-jdm-primary, #059669);
  color: #fff;
  box-shadow: 0 8px 28px rgba(6, 78, 59, 0.08);
}

.btn--primary:hover {
  background: var(--color-jdm-secondary, #10b981);
}

.btn--accent {
  background: var(--color-jdm-accent, #d97706);
  color: #fff;
}

.btn--outline {
  border: 1px solid var(--color-jdm-border, #a7f3d0);
  background: var(--color-jdm-surface, #fff);
  color: var(--color-jdm-fg, #064e3b);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 1.25rem 4rem;
}

.hero__bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.18), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(217, 119, 6, 0.12), transparent 35%);
}

.hero__content {
  position: relative;
  max-width: 64rem;
  margin-inline: auto;
  text-align: center;
}

.hero__brand {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-jdm-fg, #064e3b);
}

.hero__lead {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  color: var(--color-jdm-muted-text, #047857);
  font-size: 1.05rem;
}

.search-panel {
  margin: 2rem auto 0;
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.75rem;
  border-radius: 18px;
  border: 1px solid var(--color-jdm-border, #a7f3d0);
  background: var(--color-jdm-surface, #fff);
  padding: 0.75rem;
  box-shadow: 0 8px 28px rgba(6, 78, 59, 0.08);
}

@media (max-width: 900px) {
  .search-panel {
    grid-template-columns: 1fr;
  }
}

.search-panel__submit {
  white-space: nowrap;
  min-height: 2.75rem;
}

.search-panel__submit svg {
  flex-shrink: 0;
}

.search-field {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 0.5rem;
  border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--color-jdm-border, #a7f3d0) 80%, transparent);
  background: var(--color-jdm-soft, #f0fdf4);
  padding-inline: 0.75rem;
  color: var(--color-jdm-muted-text, #047857);
}

.search-field input,
.search-field select {
  width: 100%;
  border: 0;
  background: transparent;
  padding-block: 0.625rem;
  color: var(--color-jdm-fg, #064e3b);
  outline: none;
}

.popular {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-jdm-muted-text, #047857);
}

.chip {
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid var(--color-jdm-border, #a7f3d0);
  background: var(--color-jdm-surface, #fff);
  padding: 0.25rem 0.75rem;
  color: var(--color-jdm-fg, #064e3b);
}

.section {
  max-width: 64rem;
  margin-inline: auto;
  padding: 3rem 1.25rem;
}

.section__head {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-jdm-fg, #064e3b);
}

.section__sub {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-jdm-muted-text, #047857);
}

/* آرشیو دسته / شهر / جستجو — dir-archive */
.tax-crumbs {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--color-jdm-muted-text, #047857);
}

.tax-crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tax-crumbs__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tax-crumbs__list li + li::before {
  content: "/";
  opacity: 0.45;
}

.tax-crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.tax-crumbs a:hover {
  color: var(--color-jdm-primary, #059669);
}

.tax-crumbs a:focus-visible {
  outline: 2px solid var(--color-jdm-primary, #059669);
  outline-offset: 2px;
  border-radius: 4px;
}

.dir-archive {
  padding-bottom: 3rem;
}

.dir-archive__hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.5rem;
  padding-bottom: 2rem;
  min-height: 17rem;
  border-bottom: 1px solid color-mix(in oklab, var(--color-jdm-border, #a7f3d0) 70%, transparent);
  background: var(--color-jdm-soft, #f0fdf4);
  box-shadow: 0 14px 36px rgba(6, 78, 59, 0.07);
}

/**
 * عکس پس‌زمینه — تمام عرض هیرو، زیر گرادینت و محتوا.
 */
.dir-archive__hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--dir-hero-photo);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.dir-archive__hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      118deg,
      rgba(236, 253, 245, 0.38) 0%,
      rgba(243, 251, 247, 0.22) 42%,
      rgba(236, 253, 245, 0.34) 100%
    ),
    radial-gradient(ellipse 85% 90% at 12% 0%, rgba(5, 150, 105, 0.12), transparent 58%),
    radial-gradient(ellipse 70% 70% at 88% 100%, rgba(217, 119, 6, 0.08), transparent 55%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -24px 48px rgba(6, 78, 59, 0.08);
}

.dir-archive__hero-inner {
  position: relative;
  z-index: 2;
  /* ~۳۰٪ عریض‌تر از section (64rem) تا ۴ کارت کنار هم جا شود */
  max-width: 83.2rem;
  margin-inline: auto;
  padding: 1.75rem 1.25rem 2rem;
}

/**
 * فلش تزئینی محلی — به سمت دکمه جستجو (بدون منابع خارجی).
 */
.dir-archive__search-wrap {
  position: relative;
  margin-top: 2.75rem;
}

.dir-archive__search-arrow {
  position: absolute;
  z-index: 3;
  top: -5.75rem;
  inset-inline-start: 0.75rem;
  width: 5.5rem;
  height: auto;
  color: var(--color-jdm-accent, #d97706);
  pointer-events: none;
  opacity: 0.92;
  line-height: 0;
}

.dir-archive__search-arrow-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* در LTR دکمه سمت راست است؛ فلش آینه‌ای می‌شود */
html[dir="ltr"] .dir-archive__search-arrow {
  inset-inline-start: auto;
  inset-inline-end: 0.75rem;
  transform: scaleX(-1);
}

@media (max-width: 900px) {
  .dir-archive__search-arrow {
    display: none;
  }

  .dir-archive__search-wrap {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .dir-archive__search-arrow {
    animation: dir-archive-arrow-nudge 2.8s ease-in-out infinite;
  }

  html[dir="ltr"] .dir-archive__search-arrow {
    animation-name: dir-archive-arrow-nudge-ltr;
  }
}

@keyframes dir-archive-arrow-nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(0.35rem);
  }
}

@keyframes dir-archive-arrow-nudge-ltr {
  0%,
  100% {
    transform: scaleX(-1) translateY(0);
  }
  50% {
    transform: scaleX(-1) translateY(0.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dir-archive__search-arrow {
    animation: none;
  }
}

.dir-archive__intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
  margin-bottom: 1.35rem;
}

@media (min-width: 640px) {
  .dir-archive__intro {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
}

.dir-archive__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 16px;
  border: 1px solid var(--color-jdm-border, #a7f3d0);
  background: var(--color-jdm-surface, #fff);
  color: var(--color-jdm-primary, #059669);
  box-shadow: var(--shadow-jdm, 0 8px 28px rgba(6, 78, 59, 0.08));
}

.dir-archive__copy {
  min-width: 0;
}

.dir-archive__eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-jdm-primary, #059669);
}

.dir-archive__title {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--color-jdm-fg, #064e3b);
}

.dir-archive__desc {
  margin: 0.55rem 0 0;
  max-width: 54ch;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-jdm-muted-text, #047857);
}

.dir-archive--desc-inline .dir-archive__desc {
  max-width: none;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.dir-archive__stat {
  grid-column: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  width: fit-content;
  margin-top: 0.15rem;
  padding: 0.55rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--color-jdm-border, #a7f3d0);
  background: var(--color-jdm-surface, #fff);
  box-shadow: 0 4px 16px rgba(6, 78, 59, 0.06);
}

@media (min-width: 640px) {
  .dir-archive__stat {
    grid-column: auto;
    align-items: center;
    text-align: center;
    margin-top: 0;
  }
}

.dir-archive__stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-jdm-fg, #064e3b);
  font-variant-numeric: tabular-nums;
}

.dir-archive__stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-jdm-muted-text, #047857);
}

.dir-archive__search {
  max-width: none;
  margin: 0;
  width: 100%;
}

.dir-archive__search .search-field select {
  cursor: pointer;
}

.dir-archive__body {
  max-width: 83.2rem;
  margin-inline: auto;
  padding: 1.25rem 1.25rem 0;
}

/* گرید آرشیو: از ~۱۱۰۰px چهار ستون */
@media (min-width: 1100px) {
  .dir-archive__grid.listing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dir-archive__related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-jdm-lg, 18px);
  border: 1px solid color-mix(in oklab, var(--color-jdm-border, #a7f3d0) 75%, transparent);
  background: color-mix(in oklab, var(--color-jdm-surface, #fff) 88%, var(--color-jdm-soft, #f0fdf4));
}

.dir-archive__related-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-jdm-muted-text, #047857);
}

.dir-archive__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
}

.dir-archive__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dir-archive__chip:hover {
  border-color: var(--color-jdm-primary, #059669);
  background: var(--color-jdm-soft, #f0fdf4);
  transform: translateY(-1px);
}

.dir-archive__chip:focus-visible {
  outline: 2px solid var(--color-jdm-primary, #059669);
  outline-offset: 2px;
}

.dir-archive__chip-count {
  display: inline-flex;
  min-width: 1.35rem;
  justify-content: center;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--color-jdm-primary, #059669) 12%, transparent);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-jdm-primary, #059669);
  font-variant-numeric: tabular-nums;
}

.dir-archive__item {
  min-width: 0;
  animation: dir-archive-fade 0.35s ease both;
}

.dir-archive__item:nth-child(2) { animation-delay: 0.04s; }
.dir-archive__item:nth-child(3) { animation-delay: 0.08s; }
.dir-archive__item:nth-child(4) { animation-delay: 0.12s; }
.dir-archive__item:nth-child(5) { animation-delay: 0.16s; }
.dir-archive__item:nth-child(6) { animation-delay: 0.2s; }

@keyframes dir-archive-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dir-archive__item {
    animation: none;
  }
  .dir-archive__chip:hover {
    transform: none;
  }
}

.dir-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 2.75rem 1.25rem;
  border-radius: var(--radius-jdm-lg, 18px);
  border: 1px dashed var(--color-jdm-border, #a7f3d0);
  background: var(--color-jdm-surface, #fff);
}

.dir-empty__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 18px;
  background: var(--color-jdm-soft, #f0fdf4);
  color: var(--color-jdm-primary, #059669);
  margin-bottom: 0.35rem;
}

.dir-empty__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-jdm-fg, #064e3b);
}

.dir-empty__hint {
  margin: 0;
  max-width: 36ch;
  font-size: 0.9rem;
  color: var(--color-jdm-muted-text, #047857);
}

.dir-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.dir-archive__pager {
  margin-top: 1.75rem;
}

.dir-archive__pager .nav-links,
.dir-archive__pager .dir-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.dir-archive__pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--color-jdm-border, #a7f3d0);
  background: var(--color-jdm-surface, #fff);
  color: var(--color-jdm-fg, #064e3b);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.dir-archive__pager a.page-numbers:hover {
  border-color: var(--color-jdm-primary, #059669);
  color: var(--color-jdm-primary, #059669);
}

.dir-archive__pager .page-numbers.current {
  border-color: var(--color-jdm-primary, #059669);
  background: var(--color-jdm-primary, #059669);
  color: #fff;
  cursor: default;
}

.dir-archive__pager .page-numbers.dots {
  border: 0;
  background: transparent;
  min-width: auto;
  padding-inline: 0.25rem;
}

/* سازگاری نام‌های قبلی */
.tax-archive__head {
  margin-bottom: 0.25rem;
}

.tax-archive__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-jdm-primary, #059669);
}

.tax-archive__desc {
  margin-top: 0.5rem;
  max-width: 62ch;
  line-height: 1.7;
}

.tax-archive__meta {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-jdm-muted-text, #047857);
}

.tax-archive__item {
  min-width: 0;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-jdm-primary, #059669);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

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

@media (min-width: 768px) {
  .cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cat {
  display: flex;
  cursor: pointer;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 18px;
  border: 1px solid var(--color-jdm-border, #a7f3d0);
  background: var(--color-jdm-surface, #fff);
  padding: 1rem;
  box-shadow: 0 8px 28px rgba(6, 78, 59, 0.08);
  transition: 0.2s ease;
}

.cat:hover {
  transform: translateY(-2px);
  border-color: var(--color-jdm-primary, #059669);
}

.cat__icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: var(--color-jdm-soft, #f0fdf4);
  color: var(--color-jdm-primary, #059669);
}

.cat__name {
  font-weight: 600;
  color: var(--color-jdm-fg, #064e3b);
}

.cat__count {
  font-size: 0.75rem;
  color: var(--color-jdm-muted-text, #047857);
}

.toolbar {
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.filter-pill {
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid var(--color-jdm-border, #a7f3d0);
  background: var(--color-jdm-surface, #fff);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-jdm-fg, #064e3b);
}

.filter-pill.is-active {
  border-color: var(--color-jdm-primary, #059669);
  background: var(--color-jdm-primary, #059669);
  color: #fff;
}

.toolbar__meta {
  margin-inline-start: auto;
  font-size: 0.75rem;
  color: var(--color-jdm-muted-text, #047857);
}

.jdm-ppp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-inline-start: 0.35rem;
  font-size: 0.8rem;
  color: var(--color-jdm-muted-text, #047857);
}

.jdm-ppp__select {
  border: 1px solid var(--color-jdm-border, #a7f3d0);
  border-radius: 10px;
  background: #fff;
  color: var(--color-jdm-fg, #064e3b);
  padding: 0.3rem 0.55rem;
  font-family: inherit;
  font-size: 0.8rem;
}

.jdm-listing-pager {
  margin-top: 1.5rem;
}

.jdm-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.jdm-pager__btn {
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid var(--color-jdm-border, #a7f3d0);
  background: #fff;
  color: var(--color-jdm-fg, #064e3b);
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  font-family: inherit;
}

.jdm-pager__btn:hover:not(:disabled) {
  border-color: var(--color-jdm-primary, #059669);
  color: var(--color-jdm-primary, #059669);
}

.jdm-pager__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.jdm-pager__status {
  font-size: 0.85rem;
  color: var(--color-jdm-muted-text, #047857);
  font-weight: 600;
}

body.is-jdm-listings-loading #listing-grid {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.jdm-listings-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-jdm-muted-text, #047857);
}

.listing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

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

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

.listing {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--color-jdm-border, #a7f3d0);
  background: var(--color-jdm-surface, #fff);
  box-shadow: 0 8px 28px rgba(6, 78, 59, 0.08);
  transition: 0.2s ease;
}

.listing:hover {
  transform: translateY(-2px);
}

.listing__link {
  display: block;
  cursor: pointer;
}

.listing__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-jdm-soft, #f0fdf4);
}

.listing__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing__badge {
  position: absolute;
  inset-inline-start: 0.5rem;
  top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--color-jdm-primary, #059669) 95%, transparent);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.listing__body {
  padding: 1rem;
}

.listing__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-jdm-fg, #064e3b);
}

.listing__meta {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--color-jdm-muted-text, #047857);
}

.listing__foot {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.listing__price {
  font-weight: 600;
  color: var(--color-jdm-fg, #064e3b);
}

.listing__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-jdm-gold, #f59e0b);
}

.trust {
  background: color-mix(in oklab, var(--color-jdm-soft, #f0fdf4) 60%, transparent);
}

.trust-grid {
  display: grid;
  gap: 1rem;
}

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

.trust-item {
  border-radius: 18px;
  border: 1px solid var(--color-jdm-border, #a7f3d0);
  background: var(--color-jdm-surface, #fff);
  padding: 1.25rem;
  box-shadow: 0 8px 28px rgba(6, 78, 59, 0.08);
}

.trust-item h3 {
  margin: 0.75rem 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.trust-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-jdm-muted-text, #047857);
}

.cta-band {
  max-width: 64rem;
  margin: 2.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 18px;
  background: var(--color-jdm-primary, #059669);
  padding: 2rem 1.5rem;
  color: #fff;
  box-shadow: 0 8px 28px rgba(6, 78, 59, 0.08);
}

@media (min-width: 768px) {
  .cta-band {
    flex-direction: row;
    align-items: center;
  }
}

.cta-band h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.cta-band p {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* —— فوتر Tablo-style (رنگ‌های JDM) —— */
.jdm-ft {
  /* هم‌عرض dir-archive / search-panel */
  max-width: 83.2rem;
  margin: 3rem auto 2.5rem;
  padding-inline: 1.25rem;
  --jdm-ft-dark: #064e3b;
  --jdm-ft-dark-2: #033528;
}

.jdm-ft__shell {
  width: 100%;
  margin-inline: auto;
}

.jdm-ft__dark {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 16rem;
  /* فضای ثابت ریل سوشال سمت چپ باکس */
  padding: 2rem 1.5rem 1.75rem 4.25rem;
  border-radius: var(--radius-jdm-lg, 18px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 45% 70% at 8% 100%, rgba(16, 185, 129, 0.22), transparent 60%),
    linear-gradient(180deg, var(--jdm-ft-dark) 0%, var(--jdm-ft-dark-2) 100%);
  color: #fff;
  box-shadow: var(--shadow-jdm, 0 8px 28px rgba(6, 78, 59, 0.08));
}

.jdm-ft__dark-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  width: 100%;
}

.jdm-ft__dark-shell {
  width: 100%;
}

.jdm-ft__col {
  flex: 1 1 8rem;
  min-width: 7.5rem;
}

.jdm-ft__col--badges {
  flex: 0 1 12rem;
}

.jdm-ft__col-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.jdm-ft__col-ico {
  display: inline-flex;
  color: var(--color-jdm-secondary, #10b981);
}

.jdm-ft__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.jdm-ft__links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.jdm-ft__links a:hover {
  color: #fff;
}

.jdm-ft__social-rail {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: 2.75rem;
  min-height: 10.5rem;
  padding: 1.15rem 0.55rem;
  border: 1px solid rgba(167, 243, 208, 0.45);
  border-radius: var(--radius-jdm, 14px);
  background: rgba(3, 53, 40, 0.45);
}

.jdm-ft__social-rail a {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  color: rgba(236, 253, 245, 0.78);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.jdm-ft__social-rail a:hover {
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .jdm-ft {
    margin-bottom: 1.75rem;
  }

  .jdm-ft__dark {
    border-radius: var(--radius-jdm, 14px);
    padding: 1.5rem 1rem 1.35rem 3.65rem;
  }

  .jdm-ft__col {
    flex: 1 1 calc(50% - 1rem);
  }

  .jdm-ft__social-rail {
    left: 0.55rem;
    width: 2.5rem;
    min-height: 9rem;
    padding: 0.85rem 0.4rem;
    gap: 0.65rem;
  }
}

.hide-sm {
  display: none;
}

@media (min-width: 640px) {
  .hide-sm {
    display: inline;
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-bottom: 1px solid var(--color-jdm-border, #a7f3d0);
    background: rgba(236, 253, 245, 0.95);
    padding: 1rem 1.25rem;
  }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-links.is-open .menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
}
