.back-link {
  align-items: center;
  border: 1px solid var(--thayu-border);
  border-radius: 999px;
  color: var(--thayu-green);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 18px;
  padding: 9px 14px;
}

.back-link::before {
  content: "←";
  margin-right: 7px;
}

.back-link:hover { background: var(--thayu-soft); }

.single-listing-grid {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr);
}

.single-listing-main { min-width: 0; }

.listing-gallery,
.listing-gallery-empty,
.single-content-card,
.contact-card,
.seller-card-enhanced,
.thayu-map-card {
  background: #fff;
  border: 1px solid var(--thayu-border);
  border-radius: 26px;
  box-shadow: 0 14px 35px rgba(31, 78, 61, .09);
}

.listing-gallery { overflow: hidden; }

.listing-gallery-stage {
  aspect-ratio: 16 / 10;
  background: #eef3f0;
  overflow: hidden;
  position: relative;
}

.listing-gallery-track {
  display: flex;
  height: 100%;
  transition: transform .32s ease;
  width: 100%;
}

.listing-gallery-slide {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
}

.listing-gallery-slide img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.gallery-control {
  align-items: center;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(31, 78, 61, .14);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .13);
  color: var(--thayu-green);
  cursor: pointer;
  display: flex;
  height: 46px;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  z-index: 3;
}

.gallery-control:hover { background: #fff; transform: translateY(-50%) scale(1.04); }
.gallery-control-prev { left: 14px; }
.gallery-control-next { right: 14px; }
.gallery-control svg,
.verified-badge svg,
.contact-action svg,
.seller-profile-link svg,
.seller-location svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.gallery-control svg { height: 22px; width: 22px; }

.gallery-counter {
  background: rgba(23, 37, 31, .78);
  border-radius: 999px;
  bottom: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 11px;
  position: absolute;
  right: 14px;
}

.listing-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px;
  scrollbar-width: thin;
}

.gallery-thumb {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  flex: 0 0 76px;
  height: 62px;
  overflow: hidden;
  padding: 0;
}

.gallery-thumb.is-active { border-color: var(--thayu-green); }
.gallery-thumb img { height: 100%; object-fit: cover; width: 100%; }

