/**
 * Public Listing Page (Sprint 10.0) — production listing layout.
 * Uses DZD UI tokens. Visual language aligned with locked create Preview.
 */

.dzd-public-listing-page {
  background: var(--dzd-color-page, #eef0f5);
  min-height: 60vh;
}

.dzd-pl {
  --pl-max: var(--dzd-layout-max, 1310px);
  --pl-accent: var(--dzd-color-accent, #5e43d6);
  --pl-text: var(--dzd-color-text, #111322);
  --pl-muted: var(--dzd-color-text-muted, #5b5f73);
  --pl-border: var(--dzd-color-border, #d8dae3);
  --pl-surface: var(--dzd-color-surface, #fff);
  max-width: var(--pl-max);
  margin: 0 auto;
  padding: 24px 20px 64px;
  color: var(--pl-text);
  font-family: inherit;
}

@media (min-width: 768px) {
  .dzd-pl {
    padding-left: var(--dzd-layout-gutter, 24px);
    padding-right: var(--dzd-layout-gutter, 24px);
  }
}

.dzd-pl__breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-size: var(--dzd-fs-sm, 15px);
  color: var(--pl-muted);
}

.dzd-pl__breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 10px;
  color: var(--pl-muted);
}

.dzd-pl__breadcrumb a {
  color: var(--pl-muted);
  text-decoration: none;
}

.dzd-pl__breadcrumb a:hover,
.dzd-pl__breadcrumb a:focus-visible {
  color: var(--pl-accent);
  text-decoration: underline;
}

.dzd-pl__path {
  margin: 0 0 6px;
  color: var(--pl-muted);
  font-size: var(--dzd-fs-sm, 15px);
}

/* Title + price: one row on desktop/tablet; direction follows html[dir]. */
.dzd-pl__title-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
  margin: 0 0 8px;
  min-width: 0;
}

.dzd-pl__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: clamp(var(--dzd-fs-2xl, 24px), 2.4vw, var(--dzd-fs-3xl, 30px));
  line-height: var(--dzd-lh-tight, 1.25);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.dzd-pl__price {
  flex: 0 0 auto;
  margin: 0;
  font-size: clamp(var(--dzd-fs-xl, 22px), 2vw, var(--dzd-fs-2xl, 24px));
  font-weight: 700;
  color: var(--pl-accent);
  white-space: nowrap;
  line-height: var(--dzd-lh-tight, 1.25);
}

.dzd-pl__meta {
  margin: 0;
  color: var(--pl-muted);
  font-size: var(--dzd-fs-meta, 14px);
  line-height: var(--dzd-lh-normal, 1.5);
}

.dzd-pl__summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 18px;
}

.dzd-pl__summary-row .dzd-pl__meta {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  text-align: start;
  overflow-wrap: anywhere;
}

.dzd-pl__summary-row .dzd-pl__actions {
  flex: 0 1 auto;
  margin: 0;
  margin-inline-start: auto;
}

.dzd-pl__pubmeta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 18px 0 24px;
  padding: 12px 0;
  border-top: 1px solid var(--pl-border);
  border-bottom: 1px solid var(--pl-border);
}

.dzd-pl__pubmeta--before-related {
  margin: 24px 0 20px;
  padding: 14px 0;
  border-top: 1px solid var(--pl-border);
  border-bottom: 1px solid var(--pl-border);
}

.dzd-pl__pubmeta--before-related .dzd-pl__pubmeta-info {
  width: 100%;
  color: var(--pl-muted);
  font-size: var(--dzd-fs-meta, 14px);
}

.dzd-pl__pubmeta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: var(--dzd-fs-sm, 15px);
  color: var(--pl-muted);
}

.dzd-pl__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  margin: 0 0 18px;
  padding: 4px;
  border: 1px solid var(--pl-border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--pl-surface) 88%, #eef0f5);
}

.dzd-pl__action {
  appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--pl-text);
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.dzd-pl__action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  line-height: 0;
  color: currentColor;
}

.dzd-pl__action-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.dzd-pl__action-icon-fill {
  display: none;
}

.dzd-pl__action-label {
  display: inline-block;
}

.dzd-pl__action:hover {
  background: var(--pl-surface);
  border-color: rgba(94, 67, 214, 0.2);
  color: var(--pl-accent);
}

.dzd-pl__action:focus-visible {
  outline: 2px solid rgba(94, 67, 214, 0.55);
  outline-offset: 1px;
  background: var(--pl-surface);
  border-color: var(--pl-accent);
  color: var(--pl-accent);
}

.dzd-pl__action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.dzd-pl__action[aria-pressed="true"],
.dzd-pl__action.is-active {
  background: rgba(94, 67, 214, 0.12);
  border-color: rgba(94, 67, 214, 0.35);
  color: var(--pl-accent);
}

.dzd-pl__action[aria-pressed="true"] .dzd-pl__action-icon-outline {
  display: none;
}

.dzd-pl__action[aria-pressed="true"] .dzd-pl__action-icon-fill {
  display: block;
}

@supports not (background: color-mix(in srgb, white 50%, black)) {
  .dzd-pl__actions {
    background: #f5f6fa;
  }
}

@media (max-width: 900px) and (min-width: 768px) {
  .dzd-pl__summary-row {
    gap: 10px 12px;
  }

  .dzd-pl__summary-row .dzd-pl__action {
    padding-inline: 10px;
  }
}

