/* Elenya Directorist category archive override - scoped to the category landing only. */

#directorist.elenya-directorist-reset,
#directorist.elenya-directorist-reset * {
  box-sizing: border-box;
}

#directorist.elenya-directorist-reset {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: #16110d;
}

#directorist .elenya-categories-page {
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 124, 83, 0.08), transparent 28%),
    linear-gradient(180deg, #fffaf6 0%, #fbf7f2 58%, #fffaf6 100%);
  padding: 22px 0 26px;
}

#directorist .elenya-cat-container {
  width: min(1290px, calc(100vw - 82px));
  margin: 0 auto;
}

#directorist .elenya-cat-hero {
  display: grid;
  grid-template-columns: minmax(380px, 1fr) 650px;
  align-items: end;
  gap: 28px;
  width: 100%;
}

#directorist .elenya-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #5f554e;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

#directorist .elenya-breadcrumb a {
  color: #5f554e;
  text-decoration: none;
}

#directorist .elenya-breadcrumb span:last-child {
  color: #211915;
}

#directorist .elenya-cat-hero__copy h1 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: #17110e;
}

#directorist .elenya-cat-hero__copy p {
  max-width: 560px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.5;
  color: #211915;
}

#directorist .elenya-cat-hero__badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

#directorist .elenya-info-card {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  align-items: start;
  padding: 12px;
  border: 1px solid #eaded6;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 25px rgba(36, 24, 16, 0.035);
}

#directorist .elenya-info-card svg {
  height: 20px;
  color: var(--bricks-color-bjamlf);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.elenya-info-card__icon {
  background-color: var(--elenya-cream);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

#directorist .elenya-info-card strong {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  color: #17110d;
}

#directorist .elenya-info-card span {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.36;
  color: #2b221d;
}

#directorist .elenya-cat-search {
  display: grid;
  grid-template-columns: 1.38fr 1.15fr 1fr 222px;
  align-items: center;
  gap: 0;
  min-height: 64px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #eadfd7;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 25px rgba(126, 62, 25, 0.17);
  gap: 12px 0px;
}

#directorist .elenya-cat-search__field {
  position: relative;
  display: block;
  /* height: 40px; */
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-left: 1px solid #eee5de;
  margin-bottom: 0;
}

#directorist .elenya-cat-search__field--what {
  padding-left: 0px;
  border-left: 0;
}

.elenya-cat-search__field-inner {
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid #d3d3d3;
  border-radius: 5px;
  background: #fff;
  padding: 3px 12px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  .elenya-cat-search-wrap {
    height: 34px;
    flex: 1;
  }
}

#directorist .elenya-cat-search__label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  color: #1c1511;
}

#directorist .elenya-cat-search input {
  width: 100%;
  min-height: auto;
  margin: 0;
  padding: 0;
  border: 0 !important;
  outline: 0;
  background: transparent;
  box-shadow: none !important;
  color: #1e1713;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
}

#directorist .elenya-cat-search input::placeholder {
  color: #817873;
  opacity: 1;
}

#directorist .elenya-cat-search__icon,
#directorist .elenya-cat-search__right-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #17110e;
  font-size: 16px;
  line-height: 1;
}

#directorist .elenya-cat-search__icon {
  left: 12px;
}

#directorist .elenya-cat-search__right-icon {
  right: 14px;
  color: #4d443e;
}

#directorist .elenya-cat-search__button {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 5px;
  background: #0f0e0e;
  color: #fff;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: 0.01em;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

#directorist .elenya-cat-search__button:hover {
  background: var(--bricks-color-bjamlf);
}

#directorist .elenya-cat-content {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}

#directorist .elenya-cat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 100px;
  .elenya-cat-sidebar__box,
  .elenya-match-box {
    border: 1px solid #eadbd0;
    border-radius: 10px;

    box-shadow: 0 6px 18px rgba(35, 24, 17, 0.035);
  }
  .elenya-match-box {
    background: var(--elenya-cream);
  }
}

