/**
 * Marketplace Phase 02 — Premium Minimal
 * هویت مستقل بازار؛ پیوند بصری با فایلینگ دیوار از طریق تایپوگرافی و خنثی‌های stone.
 */
body.mk-marketplace-page.mkt-page--premium-minimal {
  /* هویت اصلی: بنفش فایلینگ دیوار */
  --mkt-accent: #7c3aed;
  --mkt-accent-dark: #6d28d9;
  --mkt-accent-soft: #f5f3ff;
  /* تأکید بازار (قیمت، چیپ فعال) */
  --mkt-warm: #c2410c;
  --mkt-warm-dark: #9a3412;
  --mkt-warm-soft: #fff7ed;
  --mkt-ink: #1c1917;
  --mkt-text: #292524;
  --mkt-muted: #78716c;
  --mkt-line: #e7e5e4;
  --mkt-surface: #ffffff;
  --mkt-surface-2: #fafaf9;
  --mkt-radius: 12px;
  --mkt-shadow: 0 12px 40px -32px rgba(28, 25, 23, 0.18);
}

body.mk-marketplace-page.mkt-page--premium-minimal .mkt-page-bg::before {
  opacity: 0.45;
}

body.mk-marketplace-page.mkt-page--premium-minimal .mkt-top {
  border-radius: calc(var(--mkt-radius) + 4px);
  border-color: color-mix(in srgb, var(--mkt-line) 80%, transparent);
  box-shadow: var(--mkt-shadow);
}

body.mk-marketplace-page.mkt-page--premium-minimal .mkt-top__logo {
  color: var(--mkt-accent);
  background: var(--mkt-accent-soft);
}

body.mk-marketplace-page.mkt-page--premium-minimal .mkt-tagline {
  margin: 0.12rem 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--mkt-muted);
  letter-spacing: 0.01em;
}

body.mk-marketplace-page.mkt-page--premium-minimal .mkt-search__submit {
  background: var(--mkt-accent);
  border-radius: 10px;
}

body.mk-marketplace-page.mkt-page--premium-minimal .mkt-btn--primary {
  background: var(--mkt-accent);
  box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--mkt-accent) 55%, transparent);
}

/* ── نوار شهر و فیلتر سریع (الگوی دیوار) ── */
.mkt-discovery {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
}

.mkt-quick-chips {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 0.15rem;
}

.mkt-quick-chips::-webkit-scrollbar {
  display: none;
}

.mkt-quick-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--mkt-line);
  background: var(--mkt-surface);
  color: var(--mkt-text);
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.mkt-quick-chip i {
  font-size: 0.72rem;
  color: var(--mkt-muted);
}

.mkt-quick-chip:hover {
  border-color: color-mix(in srgb, var(--mkt-accent) 28%, var(--mkt-line));
}

.mkt-quick-chip.is-active {
  border-color: color-mix(in srgb, var(--mkt-warm) 40%, var(--mkt-line));
  background: var(--mkt-warm-soft);
  color: var(--mkt-warm-dark);
}

.mkt-quick-chip.is-active i {
  color: var(--mkt-warm);
}

.mkt-city-rail--shell {
  margin: 0;
}

/* ── نشان‌شده‌ها ── */
.mkt-saved {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px dashed color-mix(in srgb, var(--mkt-accent) 22%, var(--mkt-line));
  border-radius: calc(var(--mkt-radius) + 2px);
  background: color-mix(in srgb, var(--mkt-accent-soft) 45%, var(--mkt-surface));
}

.mkt-saved__hint {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: var(--mkt-muted);
}

.mkt-saved__hint[hidden] {
  display: none !important;
}

.mkt-saved[hidden] {
  display: none !important;
}

.mkt-saved__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.mkt-saved__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--mkt-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mkt-saved__title i {
  color: #e11d48;
}

.mkt-saved__clear {
  border: 0;
  background: none;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--mkt-muted);
  cursor: pointer;
  padding: 0.25rem 0.4rem;
}

.mkt-saved__rail {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.15rem;
}

.mkt-saved__rail::-webkit-scrollbar {
  display: none;
}

.mkt-saved-card {
  position: relative;
  flex: 0 0 min(220px, 72vw);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--mkt-line);
  background: var(--mkt-surface);
  color: inherit;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.mkt-saved-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mkt-saved-card__remove {
  position: absolute;
  top: 0.35rem;
  inset-inline-start: 0.35rem;
  width: 1.65rem;
  height: 1.65rem;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--mkt-surface) 90%, #000);
  color: var(--mkt-muted);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 12px -6px rgba(28, 25, 23, 0.35);
}

