@media (min-width: 901px) {
  .content {
    display: flex;

    direction: ltr;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    max-width: 1250px;
    margin: 24px auto 0 auto;
    padding: 0 0 50px 0;
    box-sizing: border-box;
  }

  .content > .filter-bar {
    direction: rtl;
    order: 2;
  }

  .content > .results-section {
    direction: rtl;
    order: 1;
  }
}
.filter-bar {
  width: 200px;
  min-width: 10000px;
  max-width: 170px;
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 3px 14px #38eaa414;
  border: 1.5px solid #dff5e9;
  padding: 20px 18px 18px 18px;
  margin: 0;
  position: sticky;
  top: 34px;
  align-self: flex-start;
  display: block;
  z-index: 1;
}
.filter-bar h2 {
  font-size: 19px;
  color: #18995a;
  margin: 0 0 18px 0;
  font-weight: 700;
  border-bottom: 1px solid #e7f4ed;
  padding-bottom: 7px;
  letter-spacing: 0.1px;
}
.filter-group {
  margin-bottom: 17px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-group label {
  font-size: 14px;
  color: #15804a;
  font-weight: bold;
  margin-bottom: 3px;
}
.filter-row {
  display: flex;
  gap: 8px;
}
.filter-group input,
.filter-group select {
  border: 1.5px solid #e0f3ea;
  border-radius: 7px;
  padding: 7px 8px;
  font-size: 15px;
  font-family: inherit;
  background: #f8fdfa;
  color: #218a4d;
  outline: none;
  margin-bottom: 2px;
  transition:
    border 0.19s,
    box-shadow 0.14s;
  box-shadow: 0 1px 4px #b9f8e607;
}
.filter-group input:focus,
.filter-group select:focus {
  border-color: #22c37d;
  background: #fff;
  box-shadow: 0 2px 9px #c3f7e115;
}
.apply-filter-btn {
  width: 100%;
  background: #22c37d;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  padding: 10px 0;
  border: none;
  border-radius: 8px;
  margin-top: 6px;
  cursor: pointer;
  transition: background 0.14s;
  letter-spacing: 0.15px;
  margin-bottom: 4px;
  box-shadow: 0 2px 13px #22c37d17;
}
.apply-filter-btn:hover {
  background: #1a9657;
}
.filter-group:last-child {
  margin-bottom: 10px;
}
@media (min-width: 901px) {
  .filter-row input[type="text"],
  .filter-row input[type="number"] {
    width: 25px;
    min-width: 50px;
    max-width: 50px;
    padding: 6px 6px;
    font-size: 8px;
    margin-bottom: 0;
    margin-right: 0;
    margin-left: 0;
    display: inline-block;
    text-align: center;
  }
  .filter-row {
    gap: 6px;
  }
}
@media (min-width: 901px) {
  #priceFromInput,
  #priceToInput,
  #yearFromInput,
  #yearToInput,
  #kmFromInput,
  #kmToInput {
    width: 50px;
    min-width: 62px;
    max-width: 62px;
    padding: 5px 5px;
    font-size: 13px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 0;
    margin-right: 0;
    margin-left: 0;
    display: inline-block;
    background: #fafdff;
    color: #218a4d;
    border: 1.3px solid #e0f3ea;
    transition: border 0.18s;
  }
  #priceFromInput:focus,
  #priceToInput:focus,
  #yearFromInput:focus,
  #yearToInput:focus,
  #kmFromInput:focus,
  #kmToInput:focus {
    border: 1.5px solid #22c37d;
    background: #fff;
  }
}