.dzd-pl__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
  gap: 24px;
  margin-bottom: 32px;
}

.dzd-pl__gallery {
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: 16px;
  overflow: hidden;
}

.dzd-pl__gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #12121a;
  display: block;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  cursor: zoom-in;
}

.dzd-pl__gallery-main.is-swiping {
  touch-action: none;
  cursor: grabbing;
}

.dzd-pl__gallery-main.is-sliding {
  pointer-events: none;
}

.dzd-pl__gallery-blur {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  object-position: center;
  filter: blur(28px) saturate(1.08);
  transform: scale(1.1);
  opacity: 1;
  transition: opacity 0.2s ease;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.dzd-pl__gallery-blur.is-fading {
  opacity: 0.55;
}

.dzd-pl__gallery-dim {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 18, 0.2);
  z-index: 1;
  pointer-events: none;
}

.dzd-pl__gallery-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: none;
  user-select: none;
  pointer-events: none;
  z-index: 2;
  will-change: transform;
  backface-visibility: hidden;
}

.dzd-pl__gallery-image--incoming {
  z-index: 3;
  visibility: hidden;
  pointer-events: none;
}

.dzd-pl__gallery-image--incoming.is-active-slide {
  visibility: visible;
}

.dzd-pl__gallery-image.is-slide-animating {
  transition: transform 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.dzd-pl__gallery-empty {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  height: 100%;
  color: #bbb;
}

.dzd-pl__gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 24, 0.55);
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, background 0.2s ease, transform 0.2s ease;
}

.dzd-pl__gallery-arrow--prev {
  left: 12px;
}

.dzd-pl__gallery-arrow--next {
  right: 12px;
}

.dzd-pl__gallery-main:hover .dzd-pl__gallery-arrow,
.dzd-pl__gallery-main:focus-within .dzd-pl__gallery-arrow,
.dzd-pl__gallery-arrow:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.dzd-pl__gallery-arrow:hover,
.dzd-pl__gallery-arrow:focus-visible {
  background: rgba(94, 67, 214, 0.92);
  outline: none;
}

.dzd-pl__gallery-fs {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--pl-text);
  padding: 9px 14px;
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--dzd-shadow-sm);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dzd-pl__gallery-fs:hover,
.dzd-pl__gallery-fs:focus-visible {
  background: var(--pl-accent);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.dzd-pl__gallery-fs-icon {
  font-size: var(--dzd-fs-base, 16px);
  line-height: 1;
}

@media (hover: none) {
  .dzd-pl__gallery-arrow {
    opacity: 0.92;
    pointer-events: auto;
  }
}

.dzd-pl__gallery-nav:focus-visible,
.dzd-pl__gallery-fs:focus-visible,
.dzd-pl__gallery-arrow:focus-visible,
.dzd-pl__thumb:focus-visible {
  outline: 2px solid var(--pl-accent);
  outline-offset: 2px;
}

.dzd-pl__thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
}

.dzd-pl__thumb {
  flex: 0 0 72px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #f0eef8;
  cursor: pointer;
}

.dzd-pl__thumb.is-active {
  border-color: var(--pl-accent);
}

.dzd-pl__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dzd-pl__seller {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  align-self: start;
}

.dzd-pl__contact-card {
  background: var(--pl-surface);
  border: 1px solid rgba(94, 67, 214, 0.18);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 14px;
  box-shadow: var(--dzd-shadow-card);
}