.mkt-saved-card:hover {
  border-color: color-mix(in srgb, var(--mkt-accent) 30%, var(--mkt-line));
  box-shadow: 0 8px 20px -16px rgba(28, 25, 23, 0.2);
}

.mkt-saved-card__media {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: var(--mkt-surface-2);
}

.mkt-saved-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mkt-saved-card__title {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mkt-saved-card__price {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--mkt-warm-dark);
}

/* ── کارت آگهی v2 ── */
.mkt-card--premium .mkt-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(28, 25, 23, 0.35) 100%);
  pointer-events: none;
}

.mkt-card--premium .mkt-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.68rem;
  color: var(--mkt-muted);
}

.mkt-card--premium .mkt-card__time {
  font-weight: 600;
}

.mkt-card--premium .mkt-card__trust {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--mkt-accent-soft);
  color: var(--mkt-accent-dark);
  font-size: 0.62rem;
  font-weight: 700;
}

.mkt-card--premium .mkt-card__price {
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--mkt-warm-dark);
}

.mkt-card--premium:hover .mkt-card__img {
  transform: scale(1.04);
}

.mkt-card--premium {
  transition:
    box-shadow 0.25s ease,
  border-color 0.25s ease;
}

.mkt-card--premium:hover {
  border-color: color-mix(in srgb, var(--mkt-accent) 25%, var(--mkt-line));
  box-shadow: 0 16px 40px -28px rgba(28, 25, 23, 0.22);
}

/* ── داک موبایل (۵ تب — نوار تمام‌عرض) ── */
.mkt-dock {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1200;
  display: none;
  padding: 0;
  pointer-events: none;
}

.mkt-dock__bar {
  pointer-events: auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.35rem 0.15rem max(0.4rem, env(safe-area-inset-bottom));
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--mkt-line);
  background: color-mix(in srgb, var(--mkt-surface) 96%, transparent);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  box-shadow: 0 -10px 36px -18px rgba(28, 25, 23, 0.22);
}

.mkt-dock__btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-height: 52px;
  padding: 0.3rem 0.1rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--mkt-muted);
  font: inherit;
  font-size: clamp(0.54rem, 2.7vw, 0.62rem);
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.16s ease, background 0.16s ease;
}

.mkt-dock__btn span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mkt-dock__btn i {
  font-size: 1.12rem;
  line-height: 1;
}

.mkt-dock__btn:active {
  transform: scale(0.97);
}

.mkt-dock__btn.is-active,
.mkt-dock__btn[aria-current="page"] {
  color: var(--mkt-accent-dark);
  background: var(--mkt-accent-soft);
}

.mkt-dock__btn.is-accent:not(.is-active) {
  color: var(--mkt-accent-dark);
}

.mkt-dock__btn:focus-visible {
  outline: 2px solid var(--mkt-accent-dark);
  outline-offset: 2px;
}

