/* Gallery listing cards */
body .g24-listing-card {
  --g24-card-green: #1C3440;
  --g24-card-hover: #102530;
  --g24-card-muted: #3f4844;
  --g24-card-chip: #f5f4f2;
}

@media (min-width: 992px) {
  body .g-item-box:has(.g24-listing-card) {
    gap: 18px;
  }

  body .g-item-box-5-items-in-row:has(.g24-listing-card),
  body .j-lasted-list:has(.g24-listing-card) {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

body .g-item-box .g24-listing-card {
  border-radius: 8px;
}

body .g-item-box .g24-listing-card .g-item-in {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 35, 30, 0.08);
}

body .g-item-box .g24-listing-card:hover .g-item-in {
  box-shadow: 0 8px 20px rgba(15, 35, 30, 0.12);
}

body .g-item-box .g24-listing-card .c-shadow-overflow {
  margin-right: 0 !important;
}

body .g-item-box .g24-listing-card .c-shadow-overflow::after {
  display: none !important;
}

body .g-item-box .g24-listing-card .c-item-img-box {
  display: block;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: #edf1ef;
  aspect-ratio: 5 / 3.2;
}

body .g-item-box .g24-listing-card .c-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body .g-item-box .g24-listing-card .c-item-labels {
  top: 12px;
  left: 12px;
  z-index: 8;
  display: flex;
  gap: 6px;
}

body .g-item-box .g24-listing-card .c-item-labels .badge {
  border: 0;
  border-radius: 6px;
  padding: 7px 10px;
  background: var(--g24-card-green) !important;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(13, 42, 34, 0.25);
}

body .g-item-box .g24-listing-card .c-item-img-count {
  left: 12px;
  bottom: 12px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(18, 22, 20, 0.48);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
}

body .g-item-box .g24-listing-card .c-item-img-count .ico {
  width: 13px;
  min-width: 13px;
}

body .g-item-box .g24-listing-card .c-item-fav.active .ico,
body .g-item-box .g24-listing-card .c-item-fav.active:hover .ico {
  color: #4f50a3 !important;
}

body .g-item-box .g24-listing-card .c-item-fav.active .ico::before {
  color: #4f50a3 !important;
}

body .g-item-box .g24-listing-card .g-item-info {
  gap: 8px;
  padding: 12px 15px 14px;
}

body .g-item-box .g24-listing-card .g-item-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.7em;
  max-height: none;
  color: var(--g24-card-green);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body .g-item-box .g24-listing-card .g-item-title:hover {
  color: var(--g24-card-hover);
  text-decoration: none;
}

body .g-item-box .g24-listing-card .rp-it-params {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  overflow: visible;
  max-height: none;
  color: #252b28;
}

body .g-item-box .g24-listing-card .rp-it-params > span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  min-height: 26px;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--g24-card-chip);
  color: #303633;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

body .g-item-box .g24-listing-card .rp-it-params > span:empty {
  display: none;
}

body .g-item-box .g24-listing-card .rp-it-params img {
  width: 13px;
  height: 13px;
  object-fit: contain;
  opacity: 0.82;
}

@media (min-width: 992px) {
  body .g-item-box .g24-listing-card .rp-it-params {
    flex-wrap: nowrap;
    overflow: hidden;
  }

  body .g-item-box .g24-listing-card .rp-it-params:has(> span:nth-of-type(5):not(:empty)) {
    flex-wrap: wrap;
    overflow: visible;
  }
}

body .g-item-box .g24-listing-card .g-item-address {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 6px;
  margin-top: 0 !important;
  color: var(--g24-card-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

body .g-item-box .g24-listing-card .g-item-address::before {
  content: "\f3c5";
  flex: 0 0 auto;
  color: var(--g24-card-muted);
  font-family: "Font Awesome 5 Free";
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

body .g-item-box .g24-listing-card .g-item-footer {
  flex: 0 0 auto;
  min-height: 0;
  padding-top: 2px;
}

body .g-item-box .g24-listing-card .g-item-price-box {
  min-height: 31px;
  margin-top: 0;
  gap: 6px;
}

body .g-item-box .g24-listing-card .c-item-price {
  color: var(--g24-card-green);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

body .g-item-box .g24-listing-card .g-item-price-auction,
body .g-item-box .g24-listing-card .g-item-price-loan {
  color: var(--g24-card-muted);
}

@media (max-width: 991px) {
  body .g-item-box-cols-mobile:has(.g24-listing-card) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-left: -10px;
    margin-right: -10px;
  }

  body .g-item-box .g24-listing-card {
    border-radius: 10px;
  }

  body .g-item-box .g24-listing-card .g-item-in {
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(15, 35, 30, 0.09);
  }

  body .g-item-box .g24-listing-card .c-item-img-box {
    border-radius: 10px 10px 0 0;
    aspect-ratio: 1 / 1;
  }

  body .g-item-box .g24-listing-card .g-item-info {
    gap: 9px;
    padding: 14px 12px 13px !important;
  }

  body .g-item-box .g24-listing-card .g-item-title {
    min-height: 2.5em;
    font-size: 16px;
    line-height: 1.25;
  }

  body .g-item-box .g24-listing-card .rp-it-params {
    gap: 6px;
  }

  body .g-item-box .g24-listing-card .rp-it-params > span {
    min-height: 30px;
    padding: 6px 8px;
    font-size: 13px;
  }

  body .g-item-box .g24-listing-card .rp-it-params img {
    width: 15px;
    height: 15px;
  }

  body .g-item-box .g24-listing-card .g-item-address {
    gap: 5px;
    font-size: 13px;
  }

  body .g-item-box .g24-listing-card .c-item-price {
    font-size: 18px;
  }

  body .g-item-box .g24-listing-card .c-item-labels {
    top: 10px;
    left: 10px;
  }

  body .g-item-box .g24-listing-card .c-item-labels .badge {
    padding: 7px 10px;
    font-size: 12px;
  }

  body .g-item-box .g24-listing-card .c-item-img-count {
    left: 9px;
    bottom: 9px;
    min-height: 22px;
    padding: 3px 6px;
    font-size: 12px;
  }

  body .g-item-box .g24-listing-card .g-item-xtra-info {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  body .g-item-box-cols-mobile:has(.g24-listing-card) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 324px) {
  body .g-item-box-cols-mobile:has(.g24-listing-card) {
    display: flex;
    flex-direction: column;
    margin-left: -15px;
    margin-right: -15px;
  }

  body .g-item-box .g24-listing-card,
  body .g-item-box .g24-listing-card .g-item-in,
  body .g-item-box .g24-listing-card .c-item-img-box {
    border-radius: 0;
  }
}