.dzd-pl__contact-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dzd-pl__contact-av {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--dzd-color-accent, #5e43d6);
  color: var(--dzd-color-on-accent, #ffffff);
  display: grid;
  place-items: center;
  text-decoration: none;
}

.dzd-pl__contact-av:has(.dzd-avatar--business) {
  border-radius: 12px;
}

.dzd-pl__contact-av .dzd-avatar {
  --dzd-avatar-size: 56px;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.dzd-pl__contact-av:has(.dzd-avatar--business) .dzd-avatar {
  border-radius: calc(var(--dzd-avatar-size) * 0.22);
  overflow: hidden;
}

.dzd-pl__contact-av img,
.dzd-pl__contact-av .dzd-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
}

.dzd-pl__contact-av:has(.dzd-avatar--business) img,
.dzd-pl__contact-av:has(.dzd-avatar--business) .dzd-avatar__img {
  border-radius: 0;
  object-fit: cover;
}

.dzd-pl__contact-av .dzd-avatar__initials {
  font-size: calc(var(--dzd-avatar-size, 56px) * 0.34);
  font-weight: 700;
  line-height: 1;
}

.dzd-pl__contact-identity {
  min-width: 0;
}

.dzd-pl__contact-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.dzd-pl__contact-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: inherit;
  text-decoration: none;
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.dzd-pl__contact-name:hover,
a.dzd-pl__contact-name:focus-visible {
  color: var(--pl-accent);
}

.dzd-pl__contact-follow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(94, 67, 214, 0.22);
  background: #fff;
  color: var(--dzd-color-accent, #5e43d6);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dzd-pl__contact-follow:hover,
.dzd-pl__contact-follow:focus-visible {
  border-color: rgba(94, 67, 214, 0.4);
  background: rgba(94, 67, 214, 0.06);
}

.dzd-pl__contact-follow.is-active {
  background: rgba(94, 67, 214, 0.1);
  border-color: rgba(94, 67, 214, 0.35);
  color: var(--dzd-color-accent, #5e43d6);
}

.dzd-pl__contact-follow:disabled {
  opacity: 0.7;
  cursor: default;
}

.dzd-pl__contact-reviews-score {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 800;
  color: var(--pl-text);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  text-align: inherit;
}

a.dzd-pl__contact-reviews-score:hover,
a.dzd-pl__contact-reviews-score:focus-visible,
button.dzd-pl__contact-reviews-score:hover,
button.dzd-pl__contact-reviews-score:focus-visible {
  color: var(--pl-accent);
}

.dzd-pl__stars-gold {
  color: #f5b301;
  letter-spacing: 1px;
  font-size: 1rem;
  line-height: 1;
}

.dzd-pl__score {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.dzd-pl__contact-rating {
  margin: 4px 0 0;
  font-size: var(--dzd-fs-xs, 14px);
  color: var(--pl-muted);
  font-weight: 600;
}

.dzd-pl__contact-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 8px;
  font-size: var(--dzd-fs-xs, 14px);
  color: var(--pl-muted);
}

.dzd-pl__contact-meta > span + span::before {
  content: "·";
  margin: 0 8px;
  opacity: 0.7;
}

.dzd-pl__contact-online {
  color: #1f8a4c;
  font-weight: 700;
}

.dzd-pl__contact-reviews {
  display: inline-block;
  margin-top: 8px;
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 700;
  color: var(--pl-accent);
  text-decoration: none;
}

.dzd-pl__contact-reviews:hover,
.dzd-pl__contact-reviews:focus-visible {
  text-decoration: underline;
}

.dzd-pl__contact-compose-label {
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 700;
  color: var(--pl-muted);
}

.dzd-pl__contact-compose {
  display: grid;
  gap: 10px;
}

.dzd-pl__contact-textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border: 1px solid var(--pl-border);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-size: var(--dzd-fs-base, 16px);
  color: var(--pl-text);
  background: #fff;
}

.dzd-pl__contact-textarea:focus {
  outline: 2px solid rgba(94, 67, 214, 0.35);
  border-color: var(--pl-accent);
}

.dzd-pl__quick-message {
  margin-top: 2px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(94, 67, 214, 0.16);
  background: linear-gradient(180deg, #faf9ff 0%, #f4f1fc 100%);
  display: grid;
  gap: 8px;
}

.dzd-pl__quick-message-title {
  margin: 0;
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--pl-muted);
}

.dzd-pl__quick-message-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dzd-pl__quick-message .dzd-pl__contact-textarea {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  margin: 0;
  padding-block: 0;
  padding-inline: 14px;
  border-radius: 12px;
  line-height: 44px;
  resize: none;
  overflow: hidden;
  background: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--dzd-fs-base, 16px);
}

.dzd-pl__quick-send {
  position: static;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pl-accent);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--dzd-shadow-accent);
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  transform: none;
}

.dzd-pl__quick-send svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.dzd-pl__quick-send:hover,
.dzd-pl__quick-send:focus-visible {
  background: #4d35c0;
  outline: none;
  transform: scale(1.04);
}

.dzd-pl__quick-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dzd-pl__quick-message.is-sending .dzd-pl__quick-send {
  opacity: 0.7;
  pointer-events: none;
}

.dzd-pl__quick-message.is-sent .dzd-pl__quick-message-row {
  opacity: 0.55;
}

.dzd-pl__quick-message-status {
  margin: 0;
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 700;
  line-height: 1.35;
}