@media (min-width: 901px) {
  .results-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    min-width: 0;
    max-width: 900px;
    margin: 0;
  }
  .ad-card {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    background: #fff;
    border: 1.2px solid #e1e7e2;
    border-radius: 13px;
    box-shadow: 0 1.5px 12px #90c6a71a;
    width: 100%;
    max-width: 870px;
    min-width: 820px;
    margin: 0 0 14px 0;
    transition:
      box-shadow 0.17s,
      transform 0.13s;
    overflow: hidden;
    cursor: pointer;
    position: relative;
  }
  .ad-card:hover {
    box-shadow: 0 6px 24px #49d88a26;
    transform: translateY(-3px) scale(1.012);
  }
  .ad-image {
    width: 210px;
    min-width: 210px;
    max-width: 230px;
    height: 150px;
    background: #f3faf6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-left: none;
    border-right: 1.5px solid #f2f5f5;
    position: relative;
  }
  .ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
  }
  .ad-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 25px 16px 10px;
    gap: 7px;
    min-width: 0;
    position: relative;
  }
  .ad-location {
    color: #888;
    font-size: 15px;
    margin-bottom: 1.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
  }
  .ad-location img {
    width: 19px;
    height: 19px;
    margin-left: 4px;
    margin-right: 0;
    opacity: 0.8;
  }
  .ad-title {
    margin: 0 0 3px 0;
    font-size: 20px;
    font-weight: bold;
    color: #192a21;
    line-height: 1.14;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ad-desc {
    font-size: 15px;
    color: #3a493b;
    margin-bottom: 2.5px;
    margin-top: 0px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .ad-meta-bar {
    display: flex;
    gap: 8px;
    margin-top: 0px;
    margin-bottom: 2px;
    justify-content: flex-start;
    align-items: center;
  }
  .ad-meta-bar span {
    background: #f5faf8;
    border-radius: 7px;
    padding: 2.5px 13px;
    color: #18411a;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #d3eede;
    min-width: 68px;
    text-align: center;
    letter-spacing: 0.1px;
    display: inline-block;
  }
  .ad-price {
    font-size: 25px;
    color: #3476c4;
    font-weight: bold;
    margin-top: 6px;
    margin-bottom: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: inline-block;
    align-self: flex-start;
    letter-spacing: 0.6px;
  }
  .ad-date {
    font-size: 13.2px;
    color: #90b79a;
    margin-top: 7px;
    text-align: left;
    align-self: flex-start;
    font-weight: 500;
    margin-bottom: 0;
  }
  .ad-img-count {
    position: absolute;
    bottom: 9px;
    right: 16px;
    background: #2e4633e6;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    padding: 2px 10px 2px 7px;
    z-index: 4;
    font-family: inherit;
    font-weight: bold;
    letter-spacing: 0.1px;
  }
}

html body,
html body button,
html body input,
html body select,
html body textarea,
html body a,
html body p,
html body span,
html body div,
html body label,
html body h1,
html body h2,
html body h3,
html body h4,
html body li {
  font-family: "Noto Naskh Arabic UI", "Noto Naskh Arabic", "Tajawal", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif !important;
}

:root {
  --b24-ui-font: "Noto Naskh Arabic UI", "Noto Naskh Arabic", "Noto Kufi Arabic", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --b24-listing-font: "Noto Naskh Arabic UI", "Noto Naskh Arabic", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

html body,
html body button,
html body input,
html body select,
html body textarea,
html body label,
html body .site-title,
html body .brand-name,
html body .brand-number,
html body .b24-header-action-btn,
html body .b24-category-trigger,
html body .b24-menu-main button,
html body .b24-menu-sub button,
html body .section p,
html body .ads-row-header h2,
html body .b24-ad-placeholder,
html body .b24-ad-placeholder * {
  font-family: var(--b24-ui-font) !important;
}

html body .ads-slider-card,
html body .ads-slider-card *,
html body .ad-card,
html body .ad-card *,
html body .listing-card,
html body .listing-card *,
html body .result-card,
html body .result-card *,
html body .ads-slider-title,
html body .ads-slider-meta,
html body .ads-slider-price {
  font-family: var(--b24-listing-font) !important;
}

@media (min-width: 901px) {
  html body header .header-actions-row {
    margin-bottom: 0 !important;
  }

  html body .b24-home-ad-slot {
    margin-top: -16px !important;
    margin-bottom: -18px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  html body .b24-ad-placeholder {
    min-height: 52px !important;
    padding: 5px 14px !important;
  }

  html body #sectionsContainer.sections-container {
    margin-top: -42px !important;
    margin-bottom: -8px !important;
  }

  html body #mainAdsSliders {
    margin-top: -28px !important;
    margin-bottom: 16px !important;
  }

  html body .ads-slider-row {
    margin-bottom: 8px !important;
  }
}

@media (max-width: 900px) {
  html body .b24-home-ad-slot {
    margin-top: -8px !important;
    margin-bottom: -10px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  html body .b24-ad-placeholder {
    min-height: 54px !important;
    padding: 5px 10px !important;
  }

  html body #sectionsContainer.sections-container {
    margin-top: -28px !important;
    margin-bottom: 0 !important;
  }

  html body #mainAdsSliders {
    margin-top: -16px !important;
  }
}

