/* ==========================================================================
   Listing detail
   ========================================================================== */

.ld-gallery {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  overflow: hidden;
}

.ld-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ld-slide {
  position: relative;
  flex: none;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
}

.ld-gallery-bar {
  position: absolute;
  top: 0;
  inset-inline: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3);
  gap: var(--s-2);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
  z-index: 2;
}

.ld-gallery-bar .spacer { flex: 1; }

.ld-counter {
  position: absolute;
  bottom: var(--s-3);
  inset-inline-start: var(--s-3);
  z-index: 2;
  height: 26px;
  padding-inline: var(--s-3);
  border-radius: var(--r-full);
  background: rgba(13, 13, 15, 0.68);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #fff;
}

.ld-dots {
  position: absolute;
  bottom: var(--s-3);
  inset-inline: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 2;
}

.ld-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: all var(--dur-fast);
}

.ld-dot.is-active {
  background: var(--gold-2);
  width: 18px;
  border-radius: var(--r-full);
}

/* ---- Breadcrumb ---- */
.ld-crumb {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-3) var(--s-4) 0;
  font-size: var(--fs-xs);
  color: var(--text-faint);
  flex-wrap: wrap;
}

.ld-crumb .sep { opacity: 0.6; }
.ld-crumb button { color: var(--text-muted); }

/* ---- Head ---- */
.ld-head { padding: var(--s-3) var(--s-4) var(--s-4); }

.ld-title {
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: var(--s-3);
}

.ld-price {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--gold-2);
  line-height: 1.4;
}

.ld-price-tags {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-top: var(--s-3);
}

.ld-submeta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-3);
  font-size: var(--fs-xs);
  color: var(--text-faint);
}

.ld-submeta .m { display: inline-flex; align-items: center; gap: 4px; }

/* ---- Specs table ---- */
.spec-table {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.spec-row {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: var(--s-2) var(--s-3);
  gap: var(--s-3);
  font-size: var(--fs-sm);
}

.spec-row:nth-child(odd) { background: var(--surface); }
.spec-row + .spec-row { border-top: 1px solid var(--border); }

.spec-row .sk {
  color: var(--text-muted);
  flex: none;
  width: 40%;
}

/* Values are pinned left so the column reads straight. Without this they split:
   `.num` sets `unicode-bidi: plaintext`, so digits-only values ("۱۳۹۹") resolve
   LTR and sit left while text values ("اتوماتیک") resolve RTL and sit right. */
.spec-row .sv {
  color: var(--text);
  font-weight: 600;
  flex: 1;
  min-width: 0;
  text-align: left;
}

/* ---- Description ---- */
.ld-desc {
  font-size: var(--fs-md);
  color: var(--text-2);
  line-height: 2;
  white-space: pre-wrap;
}

/* ---- Seller ---- */
.seller-card {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.seller-card .verified {
  color: var(--gold-2);
  display: inline-flex;
  vertical-align: middle;
  margin-inline-start: 4px;
}

/* ---- Safety note ---- */
.safety-note {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: var(--gold-softer);
  border: 1px solid rgba(245, 166, 35, 0.22);
  font-size: var(--fs-xs);
  color: var(--text-2);
  line-height: 1.9;
}

.safety-note .sn-ico { color: var(--gold-2); flex: none; }

/* ---- Revealed phone ---- */
.phone-reveal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--gold-soft);
  border: 1px dashed var(--gold-1);
  color: var(--gold-2);
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.listing-address {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}

.listing-address-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: var(--r-sm);
  color: var(--gold-2);
  background: var(--gold-soft);
}

.listing-address strong,
.listing-address > span:last-child {
  display: block;
}

.listing-address strong {
  font-size: var(--fs-sm);
}

.listing-address > span:last-child > span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  line-height: 1.8;
}

.listing-video {
  width: 100%;
  max-height: 360px;
  border-radius: var(--r-md);
  background: #08080a;
  border: 1px solid var(--border);
}