.listing-gallery-empty {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: var(--thayu-soft);
  color: var(--thayu-muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.listing-gallery-empty svg {
  fill: none;
  height: 54px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  width: 54px;
}

.single-content-card { margin-top: 22px; padding: clamp(20px, 4vw, 34px); }

.listing-heading-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.listing-date { color: var(--thayu-muted); font-size: 13px; font-weight: 700; }
.single-content-card h1 {
  color: var(--thayu-text);
  font-size: clamp(29px, 5vw, 46px);
  letter-spacing: -.9px;
  line-height: 1.12;
  margin: 14px 0 18px;
}

.listing-shop-line {
  align-items: center;
  border-bottom: 1px solid var(--thayu-border);
  display: flex;
  gap: 11px;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.listing-shop-avatar img { border-radius: 50%; height: 42px; object-fit: cover; width: 42px; }
.listing-shop-line small { color: var(--thayu-muted); display: block; font-size: 11px; font-weight: 700; }
.listing-shop-line strong { color: var(--thayu-green); display: block; font-size: 15px; }

.verified-badge,
.unverified-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 4px;
  line-height: 1;
  margin-left: auto;
  padding: 7px 9px;
  white-space: nowrap;
}

.verified-badge { background: #e9f8ef; color: #177440; }
.verified-badge svg { height: 15px; width: 15px; }
.unverified-badge { background: #f2f4f3; color: #7a8580; }

.listing-facts {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 28px;
}

.listing-fact {
  background: var(--thayu-soft);
  border: 1px solid var(--thayu-border);
  border-radius: 18px;
  padding: 15px;
}

.listing-fact span,
.listing-fact small { color: var(--thayu-muted); display: block; font-size: 12px; font-weight: 700; }
.listing-fact strong { color: var(--thayu-green); display: block; font-size: 18px; line-height: 1.35; margin: 2px 0; }
.listing-price strong { font-size: 22px; }

.listing-description h2,
.contact-card h2,
.seller-card-enhanced h2,
.thayu-map-card h2 {
  color: var(--thayu-green);
  font-size: 21px;
  margin: 0 0 8px;
}

.listing-description { color: var(--thayu-text); }
.listing-description > :first-child { margin-top: 0; }
.listing-description img { border-radius: 18px; }

.single-listing-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 98px;
}

.seller-card-enhanced {
  display: block;
  margin: 0;
  padding: 20px;
}

.seller-card-heading {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.seller-eyebrow {
  color: var(--thayu-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.seller-verified { margin-left: 0; }

.seller-identity { align-items: center; display: flex; gap: 13px; }
.seller-avatar { flex: 0 0 auto; }
.seller-avatar img {
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(31, 78, 61, .14);
  height: 76px;
  object-fit: cover;
  width: 76px;
}

.seller-info { min-width: 0; }
.seller-info h2 { font-size: 19px; line-height: 1.2; margin: 0 0 4px; }
.seller-info span { color: var(--thayu-muted); font-size: 12px; font-weight: 700; }
.seller-location {
  align-items: center;
  color: var(--thayu-muted);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 5px;
  margin: 5px 0 0;
}
.seller-location svg { height: 15px; width: 15px; }
.seller-description { color: var(--thayu-muted); font-size: 13px; margin: 16px 0 0; }

.seller-stats {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
  overflow: hidden;
  padding: 0;
}
.seller-stats div {
  background: var(--thayu-soft);
  padding: 11px 7px;
  text-align: center;
}
.seller-stats div:first-child { border-radius: 13px 0 0 13px; }
.seller-stats div:last-child { border-radius: 0 13px 13px 0; }
.seller-stats dt { color: var(--thayu-muted); font-size: 10px; font-weight: 700; }
.seller-stats dd { color: var(--thayu-green); font-size: 14px; font-weight: 800; margin: 2px 0 0; }

.seller-profile-link {
  align-items: center;
  border-top: 1px solid var(--thayu-border);
  color: var(--thayu-green);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: space-between;
  padding-top: 15px;
}
.seller-profile-link svg { height: 18px; width: 18px; }

.contact-card { padding: 20px; }
.contact-card > p { color: var(--thayu-muted); font-size: 13px; margin: 0 0 16px; }

.single-contact-actions { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-action {
  align-items: center;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
  padding: 11px 13px;
}
.contact-action svg { height: 20px; width: 20px; }
.message-action { background: var(--thayu-green); color: #fff; }
.whatsapp-action { background: #25d366; color: #fff; }
.whatsapp-action svg { fill: none; stroke-width: 1.7; }
.contact-action:hover { color: #fff; filter: brightness(.96); }

.listing-message-form {
  background: var(--thayu-soft);
  border: 1px solid var(--thayu-border);
  border-radius: 16px;
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding: 13px;
}
.listing-message-form[hidden] { display: none; }
.listing-message-form label { color: var(--thayu-green); font-size: 12px; font-weight: 800; }
.listing-message-form textarea {
  border: 1px solid var(--thayu-border);
  border-radius: 12px;
  font: inherit;
  min-height: 110px;
  padding: 11px;
  resize: vertical;
  width: 100%;
}
.message-status { color: var(--thayu-muted); font-size: 12px; font-weight: 700; }

.secondary-actions {
  border-top: 1px solid var(--thayu-border);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
}
.secondary-action {
  background: none;
  border: 0;
  color: var(--thayu-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
}
.secondary-action:hover,
.secondary-action.is-saved { color: var(--thayu-green); }

.thayu-map-card { margin-top: 22px; overflow: hidden; padding: 18px; }
.thayu-map-card p { color: var(--thayu-muted); font-weight: 700; margin: 0 0 12px; }
.thayu-leaflet-map,
.thayu-map-card iframe { border: 0; border-radius: 18px; height: 300px; overflow: hidden; width: 100%; }
.thayu-map-fallback { background: var(--thayu-soft); border: 1px dashed rgba(31, 78, 61, .25); border-radius: 18px; padding: 14px; }
.thayu-map-fallback p { margin: 0; }
.thayu-map-card a { color: var(--thayu-green); display: inline-flex; font-size: 13px; font-weight: 900; margin-top: 10px; }

@media (max-width: 900px) {
  .single-listing-grid { grid-template-columns: 1fr; }
  .single-listing-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); position: static; }
}

@media (max-width: 640px) {
  .single-layout { padding-top: 22px; }
  .single-listing-grid { gap: 18px; }
  .listing-gallery-stage { aspect-ratio: 4 / 3; }
  .gallery-control { height: 40px; width: 40px; }
  .gallery-control-prev { left: 9px; }
  .gallery-control-next { right: 9px; }
  .gallery-thumb { flex-basis: 64px; height: 54px; }
  .single-content-card { border-radius: 22px; margin-top: 16px; padding: 20px; }
  .single-content-card h1 { font-size: 30px; }
  .listing-shop-line { align-items: flex-start; }
  .verified-badge,
  .unverified-badge { margin-left: 0; }
  .listing-facts { grid-template-columns: 1fr; }
  .single-listing-sidebar { grid-template-columns: 1fr; }
  .single-contact-actions { grid-template-columns: 1fr 1fr; }
  .thayu-leaflet-map,
  .thayu-map-card iframe { height: 230px; }
}

@media (max-width: 390px) {
  .single-contact-actions { grid-template-columns: 1fr; }
  .seller-stats { grid-template-columns: 1fr; }
  .seller-stats div:first-child,
  .seller-stats div:last-child { border-radius: 0; }
  .seller-stats div:first-child { border-radius: 13px 13px 0 0; }
  .seller-stats div:last-child { border-radius: 0 0 13px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .listing-gallery-track { transition: none; }
}