#directorist .elenya-cat-sidebar__box {
  padding: 12px;
  background: #fff;
  h2 {
    margin: 0 0 10px;
    padding: 8px 12px;
    color: var(--bricks-color-bjamlf);
    background: var(--elenya-cream);
    font-size: 12px;
    border-radius: 10px;
    font-weight: 850;
    line-height: 1;
  }
  ul {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-left: 12px;
    padding: 0;
    list-style: none;
    li {
      margin: 0;
      padding: 0;
      a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-height: 21px;
        color: #1d1611;
        text-decoration: none;
        font-size: 12px;
        font-weight: 680;
        line-height: 1.1;
        .elenya-cat-sidebar__name {
          display: flex;
          align-items: flex-start;
          gap: 10px;
          min-width: 0;
          font-weight: 500;
          svg {
            width: 13px;
            min-width: 13px;
            height: 13px;
            color: var(--bricks-color-bjamlf);
            stroke: currentColor;
            fill: none;
            stroke-width: 1.9;
            stroke-linecap: round;
            stroke-linejoin: round;
          }
        }
        .elenya-cat-sidebar__count {
          min-width: 30px;
          height: 18px;
          display: inline-flex;
          align-items: center;
          justify-content: center;
          padding: 0 7px;
          border-radius: 999px;
          background: #f4eee9;
          color: #5d544e;
          font-size: 9px;
          font-weight: 800;
        }
        &:hover {
          color: var(--bricks-color-bjamlf);
          .elenya-cat-sidebar__count {
            color: var(--bricks-color-bjamlf);
          }
        }
      }
    }
  }
}

#directorist .elenya-match-box {
  padding: 16px 18px 18px;
  h3 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    color: #19120e;
  }
  p {
    margin: 0 0 14px;
    color: #30251e;
    font-size: 12px;
    font-weight: 560;
    line-height: 1.4;
  }
  a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bricks-color-bjamlf);
    text-decoration: none;
    font-size: 12px;
    font-weight: 850;
  }
}

#directorist .elenya-cat-main {
  min-width: 0;
}

#directorist .elenya-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

#directorist .elenya-cat-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 8px;
  border: 1px solid #eaded7;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 7px 18px rgba(35, 24, 17, 0.035);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  &:hover {
    border-color: rgba(122, 62, 19, 0.42);
    box-shadow: 0 16px 28px rgba(35, 24, 17, 0.09);
    .elenya-cat-card__image img {
      transform: scale(1.04);
    }
  }
  &.is-hidden {
    display: none;
  }
  .elenya-cat-card__image {
    display: block;
    height: 96px;
    border-radius: 9px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5e7dc, #fff7f1);
    text-decoration: none;
    img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      transition: transform 0.25s ease;
    }
  }
  .elenya-cat-card__icon {
    position: absolute;
    top: 73px;
    left: 10px;
    z-index: 2;
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 7px 16px rgba(55, 38, 25, 0.08);
    svg {
      width: 22px;
      height: 22px;
      color: var(--bricks-color-bjamlf);
      stroke: currentColor;
      fill: none;
      stroke-width: 1.9;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
  }
  .elenya-cat-card__body {
    padding: 22px 12px 6px;
    flex: 1;
    display: flex;
    flex-direction: column;
    h3 {
      margin: 0 0 7px;
      color: #19130f;
      font-family: Georgia, "Times New Roman", serif;
      font-size: 15px;
      font-weight: 600;
      line-height: 1.08;
      letter-spacing: -0.01em;
      a {
        color: inherit;
        text-decoration: none;
      }
    }
    p {
      min-height: 34px;
      margin: 0 0 13px;
      color: #3e332c;
      font-size: 11.5px;
      font-weight: 520;
      line-height: 1.42;
      flex: 1;
    }
    .elenya-cat-card__meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      flex-wrap: wrap;
      strong {
        color: #19130f;
        font-size: 11.5px;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
      }
      a {
        min-width: 108px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid #f0e6df;
        border-radius: 5px;
        background: #fff;
        color: #111;
        text-decoration: none;
        line-height: 12px;
        font-size: 11px;
        padding: 6px 10px;
        font-weight: 600;
        transition:
          border-color 0.18s ease,
          color 0.18s ease,
          background 0.18s ease;
        span {
          color: var(--bricks-color-bjamlf);
        }
        &:hover {
          border-color: var(--bricks-color-bjamlf);

          color: var(--bricks-color-bjamlf);
        }
      }
    }
  }
  &.elenya-cat-card--no-image {
    .elenya-cat-card__image-placeholder {
      display: block;
      width: 100%;
      height: 100%;
      background:
        radial-gradient(
          circle at 72% 35%,
          rgba(255, 89, 47, 0.2),
          transparent 0 18%,
          transparent 34%
        ),
        linear-gradient(135deg, #f6e8dd, #fff9f3);
    }
  }
}