.mkt-dock__badge {
  position: absolute;
  top: 0.15rem;
  inset-inline-end: 0.2rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.24rem;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.mkt-dock__badge[hidden] {
  display: none !important;
}

.mkt-dock__badge--filter {
  inset-inline-end: 0.35rem;
  background: var(--mkt-accent-dark, #6336c9);
}

.mkt-dock__btn-wrap {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
}

.mkt-dock__btn-wrap > .mkt-dock__btn {
  width: 100%;
}

@media (max-width: 767px) {
  body.mk-marketplace-page.mkt-page--premium-minimal .mkt-dock {
    display: block;
  }

  body.mk-marketplace-page.mkt-page--premium-minimal .mkt-shell {
    padding-bottom: calc(4.85rem + env(safe-area-inset-bottom));
  }

  body.mk-marketplace-page.mkt-page--premium-minimal .mkt-shell--map {
    padding-bottom: calc(4.85rem + env(safe-area-inset-bottom));
  }

  body.mk-marketplace-page.mkt-page--premium-minimal .mkt-discovery {
    margin-top: -0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mkt-dock__btn {
    transition: none;
  }

  .mkt-dock__btn:active {
    transform: none;
  }
}

@media (min-width: 768px) {
  .mkt-saved-card {
    flex-basis: 200px;
  }
}

.mkt-storefront-hero {
  padding: 1.25rem 0 1.75rem;
}
.mkt-storefront-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--mkt-muted);
}
.mkt-storefront-hero__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
}
.mkt-storefront-hero__photo img,
.mkt-storefront-hero__photo-ph {
  width: 96px;
  height: 96px;
  border-radius: 1rem;
  object-fit: cover;
  background: var(--mkt-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--mkt-accent);
}
.mkt-storefront-hero__agency {
  margin: 0.25rem 0;
  color: var(--mkt-muted);
}
.mkt-storefront-hero__bio {
  margin: 0.5rem 0 0;
  line-height: 1.7;
  color: var(--mkt-text);
}
.mkt-storefront-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.75rem 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--mkt-muted);
}
.mkt-section {
  margin: 1.5rem 0 2rem;
}
.mkt-section__title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.mkt-storefront-team {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.mkt-storefront-team__item {
  padding: 0.85rem 1rem;
  border: 1px solid var(--mkt-line);
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mkt-storefront-hero--cover {
  border-radius: 1.25rem;
  padding: 1.25rem 1.35rem 1.5rem;
  color: #fff;
  background: linear-gradient(135deg, #2e1065, #5b4bdb);
}
.mkt-storefront-hero--cover .mkt-title,
.mkt-storefront-hero--cover .mkt-eyebrow,
.mkt-storefront-hero--cover .mkt-storefront-hero__bio { color: inherit; }
.mkt-storefront-hero__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.mkt-storefront-toolbar { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mkt-storefront-toolbar__btn {
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: inherit;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}
.mkt-storefront-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}
.mkt-storefront-chips li {
  font-size: 0.8rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}
.mkt-storefront-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}
.mkt-storefront-cta {
  margin: 2rem 0 3rem;
  padding: 1.25rem;
  border: 1px solid var(--mkt-line);
  border-radius: 1rem;
  background: var(--mkt-surface);
}
.mkt-storefront-lead__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}
.mkt-field--full { grid-column: 1 / -1; }
.mkt-field span { display: block; font-size: 0.85rem; margin-bottom: 0.25rem; }
.mkt-field input,
.mkt-field textarea,
.mkt-field select {
  width: 100%;
  border: 1px solid var(--mkt-line);
  border-radius: 0.6rem;
  padding: 0.55rem 0.65rem;
  background: var(--mkt-surface-2);
}
.mkt-filter-sheet {
  border: none;
  border-radius: 1rem;
  padding: 0;
  max-width: 28rem;
  width: calc(100% - 2rem);
}
.mkt-storefront-listings__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}
.mkt-storefront-listings__tools {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

@media (max-width: 640px) {
  .mkt-storefront-lead__grid { grid-template-columns: 1fr; }
}

.mkt-consultant-rail {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--mkt-radius);
  background: var(--mkt-surface);
  border: 1px solid color-mix(in srgb, var(--mkt-line) 88%, transparent);
}
.mkt-consultant-rail__head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.mkt-consultant-rail__head p {
  margin: 0.25rem 0 0.75rem;
  color: var(--mkt-muted);
  font-size: 0.85rem;
}
.mkt-consultant-rail__track {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
}
.mkt-consultant-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 12.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: calc(var(--mkt-radius) - 2px);
  border: 1px solid var(--mkt-line);
  background: var(--mkt-surface-2);
  text-decoration: none;
  color: var(--mkt-text);
  scroll-snap-align: start;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mkt-consultant-chip:hover {
  border-color: color-mix(in srgb, var(--mkt-accent) 45%, var(--mkt-line));
  box-shadow: var(--mkt-shadow);
}
.mkt-consultant-chip__photo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid color-mix(in srgb, var(--mkt-accent) 35%, transparent);
}
.mkt-consultant-chip__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.25;
}
.mkt-consultant-chip__body em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--mkt-muted);
}

