/* Sooqz Search Cards — Dubizzle-like search list card (plugin-owned) */

body#search #search-items .products.list .simple-prod .img-wrap {
  width: 280px;
  height: 204px;
  overflow: hidden;
  border-radius: 8px;
}
body#search #search-items .products.list .simple-prod .data {
  width: calc(100% - 296px);
}

@media screen and (max-width: 1024px) {
  body#search #search-items .products.list .simple-prod .img-wrap { width: 240px; height: 175px; }
  body#search #search-items .products.list .simple-prod .data { width: calc(100% - 256px); }
}
@media screen and (max-width: 768px) {
  body#search #search-items .products.list .simple-prod .img-wrap { width: 180px; height: 131px; }
  body#search #search-items .products.list .simple-prod .data { width: calc(100% - 196px); }
}

/* When plugin card is active, hide legacy list chrome that would duplicate */
body#search #search-items .products.list .simple-prod.ssc-active .info.isList,
body#search #search-items .products.list .simple-prod.ssc-active > .simple-wrap > .top-wrap,
body#search #search-items .products.list .simple-prod.ssc-active .data > .info,
body#search #search-items .products.list .simple-prod.ssc-active .data > .title:not(.ssc-title),
body#search #search-items .products.list .simple-prod.ssc-active .data > .specs:not(.ssc-specs),
body#search #search-items .products.list .simple-prod.ssc-active .data > .description:not(.ssc-description),
body#search #search-items .products.list .simple-prod.ssc-active .data > .extra,
body#search #search-items .products.list .simple-prod.ssc-active .data > .price.standalone:not(.ssc-price),
body#search #search-items .products.list .simple-prod.ssc-active .data > .favorite-block1,
body#search #search-items .products.list .simple-prod.ssc-active .data > .location,
body#search #search-items .products.list .simple-prod.ssc-active .marks .prem {
  display: none !important;
}

body#search #search-items .products.list .simple-prod.ssc-active .data {
  display: block;
  position: relative;
}

.ssc-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.ssc-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}
.ssc-price {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #111;
  margin: 0;
}
.ssc-premium-badge {
  flex-shrink: 0;
  background: #f59e0b;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.ssc-make-model {
  font-size: 16px;
  line-height: 18px;
  color: #37383a;
}

.ssc-title {
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  color: #111;
  margin: 0;
  max-height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ssc-title a { color: inherit; text-decoration: none; }
.ssc-title a:hover { text-decoration: underline; }

.ssc-specs,
.ssc-meta-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 13px;
  line-height: 18px;
  color: #374151;
}
.ssc-specs > span,
.ssc-meta-chip {
  display: inline-flex;
  align-items: center;
  margin-right: 14px;
  margin-bottom: 2px;
}
.ssc-specs > span i,
.ssc-meta-chip i {
  font-size: 12px;
  margin-right: 5px;
  color: #6b7280;
}

.ssc-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
}
.ssc-location i { font-size: 12px; }

.ssc-description {
  font-size: 13px;
  line-height: 18px;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ssc-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.ssc-contact-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.ssc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: background .15s ease;
}
.ssc-btn-phone {
  background: #fdecec;
  color: #1f2937;
}
.ssc-btn-phone i { color: #e11d48; }
.ssc-btn-phone:hover { background: #fad4d4; color: #111; text-decoration: none; }

.ssc-btn-wa {
  background: #e8f8ee;
  color: #1f2937;
}
.ssc-btn-wa i { color: #16a34a; font-size: 16px; }
.ssc-btn-wa:hover { background: #d5f3e0; color: #111; text-decoration: none; }

.ssc-seller {
  flex-shrink: 0;
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  background: #eee;
  align-self: flex-end;
}
.ssc-seller img {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  object-fit: cover !important;
  display: block;
  border-radius: 8px;
}

/* Phone modal */
.ssc-phone-modal[hidden] { display: none !important; }
.ssc-phone-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ssc-phone-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.ssc-phone-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}
.ssc-phone-x {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 26px;
  color: #6b7280;
  cursor: pointer;
  line-height: 1;
}
.ssc-phone-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-right: 24px;
}
.ssc-phone-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb;
}
.ssc-phone-head strong {
  font-size: 16px;
  color: #111;
}
.ssc-phone-tips {
  background: #eef6ff;
  border-radius: 12px;
  padding: 14px 14px 10px;
  margin-bottom: 16px;
}
.ssc-phone-tips-title {
  color: #2563eb;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}
.ssc-phone-tips ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ssc-phone-tips li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #2563eb;
  font-size: 13px;
  margin-bottom: 8px;
}
.ssc-phone-tips li i {
  width: 18px;
  text-align: center;
  margin-top: 2px;
}
.ssc-phone-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #0e7269ed;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 16px;
  border-radius: 10px;
  padding: 14px 16px;
}
.ssc-phone-call-btn:hover { background: #0b5c56; color: #fff !important; }

html.ssc-phone-open { overflow: hidden; }

@media screen and (max-width: 768px) {
  .ssc-price { font-size: 18px; }
  .ssc-btn { padding: 8px 10px; font-size: 12px; }
  .ssc-seller { width: 40px; height: 40px; }
}