#directorist .elenya-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px auto 0;
  border: 0;
  background: transparent;
  color: #17110d;
  cursor: pointer;
  font-size: 13px;
  padding: 6px 14px;
  background: #f4eee9;
  border-radius: 5px;
  font-weight: 700;
  &:hover {
    color: var(--bricks-color-bjamlf);
  }
}

#directorist .elenya-load-more--static {
  cursor: default;
}

#directorist .elenya-trust-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-height: 80px;
  margin: 18px 0 0;
  border: 1px solid #eadfd7;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
}

#directorist .elenya-trust-strip > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  column-gap: 13px;
  align-content: center;
  padding: 17px 18px;
  border-right: 1px solid #eadfd7;
}

#directorist .elenya-trust-strip > div:last-child {
  border-right: 0;
}

#directorist .elenya-trust-strip svg {
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 999px;
  background: #fff5ef;
  color: var(--bricks-color-bjamlf);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#directorist .elenya-trust-strip strong {
  margin: 0 0 4px;
  color: #15100d;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.1;
}

#directorist .elenya-trust-strip span {
  color: #2e251f;
  font-size: 11.5px;
  font-weight: 520;
  line-height: 1.35;
}

@media (max-width: 1240px) {
  #directorist .elenya-cat-container {
    width: min(1120px, calc(100vw - 40px));
  }

  #directorist .elenya-cat-hero {
    grid-template-columns: 1fr;
  }

  #directorist .elenya-cat-hero__badges {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #directorist .elenya-cat-content {
    grid-template-columns: 230px minmax(0, 1fr);

    gap: 24px;
  }

  #directorist .elenya-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #directorist .elenya-trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #directorist .elenya-trust-strip > div:nth-child(3n) {
    border-right: 0;
  }
}

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

  #directorist .elenya-cat-search {
    /* gap: 12px; */
    padding: 14px;
  }

  #directorist .elenya-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  #directorist .elenya-cat-container {
    width: min(100% - 24px, 520px);
  }

  #directorist .elenya-cat-hero__copy h1 {
    font-size: 31px;
  }

  #directorist .elenya-trust-strip {
    grid-template-columns: 1fr;
  }

  #directorist .elenya-trust-strip > div,
  #directorist .elenya-trust-strip > div:nth-child(3n) {
    border-right: 0;
    border-bottom: 1px solid #eadfd7;
  }

  #directorist .elenya-trust-strip > div:last-child {
    border-bottom: 0;
  }
}

/* Dynamic Directorist category/search fixes */

#directorist .elenya-cat-search select {
  width: 100%;
  min-height: auto;
  margin: 0;
  padding: 0 22px 0 0;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #827a72;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

#directorist .elenya-cat-search select:invalid,
#directorist .elenya-cat-search select option[value=""] {
  color: #817873;
}

#directorist .elenya-cat-search__right-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

#directorist .elenya-term-icon {
  display: inline-block;

  object-fit: contain;
}

#directorist .elenya-cat-sidebar__name img.elenya-term-icon {
  width: 15px;
  min-width: 15px;
  height: 15px;
  border-radius: 0;
}

#directorist .elenya-cat-sidebar__name i.elenya-term-icon {
  width: 15px;
  min-width: 15px;
  height: 15px;
  color: var(--bricks-color-bjamlf);
  font-size: 14px;
  line-height: 15px;
  text-align: center;
}