.mkt-hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.1rem 1.35rem;
  margin-bottom: 1rem;
  border-radius: calc(var(--mkt-radius) + 2px);
  background: linear-gradient(145deg, var(--mkt-accent-soft), var(--mkt-surface));
  border: 1px solid color-mix(in srgb, var(--mkt-accent) 22%, var(--mkt-line));
}
.mkt-hero__title { margin: 0; font-size: clamp(1.15rem, 3vw, 1.45rem); font-weight: 800; }
.mkt-hero__sub { margin: 0.35rem 0 0; color: var(--mkt-muted); font-size: 0.9rem; }
.mkt-hero__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.mkt-hero__chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.mkt-hero__chip {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--mkt-line);
  background: var(--mkt-surface);
  text-decoration: none;
  color: var(--mkt-text);
  font-size: 0.82rem;
}
.mkt-hub-section { margin-bottom: 1.25rem; }
.mkt-hub-section__head h2 { margin: 0 0 0.65rem; font-size: 1rem; }
.mkt-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.5rem; }
.mkt-hub-city {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem;
  border-radius: var(--mkt-radius);
  border: 1px solid var(--mkt-line);
  background: var(--mkt-surface);
  text-decoration: none;
  color: var(--mkt-text);
}
.mkt-list--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.75rem; }
.mkt-list--rows { display: flex; flex-direction: column; gap: 0.55rem; }
.mkt-list--rows .mkt-card { flex-direction: row; }
.mkt-view-toggle { display: inline-flex; border: 1px solid var(--mkt-line); border-radius: 8px; overflow: hidden; }
.mkt-view-toggle__btn {
  border: none;
  background: var(--mkt-surface);
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  color: var(--mkt-muted);
}
.mkt-view-toggle__btn.is-active { background: var(--mkt-accent-soft); color: var(--mkt-accent); }
.mkt-typeahead {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 0.25rem);
  z-index: 40;
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-line);
  border-radius: var(--mkt-radius);
  box-shadow: var(--mkt-shadow);
  max-height: 16rem;
  overflow: auto;
}
.mkt-typeahead__item {
  display: block;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  color: var(--mkt-text);
  border-bottom: 1px solid var(--mkt-line);
}
.mkt-map-canvas { min-height: 70vh; border-radius: var(--mkt-radius); z-index: 1; }
.mkt-map-head { padding: 0.75rem 0 0.5rem; }
.mkt-map-card {
  position: fixed;
  inset-inline: 0.75rem;
  bottom: 5rem;
  z-index: 5;
  padding: 0.85rem;
  border-radius: var(--mkt-radius);
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-line);
  box-shadow: var(--mkt-shadow);
}
.mkt-card__compare {
  position: absolute;
  top: 0.5rem;
  inset-inline-start: 0.5rem;
  border: none;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
}
.mkt-compare-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.mkt-compare-table th, .mkt-compare-table td { border: 1px solid var(--mkt-line); padding: 0.5rem; }

