@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=DM+Sans:wght@300;400;500&display=swap");


.ezw_business_directory,
.ezw_business_directory *,
.ezw_business_directory *::before,
.ezw_business_directory *::after { box-sizing: border-box; margin: 0; padding: 0; }

  .ezw_business_directory {
    --gold: #C27A00;
    --gold-light: #E09010;
    --gold-faint: #FDF6EA;
    --gold-border: rgba(180,110,0,0.18);
    --gold-border-hover: rgba(180,110,0,0.45);
    --black: #0D0D0D;
    --page: #F7F5F2;
    --surface: #FFFFFF;
    --surface-2: #F2EFE9;
    --border: rgba(0,0,0,0.08);
    --border-mid: rgba(0,0,0,0.13);
    --muted: #9A9490;
    --text: #1A1714;
    --text-dim: #6B6560;
    --radius: 3px;
  }

  .ezw_business_directory {
    font-family: 'DM Sans', sans-serif;
    background: var(--page);
    color: var(--text);
    min-height: 100vh;
  }

  .ezw_business_directory.page {
    /* max-width: min(100%,var(1140px)); */
    width: 100%;
    margin: 0 auto;
    padding: 48px 24px 12px;
  }

  #business-dir-pagination-template{
    padding-block: 0 28px;
    padding-inline: 24px;
    background: #f7f5f2;
  }
  .ezw_business_directory .top-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 0.5px solid var(--border-mid);
    gap: 16px;
    flex-wrap: wrap;
  }

  .ezw_business_directory .top-bar-left h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 500;
    color: var(--black);
    letter-spacing: -0.5px;
    line-height: 1.1;
  }

  
.match-mini-card.fake-match-card {
  position: relative;
}