#directorist .elenya-cat-card__icon img.elenya-term-icon {
  width: 25px;

  height: 25px;
}

#directorist .elenya-cat-card__icon i.elenya-term-icon {
  color: var(--bricks-color-bjamlf);
  font-size: 22px;
  line-height: 1;
}

#directorist .elenya-cat-empty {
  margin: 18px 0 30px;
  padding: 22px;
  border: 1px solid #eaded7;
  border-radius: 12px;
  background: #fff;
  color: #1d1611;
  font-size: 14px;
  font-weight: 700;
}

/* Same-page category search date field */

#directorist .elenya-cat-search__field--when .elenya-input-wrap {
  position: relative;
  display: block;
  width: 100%;
}

#directorist .elenya-cat-search__field--when input[type="date"] {
  cursor: pointer;
  position: relative;
  z-index: 1;
  background: transparent;
}

#directorist
  .elenya-cat-search__field--when
  input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.01;
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
}

#directorist .elenya-cat-search__field--when .elenya-fake-placeholder {
  position: absolute;
  left: 0;
  right: 34px;
  bottom: 0;
  height: 21px;
  display: flex;
  align-items: center;
  color: #6f6762;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  pointer-events: auto;
  z-index: 2;
  background: #fff;
}

#directorist
  .elenya-cat-search__field--when
  .elenya-input-wrap.is-filled
  .elenya-fake-placeholder {
  display: none;
}

#directorist .elenya-cat-search__field--when .elenya-date-trigger {
  cursor: pointer;
}

/* Embedded results inside the categories page */

#directorist .elenya-sr-wrap--embedded {
  margin: 36px 0 8px;
}

#directorist .elenya-sr-wrap--embedded .elenya-sr-results-area {
  padding: 0;
  background: transparent;
}

#directorist .elenya-sr-wrap--embedded .elenya-sr-container {
  width: 100%;
  max-width: none;
  padding: 0;
}

#directorist .elenya-sr-layout--embedded {
  display: block;
}

#directorist .elenya-sr-results-main--embedded {
  width: 100%;
  min-width: 0;
}

#directorist .elenya-sr-inline-sort-form {
  margin: 0;
}

#directorist .elenya-sr-wrap--embedded .elenya-sr-toolbar__right {
  flex-wrap: wrap;
}

#directorist .elenya-sr-wrap--embedded .elenya-sr-map-panel {
  min-height: 520px;
}

.elenya-categories-page .elenya-cat-container {
  gap: 20px;
}

.elenya-cat-icon {
  color: #1e1713;
  line-height: 0;
  z-index: 2;
  svg {
    height: 18px;
    width: 18px;
  }
}

@media (max-width: 1400px) {
  #directorist {
    .elenya-cat-hero {
      grid-template-columns: 1fr 2fr !important;
    }

    .elenya-cat-content {
      gap: 20px;
    }
  }
}

@media (max-width: 1300px) {
  .elenya-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1200px) {
  #directorist .elenya-cat-hero {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1024px) {
  #directorist .elenya-cat-search {
    grid-template-columns: 1fr 1fr !important;
    .elenya-cat-search__field--when {
      border-left: 0 !important;

      padding-left: 0px !important;
    }
    .elenya-cat-search__field--where {
      padding-right: 0px !important;
    }
  }

  .elenya-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 992px) {
  #directorist .elenya-cat-hero__badges {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 700px) {
  .elenya-cat-content {
    grid-template-columns: 1fr !important;
    .elenya-cat-sidebar {
      position: initial !important;
    }
  }

  #directorist .elenya-cat-search {
    grid-template-columns: 1fr !important;

    .elenya-cat-search__field {
      border-left: 0 !important;
      padding-right: 0 !important;
      padding-left: 0px !important;
    }
  }
}

@media (max-width: 478px) {
  #directorist .elenya-cat-hero__badges,
  #directorist .elenya-cat-grid {
    grid-template-columns: 1fr !important;
  }
}