html.mk-public[data-theme="dark"] body.mk-marketplace-page.mkt-page--premium-minimal {
  --mkt-accent: #b794f6;
  --mkt-accent-dark: #ddd6fe;
  --mkt-accent-soft: rgba(124, 58, 237, 0.16);
  --mkt-warm: #fb923c;
  --mkt-warm-dark: #fdba74;
  --mkt-warm-soft: rgba(251, 146, 60, 0.12);
  --mkt-ink: #f8fafc;
  --mkt-text: #e2e8f0;
  --mkt-muted: #94a3b8;
  --mkt-line: rgba(148, 163, 184, 0.2);
  --mkt-surface: #14161c;
  --mkt-surface-2: #1a1d26;
}
/* Consumer workspace */
.mkt-consumer { --consumer-ink: #26233c; --consumer-line: #dfddeb; color: var(--consumer-ink); }
.mkt-consumer [hidden] { display: none !important; }
.mkt-consumer-hero { padding: clamp(1.25rem, 4vw, 3rem); border-radius: 1.5rem; background: linear-gradient(115deg, #efeaf8, #faf8fd 65%, #f4effa); }
.mkt-consumer-back, .mkt-consumer-mini-card, .mkt-consumer-search-item a { display: flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; }
.mkt-consumer-back { min-height: 44px; width: fit-content; }
.mkt-consumer-hero__eyebrow, .mkt-consumer-panel__hint, .mkt-consumer-mini-card__meta { color: #58536b; }
.mkt-consumer-hero__title { font-size: clamp(1.8rem, 4vw, 3rem); margin: .25em 0; }
.mkt-consumer-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.mkt-consumer-panel { padding: clamp(1rem, 3vw, 1.75rem); background: #fff; border: 1px solid var(--consumer-line); border-radius: 1.25rem; min-width: 0; }
.mkt-consumer-panel--auth { margin-block: 1rem; }
.mkt-consumer-panel__head, .mkt-consumer-session, .mkt-consumer-features, .mkt-consumer-chip-list { display: flex; align-items: center; gap: .75rem; }
.mkt-consumer-panel__head { margin-block-end: 1rem; }
.mkt-consumer-panel__title { margin: 0; font-size: 1.15rem; }
.mkt-consumer-panel__icon { display: grid; place-items: center; background: #f2eefb; color: #53408a; border-radius: .8rem; width: 2.6rem; height: 2.6rem; flex: none; }
.mkt-otp-flow { max-width: 28rem; display: grid; gap: .75rem; margin-block: .75rem; }
.mkt-consumer .mkt-field { display: grid; gap: .4rem; }
.mkt-consumer .mkt-field__input { width: 100%; box-sizing: border-box; padding: .75rem; border: 1px solid #8c879d; border-radius: .75rem; font: inherit; }
.mkt-consumer-features, .mkt-consumer-chip-list, .mkt-consumer-search-list { list-style: none; padding: 0; }
.mkt-consumer-features, .mkt-consumer-chip-list, .mkt-consumer-session { flex-wrap: wrap; }
.mkt-consumer-features li, .mkt-consumer-chip { background: #f5f3f8; border-radius: .65rem; padding: .4rem .65rem; }
.mkt-consumer-mini-card, .mkt-consumer-search-item a { min-height: 44px; padding: .55rem .25rem; border-bottom: 1px solid var(--consumer-line); overflow-wrap: anywhere; }
.mkt-consumer-mini-card__chev { margin-inline-start: auto; }
.mkt-consumer :is(a,button,input):focus-visible { outline: 3px solid #6955ad; outline-offset: 3px; }
@media (max-width: 44rem) { .mkt-consumer-grid { grid-template-columns: minmax(0,1fr); } }

/* Use the active marketplace palette for the personal workspace. */
.mkt-consumer { --consumer-ink: var(--mkt-ink); --consumer-line: var(--mkt-line); }
.mkt-consumer-panel, .mkt-request fieldset, .mkt-compare-table-wrap { background: var(--mkt-surface); }
.mkt-consumer-hero { background: linear-gradient(120deg, var(--mkt-accent-soft), var(--mkt-surface)); }
.mkt-consumer-panel__icon, .mkt-consumer-features li, .mkt-consumer-chip { background: var(--mkt-accent-soft); color: var(--mkt-text); }
.mkt-consumer-panel__hint, .mkt-consumer-hero__eyebrow, .mkt-consumer-mini-card__meta { color: var(--mkt-muted); }
.mkt-request { max-width: 54rem; margin-inline: auto; padding: clamp(1rem,4vw,2.5rem); color: var(--mkt-text); }
.mkt-request h1, .mkt-compare-head h1 { margin-block: .75rem .25rem; font-size: clamp(1.6rem,4vw,2.4rem); }
.mkt-request__form, .mkt-request fieldset { display: grid; gap: 1rem; }
.mkt-request fieldset { grid-template-columns: repeat(auto-fit,minmax(min(16rem,100%),1fr)); margin: 0; min-width: 0; padding: 1.2rem; border: 1px solid var(--mkt-line); border-radius: 1rem; }
.mkt-request legend { padding-inline: .45rem; color: var(--mkt-ink); font-weight: 700; }
.mkt-request label { display: grid; align-content: start; gap: .4rem; min-width: 0; }
.mkt-request label:has(textarea), .mkt-request label:has([name=consent]) { grid-column: 1/-1; }
.mkt-request label.mkt-toggle { display: flex; align-items: center; min-height: 44px; }
.mkt-request :is(input:not([type=checkbox]),select,textarea) { font: inherit; color: var(--mkt-text); background: var(--mkt-surface-2); border: 1px solid var(--mkt-line); padding: .65rem; border-radius: .65rem; width: 100%; box-sizing: border-box; }
.mkt-request__form > button { justify-self: start; min-height: 44px; padding-inline: 1.5rem; }
.mkt-compare-table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--mkt-line); border-radius: 1rem; }
.mkt-compare-table :is(th,td) { text-align: start; min-width: 8rem; padding: .8rem; border-width: 0 0 1px; }
.mkt-compare-table [scope=row] { position: sticky; inset-inline-start: 0; min-width: 5rem; background: var(--mkt-surface-2); }
.mkt-compare-table thead { background: var(--mkt-accent-soft); }
.mkt-agency-rail { display: flex; overflow-x: auto; gap: .75rem; padding-block: .5rem; }
.mkt-agency-chip { flex: 0 0 auto; display: grid; gap: .25rem; padding: .75rem 1rem; border: 1px solid var(--mkt-line); border-radius: .85rem; color: var(--mkt-text); background: var(--mkt-surface); text-decoration: none; }
.mkt-agency-chip span { color: var(--mkt-muted); font-size: .85rem; }
.mkt-map-card__link { display: grid; gap: .35rem; text-decoration: none; color: var(--mkt-text); }
.mkt-map-card__link p { margin: 0; }
.mkt-map-card__close { float: inline-end; min-height: 44px; padding-inline: .75rem; color: var(--mkt-text); border: 0; border-radius: .6rem; background: var(--mkt-surface-2); font: inherit; }
.mk-marketplace-page :is(a,button,input,select,textarea,[tabindex="0"]):focus-visible { outline: 3px solid var(--mkt-accent); outline-offset: 2px; }
.mkt-card__compare { inset-inline-start: auto; inset-inline-end: .55rem; min-width: 44px; min-height: 44px; color: var(--mkt-text); background: var(--mkt-surface); border: 1px solid var(--mkt-line); }
.mkt-card__compare.is-on { color: var(--mkt-accent-dark); background: var(--mkt-accent-soft); border-color: var(--mkt-accent); }
.mkt-card__compare:disabled { opacity: .55; cursor: default; }

.mkt-hero.mkt-shortcuts {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: .2rem .65rem;
    padding: .35rem 0;
    margin-block: 0 .75rem;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--mkt-line);
    border-radius: 0;
    box-shadow: none;
}
.mkt-shortcut, .mkt-deals a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 44px;
    padding-inline: .5rem;
    color: var(--mkt-text);
    text-decoration: none;
    font-size: .875rem;
}
.mkt-shortcut--map { color: var(--mkt-accent-dark); font-weight: 700; }
.mkt-shortcut:hover, .mkt-deals a:hover { text-decoration: underline; text-underline-offset: .25em; }
.mkt-deals { margin-inline-start: auto; display: flex; flex-wrap: wrap; }
.mkt-deals a { color: var(--mkt-muted); }
.mkt-deals b { font-variant-numeric: tabular-nums; }
.mkt-hub-section .mkt-hub-grid { display: flex; gap: .5rem; flex-wrap: wrap; }
.mkt-hub-section .mkt-hub-city { display: inline-flex; align-items: center; gap: .65rem; padding: .4rem .8rem; min-height: 44px; box-sizing: border-box; }
.mkt-hub-city span { color: var(--mkt-muted); font-size: .8rem; }
@media (max-width: 36rem) { .mkt-deals { margin-inline-start: 0; } }
.mkt-card--row .mkt-card__meta { padding-inline-end: 2.8rem; flex-wrap: wrap; }

.mkt-layout--browse #mktTop { padding-block: .5rem; margin-block-end: .35rem; }
.mkt-layout--browse #mktResultsBar { position: relative; overflow: visible; z-index: 3; gap: .45rem; flex-wrap: wrap; padding-block: .35rem; margin-block: 0 .6rem; }
.mkt-discover-menu { position: relative; margin-inline-end: auto; font-size: .85rem; color: var(--mkt-text); }
.mkt-discover-menu summary { cursor: pointer; padding: .6rem .4rem; }
.mkt-discover-menu nav { position: absolute; inset-inline-start: 0; z-index: 2; width: max-content; padding: .35rem; border: 1px solid var(--mkt-line); border-radius: .8rem; background: var(--mkt-surface); box-shadow: var(--mkt-shadow); }
.mkt-discover-menu a { display: block; padding: .65rem .85rem; color: inherit; text-decoration: none; }
.mkt-discover-menu a:hover { background: var(--mkt-accent-soft); }

/* Consumer actions shared by the browse and personal workspace. */
.mkt-account-feedback:empty { display:none; }
.mkt-account-feedback { color:var(--mkt-muted);font-size:.83rem; }
.mkt-save-search,.mkt-consumer-entry { display:inline-flex;gap:.4rem;align-items:center;min-height:44px;white-space:nowrap; }
.mkt-save-search[aria-pressed=true] { border-color:var(--mkt-accent);background:var(--mkt-accent-soft); }
.mkt-consumer-action-row { display:flex;align-items:center;gap:.65rem; }
.mkt-consumer-action-row > a { flex:1;min-width:0; }
.mkt-consumer-action-row > button { flex:none;min-height:44px; }
.mkt-consumer-notification-options { display:flex;flex-wrap:wrap;gap:.75rem;margin-block:.8rem; }
.mkt-consumer-notification-options label { display:inline-flex;align-items:center;gap:.5rem;min-height:44px; }
.mkt-consumer-notification-options input { accent-color:var(--mkt-accent); }
.mkt-request [hidden] { display:none!important; }
@media(max-width:40rem){ .mkt-consumer-entry { display:none; } }