.dzd-pl__quick-message-status.is-loading {
  color: var(--pl-muted, #6b7280);
}

.dzd-pl__quick-message-status.is-success {
  color: #15803d;
}

.dzd-pl__quick-message-status.is-error {
  color: #b42318;
}

.dzd-pl__seller-actions {
  display: grid;
  gap: 8px;
}

.dzd-pl__manage {
  display: grid;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid rgba(94, 67, 214, 0.12);
}

.dzd-pl__manage-title {
  margin: 0;
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pl-muted, #5b5f73);
}

.dzd-pl__manage-actions {
  display: grid;
  gap: 8px;
}

.dzd-pl__manage.is-busy {
  opacity: 0.72;
  pointer-events: none;
}

.dzd-pl-promote {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: calc(100vw - 32px);
}

.dzd-pl-promote[open] {
  display: grid;
  place-items: center;
}

.dzd-pl-promote::backdrop {
  background: rgba(17, 19, 34, 0.45);
}

.dzd-pl-promote__card {
  width: min(420px, calc(100vw - 32px));
  margin: 0;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--dzd-color-border, #d8dae3);
  background: var(--dzd-color-surface, #fff);
  box-shadow: var(--dzd-shadow-elevated);
  display: grid;
  gap: 14px;
}

.dzd-pl-promote__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dzd-pl-promote__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.dzd-pl-promote__copy,
.dzd-pl-promote__listing,
.dzd-pl-promote__status {
  margin: 0;
  font-size: var(--dzd-fs-sm, 15px);
  color: var(--pl-muted, #5b5f73);
  line-height: 1.45;
}

.dzd-pl-promote__listing {
  font-weight: 600;
  color: var(--pl-text, #111322);
}

.dzd-pl-promote__plans {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
}

.dzd-pl-promote__plan {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--dzd-color-border, #d8dae3);
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.dzd-pl-promote__plan:hover {
  border-color: rgba(94, 67, 214, 0.35);
}

.dzd-pl-promote__plan.is-selected {
  border-color: var(--pl-accent, #5e43d6);
  box-shadow: 0 0 0 2px rgba(94, 67, 214, 0.15);
}

.dzd-pl-promote__plan-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #c5c8d4;
  position: relative;
}

.dzd-pl-promote__plan.is-selected .dzd-pl-promote__plan-radio {
  border-color: var(--pl-accent, #5e43d6);
}

.dzd-pl-promote__plan.is-selected .dzd-pl-promote__plan-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--pl-accent, #5e43d6);
}

.dzd-pl-promote__plan-name {
  margin: 0;
  font-weight: 700;
  font-size: var(--dzd-fs-sm, 15px);
}

.dzd-pl-promote__plan-meta {
  margin: 2px 0 0;
  font-size: var(--dzd-fs-xs, 14px);
  color: var(--pl-muted, #5b5f73);
}

.dzd-pl-promote__plan-price {
  margin: 0;
  font-weight: 800;
  color: var(--pl-accent, #5e43d6);
  white-space: nowrap;
}

.dzd-pl-promote__status[hidden],
.dzd-pl-promote__listing[hidden] {
  display: none !important;
}

.dzd-pl-promote__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dzd-pl__seller-reserved {
  margin: 12px 0 0;
  font-size: var(--dzd-fs-xs, 14px);
  color: var(--pl-muted);
}

.dzd-pl__card-price {
  margin: 0 0 4px;
  font-size: var(--dzd-fs-base, 16px);
  font-weight: 800;
  color: var(--pl-accent);
}

.dzd-pl__section {
  margin-bottom: 28px;
}

.dzd-pl__section-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
}

.dzd-pl__description {
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: 14px;
  padding: 14px 16px;
  line-height: 1.55;
  height: auto;
  min-height: 0;
  overflow: visible;
  /*
   * Must stay normal on the card. pre-wrap here preserved HTML indentation
   * newlines around <p>, creating huge empty gaps above/below the text.
   */
  white-space: normal;
}

.dzd-pl__description > p {
  margin: 0;
  /* Intentional newlines in listing text only — not template whitespace. */
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dzd-pl__description.is-collapsed {
  max-height: 9.5em;
  overflow: hidden;
  position: relative;
}

.dzd-pl__description.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  pointer-events: none;
  background: linear-gradient(transparent, var(--pl-surface));
}

.dzd-pl__desc-toggle {
  margin-top: 8px;
}

.dzd-pl__specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

/* Spec cards: explicit surface + border so they read as cards on the page tint. */
.dzd-pl .dzd-pl__spec {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  box-sizing: border-box;
  background-color: var(--pl-surface);
  background-image: none;
  border: 1px solid var(--pl-border);
  border-radius: var(--dzd-radius-sm, 12px);
  padding: 12px 14px;
  box-shadow: var(--dzd-shadow-sm, 0 1px 2px rgba(17, 19, 34, 0.06));
}

.dzd-pl__spec-label {
  display: block;
  font-size: var(--dzd-fs-xs, 14px);
  color: var(--pl-muted);
  margin-bottom: 4px;
}

.dzd-pl__spec-value {
  font-weight: 600;
  color: var(--pl-text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dzd-pl__location {
  margin: 0 0 12px;
}

.dzd-pl__map-reserve {
  border: 1px dashed var(--pl-border);
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  color: var(--pl-muted);
  background: rgba(94, 67, 214, 0.03);
}

/*
 * Stay safe card — soft warm yellow must stay visible against --dzd-color-page.
 * Use background-color (not only shorthand) so theme/Elementor background resets
 * cannot wipe the fill while leaving border/padding intact.
 * Tone aligned with listing-create .lc-soft-warn.
 */
.dzd-pl aside.dzd-pl__safety,
.dzd-public-listing-page .dzd-pl__safety {
  background-color: #fff8eb;
  background-image: none;
  border: 1px solid #f0d9a8;
  border-radius: var(--dzd-radius-md, 16px);
  padding: 16px 18px;
  box-shadow: var(--dzd-shadow-sm, 0 1px 2px rgba(17, 19, 34, 0.06));
}

.dzd-pl__safety .dzd-pl__section-title {
  margin-bottom: 10px;
}

.dzd-pl__safety ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--pl-text);
}

.dzd-pl__rail {
  margin-top: 36px;
}

.dzd-pl__rail-more {
  margin-top: 16px;
}

.dzd-pl__rail-empty {
  margin: 0;
  padding: 18px 16px;
  border: 1px dashed rgba(94, 67, 214, 0.28);
  border-radius: 14px;
  background: rgba(94, 67, 214, 0.04);
  color: var(--pl-muted, #667085);
  font-size: 14px;
  line-height: 1.45;
}

.dzd-pl__related-more {
  display: inline-flex;
  min-height: 44px;
  padding-inline: 18px;
  justify-content: center;
  align-items: center;
  font-weight: 700;
}

.dzd-pl__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.dzd-pl__card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: 14px;
  overflow: hidden;
}

.dzd-pl__card:hover,
.dzd-pl__card:focus-visible {
  border-color: var(--pl-accent);
  outline: none;
}

.dzd-pl__card-media {
  aspect-ratio: 4 / 3;
  background: #eee;
  position: relative;
}

.dzd-pl__card-media .dzd-home-card__delivery {
  position: absolute;
  bottom: 8px;
  inset-inline-start: 8px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #ffd400;
  color: #1f1a3d;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.18);
  pointer-events: none;
}

.dzd-pl__card-media .dzd-home-card__delivery svg {
  width: 14px;
  height: 14px;
  display: block;
}

.dzd-pl__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dzd-pl__card-body {
  padding: 10px 12px 14px;
}

.dzd-pl__card-title {
  margin: 0;
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dzd-pl__toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--dzd-color-text, #111322);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: var(--dzd-fs-sm, 15px);
  /* Above .dzd-bottom-nav (10060) so the toast never paints under the bar. */
  z-index: 10070;
  max-width: min(calc(100vw - 32px), 420px);
  box-sizing: border-box;
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.dzd-pl__toast.is-show {
  display: block;
}

/*
 * Mobile / tablet shell — same MQ as site-header bottom nav.
 * Sit above the live bar: gap 12–16px + measured nav height
 * (--dzd-pl-toast-nav-clearance from public-listing.js), falling back to the
 * shared --dzd-bottom-nav-height token + safe-area + keyboard inset.
 */
@media (max-width: 767px), (max-height: 767px) and (max-width: 1199px) {
  .dzd-pl__toast {
    bottom: calc(
      clamp(12px, 3.2vw, 16px) +
        var(
          --dzd-pl-toast-nav-clearance,
          calc(
            var(--dzd-bottom-nav-height, 64px) + env(safe-area-inset-bottom, 0px) +
              var(--dzd-vv-bottom-inset, 0px)
          )
        )
    );
  }
}

/*
 * Listing phones hide .dzd-bottom-nav — restore the natural toast seat so we
 * do not leave a large empty gap above the home indicator.
 */
@media (max-width: 767px) {
  body.dzd-pl-active .dzd-pl__toast {
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

.dzd-pl__fs {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #12121a;
  z-index: 2147483000;
  display: block;
  opacity: 0;
  transition: opacity 0.18s ease;
  padding: 0;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
}

html.dzd-pl-fs-open,
html.dzd-pl-fs-open body,
body.dzd-pl-fs-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.dzd-pl__fs.is-open {
  opacity: 1;
}

/* Full-viewport stage: flex-centers the sharp image (Photos / Avito style) */
.dzd-pl__fs-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* Blurred fill — eliminates letterbox/pillarbox black bars */
.dzd-pl__fs-blur {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  filter: blur(36px) saturate(1.08);
  transform: scale(1.12);
  opacity: 1;
  transition: opacity 0.16s ease;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.dzd-pl__fs-blur.is-fading {
  opacity: 0.4;
}

.dzd-pl__fs-dim {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 18, 0.22);
  z-index: 1;
  pointer-events: none;
}

/*
 * Sharp foreground — flex-centered in the stage.
 * Size with max-* only so aspect ratio is preserved and the full image fits.
 */
.dzd-pl__fs-image {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  inset: auto;
  transform: none;
  display: block;
  width: auto;
  height: auto;
  max-width: min(85vw, 1100px);
  max-height: min(85vh, 860px);
  max-height: min(85dvh, 860px);
  object-fit: contain;
  object-position: center;
  opacity: 1;
  transition: opacity 0.16s ease;
  user-select: none;
  pointer-events: none;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

.dzd-pl__fs-image.is-fading {
  opacity: 0.35;
}

.dzd-pl__fs-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 12px));
  right: max(12px, env(safe-area-inset-right, 12px));
  z-index: 4;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.dzd-pl__fs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.18s ease, transform 0.18s ease;
}

.dzd-pl__fs-arrow:hover,
.dzd-pl__fs-arrow:focus-visible {
  background: rgba(94, 67, 214, 0.92);
  outline: none;
}

.dzd-pl__fs-arrow--prev {
  left: max(10px, env(safe-area-inset-left, 10px));
}

.dzd-pl__fs-arrow--next {
  right: max(10px, env(safe-area-inset-right, 10px));
}

.dzd-pl__fs-counter {
  position: absolute;
  bottom: max(14px, env(safe-area-inset-bottom, 14px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(12, 12, 18, 0.45);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* —— Mobile-only fullscreen image viewer (listing) —— */
@media (max-width: 767px) {
  .dzd-pl__fs--mobile {
    background: #0b0b0f;
    direction: ltr;
    unicode-bidi: isolate;
  }

  .dzd-pl__fs--mobile .dzd-pl__fs-stage {
    inset: 0;
    padding:
      calc(56px + env(safe-area-inset-top, 0px))
      0
      calc(96px + env(safe-area-inset-bottom, 0px));
    touch-action: none;
  }

  .dzd-pl__fs--mobile .dzd-pl__fs-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    pointer-events: auto;
    transform-origin: center center;
    will-change: transform;
    transition: opacity 0.16s ease;
    touch-action: none;
  }

  .dzd-pl__fs--mobile .dzd-pl__fs-image.is-zoomed {
    transition: none;
    cursor: grab;
  }

  .dzd-pl__fs--mobile .dzd-pl__fs-close--icon {
    top: max(10px, env(safe-area-inset-top, 10px));
    left: max(10px, env(safe-area-inset-left, 10px));
    right: auto;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1;
    backdrop-filter: blur(10px);
  }

  .dzd-pl__fs--mobile .dzd-pl__fs-arrow {
    display: none;
  }

  .dzd-pl__fs--mobile .dzd-pl__fs-counter {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    background: rgba(12, 12, 18, 0.55);
  }

  .dzd-pl__fs--mobile .dzd-pl__fs-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    padding:
      12px
      max(12px, env(safe-area-inset-right, 12px))
      calc(12px + env(safe-area-inset-bottom, 0px))
      max(12px, env(safe-area-inset-left, 12px));
    background: linear-gradient(
      180deg,
      rgba(11, 11, 15, 0) 0%,
      rgba(11, 11, 15, 0.72) 28%,
      rgba(11, 11, 15, 0.94) 100%
    );
    box-sizing: border-box;
    direction: ltr;
  }

  .dzd-pl__fs--mobile .dzd-pl__fs-action {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: var(--dzd-fs-sm, 15px);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
  }

  .dzd-pl__fs--mobile .dzd-pl__fs-action-icon {
    flex: 0 0 auto;
  }

  .dzd-pl__fs--mobile .dzd-pl__fs-action--message {
    background: var(--dzd-accent, #5e43d6);
    color: #fff;
  }

  .dzd-pl__fs--mobile .dzd-pl__fs-action--call {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    backdrop-filter: blur(8px);
  }

  .dzd-pl__fs--mobile .dzd-pl__fs-action:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
}

@media (max-width: 640px) {
  .dzd-pl__fs-blur {
    filter: blur(28px) saturate(1.05);
  }

  .dzd-pl__fs-image {
    width: auto;
    height: auto;
    max-width: min(92vw, 100%);
    max-height: min(82vh, 82dvh);
  }

  .dzd-pl__fs-arrow {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dzd-pl__fs,
  .dzd-pl__fs-blur,
  .dzd-pl__fs-image,
  .dzd-pl__gallery-blur,
  .dzd-pl__gallery-image {
    transition: none;
  }
}

@media (max-width: 900px) {
  .dzd-pl__top {
    grid-template-columns: 1fr;
  }

  .dzd-pl__seller {
    order: 2;
  }
}

@media (max-width: 640px) {
  .dzd-pl {
    padding: 16px 14px 48px;
  }

  .dzd-pl__pubmeta {
    flex-direction: column;
  }

  .dzd-pl__summary-row {
    flex-wrap: wrap;
  }

  .dzd-pl__summary-row .dzd-pl__actions {
    width: 100%;
    margin-inline-start: 0;
  }

  .dzd-pl__summary-row .dzd-pl__action {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  .dzd-pl__gallery-main {
    aspect-ratio: 1 / 1;
  }
}

/* —— Mobile-native listing details (≤767). Desktop/tablet unchanged. —— */
.dzd-pl__gallery-chrome,
.dzd-pl__gallery-counter {
  display: none;
}

.dzd-pl__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.dzd-pl__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f1f2f6;
  color: #4b5063;
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 600;
  line-height: 1.2;
}

.dzd-pl__badge--delivery {
  gap: 6px;
  background: #fff8d6;
  color: #6b5400;
  border: 1px solid rgba(255, 212, 0, 0.55);
}

.dzd-pl__badge--delivery-icon {
  font-size: 14px;
  line-height: 1;
}

.dzd-pl__delivery {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff8d6;
  color: #6b5400;
  border: 1px solid rgba(255, 212, 0, 0.55);
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 650;
  line-height: 1.2;
  width: fit-content;
  max-width: 100%;
}

.dzd-pl__delivery-icon {
  font-size: 15px;
  line-height: 1;
}

@media (max-width: 767px) {
  /* Hide global bottom nav on listing details only */
  body.dzd-pl-active .dzd-bottom-nav {
    display: none !important;
  }
  body.dzd-pl-active.dzd-sooq-has-global-header {
    padding-bottom: 0 !important;
  }
  body.dzd-pl-active .dzd-sh--m .dzd-header--mobile-simple {
    display: none !important;
  }

  .dzd-public-listing-page {
    background: #fff;
  }

  .dzd-pl {
    display: flex;
    flex-direction: column;
    max-width: none;
    margin: 0;
    padding: 0 0 calc(28px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
  }

  .dzd-pl__breadcrumb {
    display: none !important;
  }

  .dzd-pl__top {
    display: contents;
  }

  .dzd-pl__gallery {
    order: 1;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    border-radius: 0;
    overflow: visible;
    background: #111;
  }

  .dzd-pl__gallery-main {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 100vw;
    border-radius: 0;
    overflow: hidden;
    background: #1a1a1f;
  }

  .dzd-pl__gallery-image {
    object-fit: cover;
  }

  .dzd-pl__gallery-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    z-index: 6;
    top: 0;
    left: 0;
    right: 0;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
    pointer-events: none;
  }

  .dzd-pl__chrome-end {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .dzd-pl__chrome-btn {
    pointer-events: auto;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(17, 17, 24, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .dzd-pl__chrome-btn:active {
    transform: scale(0.96);
  }

  .dzd-pl__chrome-btn[aria-pressed="true"],
  .dzd-pl__chrome-btn.is-active {
    color: var(--pl-accent, var(--dzd-color-accent, #5e43d6));
    background: rgba(255, 255, 255, 0.92);
  }

  .dzd-pl__gallery-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    min-width: 52px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(17, 17, 24, 0.55);
    color: #fff;
    font-size: var(--dzd-fs-sm, 15px);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    pointer-events: none;
  }

  .dzd-pl__gallery-arrow,
  .dzd-pl__gallery-fs,
  .dzd-pl__thumbs {
    display: none !important;
  }

  .dzd-pl__header {
    order: 2;
    padding: 16px 16px 0;
  }

  .dzd-pl__path {
    display: none;
  }

  .dzd-pl__summary-row {
    display: none;
  }

  .dzd-pl__title-row {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px;
    margin: 0 0 10px;
  }

  .dzd-pl__title {
    margin: 0;
    font-size: var(--dzd-fs-listing-title, 20px);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .dzd-pl__price {
    margin: 0;
    font-size: var(--dzd-fs-listing-price, 19px);
    font-weight: 800;
  }

  .dzd-pl__badges {
    margin: 0 0 10px;
  }

  .dzd-pl__pubmeta--before-related {
    order: 5;
    margin: 8px 16px 0;
    padding: 12px 0;
    border-top: 1px solid var(--pl-border);
    border-bottom: 1px solid var(--pl-border);
  }

  .dzd-pl__pubmeta--before-related .dzd-pl__pubmeta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    color: var(--pl-muted);
    font-size: var(--dzd-fs-meta, 14px);
  }

  .dzd-pl__pubmeta--before-related .dzd-pl__pubmeta-info strong {
    font-weight: 600;
    color: #6b7280;
  }

  .dzd-pl__body {
    order: 4;
    padding: 8px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .dzd-pl__section {
    margin: 0;
    padding: 14px 14px 16px;
    border: 1px solid var(--pl-border);
    border-radius: 16px;
    background: var(--pl-surface);
    box-shadow: 0 1px 2px rgba(17, 19, 34, 0.04);
  }

  .dzd-pl__section-title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 800;
  }

  .dzd-pl__description {
    font-size: var(--dzd-fs-base, 16px);
    color: var(--pl-muted);
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
  }

  .dzd-pl__specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .dzd-pl .dzd-pl__spec {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2px;
    margin: 0;
    min-height: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background-color: #f6f7fb;
    border: 1px solid #eceef4;
    box-shadow: none;
  }

  .dzd-pl__spec-label {
    font-size: var(--dzd-fs-xs, 14px);
    line-height: 1.25;
    color: var(--pl-muted);
    text-align: start;
  }

  .dzd-pl__spec-value {
    font-size: var(--dzd-fs-sm, 15px);
    font-weight: 700;
    line-height: 1.3;
    text-align: start;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /*
   * Seller card — mobile marketplace density.
   * Override desktop sidebar sizing (align-self:start) so the card
   * stretches to the full mobile content width.
   */
  .dzd-pl__seller {
    order: 5;
    align-self: stretch;
    box-sizing: border-box;
    width: auto;
    max-width: none;
    margin: 10px 16px 0;
    padding: 0;
  }

  .dzd-pl__contact-card {
    box-sizing: border-box;
    display: grid;
    gap: 8px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--pl-border);
    background: #fff;
    box-shadow: 0 1px 2px rgba(17, 19, 34, 0.04);
  }

  .dzd-pl__contact-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
  }

  .dzd-pl__contact-av {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .dzd-pl__contact-av .dzd-avatar {
    --dzd-avatar-size: 44px;
  }

  .dzd-pl__contact-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .dzd-pl__contact-name-row {
    flex: 1 1 100%;
    gap: 6px;
  }

  .dzd-pl__contact-name {
    flex: 1 1 auto;
    margin: 0;
    font-size: var(--dzd-fs-sm, 15px);
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dzd-pl__contact-follow {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.75rem;
  }

  .dzd-pl__contact-reviews-score {
    flex: 0 0 auto;
    margin: 0;
    gap: 4px;
    font-size: var(--dzd-fs-xs, 14px);
  }

  .dzd-pl__stars-gold {
    font-size: var(--dzd-fs-xs, 14px);
    letter-spacing: 0.35px;
  }

  .dzd-pl__contact-rating {
    flex: 1 1 auto;
    margin: 0;
    font-size: var(--dzd-fs-xs, 14px);
    line-height: 1.25;
    color: var(--pl-muted);
  }

  .dzd-pl__contact-meta {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
    font-size: 0.6875rem;
    line-height: 1.3;
  }

  .dzd-pl__contact-meta > span + span::before {
    content: "·";
    margin: 0 6px;
    opacity: 0.7;
  }

  .dzd-pl__contact-meta > span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dzd-pl__contact-reviews {
    display: none;
  }

  .dzd-pl__seller-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    min-width: 0;
  }

  .dzd-pl__seller-actions .dzd-ui-btn--primary,
  .dzd-pl__seller-actions .dzd-ui-btn--secondary {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-height: 42px;
    height: 42px;
    padding: 0 16px;
    justify-content: center;
    border-radius: 12px;
    font-size: 14px;
  }

  .dzd-pl__seller-actions .dzd-ui-btn--primary:hover:not(:disabled),
  .dzd-pl__seller-actions .dzd-ui-btn--primary:focus-visible {
    transform: none;
  }

  .dzd-pl__seller-actions .dzd-ui-btn--ghost {
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 4px 6px;
    justify-content: center;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #5b5f73;
    font-size: var(--dzd-fs-xs, 14px);
    font-weight: 600;
  }

  .dzd-pl__seller-actions .dzd-ui-btn--ghost:hover,
  .dzd-pl__seller-actions .dzd-ui-btn--ghost:focus-visible {
    color: var(--pl-accent);
    background: transparent;
    transform: none;
  }

  .dzd-pl__quick-message {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    gap: 0;
    width: 100%;
    min-width: 0;
  }

  .dzd-pl__quick-message-title {
    display: none;
  }

  .dzd-pl__quick-message-row {
    display: flex;
    align-items: center;
    gap: 8px;
    position: static;
    width: 100%;
  }

  .dzd-pl__quick-message .dzd-pl__contact-textarea {
    box-sizing: border-box;
    display: block;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    margin: 0;
    padding-block: 0;
    padding-inline: 12px;
    border-radius: 12px;
    border: 1px solid #e1e4ee;
    background: #fff;
    font-size: var(--dzd-fs-base, 16px);
    line-height: 42px;
    resize: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .dzd-pl__quick-send {
    position: static;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    transform: none;
  }

  .dzd-pl__quick-send:hover,
  .dzd-pl__quick-send:focus-visible {
    transform: scale(1.04);
  }

  .dzd-pl__manage {
    gap: 8px;
    padding-top: 2px;
  }

  .dzd-pl__rail {
    order: 6;
    margin: 18px 16px 0;
  }

  /* Mobile: Similar Listings only — keep owner rail for desktop/tablet */
  .dzd-pl__rail--owner {
    display: none !important;
  }

  .dzd-pl__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .dzd-pl__rail-more {
    margin-top: 14px;
  }

  .dzd-pl__related-more {
    display: flex;
    width: 100%;
    min-height: 46px;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    font-weight: 700;
  }

  a.dzd-pl__chrome-btn {
    text-decoration: none;
    color: #fff;
  }
}

/* —— Print: clean listing document —— */
@media print {
  @page {
    margin: 12mm;
  }

  html,
  body {
    background: #fff !important;
    color: #111 !important;
  }

  body * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .dzd-header,
  .dzd-bottom-nav,
  .dzd-site-footer,
  .dzd-footer,
  .dzd-auth,
  .dzd-auth-m,
  .dzd-toast,
  .dzd-pl__actions,
  .dzd-pl__gallery-chrome,
  .dzd-pl__gallery-counter,
  .dzd-pl__gallery-nav,
  .dzd-pl__thumbs,
  .dzd-pl__related,
  .dzd-pl__owner-listings,
  .dzd-pl__rail,
  .dzd-pl__quick,
  .dzd-pl__contact-actions,
  .dzd-pl__promote,
  .dzd-pl-promote,
  .dzd-pl__manage,
  .dzd-pl__breadcrumb,
  .dzd-pl__safety,
  [data-pl-desc-toggle],
  .dzd-pl__cards,
  .elementor,
  #wpadminbar {
    display: none !important;
  }

  .dzd-public-listing-page,
  .dzd-pl {
    background: #fff !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #111 !important;
  }

  .dzd-pl__top {
    display: block !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    margin: 0 0 16px !important;
  }

  .dzd-pl__gallery,
  .dzd-pl__gallery-main {
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    aspect-ratio: auto !important;
    max-height: 90mm;
    overflow: hidden !important;
  }

  .dzd-pl__gallery-main img,
  .dzd-pl__gallery-main picture img {
    max-width: 100% !important;
    max-height: 90mm !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .dzd-pl__gallery-blur,
  .dzd-pl__gallery-empty {
    display: none !important;
  }

  .dzd-pl__title-row {
    display: block !important;
    margin: 0 0 8px !important;
  }

  .dzd-pl__title {
    font-size: 18pt !important;
    line-height: 1.25 !important;
    color: #111 !important;
  }

  .dzd-pl__price {
    font-size: 14pt !important;
    color: #111 !important;
    margin: 0 0 10px !important;
  }

  .dzd-pl__pubmeta,
  .dzd-pl__path,
  .dzd-pl__section,
  .dzd-pl__body,
  .dzd-pl__description,
  .dzd-seller-card {
    break-inside: avoid;
  }

  .dzd-pl__section {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 0 12px !important;
    margin: 0 0 12px !important;
    background: transparent !important;
  }

  .dzd-pl__description.is-collapsed {
    max-height: none !important;
    overflow: visible !important;
  }

  .dzd-pl__action,
  button,
  a.dzd-pl__action {
    display: none !important;
  }

  a {
    color: #111 !important;
    text-decoration: none !important;
  }

  html[dir="rtl"] .dzd-pl,
  html[dir="rtl"] .dzd-pl__title,
  html[dir="rtl"] .dzd-pl__description,
  html[dir="rtl"] .dzd-pl__section {
    direction: rtl;
    text-align: start;
  }

  html[dir="ltr"] .dzd-pl,
  html[dir="ltr"] .dzd-pl__title,
  html[dir="ltr"] .dzd-pl__description,
  html[dir="ltr"] .dzd-pl__section {
    direction: ltr;
    text-align: start;
  }
}