.b24-results-featured-slot {
  width: min(1050px, 94vw);
  min-height: 74px;
  margin: 22px auto 28px auto;
  border: 1px dashed #b8d0ea;
  border-radius: 18px;
  background: #f7fbff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2a6cb9;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(52, 118, 196, 0.06);
}
@media (min-width: 901px) {
  .content {
    margin-top: 24px !important;
  }
}
.filter-bar h2.filter-title-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  margin: 0 auto 18px auto !important;
  padding: 0 !important;
  border: 1px solid rgba(52, 118, 196, 0.18) !important;
  border-radius: 14px !important;
  background: #f7fbff !important;
  box-shadow: none !important;
  overflow: hidden !important;
  line-height: 1 !important;
}
.filter-bar h2.filter-title-icon svg {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  display: block !important;
  fill: none !important;
  stroke: #3476c4 !important;
  color: #3476c4 !important;
}
.filter-bar h2.filter-title-icon svg * {
  fill: none !important;
  stroke: #3476c4 !important;
}
.apply-filter-btn,
button.apply-filter-btn,
.filter-bar .apply-filter-btn,
.mobile-filter-modal .apply-filter-btn {
  background: #3476c4 !important;
  color: #fff !important;
  border: none !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: none !important;
}
.apply-filter-btn:hover,
button.apply-filter-btn:hover {
  background: #1e61af !important;
  color: #fff !important;
}
.apply-filter-btn svg,
button.apply-filter-btn svg {
  color: #fff !important;
  fill: #fff !important;
  stroke: #fff !important;
}
.apply-filter-btn svg *,
button.apply-filter-btn svg * {
  fill: #fff !important;
  stroke: #fff !important;
  color: #fff !important;
}
.apply-filter-btn::before,
button.apply-filter-btn::before,
.apply-filter-btn::after,
button.apply-filter-btn::after {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.ad-meta-bar.b24-specs,
.ad-meta-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  margin-top: 7px !important;
  margin-bottom: 3px !important;
  align-items: center !important;
  justify-content: flex-start !important;
}
.ad-meta-bar span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  min-width: auto !important;
  max-width: 100% !important;
  background: #f4f8fd !important;
  border: 1px solid #d5e4f3 !important;
  color: #26394f !important;
  border-radius: 999px !important;
  padding: 4px 10px !important;
  font-size: 12.7px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
}
.ad-meta-bar span b {
  color: #3476c4 !important;
  font-weight: 800 !important;
  margin-inline-end: 2px !important;
}
@media (min-width: 901px) {
  .ad-card {
    min-height: 178px !important;
  }
  .ad-image {
    height: auto !important;
    min-height: 178px !important;
  }
  .ad-detail {
    justify-content: flex-start !important;
    padding-top: 14px !important;
  }
}
@media (max-width: 900px) {
  .ad-card {
    height: auto !important;
    min-height: 148px !important;
  }
  .ad-image {
    height: auto !important;
    min-height: 148px !important;
  }
  .ad-meta-bar {
    max-height: 45px !important;
    overflow: hidden !important;
  }
  .ad-meta-bar span {
    font-size: 11.2px !important;
    padding: 2.5px 7px !important;
    gap: 3px !important;
  }
}

@media (min-width: 901px) {
  :root {
    --b24-results-shell-width: 1084px;
    --b24-results-shell-vw: 94vw;
  }
  .b24-results-featured-slot,
  #resultsCategoriesStrip.b24-results-categories,
  .content {
    width: min(var(--b24-results-shell-width), var(--b24-results-shell-vw)) !important;
    max-width: min(var(--b24-results-shell-width), var(--b24-results-shell-vw)) !important;
    box-sizing: border-box !important;
  }
  .content > .results-section .ad-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {
  .result-card .card-image,
  .listing-card .card-image {
    min-height: 220px;
  }
  .result-card .specs,
  .listing-card .specs {
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: 44px;
  }
  .result-card .specs i,
  .listing-card .specs i {
    font-size: 1.15em;
  }
}
.ad-card.is-promoted {
  border-color: rgba(52, 118, 196, 0.32) !important;
  box-shadow: 0 7px 22px rgba(52, 118, 196, 0.1) !important;
}
.ad-image {
  position: relative;
  overflow: hidden;
}
.b24-result-featured-ribbon {
  position: absolute;
  top: 11px;
  left: -36px;
  right: auto;
  width: 136px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transform: rotate(-45deg);
  background: rgba(52, 118, 196, 0.94);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  z-index: 6;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  direction: rtl;
}
.b24-result-featured-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 20px;
  padding: 2px 9px;
  border-radius: 5px;
  background: rgba(52, 118, 196, 0.78);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  direction: rtl;
  box-shadow: 0 2px 7px rgba(52, 118, 196, 0.16);
}
.b24-result-featured-date span {
  font-size: 10px;
  line-height: 1;
}
@media (max-width: 800px) {
  .b24-result-featured-ribbon {
    top: 8px;
    left: -40px;
    right: auto;
    width: 128px;
    height: 26px;
    font-size: 9px;
  }
  .b24-result-featured-date {
    min-height: 19px;
    padding: 2px 8px;
    font-size: 9px;
    border-radius: 5px;
  }
}
@media (min-width: 901px) {
  html body .content > .results-section .ad-location-date.has-featured-badge {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    padding-left: 0 !important;
    margin: 0 !important;
  }
  html body .content > .results-section .ad-location-date.has-featured-badge .b24-result-featured-date {
    flex: 0 0 auto !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    min-height: 21px !important;
    padding: 3px 9px !important;
    border-radius: 7px !important;
    background: rgba(52, 118, 196, 0.78) !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow: 0 2px 7px rgba(52, 118, 196, 0.16) !important;
  }
  html body .content > .results-section .ad-location-date.has-featured-badge .b24-result-featured-date span {
    color: #fff !important;
    font-size: 10px !important;
  }
}