.match-mini-card.fake-match-card .biz-card-top,
.match-mini-card.fake-match-card .mc-name,
.match-mini-card.fake-match-card .mc-biz,
.match-mini-card.fake-match-card .match-connect-row,
.match-mini-card.fake-match-card .mc-tag{
  filter: blur(3px);
  pointer-events: none;
}
.match-mini-card.fake-match-card .match-upgrade-cta {
  display: none;
}
.match-mini-card.fake-match-card:last-child .match-upgrade-cta {
  display: block!important;
  pointer-events: auto!important;
  filter: blur(0)!important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  font-weight: 500;
  color: #000;
}
.match-mini-card.fake-match-card:last-child .match-upgrade-cta a{
  color: #e9630a;
  text-decoration: underline;
}

  .ezw_business_directory .top-bar-left p {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 6px;
    font-weight: 300;
    letter-spacing: 0.2px;
  }

  .ezw_business_directory .top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .ezw_business_directory .search-wrap {
    position: relative;
    display: flex;
    align-items: center;
  }

  .ezw_business_directory .search-icon {
    position: absolute;
    left: 12px;
    width: 14px;
    height: 14px;
    color: var(--muted);
  }

  .ezw_business_directory .search-input {
    background: var(--surface);
    border: 0.5px solid var(--border-mid);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    padding: 9px 12px 9px 34px;
    border-radius: var(--radius);
    outline: none;
    width: 220px;
    transition: border-color 0.2s;
  }

  .ezw_business_directory .search-input::placeholder { color: var(--muted); }
  .ezw_business_directory .search-input:focus { border-color: var(--gold-border-hover); }

  .ezw_business_directory .filter-select {
    background: var(--surface);
    border: 0.5px solid var(--border-mid);
    color: var(--text-dim);
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    padding: 9px 28px 9px 12px;
    border-radius: var(--radius);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239A9490' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
  }

  .ezw_business_directory .filter-select:focus { border-color: var(--gold-border-hover); }

  .ezw_business_directory .stats-row {
    display: flex;
    gap: 16px;
    margin-bottom: 36px;
    flex-wrap: wrap;
  }

  .ezw_business_directory .stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 0.5px solid var(--border-mid);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .ezw_business_directory .stat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
  }

  .ezw_business_directory .stat-pill span { font-size: 12px; color: var(--text-dim); font-weight: 300; }
  .ezw_business_directory .stat-pill strong { font-size: 12px; color: var(--text); font-weight: 500; }

  .ezw_business_directory .match-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--black);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 11px 22px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
    margin-bottom: 0;
  }

  .ezw_close_match_btn {
    position: absolute;
    top: 6px;
    right: 6px;
    cursor: pointer;
  }

  .ezw_business_directory .match-btn:hover { background: #2A2520; }
  .ezw_business_directory .match-btn:active { transform: scale(0.98); }
  .ezw_business_directory .match-btn.loading { pointer-events: none; opacity: 0.75; }

  @keyframes spin { to { transform: rotate(360deg); } }
  .ezw_business_directory .spinner { animation: spin 0.8s linear infinite; }

  .ezw_business_directory .match-result-panel {
    display: none;
    border: 0.5px solid var(--gold-border-hover);
    background: var(--gold-faint);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 36px;
    animation: fadeSlideIn 0.4s ease;
    position: relative;
    overflow: hidden;
  }

  .ezw_business_directory .match-result-panel::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gold);
  }

  @keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .ezw_business_directory .match-result-panel.visible { display: block; }

  .ezw_business_directory .match-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
  }

  .ezw_business_directory .match-header span {
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
  }

  .ezw_business_directory .match-cards-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
  }

  .ezw_business_directory .match-mini-card {
    background: var(--surface);
    border: 0.5px solid var(--border-mid);
    border-radius: var(--radius);
    padding: 16px;
  }

  .ezw_business_directory .match-mini-card .mc-name { font-size: 14px; font-weight: 500; color: var(--black); margin-bottom: 3px; }
  .ezw_business_directory .match-mini-card .mc-biz { font-size: 12px; color: var(--gold); margin-bottom: 6px; }
  .ezw_business_directory .match-mini-card .mc-tag { font-size: 11px; color: var(--text-dim); }

  .ezw_business_directory .match-connect-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 0.5px solid var(--border);
  }

  .ezw_business_directory .match-connect-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-dim);
    border: 0.5px solid var(--border-mid);
    background: var(--surface-2);
    padding: 5px 8px;
    border-radius: 999px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
  }

  .ezw_business_directory .match-connect-link:hover {
    color: var(--gold);
    border-color: var(--gold-border-hover);
    background: var(--surface);
  }

  .ezw_business_directory .match-connect-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .ezw_business_directory .match-separator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 20px;
  }

  .ezw_business_directory .match-separator span {
    font-size: 10px;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
  }

  .ezw_business_directory .match-score {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 0.5px solid var(--gold-border);
    font-size: 12px;
    color: var(--text-dim);
  }

  .ezw_business_directory .score-bar {
    flex: 1;
    height: 3px;
    background: rgba(0,0,0,0.08);
    border-radius: 2px;
    overflow: hidden;
  }

  .ezw_business_directory .score-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
    width: 0%;
  }

  .ezw_business_directory .score-label { color: var(--gold); font-weight: 500; font-size: 12px; }

  .ezw_business_directory .match-more-title {
    margin-top: 18px;
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 500;
  }

  .ezw_business_directory .match-more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
  }

  .ezw_business_directory .match-empty {
    padding: 20px 0 8px;
  }

  .ezw_business_directory .match-empty-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--black);
    margin-bottom: 8px;
  }

  .ezw_business_directory .match-empty-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-dim);
    max-width: 560px;
  }

  .ezw_business_directory .section-label {
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 400;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .ezw_business_directory .section-label::after {
    content: '';
    flex: 1;
    height: 0.5px;
    background: var(--border-mid);
  }

  .ezw_business_directory .biz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1px;
    background: var(--border-mid);
    border: 0.5px solid var(--border-mid);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .ezw_business_directory .biz-card {
    background: var(--surface);
    padding: 24px;
    cursor: pointer;
    transition: background 0.18s;
    display: flex;
    flex-direction: column;
  }

  .ezw_business_directory .biz-card:hover { background: #FAFAF8; }

  .ezw_business_directory .biz-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .ezw_business_directory .biz-card-top img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .ezw_business_directory .avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--gold-faint);
    border: 0.5px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: var(--gold);
    font-weight: 500;
    flex-shrink: 0;
  }

  .ezw_business_directory .badge {
    font-size: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--radius);
    border: 0.5px solid;
    font-weight: 400;
  }

  .ezw_business_directory .badge-open   { border-color: #A8D5B0; color: #2E7A3C; background: #EDF7EF; }
  .ezw_business_directory .badge-closed { border-color: #D4C080; color: #7A6010; background: #FAF6E4; }
  .ezw_business_directory .badge-hiring { border-color: #9DC0E0; color: #1A5080; background: #EAF3FB; }

  .ezw_business_directory .biz-name { font-size: 16px; font-weight: 500; color: var(--black); margin-bottom: 2px; line-height: 1.3; }
  .ezw_business_directory .biz-cat  { font-size: 12px; color: var(--gold); margin-bottom: 8px; font-weight: 300; }

  .ezw_business_directory .biz-desc {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.55;
    font-weight: 300;
    margin-bottom: 16px;
    flex: 1;
  }

  .ezw_business_directory .owner-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
  }

  .ezw_business_directory .owner-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 0.5px solid var(--border-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--gold);
    font-weight: 500;
  }

  .ezw_business_directory .owner-name { font-size: 12px; color: var(--text-dim); font-weight: 300; }

  .ezw_business_directory .biz-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 14px;
    border-top: 0.5px solid var(--border);
    flex-wrap: wrap;
  }

  .ezw_business_directory .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--muted);
    font-weight: 300;
  }

  #ezw_business_directory_loadingOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(247,245,242,0.85);
    z-index: 100;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    backdrop-filter: blur(2px);
  }

  #ezw_business_directory_loadingOverlay.visible { display: flex; }

  .ezw_business_directory .loader-ring,
  #ezw_business_directory_loadingOverlay .loader-ring {
    width: 56px;
    height: 56px;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
  }

  .ezw_business_directory .loader-text,
  #ezw_business_directory_loadingOverlay .loader-text {
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-dim);
  }

  #ezw_business_directory_loadingOverlay.match-making-loading .loader-ring {
    /* display: none; */
  }
  #ezw_business_directory_loadingOverlay.match-making-loading .loader-ring {
    width: 48px;
    height: 48px;
    border: revert;
    border-radius: revert;
    animation: revert;
    margin: 0 auto;
    position: relative;
  }
  #ezw_business_directory_loadingOverlay.match-making-loading .loader-ring:before {
      
      content: '';
      width: 48px;
      height: 5px;
      background: #000;
      opacity: 0.25;
      position: absolute;
      top: 60px;
      left: 0;
      border-radius: 50%;
      animation: ezw_bdir_shadow_animate 0.5s linear infinite;
    }
    #ezw_business_directory_loadingOverlay.match-making-loading .loader-ring:after {
      content: '';
      width: 100%;
      height: 100%;
      background: #ff8a00;
      animation: ezw_bdir_bxSpin 0.5s linear infinite;
      position: absolute;
      top: 0;
      left: 0;
      border-radius: 4px;
    }
  @keyframes ezw_bdir_bxSpin {
    17% {
      border-bottom-right-radius: 3px;
    }
    25% {
      transform: translateY(9px) rotate(22.5deg);
    }
    50% {
      transform: translateY(18px) scale(1, .9) rotate(45deg);
      border-bottom-right-radius: 40px;
    }
    75% {
      transform: translateY(9px) rotate(67.5deg);
    }
    100% {
      transform: translateY(0) rotate(90deg);
    }
  }

  @keyframes ezw_bdir_shadow_animate {
    0%, 100% {
      transform: scale(1, 1);
    }
    50% {
      transform: scale(1.2, 1);
    }
  }



  /** pagination **/

  .ezw-business-dir-pagination {
    padding: 6px!important;
  }
  .paginationjs-pages ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .paginationjs-pages li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    border: 1.5px solid transparent;
    color: #000;
    background: #fff;
  }

  .ezw-business-dir-pagination--page a {
    border-color: #e0e0e0;
  }

  .ezw-business-dir-pagination--page a:hover {
    border-color: #ff8a00;
    color: #ff8a00;
  }

  /* Active page */
  .ezw-business-dir-pagination--page.ezw-active a,
    .ezw-business-dir-pagination--page.ezw-active a:hover,
      .ezw-business-dir-pagination--page.ezw-active a:active,
        .ezw-business-dir-pagination--page.ezw-active a:focus {
    background: #ff8a00;
    border-color: #ff8a00;
    color: #fff;
  }

  .ezw-business-dir-pagination--prev a,
  .ezw-business-dir-pagination--next a {
    font-size: 18px;
    border: 1.5px solid #e0e0e0;
  }

  .ezw-business-dir-pagination--prev a:hover,
  .ezw-business-dir-pagination--next a:hover {
    background: #ff8a00;
    border-color: #ff8a00;
    color: #fff;
  }

  .ezw-business-dir-pagination--prev.disabled a {
    color: #bbb;
    border-color: #eee;
    background: #fafafa;
    pointer-events: none;
  }

  .ezw-business-dir-pagination--ellipsis a {
    border: none;
    color: #999;
    pointer-events: none;
    letter-spacing: 1px;
  }

  /** end pagination **/

  @keyframes pulse-dot {
    0%,100% { opacity: 1; }
    50% { opacity: 0.3; }
  }

  .ezw_business_directory .dots span,
  #ezw_business_directory_loadingOverlay .dots span { animation: pulse-dot 1.2s ease-in-out infinite; display: inline-block; }
  .ezw_business_directory .dots span:nth-child(2),
  #ezw_business_directory_loadingOverlay .dots span:nth-child(2) { animation-delay: 0.2s; }
  .ezw_business_directory .dots span:nth-child(3),
  #ezw_business_directory_loadingOverlay .dots span:nth-child(3) { animation-delay: 0.4s; }

  @media (max-width: 640px) {
    .ezw_business_directory .top-bar { flex-direction: column; align-items: flex-start; }
    .ezw_business_directory .match-cards-row { grid-template-columns: 1fr; }
    .ezw_business_directory .search-input { width: 160px; }
    .ezw_business_directory .biz-grid { grid-template-columns: 1fr; }
  }