/* ============================================================
   CARBAR · Marketplace (yad שנייה)
   ============================================================ */
:root {
  --mkt-navy: #002b80;
  --mkt-navy-600: #00225f;
  --mkt-accent: #ea580c;
  --mkt-accent-soft: #fff7ed;
  --mkt-ink: #0f172a;
  --mkt-ink-soft: #475569;
  --mkt-ink-faint: #94a3b8;
  --mkt-rule: #e2e8f0;
  --mkt-surface: #ffffff;
  --mkt-soft: #f8fafc;
  --mkt-ok: #059669;
  --mkt-sold-overlay: rgba(15,23,42,.78);
  --mkt-shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 4px 12px -6px rgba(15,23,42,.08);
  --mkt-shadow-md: 0 4px 12px -4px rgba(15,23,42,.08), 0 16px 32px -16px rgba(15,23,42,.1);
  --mkt-ease: cubic-bezier(.4,0,.2,1);
}

.mkt { max-width: 1440px; margin: 0 auto; padding: 24px; }

/* ─── hero ─────────────────────────────────────────────── */
.mkt__hero {
  position: relative;
  background: linear-gradient(135deg, #0b1e52 0%, var(--mkt-navy) 50%, #00337a 100%);
  color: #fff;
  border-radius: 20px;
  padding: 32px 36px;
  display: flex; gap: 24px; justify-content: space-between; align-items: center;
  overflow: hidden;
  box-shadow: var(--mkt-shadow-md);
  margin-bottom: 20px;
}
.mkt__hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(at 15% 100%, rgba(234,88,12,.25), transparent 55%),
              radial-gradient(at 100% 0%, rgba(255,255,255,.12), transparent 50%);
  pointer-events: none;
}
.mkt__hero-copy { position: relative; flex: 1; min-width: 0; }
.mkt__hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--mkt-accent);
  padding: 5px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700;
  margin-bottom: 12px;
}
.mkt__hero-badge .material-symbols-outlined { font-size: 16px; }
.mkt__hero-title {
  font-size: 2.25rem; font-weight: 900; margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.mkt__hero-lead {
  margin: 0 0 14px; font-size: 1rem;
  color: rgba(255,255,255,.85);
  max-width: 620px; line-height: 1.55;
}
.mkt__hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mkt-accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 8px 18px -4px rgba(234,88,12,.5);
  transition: all 160ms var(--mkt-ease);
  position: relative;
}
.mkt__hero-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }

.mkt__hero-stats { position: relative; display: flex; gap: 10px; flex-shrink: 0; }
.mkt__hero-stat {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(12px);
  padding: 12px 18px; border-radius: 14px;
  text-align: center; min-width: 96px;
}
.mkt__hero-stat-num {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem; font-weight: 800;
}
.mkt__hero-stat-label {
  font-size: 0.7rem; opacity: .8;
  text-transform: uppercase; letter-spacing: 0.1em;
}
@media (max-width: 880px) {
  .mkt__hero { flex-direction: column; align-items: flex-start; padding: 24px; }
  .mkt__hero-title { font-size: 1.6rem; }
  .mkt__hero-stats { align-self: stretch; justify-content: space-between; }
  .mkt__hero-stat { flex: 1; min-width: 0; padding: 10px; }
}

/* ─── grid ─────────────────────────────────────────────── */
.mkt__grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
}
@media (max-width: 1080px) { .mkt__grid { grid-template-columns: 1fr; } }

.mkt__side {
  position: sticky;
  top: 96px;
  display: flex; flex-direction: column; gap: 12px;
}

/* ─── filters ──────────────────────────────────────────── */
.mkt__filters {
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-rule);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--mkt-shadow-sm);
}
.mkt__filters h3 {
  font-size: 0.92rem; font-weight: 800;
  color: var(--mkt-navy);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 6px;
}
.mkt__filters h3 .material-symbols-outlined { font-size: 18px !important; }

.mkt__field { margin-bottom: 12px; }
.mkt__field label {
  display: block;
  font-size: 0.78rem; font-weight: 700;
  color: var(--mkt-ink-soft);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 5px;
}
.mkt__field input, .mkt__field select {
  width: 100%;
  border: 1px solid var(--mkt-rule);
  border-radius: 9px;
  padding: 9px 11px;
  font: inherit; font-size: 0.88rem;
  color: var(--mkt-ink);
  background: var(--mkt-soft);
  outline: none;
  direction: rtl;
}
.mkt__field input:focus, .mkt__field select:focus {
  border-color: var(--mkt-navy); background: #fff;
  box-shadow: 0 0 0 3px rgba(0,43,128,.08);
}

.mkt__field-row { display: flex; gap: 6px; }
.mkt__field-row input { flex: 1; }

.mkt__filter-apply {
  width: 100%;
  background: var(--mkt-navy); color: #fff;
  border: none; border-radius: 999px;
  padding: 10px; font-weight: 700; font-size: 0.88rem;
  cursor: pointer;
  transition: background 160ms var(--mkt-ease);
}
.mkt__filter-apply:hover { background: var(--mkt-navy-600); }

.mkt__filter-clear {
  display: block;
  text-align: center;
  margin-top: 8px;
  color: var(--mkt-ink-soft);
  font-size: 0.82rem;
  text-decoration: none;
}
.mkt__filter-clear:hover { color: var(--mkt-navy); }

/* ─── toolbar ──────────────────────────────────────────── */
.mkt__toolbar {
  display: flex; gap: 10px; align-items: center;
  flex-wrap: wrap;
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-rule);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--mkt-shadow-sm);
  margin-bottom: 14px;
}
.mkt__toolbar-total {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--mkt-ink);
}
.mkt__toolbar-total b { color: var(--mkt-navy); font-size: 1.1em; }

.mkt__sort {
  margin-inline-start: auto;
  display: flex; gap: 6px; align-items: center;
}
.mkt__sort label { color: var(--mkt-ink-soft); font-size: 0.82rem; font-weight: 600; }
.mkt__sort select {
  border: 1px solid var(--mkt-rule);
  border-radius: 8px;
  padding: 7px 10px;
  font: inherit; font-size: 0.85rem;
  background: var(--mkt-soft);
  color: var(--mkt-ink);
  outline: none;
}

/* ─── card grid ────────────────────────────────────────── */
.mkt__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.mkt-card {
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-rule);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--mkt-shadow-sm);
  transition: all 180ms var(--mkt-ease);
  display: flex; flex-direction: column;
  position: relative;
}
.mkt-card:hover {
  border-color: var(--mkt-navy);
  transform: translateY(-2px);
  box-shadow: var(--mkt-shadow-md);
}

.mkt-card__photo {
  position: relative;
  aspect-ratio: 16 / 11;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  overflow: hidden;
}
.mkt-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.mkt-card__photo-none {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--mkt-ink-faint);
}
.mkt-card__photo-none .material-symbols-outlined { font-size: 48px !important; }

.mkt-card__sold-overlay {
  position: absolute; inset: 0;
  background: var(--mkt-sold-overlay);
  display: grid; place-items: center;
  color: #fff;
  font-size: 1.4rem; font-weight: 900;
  letter-spacing: 0.12em;
}

.mkt-card__badge {
  position: absolute;
  top: 10px; inset-inline-start: 10px;
  background: rgba(0,0,0,.65);
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 3px;
}
.mkt-card__badge .material-symbols-outlined { font-size: 13px !important; }

.mkt-card__fav {
  position: absolute;
  top: 10px; inset-inline-end: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--mkt-ink-soft);
  display: grid; place-items: center;
  transition: all 160ms var(--mkt-ease);
  cursor: pointer;
  border: none;
}
.mkt-card__fav:hover { background: #fff; color: var(--mkt-accent); }
.mkt-card__fav.is-on { color: var(--mkt-accent); }
.mkt-card__fav .material-symbols-outlined { font-size: 18px !important; }

.mkt-card__body {
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.mkt-card__title {
  font-size: 0.98rem; font-weight: 700;
  color: var(--mkt-ink);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mkt-card__specs {
  display: flex; gap: 10px; flex-wrap: wrap;
  color: var(--mkt-ink-soft);
  font-size: 0.82rem;
}
.mkt-card__spec { display: inline-flex; align-items: center; gap: 3px; }
.mkt-card__spec .material-symbols-outlined { font-size: 14px !important; color: var(--mkt-ink-faint); }

.mkt-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px; margin-top: auto;
  border-top: 1px solid var(--mkt-rule);
}
.mkt-card__price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem; font-weight: 800;
  color: var(--mkt-navy);
}
.mkt-card__price small {
  display: block;
  color: var(--mkt-ink-faint);
  font-size: 0.68rem;
  font-weight: 500;
}
.mkt-card__city {
  font-size: 0.78rem;
  color: var(--mkt-ink-soft);
  display: inline-flex; align-items: center; gap: 3px;
}
.mkt-card__city .material-symbols-outlined { font-size: 14px !important; }

/* ─── empty ────────────────────────────────────────────── */
.mkt__empty {
  background: var(--mkt-surface);
  border: 2px dashed var(--mkt-rule);
  border-radius: 16px;
  padding: 56px 20px;
  text-align: center;
  color: var(--mkt-ink-soft);
  grid-column: 1 / -1;
}
.mkt__empty .material-symbols-outlined {
  font-size: 72px !important;
  color: var(--mkt-ink-faint);
  margin-bottom: 12px;
}
.mkt__empty h3 { font-size: 1.2rem; color: var(--mkt-ink); margin: 0 0 6px; font-weight: 800; }
.mkt__empty p { margin: 0 0 16px; }
.mkt__empty-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--mkt-accent);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

/* ─── pager ────────────────────────────────────────────── */
.mkt__pager {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 16px; padding: 14px 0;
}
.mkt__pager-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-rule);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.88rem;
  color: var(--mkt-ink);
  text-decoration: none;
  transition: all 160ms var(--mkt-ease);
}
.mkt__pager-btn:hover { border-color: var(--mkt-navy); color: var(--mkt-navy); }
.mkt__pager-btn--disabled { opacity: .4; cursor: not-allowed; }
.mkt__pager-btn .material-symbols-outlined { font-size: 16px !important; }
.mkt__pager-status { color: var(--mkt-ink-soft); font-size: 0.88rem; }
.mkt__pager-status b { color: var(--mkt-ink); font-family: 'Plus Jakarta Sans'; }

/* ═══════════════════════════════════════════════════════════
   DETAILS PAGE
   ═══════════════════════════════════════════════════════════ */

.mkt-detail { max-width: 1280px; margin: 0 auto; padding: 24px; }
.mkt-detail__breadcrumb { margin-bottom: 14px; }
.mkt-detail__breadcrumb a {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--mkt-ink-soft);
  text-decoration: none;
  font-size: 0.88rem; font-weight: 600;
}
.mkt-detail__breadcrumb a:hover { color: var(--mkt-navy); }

.mkt-detail__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
}
@media (max-width: 1080px) {
  .mkt-detail__top { grid-template-columns: 1fr; }
}

/* gallery */
.mkt-gallery {
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-rule);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--mkt-shadow-sm);
}
.mkt-gallery__hero {
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
}
.mkt-gallery__hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.mkt-gallery__hero-none {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--mkt-ink-faint);
}
.mkt-gallery__hero-none .material-symbols-outlined { font-size: 96px !important; }

.mkt-gallery__sold {
  position: absolute; top: 14px; inset-inline-end: 14px;
  background: var(--mkt-ok);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 4px 10px -2px rgba(5,150,105,.4);
}

.mkt-gallery__strip {
  display: flex;
  gap: 6px;
  padding: 8px;
  overflow-x: auto;
  background: var(--mkt-soft);
}
.mkt-gallery__strip::-webkit-scrollbar { height: 6px; }
.mkt-gallery__strip::-webkit-scrollbar-thumb { background: var(--mkt-rule); border-radius: 3px; }
.mkt-gallery__thumb {
  flex-shrink: 0;
  width: 86px; height: 68px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #fff;
  transition: border-color 140ms var(--mkt-ease);
  padding: 0;
}
.mkt-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mkt-gallery__thumb:hover { border-color: var(--mkt-navy); }
.mkt-gallery__thumb.is-active { border-color: var(--mkt-accent); }

/* seller card */
.mkt-seller {
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-rule);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--mkt-shadow-md);
  position: sticky;
  top: 96px;
}
.mkt-seller__price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem; font-weight: 900;
  color: var(--mkt-navy);
  margin: 0 0 4px;
  line-height: 1;
}
.mkt-seller__price small {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600;
  color: var(--mkt-accent);
  background: var(--mkt-accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  margin-inline-start: 8px;
  vertical-align: middle;
}
.mkt-seller__loc {
  color: var(--mkt-ink-soft);
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 4px;
  font-size: 0.9rem;
}
.mkt-seller__loc .material-symbols-outlined { font-size: 18px !important; }

.mkt-seller__by {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--mkt-rule);
  border-bottom: 1px solid var(--mkt-rule);
  margin-bottom: 14px;
}
.mkt-seller__by-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--mkt-navy), var(--mkt-navy-600));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans';
}
.mkt-seller__by-name { font-weight: 700; color: var(--mkt-ink); }
.mkt-seller__by-sub { font-size: 0.78rem; color: var(--mkt-ink-faint); }

.mkt-seller__actions { display: flex; flex-direction: column; gap: 10px; }
.mkt-seller__btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 12px;
  font-weight: 700; font-size: 0.98rem;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: all 160ms var(--mkt-ease);
}
.mkt-seller__btn--phone {
  background: var(--mkt-accent);
  color: #fff;
  box-shadow: 0 6px 14px -3px rgba(234,88,12,.45);
}
.mkt-seller__btn--phone:hover { transform: translateY(-1px); filter: brightness(1.05); }
.mkt-seller__btn--whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 14px -3px rgba(37,211,102,.45);
}
.mkt-seller__btn--whatsapp:hover { transform: translateY(-1px); filter: brightness(1.05); }
.mkt-seller__btn--ghost {
  background: var(--mkt-surface);
  color: var(--mkt-ink);
  border: 1px solid var(--mkt-rule);
}
.mkt-seller__btn--ghost:hover { border-color: var(--mkt-navy); color: var(--mkt-navy); }

.mkt-seller__phone {
  font-family: 'Plus Jakarta Sans', sans-serif;
  direction: ltr;
  display: inline-block;
}

.mkt-seller__meta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--mkt-rule);
  display: flex; justify-content: space-around;
  font-size: 0.78rem;
  color: var(--mkt-ink-soft);
}
.mkt-seller__meta span { display: flex; align-items: center; gap: 3px; }
.mkt-seller__meta .material-symbols-outlined { font-size: 14px !important; }

/* body */
.mkt-detail__body {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.mkt-detail__main { display: flex; flex-direction: column; gap: 16px; }

.mkt-card-lg {
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-rule);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: var(--mkt-shadow-sm);
}
.mkt-card-lg h2 {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 800;
  color: var(--mkt-navy);
  margin: 0 0 14px;
}
.mkt-card-lg h2 .material-symbols-outlined { font-size: 20px !important; }
.mkt-detail__title { font-size: 1.5rem; font-weight: 900; color: var(--mkt-ink); margin: 0 0 6px; }
.mkt-detail__sub { color: var(--mkt-ink-soft); margin: 0 0 6px; font-size: 0.95rem; }

.mkt-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.mkt-specs__item {
  background: var(--mkt-soft);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.9rem;
}
.mkt-specs__item span { color: var(--mkt-ink-soft); }
.mkt-specs__item b { color: var(--mkt-ink); font-family: 'Plus Jakarta Sans'; }

.mkt-description {
  color: var(--mkt-ink);
  font-size: 0.95rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

/* owner actions */
.mkt-owner {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid #fdba74;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.mkt-owner__label {
  display: flex; align-items: center; gap: 6px;
  font-weight: 700;
  color: var(--mkt-accent);
}
.mkt-owner__label .material-symbols-outlined { font-size: 18px !important; }
.mkt-owner__actions {
  display: flex; gap: 6px;
  margin-inline-start: auto;
  flex-wrap: wrap;
}
.mkt-owner__btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--mkt-rule);
  border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--mkt-ink);
  text-decoration: none;
  cursor: pointer;
  transition: all 140ms var(--mkt-ease);
}
.mkt-owner__btn:hover { border-color: var(--mkt-navy); color: var(--mkt-navy); }
.mkt-owner__btn .material-symbols-outlined { font-size: 15px !important; }

/* ═══════════════════════════════════════════════════════════
   NEW LISTING FORM
   ═══════════════════════════════════════════════════════════ */

.mkt-form { max-width: 880px; margin: 0 auto; padding: 24px; }
.mkt-form__hero {
  background: linear-gradient(135deg, var(--mkt-navy), var(--mkt-navy-600));
  color: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: var(--mkt-shadow-md);
}
.mkt-form__hero h1 { font-size: 1.5rem; font-weight: 800; margin: 0 0 6px; }
.mkt-form__hero p { margin: 0; opacity: .85; font-size: 0.92rem; }

.mkt-form__card {
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-rule);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: var(--mkt-shadow-sm);
  margin-bottom: 14px;
}
.mkt-form__card h2 {
  display: flex; align-items: center; gap: 6px;
  font-size: 1rem; font-weight: 800;
  color: var(--mkt-navy);
  margin: 0 0 18px;
}
.mkt-form__card h2 .material-symbols-outlined { font-size: 20px !important; }
.mkt-form__card h2 small {
  margin-inline-start: auto;
  font-size: 0.72rem;
  color: var(--mkt-ink-faint);
  font-weight: 500;
}

.mkt-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.mkt-form__field label {
  display: block;
  font-size: 0.82rem; font-weight: 700;
  color: var(--mkt-ink);
  margin-bottom: 5px;
}
.mkt-form__field label em { color: var(--mkt-accent); font-style: normal; }
.mkt-form__field input,
.mkt-form__field textarea,
.mkt-form__field select {
  width: 100%;
  border: 1px solid var(--mkt-rule);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit; font-size: 0.92rem;
  background: var(--mkt-soft);
  color: var(--mkt-ink);
  outline: none;
  direction: rtl;
  transition: all 140ms var(--mkt-ease);
}
.mkt-form__field input:focus,
.mkt-form__field textarea:focus,
.mkt-form__field select:focus {
  border-color: var(--mkt-navy); background: #fff;
  box-shadow: 0 0 0 3px rgba(0,43,128,.08);
}
.mkt-form__field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.mkt-form__hint { font-size: 0.75rem; color: var(--mkt-ink-faint); margin-top: 4px; }
.mkt-form__val { color: var(--mkt-accent); font-size: 0.82rem; margin-top: 4px; display: block; }

.mkt-form__plate-btn {
  background: #ffcc00;
  color: #000;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 700; font-size: 0.88rem;
  cursor: pointer;
  transition: all 160ms var(--mkt-ease);
}
.mkt-form__plate-btn:hover { filter: brightness(1.05); }

.mkt-form__submit-row {
  display: flex; gap: 12px; align-items: center;
  margin-top: 18px;
}
.mkt-form__submit {
  background: var(--mkt-accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 30px;
  font-weight: 700; font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 18px -4px rgba(234,88,12,.5);
  transition: all 160ms var(--mkt-ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.mkt-form__submit:hover { transform: translateY(-1px); filter: brightness(1.05); }
.mkt-form__cancel {
  color: var(--mkt-ink-soft);
  text-decoration: none;
  font-weight: 600;
}

.mkt-form__fuel-pills {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.mkt-form__fuel-pills input { display: none; }
.mkt-form__fuel-pills label {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 16px;
  background: #fff;
  border: 1.5px solid var(--mkt-rule);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem; font-weight: 600;
  color: var(--mkt-ink-soft);
  margin: 0;
  transition: all 140ms var(--mkt-ease);
}
.mkt-form__fuel-pills label:hover { border-color: var(--mkt-navy); }
.mkt-form__fuel-pills input:checked + label {
  background: var(--mkt-navy);
  color: #fff;
  border-color: var(--mkt-navy);
}

/* ─── My listings ─────────────────────────────────────── */
.mkt-my__status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  margin-bottom: 6px;
}
.mkt-my__status--published { background: #ecfdf5; color: var(--mkt-ok); }
.mkt-my__status--sold { background: var(--mkt-soft); color: var(--mkt-ink-soft); }
.mkt-my__status--draft { background: #fef3c7; color: #a16207; }

/* ─── plate lookup row ────────────────────────────────── */
.mkt-form__plate-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.mkt-form__plate-input {
  flex: 1;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  letter-spacing: 0.1em;
  font-size: 1.05rem !important;
  font-weight: 700;
  text-align: center;
  background: #fff7cc !important;
  border: 1.5px solid #e7c500 !important;
}
.mkt-form__plate-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 4px;
}

/* autofill highlight flash */
@keyframes mkt-autofill-pulse {
  0%   { background: #ecfdf5; border-color: var(--mkt-ok); }
  100% { background: var(--mkt-soft); border-color: var(--mkt-rule); }
}
.mkt-form__field--autofilled {
  animation: mkt-autofill-pulse 1.2s var(--mkt-ease);
}

/* auto-fill status banner */
.mkt-form__banner {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}
.mkt-form__banner .material-symbols-outlined { font-size: 20px !important; flex-shrink: 0; }
.mkt-form__banner--info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.mkt-form__banner--ok {
  background: #ecfdf5;
  color: var(--mkt-ok);
  border: 1px solid #a7f3d0;
}
.mkt-form__banner--warn {
  background: var(--mkt-accent-soft);
  color: var(--mkt-accent);
  border: 1px solid #fed7aa;
}

/* ─── image uploader ──────────────────────────────────── */
.mkt-uploader {
  display: block;
  border: 2px dashed var(--mkt-rule);
  border-radius: 14px;
  padding: 28px 18px;
  text-align: center;
  background: var(--mkt-soft);
  cursor: pointer;
  transition: all 160ms var(--mkt-ease);
}
.mkt-uploader:hover,
.mkt-uploader.is-dragover {
  border-color: var(--mkt-navy);
  background: #eef2ff;
  color: var(--mkt-navy);
}
.mkt-uploader__inner {
  display: flex; flex-direction: column; gap: 4px; align-items: center;
  color: var(--mkt-ink-soft);
  font-size: 0.95rem;
}
.mkt-uploader__inner b { color: var(--mkt-ink); }
.mkt-uploader__icon {
  font-size: 44px !important;
  color: var(--mkt-navy);
}
.mkt-uploader__sub {
  font-size: 0.8rem;
  color: var(--mkt-ink-faint);
  margin-top: 2px;
}

.mkt-uploader__previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.mkt-uploader__item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  border: 2px solid transparent;
  box-shadow: var(--mkt-shadow-sm);
}
.mkt-uploader__item.is-cover { border-color: var(--mkt-accent); }
.mkt-uploader__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.mkt-uploader__cover-tag {
  position: absolute;
  top: 6px; inset-inline-start: 6px;
  background: var(--mkt-accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.05em;
}
.mkt-uploader__remove {
  position: absolute;
  top: 6px; inset-inline-end: 6px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(15,23,42,.75);
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 140ms var(--mkt-ease);
}
.mkt-uploader__remove:hover { background: #dc2626; }
.mkt-uploader__remove .material-symbols-outlined { font-size: 16px !important; }
.mkt-uploader__meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 4px 8px;
  background: linear-gradient(to top, rgba(15,23,42,.75), transparent);
  color: #fff;
  font-size: 0.7rem;
  direction: ltr;
}

/* details page flash */
.mkt-detail__flash {
  display: flex; align-items: center; gap: 8px;
  background: var(--mkt-accent-soft);
  border: 1px solid #fed7aa;
  color: var(--mkt-accent);
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem; font-weight: 600;
}
.mkt-detail__flash .material-symbols-outlined { font-size: 20px !important; }

/* hero CTA for anonymous users */
.mkt__hero-cta--login {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
}
.mkt__hero-cta--login:hover { background: rgba(255,255,255,.22); }

@media print {
  .mkt__filters, .mkt__toolbar, .mkt__pager, .mkt-seller__actions, .mkt-owner, .mkt-form__submit-row { display: none !important; }
  .mkt-card, .mkt-card-lg, .mkt-gallery, .mkt-seller { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}

/* ============================================================
   MKT2 — yad2 top-filter-bar rebuild
   Matches: desktop-market-front.png, car-*-filter.png screenshots
   - Top horizontal filter bar with pill popovers
   - Tabbed vehicle-type strip (underline style)
   - "More filters" :target drawer from the inline-end
   - Horizontal RTL cards (photo right, price left)
   - All pure CSS — no JS required
   ============================================================ */

.mkt2 { max-width: 1200px; margin: 0 auto; padding: 20px 24px 40px; }

/* ─── Hero (compact, single-line on desktop) ────────────── */
.mkt2__hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #0b1e52 0%, var(--mkt-navy) 60%, #00337a 100%);
  color: #fff;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: var(--mkt-shadow-md);
}
.mkt2__hero-copy h1 { font-size: 1.5rem; font-weight: 800; margin: 0 0 4px; }
.mkt2__hero-copy p { margin: 0; color: rgba(255,255,255,.78); font-size: .88rem; }
.mkt2__hero-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; background: var(--mkt-accent); color: #fff;
  border-radius: 999px; font-weight: 700; font-size: .9rem;
  text-decoration: none; box-shadow: 0 6px 16px rgba(234,88,12,.4);
  white-space: nowrap; transition: filter .15s, transform .15s;
}
.mkt2__hero-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ─── Vehicle type tabs (underline style) ───────────────── */
.mkt2-tabs {
  display: flex; gap: 4px; overflow-x: auto;
  border-bottom: 1px solid var(--mkt-rule);
  margin-bottom: 14px;
  padding: 0 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* hide the raw scrollbar on the tab strip */
}
.mkt2-tabs::-webkit-scrollbar { display: none; }
.mkt2-tabs__tab {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  color: var(--mkt-ink-soft);
  font-size: .92rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: color .15s;
}
.mkt2-tabs__tab .material-symbols-outlined {
  font-size: 20px; color: inherit; opacity: .85;
  transition: opacity .15s;
}
.mkt2-tabs__tab:hover { color: var(--mkt-ink); }
.mkt2-tabs__tab:hover .material-symbols-outlined { opacity: 1; }
.mkt2-tabs__tab.is-active { color: var(--mkt-accent); font-weight: 700; }
.mkt2-tabs__tab.is-active .material-symbols-outlined { opacity: 1; }
.mkt2-tabs__tab.is-active::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -1px;
  width: 100%; height: 3px; background: var(--mkt-accent);
  border-radius: 2px 2px 0 0;
}

/* vehicle-type icon grid (popover + drawer variant) */
.mkt2-vtype-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 14px;
}
.mkt2-vtype-grid a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 14px 8px;
  border: 1px solid var(--mkt-rule); border-radius: 10px;
  background: #fff; color: var(--mkt-ink);
  font-size: .82rem; font-weight: 600;
  text-decoration: none;
  transition: border-color .15s, background .15s, transform .15s;
}
.mkt2-vtype-grid a:hover {
  border-color: var(--mkt-accent); background: var(--mkt-accent-soft);
  transform: translateY(-1px);
}
.mkt2-vtype-grid a.is-active {
  border-color: var(--mkt-accent); background: var(--mkt-accent-soft);
  color: var(--mkt-accent);
}
.mkt2-vtype-grid .material-symbols-outlined {
  font-size: 30px; color: var(--mkt-navy);
}
.mkt2-vtype-grid a.is-active .material-symbols-outlined { color: var(--mkt-accent); }

/* area search input (drawer) */
.mkt2-area-search {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--mkt-soft);
  border: 1px solid var(--mkt-rule); border-radius: 10px;
  margin-bottom: 10px;
}
.mkt2-area-search .material-symbols-outlined {
  font-size: 18px; color: var(--mkt-ink-faint);
}
.mkt2-area-search input {
  flex: 1; border: none; outline: none; background: transparent;
  color: var(--mkt-ink); font-size: .9rem;
}

/* ─── Top filter bar ───────────────────────────────────── */
.mkt2-bar {
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-rule);
  border-radius: 50px;
  padding: 8px;
  box-shadow: var(--mkt-shadow-sm);
  margin-bottom: 12px;
}
.mkt2-bar__row {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.mkt2-bar__row--extras {
  padding: 10px 12px 6px;
  gap: 10px;
  border-top: 1px solid var(--mkt-rule);
  margin-top: 6px;
}

/* pill popover trigger */
.mkt2-pill { position: relative; flex: 1; min-width: 140px; }
.mkt2-pill > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  background: #fff; color: var(--mkt-ink);
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .9rem;
  transition: background .15s, border-color .15s;
}
.mkt2-pill > summary::-webkit-details-marker { display: none; }
.mkt2-pill > summary:hover { background: var(--mkt-soft); }
.mkt2-pill[open] > summary { background: var(--mkt-soft); border-color: var(--mkt-rule); }
.mkt2-pill.is-on > summary {
  background: rgba(234,88,12,.08); color: var(--mkt-accent);
  border-color: rgba(234,88,12,.25); font-weight: 700;
}
.mkt2-pill__label { flex: 1; text-align: start; }
.mkt2-pill__chev {
  font-size: 18px !important; color: var(--mkt-ink-faint);
  transition: transform .18s var(--mkt-ease);
}
.mkt2-pill[open] .mkt2-pill__chev { transform: rotate(180deg); }

/* popover panel */
.mkt2-pop {
  position: absolute; top: calc(100% + 6px); inset-inline-start: 0;
  min-width: 280px; max-width: 360px;
  background: #fff; border: 1px solid var(--mkt-rule);
  border-radius: 14px;
  box-shadow: 0 16px 48px -12px rgba(15,23,42,.25), 0 4px 12px rgba(15,23,42,.06);
  z-index: 30;
  overflow: hidden;
  animation: mkt2-pop-in .16s var(--mkt-ease) both;
}
@keyframes mkt2-pop-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.mkt2-pop--narrow { min-width: 240px; }
.mkt2-pop__title {
  padding: 14px 18px 10px; font-weight: 800; font-size: .95rem; color: var(--mkt-ink);
  border-bottom: 1px solid var(--mkt-rule);
}
.mkt2-pop__scroll { max-height: 320px; overflow-y: auto; padding: 6px 8px; }
.mkt2-pop__body { padding: 14px 18px; }
.mkt2-pop__hint {
  display: flex; align-items: center; gap: 8px;
  padding: 16px; color: var(--mkt-ink-soft); font-size: .88rem;
}
.mkt2-pop__hint .material-symbols-outlined { color: var(--mkt-accent); font-size: 20px; }
.mkt2-pop__row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  font-size: .88rem; color: var(--mkt-ink);
  transition: background .15s;
}
.mkt2-pop__row:hover { background: var(--mkt-soft); }
.mkt2-pop__row input { accent-color: var(--mkt-accent); }
.mkt2-pop__foot {
  padding: 10px 14px; border-top: 1px solid var(--mkt-rule); background: var(--mkt-soft);
  display: flex; justify-content: flex-end; gap: 8px;
}
.mkt2-pop__apply {
  padding: 8px 22px; background: var(--mkt-accent); color: #fff;
  border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: .88rem;
  transition: filter .15s;
}
.mkt2-pop__apply:hover { filter: brightness(1.05); }

/* Search CTA (main orange button at the end of the bar) */
.mkt2-bar__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 28px;
  background: var(--mkt-accent); color: #fff;
  border: 0; border-radius: 999px; cursor: pointer;
  font-size: .92rem; font-weight: 800;
  box-shadow: 0 4px 12px rgba(234,88,12,.3);
  transition: filter .15s, transform .15s;
}
.mkt2-bar__cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* extras row (opportunities + more filters) */
.mkt2-extra {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  color: var(--mkt-ink-soft);
  font-size: .85rem; font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.mkt2-extra .material-symbols-outlined { font-size: 18px; }
.mkt2-extra:hover { background: var(--mkt-soft); color: var(--mkt-ink); }
.mkt2-extra--accent {
  color: var(--mkt-accent);
  margin-inline-start: auto;
  font-weight: 700;
}
.mkt2-extra--accent:hover { background: var(--mkt-accent-soft); }
.mkt2-extra__count {
  background: var(--mkt-accent); color: #fff;
  border-radius: 999px; padding: 1px 7px;
  font-size: .72rem; font-weight: 800;
}

/* ─── Range inputs (inside pop + drawer) ───────────────── */
.mkt2-range { display: flex; gap: 10px; }
.mkt2-range label {
  flex: 1; position: relative;
  display: flex; flex-direction: column; gap: 4px;
}
.mkt2-range label > span {
  font-size: .72rem; font-weight: 700; color: var(--mkt-ink-soft);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.mkt2-range input, .mkt2-range select {
  padding: 9px 12px; border: 1px solid var(--mkt-rule);
  border-radius: 10px; font-size: .9rem; background: #fff; font-family: inherit;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.mkt2-range input:focus, .mkt2-range select:focus {
  outline: none; border-color: var(--mkt-accent);
  box-shadow: 0 0 0 3px rgba(234,88,12,.12);
}
.mkt2-range i {
  position: absolute; bottom: 10px; inset-inline-start: 12px;
  font-size: .8rem; color: var(--mkt-ink-faint); font-style: normal;
  pointer-events: none;
}

/* chip row — pills */
.mkt2-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mkt2-chip-row--nums { gap: 6px; }
.mkt2-chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; cursor: pointer;
  background: #fff; border: 1px solid var(--mkt-rule);
  border-radius: 999px; font-size: .85rem; color: var(--mkt-ink);
  transition: border-color .15s, background .15s, color .15s;
}
.mkt2-chip:hover { border-color: var(--mkt-accent); }
.mkt2-chip input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.mkt2-chip:has(input:checked) {
  background: var(--mkt-navy); border-color: var(--mkt-navy); color: #fff;
}
.mkt2-chip--num {
  width: 36px; height: 36px; padding: 0;
  justify-content: center; font-weight: 700;
}

/* ─── Applied-chip row ─────────────────────────────────── */
.mkt2-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 4px 4px;
  margin-bottom: 4px;
}
.mkt2-chip-active {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  background: var(--mkt-soft); color: var(--mkt-ink);
  border: 1px solid var(--mkt-rule);
  border-radius: 999px; font-size: .82rem; font-weight: 600;
  text-decoration: none; transition: background .15s, border-color .15s;
}
.mkt2-chip-active:hover { background: #fff; border-color: var(--mkt-accent); color: var(--mkt-accent); }
.mkt2-chip-active .material-symbols-outlined { font-size: 14px; }
.mkt2-chip-active--hot {
  background: var(--mkt-accent-soft); color: var(--mkt-accent); border-color: rgba(234,88,12,.3);
}
.mkt2-chip-active__dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid var(--mkt-rule);
}
.mkt2-chips__clear {
  margin-inline-start: auto; align-self: center;
  color: var(--mkt-ink-soft); font-size: .82rem; font-weight: 700;
  text-decoration: none;
}
.mkt2-chips__clear:hover { color: var(--mkt-accent); text-decoration: underline; }

/* ─── Results section ──────────────────────────────────── */
.mkt2-results { margin-top: 18px; }
.mkt2-results__head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 0 4px 14px;
}
.mkt2-results__title { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--mkt-ink); }
.mkt2-results__count { color: var(--mkt-ink-soft); font-size: .88rem; }

.mkt2-sort { position: relative; margin-inline-start: auto; }
.mkt2-sort > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  color: var(--mkt-ink); font-size: .88rem;
  background: transparent;
  transition: background .15s;
}
.mkt2-sort > summary::-webkit-details-marker { display: none; }
.mkt2-sort > summary:hover { background: var(--mkt-soft); }
.mkt2-sort > summary span:first-child { color: var(--mkt-ink-soft); }
.mkt2-sort > summary b { color: var(--mkt-ink); font-weight: 700; }
.mkt2-sort > summary .material-symbols-outlined { font-size: 18px; transition: transform .18s; }
.mkt2-sort[open] > summary .material-symbols-outlined { transform: rotate(180deg); }
.mkt2-sort__pop {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0;
  min-width: 240px;
  background: #fff; border: 1px solid var(--mkt-rule);
  border-radius: 12px;
  box-shadow: 0 16px 48px -12px rgba(15,23,42,.25);
  padding: 6px; z-index: 20;
  display: flex; flex-direction: column;
  animation: mkt2-pop-in .16s var(--mkt-ease) both;
}
.mkt2-sort__pop a {
  padding: 10px 14px; border-radius: 8px;
  color: var(--mkt-ink); font-size: .88rem;
  text-decoration: none;
  transition: background .15s;
}
.mkt2-sort__pop a:hover { background: var(--mkt-soft); }
.mkt2-sort__pop a.is-active { background: var(--mkt-accent-soft); color: var(--mkt-accent); font-weight: 700; }

/* Phone: filter & sort popovers become a contained bottom sheet. On mobile the
   pills are a 50%-width 2-up grid, so an absolute popover (min-width 240–280px)
   anchored to a left-column pill would spill off the viewport edge and clip.
   A fixed bottom sheet can never overflow and reads as a native filter sheet. */
@media (max-width: 639.98px) {
  .mkt2-pop,
  .mkt2-sort__pop {
    position: fixed;
    inset-inline: 12px;
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    min-width: 0;
    max-width: none;
    width: auto;
    max-height: 80vh;
    border-radius: 18px;
    box-shadow: 0 -10px 44px -8px rgba(15,23,42,.4);
    z-index: 60;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  /* Let the list/options area take the slack so the reset/apply foot stays pinned. */
  .mkt2-pop__scroll { flex: 1 1 auto; max-height: none; }
  .mkt2-sort__pop { overflow-y: auto; }
}

/* ─── Results list ─────────────────────────────────────── */
.mkt2-list { display: flex; flex-direction: column; gap: 10px; }

.mkt2-card {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;  /* photo (HTML first) is the fixed narrow column; body flexes */
  gap: 0;
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-rule);
  border-radius: 12px;
  text-decoration: none; color: inherit;
  overflow: hidden;
  transition: border-color .18s var(--mkt-ease), box-shadow .18s var(--mkt-ease), transform .18s var(--mkt-ease);
}
.mkt2-card:hover {
  border-color: var(--mkt-accent);
  box-shadow: var(--mkt-shadow-md);
  transform: translateY(-1px);
}
@media (max-width: 640px) {
  .mkt2-card { grid-template-columns: 130px 1fr; border-radius: 10px; }
}

.mkt2-card__photo {
  position: relative;
  overflow: hidden;
  background: var(--mkt-soft);
  align-self: stretch;
  width: 100%;            /* fill the fixed grid track exactly … */
  min-height: 140px;
  /* No aspect-ratio here: with align-self:stretch the photo's height is driven
     by the (taller) body, and an aspect-ratio would back-compute the width from
     that height — overflowing the column and covering the price/title text. */
}
/* The image is absolutely positioned so it is removed from layout flow and can
   NEVER dictate the photo box height. Without this, a tall/portrait upload makes
   the <img> intrinsically tall, inflating the grid row (and the whole card). Now
   the box height comes only from the body + min-height, and the image just fills
   it (cropping via object-fit: cover). */
.mkt2-card__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.mkt2-card__photo-none {
  width: 100%; height: 100%; display: grid; place-items: center;
  color: var(--mkt-ink-faint);
}
.mkt2-card__photo-none .material-symbols-outlined { font-size: 56px; }
.mkt2-card__imgcount {
  position: absolute; bottom: 8px; inset-inline-end: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; background: rgba(15,23,42,.78); color: #fff;
  border-radius: 999px; font-size: .74rem; font-weight: 600;
  backdrop-filter: blur(4px);
}
.mkt2-card__imgcount .material-symbols-outlined { font-size: 14px; }
.mkt2-card__sold {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: var(--mkt-sold-overlay); color: #fff;
  font-size: 1.5rem; font-weight: 800; letter-spacing: 0.08em;
}
.mkt2-card__ribbon {
  position: absolute; top: 10px; inset-inline-start: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px;
  background: #f59e0b; color: #fff;
  border-radius: 999px; font-size: .74rem; font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(245,158,11,.4);
}
.mkt2-card__ribbon .material-symbols-outlined { font-size: 14px; }

/* favorite heart */
.mkt2-card__fav {
  position: absolute; top: 8px; inset-inline-start: 8px;
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 1px solid var(--mkt-rule); cursor: pointer;
  display: grid; place-items: center;
  z-index: 4;
  transition: background .15s, transform .15s;
}
.mkt2-card__fav:hover { background: var(--mkt-accent-soft); transform: scale(1.08); }
.mkt2-card__fav .material-symbols-outlined { font-size: 20px; color: var(--mkt-accent); }

/* body (flex column, takes remaining width) */
.mkt2-card__body {
  padding: 12px 16px 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.mkt2-card__price {
  display: flex; align-items: baseline; gap: 3px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--mkt-ink);
}
.mkt2-card__price-value {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em;
}
.mkt2-card__currency { font-size: .88rem; font-weight: 700; color: var(--mkt-ink-soft); }
.mkt2-card__price small {
  margin-inline-start: 6px;
  padding: 2px 8px; background: var(--mkt-accent-soft); color: var(--mkt-accent);
  border-radius: 999px; font-size: .68rem; font-weight: 700;
}
.mkt2-card__title {
  margin: 0; font-size: .95rem; font-weight: 700; color: var(--mkt-ink);
  line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.mkt2-card__meta {
  display: flex; gap: 8px;
  color: var(--mkt-ink-soft); font-size: .8rem;
}
.mkt2-card__meta span + span { position: relative; padding-inline-start: 12px; }
.mkt2-card__meta span + span::before {
  content: "·"; position: absolute; inset-inline-start: 4px; top: 0;
}
.mkt2-card__tags {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-top: 2px;
}
.mkt2-card__tag {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px;
  background: var(--mkt-soft); color: var(--mkt-ink);
  border-radius: 6px; font-size: .72rem; font-weight: 600;
  line-height: 1.1;
}
.mkt2-card__tag .material-symbols-outlined { font-size: 13px; color: var(--mkt-ink-soft); }
.mkt2-card__tag--city { background: rgba(0,43,128,.08); color: var(--mkt-navy); }
.mkt2-card__tag--city .material-symbols-outlined { color: var(--mkt-navy); }
@media (max-width: 640px) {
  .mkt2-card__body { padding: 10px 12px; gap: 3px; }
  .mkt2-card__price-value { font-size: 1.1rem; }
  .mkt2-card__title { font-size: .88rem; }
  .mkt2-card__meta { font-size: .74rem; gap: 6px; }
  .mkt2-card__tag { padding: 2px 7px; font-size: .68rem; }
  .mkt2-card__photo { min-height: 100px; }
  .mkt2-card__photo-none .material-symbols-outlined { font-size: 36px; }
}

/* ─── Pagination ───────────────────────────────────────── */
.mkt2-pager {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin-top: 24px;
}
.mkt2-pager__btn {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 9px 16px;
  background: #fff; color: var(--mkt-ink);
  border: 1px solid var(--mkt-rule);
  border-radius: 10px;
  font-size: .88rem; font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.mkt2-pager__btn:hover { background: var(--mkt-soft); border-color: var(--mkt-accent); color: var(--mkt-accent); }
.mkt2-pager__btn.is-disabled { opacity: .4; pointer-events: none; }
.mkt2-pager__btn .material-symbols-outlined { font-size: 16px; }
.mkt2-pager__page {
  display: inline-grid; place-items: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  background: #fff; color: var(--mkt-ink);
  border: 1px solid var(--mkt-rule); border-radius: 10px;
  font-size: .88rem; font-weight: 600; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.mkt2-pager__page:hover { background: var(--mkt-soft); border-color: var(--mkt-accent); color: var(--mkt-accent); }
.mkt2-pager__page.is-current { background: var(--mkt-accent); color: #fff; border-color: var(--mkt-accent); }
.mkt2-pager__sep { padding: 0 4px; color: var(--mkt-ink-faint); }

/* ─── Empty state ──────────────────────────────────────── */
.mkt2-empty {
  text-align: center; padding: 60px 20px;
  background: var(--mkt-surface); border: 1px dashed var(--mkt-rule);
  border-radius: 16px;
}
.mkt2-empty .material-symbols-outlined { font-size: 64px; color: var(--mkt-ink-faint); }
.mkt2-empty h3 { margin: 12px 0 6px; font-size: 1.15rem; font-weight: 800; color: var(--mkt-ink); }
.mkt2-empty p { margin: 0 0 18px; color: var(--mkt-ink-soft); font-size: .9rem; }
.mkt2-empty__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px;
  background: var(--mkt-accent); color: #fff;
  border-radius: 999px; font-weight: 700; font-size: .88rem;
  text-decoration: none; transition: filter .15s;
}
.mkt2-empty__cta:hover { filter: brightness(1.05); }

/* ═══════════ MORE FILTERS DRAWER (pure-CSS :target) ═══════════ */
.mkt2-drawer {
  position: fixed; inset: 0; z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--mkt-ease);
}
.mkt2-drawer:target { opacity: 1; pointer-events: auto; }
.mkt2-drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(15,23,42,.45); backdrop-filter: blur(4px);
}
.mkt2-drawer__scrim::before {
  content: ""; position: absolute; inset: 0;
}
.mkt2-drawer__panel {
  position: absolute; top: 0; bottom: 0; inset-inline-end: 0;
  width: min(420px, 100%); background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform .25s var(--mkt-ease);
  box-shadow: -16px 0 40px -12px rgba(15,23,42,.25);
}
html[dir=rtl] .mkt2-drawer__panel { transform: translateX(100%); }
.mkt2-drawer:target .mkt2-drawer__panel { transform: translateX(0); }
.mkt2-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--mkt-rule);
}
.mkt2-drawer__head h3 { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--mkt-ink); }
.mkt2-drawer__close {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--mkt-ink-soft);
  transition: background .15s;
}
.mkt2-drawer__close:hover { background: var(--mkt-soft); color: var(--mkt-ink); }
.mkt2-drawer__body {
  flex: 1; overflow-y: auto; padding: 6px 20px 20px;
}
.mkt2-drawer__section {
  padding: 16px 0; border-bottom: 1px solid var(--mkt-rule);
}
.mkt2-drawer__section:last-child { border-bottom: 0; }
.mkt2-drawer__section h4 {
  margin: 0 0 10px; font-size: .9rem; font-weight: 800; color: var(--mkt-ink);
}
.mkt2-drawer__check {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 2px; cursor: pointer;
  font-size: .88rem; color: var(--mkt-ink);
}
.mkt2-drawer__check input { accent-color: var(--mkt-accent); }
.mkt2-drawer__foot {
  padding: 14px 20px; border-top: 1px solid var(--mkt-rule);
  background: #fff; display: flex; gap: 10px; align-items: center;
}
.mkt2-drawer__reset {
  flex: 0; padding: 10px 18px; color: var(--mkt-ink-soft);
  text-decoration: none; font-size: .88rem; font-weight: 600;
}
.mkt2-drawer__reset:hover { color: var(--mkt-accent); text-decoration: underline; }
.mkt2-drawer__apply {
  flex: 1; padding: 11px 18px;
  background: var(--mkt-accent); color: #fff;
  border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 800; font-size: .92rem;
  transition: filter .15s;
}
.mkt2-drawer__apply:hover { filter: brightness(1.05); }

/* area tree + swatches in drawer */
.mkt2-tree { display: flex; flex-direction: column; gap: 2px; }
.mkt2-tree__node > summary {
  list-style: none;
  display: flex; align-items: center; gap: 6px;
  padding: 10px 4px; cursor: pointer;
  font-size: .9rem; color: var(--mkt-ink);
  border-radius: 6px;
}
.mkt2-tree__node > summary::-webkit-details-marker { display: none; }
.mkt2-tree__node > summary b { flex: 1; }
.mkt2-tree__node > summary:hover { background: var(--mkt-soft); }
.mkt2-tree__node > summary .material-symbols-outlined {
  font-size: 18px; color: var(--mkt-ink-faint);
  transition: transform .18s;
}
.mkt2-tree__node[open] > summary .material-symbols-outlined { transform: rotate(180deg); }
.mkt2-tree__body { padding: 4px 20px 6px; }
.mkt2-tree__row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 4px; border-radius: 6px; cursor: pointer;
  font-size: .86rem; color: var(--mkt-ink);
}
.mkt2-tree__row:hover { background: var(--mkt-soft); }
.mkt2-tree__row input { accent-color: var(--mkt-accent); }

.mkt2-swatches {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px;
}
.mkt2-swatch {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 4px; cursor: pointer;
  border: 2px solid transparent; border-radius: 10px;
  transition: border-color .15s, background .15s;
}
.mkt2-swatch input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.mkt2-swatch__dot {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--mkt-rule);
  box-shadow: 0 1px 2px rgba(15,23,42,.08);
}
.mkt2-swatch__name { font-size: .72rem; color: var(--mkt-ink-soft); text-align: center; }
.mkt2-swatch:hover { background: var(--mkt-soft); }
.mkt2-swatch.is-on { border-color: var(--mkt-accent); background: var(--mkt-accent-soft); }
.mkt2-swatch.is-on .mkt2-swatch__name { color: var(--mkt-accent); font-weight: 700; }

/* mobile adjustments */
@media (max-width: 768px) {
  .mkt2 { padding: 14px; }
  .mkt2-bar { border-radius: 16px; padding: 12px; }

  /* Filter pills become a clean 2-up grid of bordered fields: brand name on
     the right (start), chevron pinned to the left (end). */
  .mkt2-bar__row { gap: 8px; }
  .mkt2-pill { min-width: 0; flex: 1 1 calc(50% - 4px); }
  .mkt2-pill > summary {
    justify-content: space-between;
    padding: 12px 14px;
    border-color: var(--mkt-rule);
    background: #fff;
  }
  .mkt2-pill__label { flex: 0 1 auto; }
  .mkt2-pill__chev { margin-inline-start: 8px; }
  .mkt2-bar__cta { flex: 1 1 100%; justify-content: center; padding: 13px; }

  /* Quick-filter chips: a single horizontally-scrollable row of real chips,
     no mid-word wrapping, no visible scrollbar. "סינונים נוספים" comes first
     so it's never scrolled out of reach. */
  .mkt2-bar__row--extras {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 12px 0 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mkt2-bar__row--extras::-webkit-scrollbar { display: none; }
  .mkt2-extra {
    flex: 0 0 auto;
    border: 1px solid var(--mkt-rule);
    background: #fff;
    padding: 9px 14px;
  }
  .mkt2-extra.is-on { border-color: rgba(234,88,12,.35); background: var(--mkt-accent-soft); }
  .mkt2-extra--accent {
    order: -1;                    /* surface "סינונים נוספים" at the row start */
    margin-inline-start: 0;
    background: var(--mkt-accent-soft);
    border-color: rgba(234,88,12,.3);
  }

  .mkt2-results__title { font-size: 1.2rem; }
  .mkt2-sort { margin-inline-start: 0; }
  .mkt2-tabs__tab { padding: 10px 14px; font-size: .86rem; }
  .mkt2__hero { flex-direction: column; align-items: flex-start; text-align: right; }
  .mkt2__hero-cta { align-self: stretch; justify-content: center; }
}

/* ============================================================
   Legacy styles below — kept for /market/publish and /market/:id
   ============================================================ */

/* ─── vehicle-type tabs ──────────────────────────────────── */
.mkt-cat-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 8px; margin-bottom: 16px;
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-rule);
  border-radius: 14px;
  box-shadow: var(--mkt-shadow-sm);
  overflow-x: auto;
}
.mkt-cat-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--mkt-ink-soft);
  font-weight: 600; font-size: 0.88rem;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background .18s var(--mkt-ease), color .18s var(--mkt-ease), border .18s var(--mkt-ease);
}
.mkt-cat-tab .material-symbols-outlined { font-size: 20px; }
.mkt-cat-tab:hover { background: var(--mkt-soft); color: var(--mkt-ink); }
.mkt-cat-tab.is-active {
  background: var(--mkt-navy); color: #fff;
  border-color: var(--mkt-navy);
}

/* ─── main 2-column layout ──────────────────────────────── */
.mkt__layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1024px) {
  .mkt__layout { grid-template-columns: 1fr; }
}

/* ─── filter rail ────────────────────────────────────────── */
.mkt-rail {
  position: sticky; top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-rule);
  border-radius: 14px;
  box-shadow: var(--mkt-shadow-sm);
}
.mkt-rail__form { display: flex; flex-direction: column; }
.mkt-rail__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--mkt-rule);
  background: var(--mkt-soft);
  border-radius: 14px 14px 0 0;
  position: sticky; top: 0; z-index: 2;
}
.mkt-rail__head h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 800; color: var(--mkt-ink); margin: 0;
}
.mkt-rail__head h3 .material-symbols-outlined { font-size: 20px; color: var(--mkt-navy); }
.mkt-rail__count {
  background: var(--mkt-accent); color: #fff;
  border-radius: 999px; font-size: .72rem; font-weight: 700;
  padding: 2px 8px; min-width: 20px; text-align: center;
}
.mkt-rail__clear {
  color: var(--mkt-accent); font-weight: 700; font-size: .82rem;
  text-decoration: none;
}
.mkt-rail__clear:hover { text-decoration: underline; }

.mkt-rail__search {
  position: relative; padding: 12px 14px; border-bottom: 1px solid var(--mkt-rule);
}
.mkt-rail__search input {
  width: 100%; padding: 10px 36px 10px 12px;
  border: 1px solid var(--mkt-rule);
  border-radius: 10px; font-size: .9rem; background: var(--mkt-soft);
  transition: border .18s, background .18s;
}
.mkt-rail__search input:focus {
  outline: none; border-color: var(--mkt-navy); background: #fff;
}
.mkt-rail__search .material-symbols-outlined {
  position: absolute; top: 50%; right: 22px; transform: translateY(-50%);
  color: var(--mkt-ink-faint); font-size: 18px; pointer-events: none;
}

.mkt-rail__sublabel {
  display: block; margin: 10px 0 6px;
  font-size: .75rem; font-weight: 700; color: var(--mkt-ink-soft);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.mkt-rail__hint {
  margin: 4px 0 0; padding: 8px 10px;
  font-size: .78rem; color: var(--mkt-ink-faint);
  background: var(--mkt-soft); border-radius: 8px;
}

.mkt-rail__foot {
  position: sticky; bottom: 0; z-index: 2;
  padding: 12px 14px;
  background: var(--mkt-surface);
  border-top: 1px solid var(--mkt-rule);
  border-radius: 0 0 14px 14px;
}
.mkt-rail__apply {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 16px; border: 0; cursor: pointer;
  background: var(--mkt-accent); color: #fff;
  border-radius: 10px; font-weight: 800; font-size: .92rem;
  transition: filter .18s, transform .18s;
}
.mkt-rail__apply:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* ─── filter group (accordion) ──────────────────────────── */
.mkt-group { border-bottom: 1px solid var(--mkt-rule); }
.mkt-group:last-of-type { border-bottom: 0; }
.mkt-group > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  font-weight: 700; font-size: .9rem; color: var(--mkt-ink);
}
.mkt-group > summary::-webkit-details-marker { display: none; }
.mkt-group > summary::after {
  content: "expand_more"; font-family: 'Material Symbols Outlined';
  margin-inline-start: auto; color: var(--mkt-ink-faint);
  transition: transform .18s var(--mkt-ease);
}
.mkt-group[open] > summary::after { transform: rotate(180deg); }
.mkt-group > summary .material-symbols-outlined:first-of-type {
  font-size: 18px; color: var(--mkt-navy);
}
.mkt-group > summary:hover { background: var(--mkt-soft); }
.mkt-group__body { padding: 4px 14px 14px; }

/* ─── row checkbox list (manufacturers, models) ─────────── */
.mkt-scroll { max-height: 220px; overflow-y: auto; padding-inline-end: 4px; }
.mkt-scroll--tall { max-height: 260px; }
.mkt-row-check {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 4px; cursor: pointer;
  border-radius: 6px; transition: background .15s;
}
.mkt-row-check:hover { background: var(--mkt-soft); }
.mkt-row-check input { accent-color: var(--mkt-navy); }
.mkt-row-check__label { font-size: .88rem; color: var(--mkt-ink); flex: 1; }
.mkt-row-check .mut { color: var(--mkt-ink-faint); font-size: .78rem; }

/* ─── chip-style multi-select ───────────────────────────── */
.mkt-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.mkt-chip-row--small .mkt-chip-check, .mkt-chip-row--small .mkt-chip-radio { padding: 6px 10px; }
.mkt-chip-check, .mkt-chip-radio {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; cursor: pointer;
  background: var(--mkt-soft); border: 1px solid var(--mkt-rule);
  border-radius: 999px; font-size: .84rem; color: var(--mkt-ink);
  transition: background .15s, border-color .15s, color .15s;
}
.mkt-chip-check input, .mkt-chip-radio input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.mkt-chip-check:has(input:checked), .mkt-chip-radio:has(input:checked) {
  background: var(--mkt-navy); border-color: var(--mkt-navy); color: #fff;
}
.mkt-chip-check:hover, .mkt-chip-radio:hover { border-color: var(--mkt-navy); }
.mkt-chip-check--pill { min-width: 42px; justify-content: center; padding: 7px 12px; font-weight: 600; }

/* toggle row */
.mkt-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px; margin-top: 4px;
  cursor: pointer; font-size: .88rem; color: var(--mkt-ink);
}
.mkt-toggle input { accent-color: var(--mkt-navy); }

/* ─── color swatches ────────────────────────────────────── */
.mkt-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
}
.mkt-swatch {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; padding: 6px 4px;
  border: 2px solid transparent; border-radius: 10px;
  transition: border .15s, background .15s;
}
.mkt-swatch input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.mkt-swatch__dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--mkt-rule);
  box-shadow: 0 1px 2px rgba(15,23,42,.08);
}
.mkt-swatch__name { font-size: .72rem; color: var(--mkt-ink-soft); text-align: center; }
.mkt-swatch:hover { background: var(--mkt-soft); }
.mkt-swatch.is-active { border-color: var(--mkt-navy); background: var(--mkt-soft); }
.mkt-swatch.is-active .mkt-swatch__name { color: var(--mkt-navy); font-weight: 700; }

/* ─── range (from/to inputs) ────────────────────────────── */
.mkt-range { display: flex; gap: 8px; }
.mkt-range label {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
  position: relative;
}
.mkt-range label > span {
  font-size: .7rem; font-weight: 700; color: var(--mkt-ink-soft);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.mkt-range input, .mkt-range select {
  padding: 9px 10px; border: 1px solid var(--mkt-rule);
  border-radius: 8px; font-size: .88rem;
  background: #fff; font-family: inherit;
  transition: border .15s, box-shadow .15s;
}
.mkt-range input:focus, .mkt-range select:focus {
  outline: none; border-color: var(--mkt-navy);
  box-shadow: 0 0 0 3px rgba(0,43,128,.1);
}
.mkt-range__unit {
  position: absolute; bottom: 10px; left: 10px;
  font-size: .76rem; color: var(--mkt-ink-faint); font-style: normal;
  pointer-events: none;
}

/* ─── area tree ─────────────────────────────────────────── */
.mkt-tree { display: flex; flex-direction: column; gap: 2px; }
.mkt-tree__node > summary {
  list-style: none;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 4px; cursor: pointer;
  font-size: .88rem; color: var(--mkt-ink);
  border-radius: 6px;
}
.mkt-tree__node > summary::-webkit-details-marker { display: none; }
.mkt-tree__node > summary:hover { background: var(--mkt-soft); }
.mkt-tree__node > summary .material-symbols-outlined {
  font-size: 16px; transition: transform .18s;
}
.mkt-tree__node[open] > summary .material-symbols-outlined { transform: rotate(-90deg); }
.mkt-tree__node > summary .mut { margin-inline-start: auto; color: var(--mkt-ink-faint); font-size: .78rem; }
.mkt-tree__body { padding: 4px 0 4px 16px; border-inline-start: 2px solid var(--mkt-rule); margin-inline-start: 6px; }
.mkt-row-check--region { padding: 5px 4px; }

/* ─── result area ───────────────────────────────────────── */
.mkt-results { min-width: 0; }

/* active-filter chip bar */
.mkt-chips-bar {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 12px; margin-bottom: 12px;
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-rule);
  border-radius: 12px;
  box-shadow: var(--mkt-shadow-sm);
}
.mkt-chip-active {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  background: var(--mkt-soft); color: var(--mkt-ink);
  border: 1px solid var(--mkt-rule);
  border-radius: 999px; font-size: .82rem; font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.mkt-chip-active:hover { background: #fff; border-color: var(--mkt-accent); color: var(--mkt-accent); }
.mkt-chip-active .material-symbols-outlined { font-size: 14px; }
.mkt-chip-active--hot {
  background: var(--mkt-accent-soft); color: var(--mkt-accent);
  border-color: rgba(234,88,12,.3);
}
.mkt-chip-active--hot:hover { background: var(--mkt-accent); color: #fff; }

/* redesigned sort bar (link-based) */
.mkt__sort { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mkt__sort label { color: var(--mkt-ink-soft); font-size: .82rem; font-weight: 600; margin-inline-end: 4px; }
.mkt__sort a {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .82rem; font-weight: 600;
  color: var(--mkt-ink-soft);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.mkt__sort a:hover { background: var(--mkt-soft); color: var(--mkt-ink); }
.mkt__sort a.is-active {
  background: var(--mkt-navy); color: #fff;
}

/* ─── listing cards (horizontal) ────────────────────────── */
.mkt-list { display: flex; flex-direction: column; gap: 12px; }
.mkt-listing {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  padding: 14px;
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-rule);
  border-radius: 14px;
  text-decoration: none; color: inherit;
  transition: border-color .18s var(--mkt-ease), box-shadow .18s var(--mkt-ease), transform .18s var(--mkt-ease);
}
.mkt-listing:hover {
  border-color: var(--mkt-navy);
  box-shadow: var(--mkt-shadow-md);
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .mkt-listing { grid-template-columns: 1fr; }
}

.mkt-listing__photo {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  border-radius: 10px; background: var(--mkt-soft);
}
.mkt-listing__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-listing__photo-none {
  width: 100%; height: 100%; display: grid; place-items: center;
  color: var(--mkt-ink-faint);
}
.mkt-listing__photo-none .material-symbols-outlined { font-size: 56px; }
.mkt-listing__photo-count {
  position: absolute; bottom: 8px; right: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  background: rgba(15,23,42,.78); color: #fff;
  border-radius: 999px; font-size: .75rem; font-weight: 600;
  backdrop-filter: blur(4px);
}
.mkt-listing__photo-count .material-symbols-outlined { font-size: 14px; }
.mkt-listing__sold {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: var(--mkt-sold-overlay); color: #fff;
  font-size: 1.5rem; font-weight: 800; letter-spacing: 0.08em;
}
.mkt-listing__ribbon {
  position: absolute; top: 8px; right: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  background: #f59e0b; color: #fff;
  border-radius: 999px; font-size: .72rem; font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(245,158,11,.4);
}
.mkt-listing__ribbon .material-symbols-outlined { font-size: 14px; }

.mkt-listing__body {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.mkt-listing__head {
  display: flex; gap: 12px; justify-content: space-between; align-items: flex-start;
}
.mkt-listing__title-wrap { min-width: 0; flex: 1; }
.mkt-listing__title {
  margin: 0; font-size: 1.08rem; font-weight: 800; color: var(--mkt-ink);
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.mkt-listing__sub {
  margin-top: 2px; font-size: .85rem; color: var(--mkt-ink-soft);
}
.mkt-listing__price {
  text-align: left; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}
.mkt-listing__price-value {
  font-size: 1.25rem; font-weight: 800; color: var(--mkt-navy);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  letter-spacing: -0.01em;
}
.mkt-listing__price small {
  padding: 2px 7px; background: var(--mkt-accent-soft); color: var(--mkt-accent);
  border-radius: 999px; font-size: .7rem; font-weight: 700;
}

.mkt-listing__specs { display: flex; flex-wrap: wrap; gap: 8px; }
.mkt-listing__spec {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  background: var(--mkt-soft);
  border-radius: 8px;
  font-size: .82rem; color: var(--mkt-ink);
}
.mkt-listing__spec .material-symbols-outlined { font-size: 14px; color: var(--mkt-ink-soft); }

.mkt-listing__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 6px;
  border-top: 1px dashed var(--mkt-rule);
  font-size: .8rem; color: var(--mkt-ink-soft);
}
.mkt-listing__city {
  display: inline-flex; align-items: center; gap: 3px; color: var(--mkt-ink-soft);
}
.mkt-listing__city .material-symbols-outlined { font-size: 14px; }
.mkt-listing__tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  background: var(--mkt-soft);
  border-radius: 6px;
  font-size: .74rem; color: var(--mkt-ink-soft); font-weight: 600;
}
.mkt-listing__time { margin-inline-start: auto; font-size: .76rem; color: var(--mkt-ink-faint); }

/* pagination pages (numbered) */
.mkt__pager-page {
  display: inline-grid; place-items: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-rule);
  border-radius: 8px;
  font-size: .88rem; font-weight: 600; color: var(--mkt-ink);
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.mkt__pager-page:hover { background: var(--mkt-soft); border-color: var(--mkt-navy); color: var(--mkt-navy); }
.mkt__pager-page.is-current {
  background: var(--mkt-navy); color: #fff; border-color: var(--mkt-navy);
}
.mkt__pager-sep { padding: 0 6px; color: var(--mkt-ink-faint); }

/* mobile: filter rail collapses to a button-drawer (approximation without JS) */
@media (max-width: 1024px) {
  .mkt-rail { position: static; max-height: none; }
  .mkt-rail__head { border-radius: 14px 14px 0 0; }
}

/* ═══════════════════════════════════════════════════════════
   DETAILS PAGE · YAD2-STYLE REDESIGN
   ═══════════════════════════════════════════════════════════ */

/* photo count overlay on hero */
.mkt-gallery__hero { position: relative; }
.mkt-gallery__count {
  position: absolute; bottom: 12px; inset-inline-start: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(15,23,42,.75);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 140ms var(--mkt-ease);
}
.mkt-gallery__count:hover { background: rgba(15,23,42,.9); }
.mkt-gallery__count .material-symbols-outlined { font-size: 16px !important; }

/* sticky price/contact panel — yad2 style */
.mkt-pricepanel {
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-rule);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--mkt-shadow-md);
  position: sticky;
  top: 96px;
  display: flex; flex-direction: column;
  gap: 14px;
}
.mkt-pricepanel__price {
  display: flex; align-items: baseline; gap: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--mkt-navy);
  margin: 0;
  line-height: 1;
}
.mkt-pricepanel__currency { font-size: 1.4rem; font-weight: 700; opacity: .85; }
.mkt-pricepanel__amount { font-size: 2.1rem; font-weight: 900; }
.mkt-pricepanel__neg {
  font-size: 0.78rem; font-weight: 700;
  color: var(--mkt-accent);
  background: var(--mkt-accent-soft);
  padding: 3px 9px;
  border-radius: 999px;
  margin-inline-start: 6px;
  font-family: inherit;
}
.mkt-pricepanel__plan {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 0.82rem; font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  width: fit-content;
}
.mkt-pricepanel__plan .material-symbols-outlined { font-size: 15px !important; }

.mkt-pricepanel__actions {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 4px;
}
.mkt-pricepanel__btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 12px;
  font-weight: 700; font-size: 0.96rem;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: all 160ms var(--mkt-ease);
  position: relative;
}
.mkt-pricepanel__btn--phone {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(22,163,74,.4);
}
.mkt-pricepanel__btn--phone:hover { transform: translateY(-1px); filter: brightness(1.05); }
.mkt-pricepanel__btn--message {
  background: var(--mkt-surface);
  color: var(--mkt-navy);
  border: 1.5px solid var(--mkt-navy);
}
.mkt-pricepanel__btn--message:hover { background: #f8fafc; }
.mkt-pricepanel__btn--chat {
  background: var(--mkt-navy, #002b80);
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(0,43,128,.4);
}
.mkt-pricepanel__btn--chat:hover { transform: translateY(-1px); filter: brightness(1.08); }
.mkt-pricepanel__btn-label { direction: rtl; }

.mkt-pricepanel__icon-btn {
  position: absolute; inset-block-start: 18px; inset-inline-end: 18px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--mkt-soft);
  border: 1px solid var(--mkt-rule);
  border-radius: 50%;
  cursor: pointer;
  transition: all 140ms var(--mkt-ease);
}
.mkt-pricepanel__icon-btn:hover { background: #fff; border-color: var(--mkt-accent); }
.mkt-pricepanel__icon-btn .material-symbols-outlined { font-size: 19px !important; }

.mkt-pricepanel__foot {
  display: flex; align-items: center; gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--mkt-rule);
  font-size: 0.78rem;
  color: var(--mkt-ink-faint);
}

.mkt-pricepanel__seller {
  display: flex; align-items: center; gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--mkt-rule);
}
.mkt-pricepanel__seller-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--mkt-navy), var(--mkt-navy-600));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans';
  flex-shrink: 0;
}
.mkt-pricepanel__seller-text { min-width: 0; }
.mkt-pricepanel__seller-name {
  font-weight: 700; color: var(--mkt-ink);
  font-size: 0.92rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mkt-pricepanel__seller-loc {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.78rem; color: var(--mkt-ink-faint);
}
.mkt-pricepanel__seller-loc .material-symbols-outlined { font-size: 14px !important; }

.mkt-pricepanel__meta {
  display: flex; gap: 14px; padding-top: 10px;
  border-top: 1px solid var(--mkt-rule);
  font-size: 0.78rem; color: var(--mkt-ink-soft);
}
.mkt-pricepanel__meta span { display: inline-flex; align-items: center; gap: 4px; }
.mkt-pricepanel__meta .material-symbols-outlined { font-size: 14px !important; }

@media (max-width: 1080px) {
  .mkt-pricepanel { position: static; }
}

/* hero info band (title + chips + description) */
.mkt-hero-band {
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-rule);
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 16px;
  box-shadow: var(--mkt-shadow-sm);
}
.mkt-hero-band__head { display: flex; gap: 14px; align-items: center; }
.mkt-hero-band__title-wrap { display: flex; gap: 12px; align-items: center; min-width: 0; flex: 1; }
.mkt-hero-band__logo {
  width: 48px; height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--mkt-soft);
  border-radius: 10px;
  padding: 4px;
}
.mkt-hero-band__title {
  font-size: 1.55rem; font-weight: 900;
  color: var(--mkt-ink);
  margin: 0; line-height: 1.2;
}
.mkt-hero-band__sub {
  color: var(--mkt-ink-soft);
  font-size: 0.92rem;
  margin-top: 2px;
}
.mkt-hero-band__chips {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 14px;
}
.mkt-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--mkt-soft);
  border: 1px solid var(--mkt-rule);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--mkt-ink);
}
.mkt-chip__num { font-family: 'Plus Jakarta Sans', sans-serif; }
.mkt-chip__unit { font-weight: 600; color: var(--mkt-ink-soft); font-size: 0.82rem; margin-inline-start: 2px; }
.mkt-chip--loc { color: var(--mkt-navy); }
.mkt-chip--loc .material-symbols-outlined { font-size: 16px !important; }

.mkt-hero-band__desc {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--mkt-rule);
  color: var(--mkt-ink);
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* AI chat banner */
.mkt-ai-banner {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg, #ede9fe 0%, #dbeafe 50%, #fae8ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: 16px;
  padding: 18px 24px;
  margin-top: 16px;
  box-shadow: var(--mkt-shadow-sm);
  position: relative;
  overflow: hidden;
}
.mkt-ai-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(at 100% 0%, rgba(139,92,246,.15), transparent 50%);
  pointer-events: none;
}
.mkt-ai-banner__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -4px rgba(99,102,241,.45);
  position: relative;
}
.mkt-ai-banner__icon .material-symbols-outlined { font-size: 30px !important; }
.mkt-ai-banner__text { flex: 1; min-width: 0; position: relative; }
.mkt-ai-banner__text h3 {
  margin: 0 0 4px;
  font-size: 1.05rem; font-weight: 800;
  color: #4c1d95;
}
.mkt-ai-banner__text p {
  margin: 0;
  font-size: 0.88rem;
  color: #4c1d95;
  opacity: .8;
  line-height: 1.5;
}
.mkt-ai-banner__cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: #4c1d95;
  color: #fff;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 0.92rem; font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  transition: transform 140ms var(--mkt-ease), filter 140ms var(--mkt-ease);
}
.mkt-ai-banner__cta:hover { transform: translateY(-1px); filter: brightness(1.1); }
.mkt-ai-banner__cta .material-symbols-outlined { font-size: 18px !important; }

@media (max-width: 720px) {
  .mkt-ai-banner { flex-wrap: wrap; }
  .mkt-ai-banner__cta { width: 100%; justify-content: center; }
}

/* key/value 2-column grid (פרטים נוספים) */
/* yad2 "פרטים נוספים" — clean key/value list with hairline row dividers */
.mkt-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px; row-gap: 0;
}
@media (max-width: 720px) {
  .mkt-kv-grid { grid-template-columns: 1fr; }
}
.mkt-kv {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 2px;
  border-bottom: 1px solid var(--mkt-rule);
  font-size: 0.92rem;
}
.mkt-kv > span { color: var(--mkt-ink-soft); }
.mkt-kv > b { color: var(--mkt-ink); font-family: 'Plus Jakarta Sans'; font-weight: 700; }

/* report promo card */
.mkt-report-promo {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #bfdbfe !important;
}
.mkt-report-promo h2 { color: var(--mkt-navy); }
.mkt-report-promo > p { margin: 0 0 14px; color: var(--mkt-ink); }
.mkt-report-promo__actions {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.mkt-report-promo__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 700; font-size: 0.92rem;
  text-decoration: none;
  transition: all 160ms var(--mkt-ease);
}
.mkt-report-promo__btn--primary {
  background: var(--mkt-navy);
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(0,43,128,.4);
}
.mkt-report-promo__btn--primary:hover { transform: translateY(-1px); filter: brightness(1.1); }
.mkt-report-promo__alert {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.85rem; font-weight: 700;
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 6px 12px;
  border-radius: 999px;
}
.mkt-report-promo__alert .material-symbols-outlined { font-size: 16px !important; }

/* horizontal "similar" carousel */
.mkt-similar-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}
.mkt-similar-row::-webkit-scrollbar { height: 6px; }
.mkt-similar-row::-webkit-scrollbar-thumb { background: var(--mkt-rule); border-radius: 3px; }

.mkt-similar-card {
  display: flex; flex-direction: column;
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-rule);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 160ms var(--mkt-ease);
  scroll-snap-align: start;
}
.mkt-similar-card:hover {
  border-color: var(--mkt-navy);
  transform: translateY(-2px);
  box-shadow: var(--mkt-shadow-md);
}
.mkt-similar-card__photo {
  aspect-ratio: 16 / 11;
  background: var(--mkt-soft);
  display: grid; place-items: center;
  color: var(--mkt-ink-faint);
  overflow: hidden;
}
.mkt-similar-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.mkt-similar-card__photo .material-symbols-outlined { font-size: 42px !important; }
.mkt-similar-card__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.mkt-similar-card__title {
  font-size: 0.92rem; font-weight: 700; color: var(--mkt-ink);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mkt-similar-card__price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem; font-weight: 800;
  color: var(--mkt-navy);
}
.mkt-similar-card__meta {
  font-size: 0.78rem; color: var(--mkt-ink-faint);
  display: flex; gap: 4px;
}

/* equipment list */
.mkt-equip {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 18px;
  font-size: 0.9rem;
}
@media (max-width: 900px) { .mkt-equip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mkt-equip { grid-template-columns: 1fr; } }
.mkt-equip li {
  display: flex; align-items: center; gap: 8px;
  color: var(--mkt-ink);
  padding: 4px 0;
}
.mkt-equip__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mkt-accent);
  flex-shrink: 0;
}

/* safety + pollution scales */
.mkt-rating { margin-top: 18px; }
.mkt-rating:first-of-type { margin-top: 0; }
.mkt-rating__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.mkt-rating__head span { color: var(--mkt-ink-soft); font-size: 0.9rem; font-weight: 600; }
.mkt-rating__head strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem; color: var(--mkt-ink);
}
.mkt-rating__scale {
  display: grid;
  gap: 2px;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.78rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 6px;
}
.mkt-rating__scale--safety { grid-template-columns: repeat(8, 1fr); }
.mkt-rating__scale--pollution { grid-template-columns: repeat(15, 1fr); }
.mkt-rating__cell {
  position: relative;
  padding: 10px 0;
  text-align: center;
  background: #e5e7eb;
  color: #475569;
  font-weight: 700;
  opacity: .55;
  transition: opacity 140ms var(--mkt-ease);
}
.mkt-rating__cell.is-on { opacity: 1; color: #fff; }
/* safety: red→green */
.mkt-rating__scale--safety .mkt-rating__cell[data-i="1"].is-on { background: #dc2626; }
.mkt-rating__scale--safety .mkt-rating__cell[data-i="2"].is-on { background: #ea580c; }
.mkt-rating__scale--safety .mkt-rating__cell[data-i="3"].is-on { background: #f59e0b; }
.mkt-rating__scale--safety .mkt-rating__cell[data-i="4"].is-on { background: #facc15; color: #422006; }
.mkt-rating__scale--safety .mkt-rating__cell[data-i="5"].is-on { background: #a3e635; color: #1a2e05; }
.mkt-rating__scale--safety .mkt-rating__cell[data-i="6"].is-on { background: #65a30d; }
.mkt-rating__scale--safety .mkt-rating__cell[data-i="7"].is-on { background: #16a34a; }
.mkt-rating__scale--safety .mkt-rating__cell[data-i="8"].is-on { background: #15803d; }
/* pollution: green→red (reversed semantics) */
.mkt-rating__scale--pollution .mkt-rating__cell[data-i="1"].is-on  { background: #15803d; }
.mkt-rating__scale--pollution .mkt-rating__cell[data-i="2"].is-on  { background: #16a34a; }
.mkt-rating__scale--pollution .mkt-rating__cell[data-i="3"].is-on  { background: #22c55e; }
.mkt-rating__scale--pollution .mkt-rating__cell[data-i="4"].is-on  { background: #65a30d; }
.mkt-rating__scale--pollution .mkt-rating__cell[data-i="5"].is-on  { background: #a3e635; color: #1a2e05; }
.mkt-rating__scale--pollution .mkt-rating__cell[data-i="6"].is-on  { background: #d9e021; color: #422006; }
.mkt-rating__scale--pollution .mkt-rating__cell[data-i="7"].is-on  { background: #facc15; color: #422006; }
.mkt-rating__scale--pollution .mkt-rating__cell[data-i="8"].is-on  { background: #f59e0b; }
.mkt-rating__scale--pollution .mkt-rating__cell[data-i="9"].is-on  { background: #f97316; }
.mkt-rating__scale--pollution .mkt-rating__cell[data-i="10"].is-on { background: #ea580c; }
.mkt-rating__scale--pollution .mkt-rating__cell[data-i="11"].is-on { background: #dc2626; }
.mkt-rating__scale--pollution .mkt-rating__cell[data-i="12"].is-on { background: #b91c1c; }
.mkt-rating__scale--pollution .mkt-rating__cell[data-i="13"].is-on { background: #991b1b; }
.mkt-rating__scale--pollution .mkt-rating__cell[data-i="14"].is-on { background: #7f1d1d; }
.mkt-rating__scale--pollution .mkt-rating__cell[data-i="15"].is-on { background: #5f0e0e; }

.mkt-rating__marker {
  position: absolute;
  inset-inline-end: 50%; inset-block-start: -14px;
  transform: translateX(50%);
  color: var(--mkt-ink);
  font-size: 0.85rem;
  pointer-events: none;
}
.mkt-rating__legend {
  display: flex; justify-content: space-between;
  font-size: 0.78rem; color: var(--mkt-ink-faint);
  margin-top: 6px;
}

/* ═════════════════════════════════════════════════════════════════════
   Market — yad2-style polish (smart search, mfr logo grid, body-type
   tiles, opportunity-on state, suggestion menu)
   ═════════════════════════════════════════════════════════════════════ */

/* ── Smart search box ─────────────────────────────────────────────── */
.mkt2-smart {
    position: relative;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--mkt-rule);
    border-radius: 999px;
    padding: 8px 16px;
    box-shadow: 0 1px 0 rgba(15,23,42,.04);
    transition: border-color .15s, box-shadow .15s;
}
.mkt2-smart:focus-within {
    border-color: var(--mkt-accent);
    box-shadow: 0 0 0 3px var(--mkt-accent-soft);
}
.mkt2-smart__icon {
    color: var(--mkt-ink-soft);
    font-size: 22px;
    flex-shrink: 0;
}
.mkt2-smart__input {
    flex: 1;
    border: 0;
    outline: none;
    font: inherit;
    font-size: 0.95rem;
    background: transparent;
    color: var(--mkt-ink);
    min-width: 0;
}
.mkt2-smart__input::placeholder { color: var(--mkt-ink-faint); }
.mkt2-smart__clear {
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--mkt-ink-soft);
    padding: 4px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.mkt2-smart__clear:hover { background: var(--mkt-soft); color: var(--mkt-ink); }
.mkt2-smart__clear .material-symbols-outlined { font-size: 18px; }

.mkt2-smart__menu {
    position: absolute;
    inset-block-start: calc(100% + 6px);
    inset-inline-start: 0; inset-inline-end: 0;
    background: #fff;
    border: 1px solid var(--mkt-rule);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15,23,42,.10);
    max-height: 380px;
    overflow-y: auto;
    z-index: 40;
    padding: 6px;
}
.mkt2-smart__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--mkt-ink);
    text-decoration: none;
    transition: background-color .12s;
}
.mkt2-smart__item:hover,
.mkt2-smart__item.is-focus { background: var(--mkt-accent-soft); }
.mkt2-smart__logo {
    width: 28px; height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
    border-radius: 6px;
}
.mkt2-smart__kind {
    color: var(--mkt-ink-soft);
    font-size: 22px;
    width: 28px; text-align: center;
    flex-shrink: 0;
}
.mkt2-smart__label { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt2-smart__label mark { background: rgba(245, 158, 11, .25); color: inherit; padding: 0; border-radius: 2px; }
.mkt2-smart__hint { color: var(--mkt-ink-soft); font-size: .82rem; flex-shrink: 0; }
.mkt2-smart__empty { padding: 14px 16px; color: var(--mkt-ink-faint); font-size: .88rem; text-align: center; }

/* ── Manufacturer logo grid (yad2-style) ──────────────────────────── */
.mkt2-pop--mfr { width: min(560px, 92vw); }
.mkt2-pop__search {
    display: flex; align-items: center; gap: 8px;
    margin: 0 18px 8px;
    border: 1px solid var(--mkt-rule);
    border-radius: 999px;
    padding: 6px 14px;
}
.mkt2-pop__search:focus-within { border-color: var(--mkt-accent); }
.mkt2-pop__search .material-symbols-outlined { color: var(--mkt-ink-soft); font-size: 18px; }
.mkt2-pop__search input { flex: 1; border: 0; outline: 0; font: inherit; background: transparent; }

.mkt2-pop__hint--soft {
    margin: 0 18px 8px;
    color: var(--mkt-ink-soft);
    font-size: .78rem;
    background: var(--mkt-soft);
    padding: 6px 12px;
    border-radius: 8px;
}

.mkt2-mfr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 6px 18px;
    max-height: 380px;
    overflow-y: auto;
}
.mkt2-mfr {
    position: relative;
    cursor: pointer;
}
.mkt2-mfr input {
    position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.mkt2-mfr__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 6px;
    background: #fff;
    border: 1.5px solid var(--mkt-rule);
    border-radius: 10px;
    transition: border-color .15s, background-color .15s, transform .12s;
    height: 86px;
}
.mkt2-mfr:hover .mkt2-mfr__tile { border-color: var(--mkt-accent); transform: translateY(-1px); }
.mkt2-mfr:has(input:checked) .mkt2-mfr__tile {
    border-color: var(--mkt-accent);
    background: var(--mkt-accent-soft);
}
.mkt2-mfr__logo {
    width: 36px; height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}
.mkt2-mfr__logo--ph {
    display: flex; align-items: center; justify-content: center;
    color: var(--mkt-ink-faint);
}
.mkt2-mfr__logo--ph .material-symbols-outlined { font-size: 28px; }
.mkt2-mfr__name {
    font-size: .78rem;
    color: var(--mkt-ink);
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    padding: 0 4px;
}

.mkt2-pop__reset {
    color: var(--mkt-ink-soft);
    font-size: .85rem;
    text-decoration: none;
    margin-inline-end: auto;
    padding: 8px 12px;
    border-radius: 6px;
}
.mkt2-pop__reset:hover { color: var(--mkt-accent); background: var(--mkt-soft); }

/* ── Body-type tiles in the more-filters drawer ──────────────────── */
.mkt2-bt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.mkt2-bt {
    position: relative;
    cursor: pointer;
}
.mkt2-bt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.mkt2-bt__icon {
    display: flex;
    align-items: center; justify-content: center;
    height: 48px;
    color: var(--mkt-ink-soft);
    font-size: 36px;
}
.mkt2-bt__name {
    display: block;
    font-size: .82rem;
    text-align: center;
    color: var(--mkt-ink);
    font-weight: 600;
    margin-top: 4px;
}
.mkt2-bt {
    background: #fff;
    border: 1.5px solid var(--mkt-rule);
    border-radius: 10px;
    padding: 10px 6px;
    transition: border-color .15s, background-color .15s;
}
.mkt2-bt:hover { border-color: var(--mkt-accent); }
.mkt2-bt.is-on,
.mkt2-bt:has(input:checked) {
    border-color: var(--mkt-accent);
    background: var(--mkt-accent-soft);
}
.mkt2-bt:has(input:checked) .mkt2-bt__icon { color: var(--mkt-accent); }

/* ── Opportunity chip: distinct on-state (orange-bordered) ───────── */
.mkt2-extra.is-on {
    background: var(--mkt-accent-soft);
    border-color: var(--mkt-accent);
    color: var(--mkt-accent);
    font-weight: 700;
}
.mkt2-extra.is-on .material-symbols-outlined { color: var(--mkt-accent); }

/* ── Mobile: stack mfr grid 2-up so each tile stays legible ──────── */
@media (max-width: 540px) {
    .mkt2-mfr-grid { grid-template-columns: repeat(2, 1fr); }
    .mkt2-bt-grid { grid-template-columns: repeat(2, 1fr); }
    .mkt2-smart { padding: 6px 12px; }
}

/* ═════════════════════════════════════════════════════════════════════
   Market — slider, AJAX loading state, area-master row, tighter popovers
   ═════════════════════════════════════════════════════════════════════ */

/* ── Slider (dual-handle, RTL-aware) ──────────────────────────────── */
.mkt2-slider { padding: 6px 6px 4px; }
.mkt2-slider__values {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; font-size: .92rem; font-weight: 700;
    color: var(--mkt-ink); margin-bottom: 18px;
}
.mkt2-slider__sep { color: var(--mkt-ink-faint); font-weight: 400; }
.mkt2-slider__track {
    position: relative;
    height: 4px;
    background: var(--mkt-rule);
    border-radius: 999px;
    margin: 18px 14px 22px;
    cursor: pointer;
}
.mkt2-slider__range {
    position: absolute; inset-block: 0;
    background: var(--mkt-accent);
    border-radius: 999px;
}
.mkt2-slider__handle {
    position: absolute;
    width: 22px; height: 22px;
    background: #fff;
    border: 2px solid var(--mkt-accent);
    border-radius: 50%;
    top: 50%;
    box-shadow: 0 2px 6px rgba(15,23,42,.18);
    cursor: grab;
    transition: transform .12s, box-shadow .12s;
    z-index: 2;
    user-select: none;
}
[dir="rtl"] .mkt2-slider__handle { transform: translate(50%, -50%); }
[dir="ltr"] .mkt2-slider__handle, html:not([dir]) .mkt2-slider__handle { transform: translate(-50%, -50%); }
.mkt2-slider__handle:hover,
.mkt2-slider__handle:focus { box-shadow: 0 0 0 6px var(--mkt-accent-soft), 0 2px 6px rgba(15,23,42,.18); outline: none; }
.mkt2-slider__handle:active { cursor: grabbing; }
.mkt2-slider__handle::after {
    content: "";
    position: absolute; inset: -10px;
}

/* ── Slider popover variant (slightly wider so labels fit) ───────── */
.mkt2-pop--slider { width: min(360px, 92vw); }
.mkt2-pop--slider .mkt2-pop__body { padding: 18px 20px 8px; }

/* ── AJAX loading state — subtle pulse on the root ───────────────── */
.mkt2.is-loading { position: relative; }
.mkt2.is-loading::before {
    content: "";
    position: absolute; inset: 0;
    background: repeating-linear-gradient(90deg,
        transparent 0%, transparent 40%, rgba(245,158,11,.12) 50%, transparent 60%, transparent 100%);
    background-size: 200% 100%;
    animation: mkt2-loading 1.2s linear infinite;
    pointer-events: none;
    z-index: 5;
}
@keyframes mkt2-loading {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

/* ── Area "all" master row (yad2 — כל ה-X) ───────────────────────── */
.mkt2-tree__row--all {
    background: var(--mkt-soft);
    border-radius: 8px;
    margin-bottom: 4px;
    border: 1px dashed var(--mkt-rule);
}
.mkt2-tree__row--all:hover { border-color: var(--mkt-accent); }
.mkt2-tree__row input[type="checkbox"]:indeterminate { accent-color: var(--mkt-accent); }

/* ── Tighter popover spacing so nothing overflows ─────────────────── */
.mkt2-pop {
    /* Already set elsewhere; cap height so very tall lists don't push the
       footer off-screen on small viewports. */
    max-height: min(70vh, 560px);
    display: flex; flex-direction: column;
}
.mkt2-pop__scroll { flex: 1 1 auto; min-height: 0; }
.mkt2-pop__foot { flex: 0 0 auto; }

/* On mobile, a filter pill popover opens as a bottom sheet with a dimmed
   backdrop — the same modal feel as the "סינונים נוספים" drawer — instead of an
   awkwardly-anchored popover that slips under the bottom nav. */
@media (max-width: 768px) {
    /* Full-screen dimmer behind the sheet. It belongs to the open <details>, so
       a tap on it reports the <details> as the event target (see wireSheetDismiss,
       which closes the sheet on backdrop taps). */
    .mkt2-pill[open]::before,
    .mkt2-sort[open]::before {
        content: "";
        position: fixed; inset: 0;
        background: rgba(15,23,42,.45);
        -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
        z-index: 1000;
        animation: mkt2-fade-in .2s ease both;
    }
    .mkt2-pop,
    .mkt2-pop--slider,
    .mkt2-pop--mfr,
    .mkt2-pop--narrow,
    .mkt2-pop--list,
    .mkt2-sort__pop {
        position: fixed !important;
        inset: auto 0 0 0 !important;        /* pinned to the bottom, full width */
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
        display: flex; flex-direction: column;
        z-index: 1001;
        box-shadow: 0 -14px 44px -10px rgba(15,23,42,.32);
        animation: mkt2-sheet-up .26s var(--mkt-ease) both;
    }
    /* grab-handle to read as a draggable sheet */
    .mkt2-pop::after,
    .mkt2-sort__pop::after {
        content: "";
        position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
        width: 40px; height: 4px; border-radius: 999px;
        background: var(--mkt-rule);
        z-index: 2;
    }
    .mkt2-pop__title,
    .mkt2-pop--list .mkt2-pop__search { margin-top: 8px; }
    .mkt2-pop__scroll { max-height: none; flex: 1 1 auto; }
    .mkt2-pop__foot { flex: 0 0 auto; }
    /* sort sheet: roomy tap targets + clearance for the grab handle */
    .mkt2-sort__pop { padding: 20px 10px 14px; gap: 2px; }
    .mkt2-sort__pop a { padding: 14px 16px; font-size: .95rem; }
}
@keyframes mkt2-sheet-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
@keyframes mkt2-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Pop hint text variant ────────────────────────────────────────── */
.mkt2-pop__hint--soft { margin-bottom: 6px; }

/* ── Multi-select seat chips: keep the row from wrapping awkwardly ── */
.mkt2-chip-row--nums { row-gap: 8px; }

/* ── Filter bar: tighten so pills don't collide on smaller widths ─── */
.mkt2-bar__row { row-gap: 8px; }
.mkt2-pill { min-width: 130px; }
@media (max-width: 720px) {
    .mkt2-pill { flex: 1 1 calc(50% - 4px); min-width: 0; }
    .mkt2-bar__cta { flex: 1 1 100%; justify-content: center; }
}

/* ── Favorite (heart) button — saved state + micro-bounce on toggle ── */
.mkt2-card__fav.is-fav {
    background: rgba(239, 68, 68, .12);
    border-color: rgba(239, 68, 68, .35);
}
.mkt2-card__fav.is-fav .material-symbols-outlined {
    color: #ef4444;
    font-variation-settings: "FILL" 1;
    animation: mkt2-fav-pop .28s ease-out;
}
.mkt2-card__fav:hover.is-fav { background: rgba(239, 68, 68, .18); }
@keyframes mkt2-fav-pop {
    0%   { transform: scale(0.7); }
    60%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* ═════════════════════════════════════════════════════════════════════
   Yad2-style list popover (manufacturer + model)
   Vertical list — logo + name + check, with selected-chips strip on top.
   ═════════════════════════════════════════════════════════════════════ */

.mkt2-pop--list {
    width: min(380px, 92vw);
    padding: 14px 0 0;
    gap: 8px;
    direction: rtl;
    text-align: right;
}
.mkt2-pop--list .mkt2-pop__search { margin: 0 16px 8px; }
.mkt2-pop--list .mkt2-pop__hint--center {
    text-align: center;
    color: var(--mkt-ink-soft);
    font-size: .82rem;
    margin: 0 16px 8px;
    background: transparent;
    padding: 0;
}

/* Selected chips strip (matches yad2 — pills with × inside the popup) */
.mkt2-selchips {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 0 16px 10px;
    border-bottom: 1px solid var(--mkt-rule);
    margin-bottom: 6px;
}
.mkt2-selchips:empty { display: none; }
.mkt2-selchip {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--mkt-soft);
    border: 0;
    border-radius: 999px;
    padding: 4px 10px 4px 6px;
    font: inherit;
    font-size: .82rem;
    color: var(--mkt-ink);
    cursor: pointer;
    transition: background-color .12s, color .12s;
}
.mkt2-selchip:hover { background: var(--mkt-accent-soft); color: var(--mkt-accent); }
.mkt2-selchip .material-symbols-outlined { font-size: 14px; opacity: .7; }
.mkt2-selchip:hover .material-symbols-outlined { opacity: 1; }

/* List rows: full-width row, hover highlight, checked = orange tick on far end */
.mkt2-list { padding: 4px 0 0; }
.mkt2-list-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color .12s;
    color: var(--mkt-ink-soft);
}
.mkt2-list-row:hover { background: var(--mkt-soft); color: var(--mkt-ink); }
.mkt2-list-row.is-on { color: var(--mkt-ink); }
.mkt2-list-row input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
    pointer-events: none;
}
.mkt2-list-row__logo {
    width: 28px; height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    order: 1;                    /* inline-start = right in RTL: logo leads the row */
}
.mkt2-list-row__logo--ph {
    display: flex; align-items: center; justify-content: center;
    color: var(--mkt-ink-faint);
}
.mkt2-list-row__logo--ph .material-symbols-outlined { font-size: 22px; }
.mkt2-list-row__name {
    font-size: .95rem;
    font-weight: 600;
    flex: 1;
    text-align: start;           /* right-aligned in RTL, next to the logo */
    order: 2;
}
.mkt2-list-row.is-on .mkt2-list-row__name { font-weight: 700; }
.mkt2-list-row__check {
    color: var(--mkt-accent);
    font-size: 18px;
    visibility: hidden;
    order: 3;                    /* inline-end = left in RTL: tick trails the row */
    flex-shrink: 0;
    width: 18px;
}
.mkt2-list-row.is-on .mkt2-list-row__check { visibility: visible; }

/* At the selection cap, the remaining (unchecked) rows are disabled. */
.mkt2-list-row.is-disabled {
    opacity: .38;
    pointer-events: none;
    cursor: default;
}

/* Text-only variant (model picker — no logo) */
.mkt2-list-row--text .mkt2-list-row__name { padding-inline-end: 28px; }

/* Manufacturer subheader inside the model list (multi-brand selection) */
.mkt2-list-group {
    padding: 8px 16px 4px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--mkt-ink-soft);
    text-align: right;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}
.mkt2-list-group:first-child { padding-top: 2px; }

/* Text-style footer (matches yad2 — איפוס / אישור as inline links) */
.mkt2-pop__foot--text {
    border-top: 1px solid var(--mkt-rule);
    padding: 10px 16px;
    background: #fff;
}
.mkt2-pop__apply--text {
    background: transparent;
    border: 0;
    color: var(--mkt-accent);
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    padding: 4px 8px;
}
.mkt2-pop__apply--text:hover { text-decoration: underline; }

/* (List popover shares the bottom-sheet rule above, ≤768px) */

/* ═════════════════════════════════════════════════════════════════════
   MKTD — Market ad DETAIL page, bold mobile-first rebuild
   Immersive swipe gallery · identity sheet pulled over the photo ·
   desktop sticky contact rail · mobile sticky contact bar.
   Self-contained `.mktd-*` namespace. Reuses the inner content blocks
   (.mkt-kv-grid, .mkt-equip, .mkt-rating, .mkt-similar-*) as-is.
   ═════════════════════════════════════════════════════════════════════ */

.mktd {
  max-width: 1240px;
  margin: 0 auto;
  /* phone: bleed-friendly horizontal padding + clearance for the sticky
     contact bar (≈64px) sitting above the bottom tab nav (64px). */
  padding: 12px 14px calc(150px + env(safe-area-inset-bottom));
  color: var(--mkt-ink);
}

/* ── crumb / flash / owner ─────────────────────────────────────────── */
.mktd-crumb { display: none; margin-bottom: 14px; }
.mktd-crumb a {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--mkt-ink-soft); text-decoration: none;
  font-size: .88rem; font-weight: 600;
}
.mktd-crumb a:hover { color: var(--mkt-navy); }
.mktd-crumb .material-symbols-outlined { font-size: 18px; }

.mktd-flash {
  display: flex; align-items: center; gap: 8px;
  background: var(--mkt-accent-soft); border: 1px solid #fed7aa;
  color: var(--mkt-accent);
  padding: 10px 14px; border-radius: 12px;
  margin-bottom: 12px; font-size: .9rem; font-weight: 600;
}
.mktd-flash .material-symbols-outlined { font-size: 20px; }

/* ── owner management panel ────────────────────────────────────────── */
.mktd-owner {
  position: relative; overflow: hidden;
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-rule); border-radius: 16px;
  padding: 16px 18px; margin-bottom: 14px;
  box-shadow: var(--mkt-shadow-md);
}
/* accent rail anchored to the inline-start (right, in RTL) edge */
.mktd-owner::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0;
  width: 4px; background: linear-gradient(180deg, var(--mkt-accent), #f59e0b);
}
.mktd-owner__head { display: flex; align-items: center; gap: 12px; }
.mktd-owner__crest {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--mkt-accent-soft); color: var(--mkt-accent);
}
.mktd-owner__crest .material-symbols-outlined { font-size: 24px; }
.mktd-owner__heading { min-width: 0; flex: 1; }
.mktd-owner__title { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--mkt-ink); }
.mktd-owner__sub { margin: 1px 0 0; font-size: .8rem; color: var(--mkt-ink-soft); }
.mktd-owner__state {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px; font-size: .76rem; font-weight: 800;
}
.mktd-owner__state .material-symbols-outlined { font-size: 15px; }
.mktd-owner__state--live { background: rgba(16,185,129,.14); color: #047857; }
.mktd-owner__state--sold { background: rgba(0,43,128,.12); color: var(--mkt-navy); }
.mktd-owner__state--off  { background: var(--mkt-soft); color: var(--mkt-ink-soft); }

.mktd-owner__stats { display: flex; gap: 10px; margin: 14px 0; }
.mktd-owner__stat {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 10px 6px; background: var(--mkt-soft); border-radius: 12px; text-align: center;
}
.mktd-owner__stat .material-symbols-outlined { font-size: 18px; color: var(--mkt-ink-faint); }
.mktd-owner__stat b { font-size: 1.05rem; font-weight: 800; color: var(--mkt-ink); }
.mktd-owner__stat span:last-child { font-size: .72rem; color: var(--mkt-ink-soft); font-weight: 600; }

.mktd-owner__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mktd-owner__actions form { margin: 0; display: contents; }
.mktd-owner__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 9px 15px; background: var(--mkt-surface); border: 1px solid var(--mkt-rule);
  border-radius: 10px; font: inherit; font-size: .84rem; font-weight: 700;
  color: var(--mkt-ink); text-decoration: none; cursor: pointer;
  transition: border-color .14s var(--mkt-ease), color .14s var(--mkt-ease),
              background .14s var(--mkt-ease), transform .14s var(--mkt-ease);
}
.mktd-owner__btn:hover { border-color: var(--mkt-navy); color: var(--mkt-navy); transform: translateY(-1px); }
.mktd-owner__btn .material-symbols-outlined { font-size: 17px; }
.mktd-owner__btn--primary {
  background: var(--mkt-accent); border-color: var(--mkt-accent); color: #fff;
  box-shadow: 0 6px 16px -6px rgba(234,88,12,.6);
}
.mktd-owner__btn--primary:hover { background: #d9480f; border-color: #d9480f; color: #fff; }
.mktd-owner__btn--danger { color: #dc2626; }
.mktd-owner__btn--danger:hover { border-color: #dc2626; color: #dc2626; background: rgba(220,38,38,.06); }
.mktd-owner__status { margin-bottom: 12px; padding: 10px 14px; border-radius: 10px; font-size: .88rem; font-weight: 600; }

@media (max-width: 480px) {
  .mktd-owner__btn { flex: 1 1 auto; }
  .mktd-owner__btn--primary { flex-basis: 100%; }
}

/* ── layout ────────────────────────────────────────────────────────── */
.mktd__layout { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.mktd__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ── immersive swipe gallery ───────────────────────────────────────── */
.mktd-stage {
  position: relative;
  margin: -12px -14px 0;            /* bleed to the screen edges on phone */
  background: #0b1220;
  overflow: hidden;
}
.mktd-stage__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mktd-stage__track::-webkit-scrollbar { display: none; }
.mktd-stage__slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}
.mktd-stage__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mktd-stage__slide--empty { display: grid; place-items: center; color: rgba(255,255,255,.35); }
.mktd-stage__slide--empty .material-symbols-outlined { font-size: 96px; }

/* scrims so overlaid controls stay legible over any photo */
.mktd-stage::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 38%;
  background: linear-gradient(to top, rgba(8,12,22,.6), transparent);
  pointer-events: none;
}
.mktd-stage::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 28%; z-index: 1;
  background: linear-gradient(to bottom, rgba(8,12,22,.42), transparent);
  pointer-events: none;
}

.mktd-stage__back, .mktd-stage__tool {
  position: absolute; top: calc(12px + env(safe-area-inset-top));
  z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(15,23,42,.5); color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  cursor: pointer; text-decoration: none;
  transition: background .15s var(--mkt-ease), transform .15s var(--mkt-ease);
}
.mktd-stage__back:hover, .mktd-stage__tool:hover { background: rgba(15,23,42,.78); }
.mktd-stage__back:active, .mktd-stage__tool:active { transform: scale(.93); }
.mktd-stage__back { inset-inline-start: 12px; }
.mktd-stage__back .material-symbols-outlined { font-size: 22px; }
.mktd-stage__tools { position: absolute; top: calc(12px + env(safe-area-inset-top)); inset-inline-end: 12px; z-index: 3; display: flex; gap: 8px; }
.mktd-stage__tools .mktd-stage__tool { position: static; top: auto; }
.mktd-stage__tool .material-symbols-outlined { font-size: 20px; }
.mktd-stage__tool.is-fav { background: rgba(239,68,68,.85); border-color: rgba(239,68,68,.6); }
.mktd-stage__tool.is-fav .material-symbols-outlined { font-variation-settings: "FILL" 1; }

.mktd-stage__sold {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); inset-inline-start: 60px; z-index: 3;
  background: var(--mkt-ok); color: #fff;
  padding: 6px 16px; border-radius: 999px; font-weight: 800;
  box-shadow: 0 6px 14px -3px rgba(5,150,105,.5);
}

.mktd-stage__count {
  position: absolute; bottom: 14px; inset-inline-end: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(15,23,42,.6); color: #fff;
  padding: 5px 12px; border-radius: 999px;
  font-size: .82rem; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mktd-stage__count .material-symbols-outlined { font-size: 16px; }

.mktd-stage__dots {
  position: absolute; bottom: 14px; inset-inline: 0; z-index: 3;
  display: flex; justify-content: center; gap: 6px; pointer-events: none;
}
.mktd-stage__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  pointer-events: auto; cursor: pointer;
  transition: width .2s var(--mkt-ease), background .2s var(--mkt-ease);
}
.mktd-stage__dot.is-on { width: 22px; border-radius: 999px; background: #fff; }

/* desktop thumbnail strip */
.mktd-thumbs { display: none; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.mktd-thumbs::-webkit-scrollbar { height: 6px; }
.mktd-thumbs::-webkit-scrollbar-thumb { background: var(--mkt-rule); border-radius: 3px; }
.mktd-thumb {
  flex-shrink: 0; width: 92px; height: 66px;
  border-radius: 10px; overflow: hidden; padding: 0;
  border: 2px solid transparent; background: #fff; cursor: pointer;
  transition: border-color .14s var(--mkt-ease);
}
.mktd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mktd-thumb:hover { border-color: var(--mkt-navy); }
.mktd-thumb.is-active { border-color: var(--mkt-accent); }

/* ── identity sheet (pulled up over the photo) ─────────────────────── */
.mktd-id {
  position: relative; z-index: 2;
  margin-top: -26px;
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-rule);
  border-radius: 24px 24px 18px 18px;
  padding: 22px 20px 18px;
  box-shadow: 0 -8px 24px -16px rgba(15,23,42,.18), var(--mkt-shadow-sm);
}
/* grabber handle — reinforces the "sheet pulled over the photo" metaphor (phone only) */
.mktd-id__grip {
  display: block; width: 38px; height: 4px; border-radius: 999px;
  margin: -8px auto 14px; background: var(--mkt-rule);
}
.mktd-id__head { display: flex; gap: 12px; align-items: center; }
.mktd-id__logo {
  width: 46px; height: 46px; flex-shrink: 0;
  object-fit: contain; background: var(--mkt-soft);
  border-radius: 12px; padding: 5px;
}
.mktd-id__titles { min-width: 0; }
.mktd-id__title { font-size: 1.4rem; font-weight: 900; line-height: 1.2; margin: 0; color: var(--mkt-ink); }
.mktd-id__sub { color: var(--mkt-ink-soft); font-size: .9rem; margin-top: 2px; }

.mktd-id__pricerow { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.mktd-id__price {
  display: inline-flex; align-items: baseline; gap: 3px;
  font-family: 'Plus Jakarta Sans', sans-serif; color: var(--mkt-ink); line-height: 1;
}
.mktd-id__currency { font-size: 1.3rem; font-weight: 700; opacity: .8; }
.mktd-id__amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mktd-id__was {
  font-size: 1.1rem; font-weight: 700; color: var(--mkt-ink-faint);
  text-decoration: line-through; text-decoration-color: var(--mkt-ink-faint);
  margin-inline-end: 4px; font-variant-numeric: tabular-nums; align-self: center;
}
.mktd-id__neg {
  font-size: .76rem; font-weight: 800; color: var(--mkt-accent);
  background: var(--mkt-accent-soft); padding: 4px 10px; border-radius: 999px;
}
.mktd-id__pricedrop {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .76rem; font-weight: 800; color: #047857;
  background: rgba(16,185,129,.14); padding: 4px 10px; border-radius: 999px;
}
.mktd-id__pricedrop .material-symbols-outlined { font-size: 15px; }

/* deal badges (trade-in / financing / accessibility) */
.mktd-deals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mktd-deal {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 10px;
  background: rgba(0,43,128,.07); color: var(--mkt-navy);
  font-size: .8rem; font-weight: 700;
}
.mktd-deal .material-symbols-outlined { font-size: 17px; }

/* ── quick-question sheet (yad2-style contact opener) ──────────────────── */
.mktd-qsheet { position: fixed; inset: 0; z-index: 120; }
.mktd-qsheet[hidden] { display: none; }
.mktd-qsheet__backdrop {
  position: absolute; inset: 0; background: rgba(15,23,42,.45);
  opacity: 0; transition: opacity .24s var(--mkt-ease);
}
.mktd-qsheet.is-open .mktd-qsheet__backdrop { opacity: 1; }
.mktd-qsheet__panel {
  position: absolute; inset-inline: 0; bottom: 0;
  background: var(--mkt-surface);
  border-radius: 22px 22px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 40px -8px rgba(15,23,42,.35);
  transform: translateY(100%); transition: transform .26s var(--mkt-ease);
  max-width: 720px; margin: 0 auto;
}
.mktd-qsheet.is-open .mktd-qsheet__panel { transform: none; }
.mktd-qsheet__grip { display: block; width: 40px; height: 4px; border-radius: 999px; margin: 0 auto 14px; background: var(--mkt-rule); }
.mktd-qsheet__x {
  position: absolute; top: 12px; inset-inline-start: 12px;
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--mkt-soft); color: var(--mkt-ink); display: grid; place-items: center;
}
.mktd-qsheet__x .material-symbols-outlined { font-size: 20px; }
.mktd-qsheet__title { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--mkt-ink); text-align: center; }
.mktd-qsheet__sub { margin: 3px 0 16px; font-size: .86rem; color: var(--mkt-ink-soft); text-align: center; }
.mktd-qsheet__chips { display: flex; flex-direction: column; gap: 10px; }
.mktd-qchip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--mkt-soft); border: 1px solid var(--mkt-rule);
  color: var(--mkt-ink); font-size: .95rem; font-weight: 600; text-decoration: none;
  transition: border-color .14s var(--mkt-ease), background .14s var(--mkt-ease);
}
.mktd-qchip:hover { border-color: var(--mkt-navy); background: var(--mkt-surface); }
.mktd-qchip .material-symbols-outlined { font-size: 19px; color: var(--mkt-ink-faint); }
.mktd-qchip--other {
  justify-content: center; color: var(--mkt-accent);
  background: var(--mkt-accent-soft); border-color: transparent; font-weight: 800;
}
.mktd-qchip--other .material-symbols-outlined { color: var(--mkt-accent); }
.mktd-id__plan {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fcd34d; color: #92400e;
  font-size: .78rem; font-weight: 800; padding: 4px 11px; border-radius: 999px;
}
.mktd-id__plan .material-symbols-outlined { font-size: 15px; }

/* yad2 spec capsule — one bordered box, equal cells split by hairline dividers */
.mktd-id__specs {
  display: flex; align-items: stretch; margin-top: 16px;
  border: 1px solid var(--mkt-rule); border-radius: 14px;
  background: var(--mkt-surface); overflow: hidden;
}
.mktd-spec {
  flex: 1 1 0; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 10px; font-size: .94rem; color: var(--mkt-ink);
}
.mktd-spec + .mktd-spec { border-inline-start: 1px solid var(--mkt-rule); }
.mktd-spec b { font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; }
.mktd-spec i { font-style: normal; color: var(--mkt-ink-soft); font-size: .82rem; }
.mktd-spec .material-symbols-outlined { font-size: 19px; color: var(--mkt-ink-faint); }

/* location line under the capsule (yad2 shows it on its own row) */
.mktd-id__loc {
  display: flex; align-items: center; gap: 5px; margin-top: 12px;
  color: var(--mkt-ink-soft); font-size: .92rem; font-weight: 600;
}
.mktd-id__loc .material-symbols-outlined { font-size: 18px; color: var(--mkt-accent); }

/* ── AI banner ─────────────────────────────────────────────────────── */
.mktd-ai {
  position: relative; overflow: hidden;
  /* Mobile-first: icon + text share the top row, the CTA wraps to a full-width
     row below. The single-row desktop layout is restored at min-width:768. */
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px;
  background: linear-gradient(120deg, #0b1e52 0%, var(--mkt-navy) 55%, #00337a 100%);
  color: #fff; border-radius: 18px; padding: 18px 20px;
  box-shadow: var(--mkt-shadow-md);
}
.mktd-ai__glow {
  position: absolute; inset: -20%; pointer-events: none;
  background: radial-gradient(at 12% 120%, rgba(234,88,12,.45), transparent 55%),
              radial-gradient(at 100% 0%, rgba(255,255,255,.18), transparent 50%);
  animation: mktd-ai-drift 11s var(--mkt-ease) infinite alternate;
}
@keyframes mktd-ai-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4%, -3%, 0) scale(1.12); }
}
.mktd-ai__icon {
  position: relative; flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
/* gentle pulse ring radiating from the bot icon */
.mktd-ai__icon::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid rgba(255,255,255,.6);
  animation: mktd-ai-pulse 2.8s var(--mkt-ease) infinite;
}
@keyframes mktd-ai-pulse {
  0%   { opacity: .7; transform: scale(1); }
  70%  { opacity: 0;  transform: scale(1.45); }
  100% { opacity: 0;  transform: scale(1.45); }
}
.mktd-ai__icon .material-symbols-outlined { font-size: 28px; }
.mktd-ai__text { position: relative; flex: 1 1 160px; min-width: 0; }
.mktd-ai__text h3 { margin: 0 0 3px; font-size: 1.02rem; font-weight: 800; }
.mktd-ai__text p { margin: 0; font-size: .84rem; line-height: 1.5; color: rgba(255,255,255,.82); }
.mktd-ai__cta {
  position: relative; flex: 1 0 100%;   /* mobile: full-width row below; desktop reverts to auto */
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--mkt-accent); color: #fff;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 800; font-size: .9rem; text-decoration: none;
  box-shadow: 0 8px 18px -5px rgba(234,88,12,.6);
  transition: transform .15s var(--mkt-ease), filter .15s var(--mkt-ease);
}
.mktd-ai__cta:hover { transform: translateY(-1px); filter: brightness(1.08); }
.mktd-ai__cta .material-symbols-outlined { font-size: 18px; }

/* ── content cards ─────────────────────────────────────────────────── */
.mktd-card {
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-rule);
  border-radius: 18px; padding: 18px 20px;
  box-shadow: var(--mkt-shadow-sm);
}
.mktd-card__head {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 16px;
}
.mktd-card__head h2 { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--mkt-ink); }
.mktd-card__head .material-symbols-outlined {
  font-size: 20px;
  background: linear-gradient(135deg, var(--mkt-accent-soft), #ffe9d5);
  border: 1px solid #fed7aa; border-radius: 10px; padding: 6px;
  width: 36px; height: 36px; display: grid; place-items: center;
  color: var(--mkt-accent);
  box-shadow: 0 4px 10px -6px rgba(234,88,12,.4);
}
.mktd-desc { color: var(--mkt-ink); font-size: .95rem; line-height: 1.7; white-space: pre-wrap; }

/* ── official-report banner ────────────────────────────────────────── */
.mktd-report {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  border: 1px solid #a7f3d0; border-radius: 18px; padding: 18px 20px;
}
.mktd-report__body { flex: 1; min-width: 220px; }
.mktd-report__head { display: flex; align-items: center; gap: 8px; }
.mktd-report__head h2 { margin: 0; font-size: 1.02rem; font-weight: 800; color: #065f46; }
.mktd-report__head .material-symbols-outlined { font-size: 22px; color: var(--mkt-ok); }
.mktd-report__body p { margin: 8px 0 0; color: #047857; font-size: .9rem; line-height: 1.5; }
.mktd-report__alert {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 10px;
  background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
  padding: 5px 11px; border-radius: 999px; font-size: .82rem; font-weight: 800;
}
.mktd-report__alert .material-symbols-outlined { font-size: 16px; }
.mktd-report__btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--mkt-ok); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 800; font-size: .92rem; text-decoration: none;
  box-shadow: 0 8px 18px -5px rgba(5,150,105,.5);
  transition: transform .15s var(--mkt-ease), filter .15s var(--mkt-ease);
}
.mktd-report__btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.mktd-report__btn .material-symbols-outlined { font-size: 19px; }

/* ── contact rail / seller card ────────────────────────────────────── */
.mktd-aside { min-width: 0; }
.mktd-aside__card {
  background: var(--mkt-surface); border: 1px solid var(--mkt-rule);
  border-radius: 18px; padding: 18px; box-shadow: var(--mkt-shadow-md);
  display: flex; flex-direction: column; gap: 14px;
}
.mktd-aside__price {
  align-items: baseline; gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif; color: var(--mkt-navy);
}
.mktd-aside__currency { font-size: 1.2rem; font-weight: 700; opacity: .8; }
.mktd-aside__amount { font-size: 1.85rem; font-weight: 800; }
.mktd-aside__actions { flex-direction: column; gap: 8px; }

.mktd-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 16px; border-radius: 12px;
  font: inherit; font-weight: 800; font-size: .96rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform .15s var(--mkt-ease), filter .15s var(--mkt-ease), background .15s var(--mkt-ease);
}
.mktd-btn .material-symbols-outlined { font-size: 20px; }
.mktd-btn--chat { background: var(--mkt-navy); color: #fff; box-shadow: 0 6px 14px -4px rgba(0,43,128,.45); }
.mktd-btn--chat:hover { transform: translateY(-1px); filter: brightness(1.1); }
.mktd-btn--phone { background: #16a34a; color: #fff; box-shadow: 0 6px 14px -4px rgba(22,163,74,.42); }
.mktd-btn--phone:hover { transform: translateY(-1px); filter: brightness(1.05); }
.mktd-btn--wa { background: #fff; color: #128c4b; border: 1.5px solid #25D366; }
.mktd-btn--wa:hover { background: #f0fdf4; }

.mktd-aside__seller {
  display: flex; align-items: center; gap: 10px;
  padding-top: 14px; border-top: 1px solid var(--mkt-rule);
}
.mktd-aside__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--mkt-navy), var(--mkt-navy-600));
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif;
}
.mktd-aside__seller-text { min-width: 0; }
.mktd-aside__seller-name { font-weight: 700; color: var(--mkt-ink); font-size: .94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mktd-aside__seller-loc { display: inline-flex; align-items: center; gap: 3px; font-size: .8rem; color: var(--mkt-ink-faint); }
.mktd-aside__seller-loc .material-symbols-outlined { font-size: 14px; }
.mktd-aside__meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 12px; border-top: 1px solid var(--mkt-rule);
  font-size: .8rem; color: var(--mkt-ink-soft);
}
.mktd-aside__meta span { display: inline-flex; align-items: center; gap: 4px; }
.mktd-aside__meta .material-symbols-outlined { font-size: 15px; }
.mktd-aside__meta-id { margin-inline-start: auto; color: var(--mkt-ink-faint); }
.mktd-aside__price, .mktd-aside__actions { display: none; }   /* phone: bar covers contact */

/* ── sticky mobile contact bar (above the tab nav) ─────────────────── */
.mktd-bar {
  position: fixed; inset-inline: 0;
  bottom: calc(64px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--mkt-rule);
  box-shadow: 0 -8px 24px -12px rgba(15,23,42,.25);
}
.mktd-bar__price { display: flex; flex-direction: column; line-height: 1.1; flex-shrink: 0; }
.mktd-bar__amount { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--mkt-navy); }
.mktd-bar__neg { font-size: .68rem; font-weight: 700; color: var(--mkt-accent); }
.mktd-bar__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.mktd-bar__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; border-radius: 13px; text-decoration: none;
  font-weight: 800; font-size: .95rem;
  transition: transform .12s var(--mkt-ease), filter .12s var(--mkt-ease);
}
.mktd-bar__btn:active { transform: scale(.96); }
.mktd-bar__btn .material-symbols-outlined { font-size: 22px; }
.mktd-bar__btn--wa { width: 46px; background: #25D366; color: #fff; }
.mktd-bar__btn--phone { width: 46px; background: #16a34a; color: #fff; }
.mktd-bar__btn--chat { flex: 1; padding: 0 18px; background: var(--mkt-navy); color: #fff; }

/* ── staggered reveal on load ──────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--mkt-ease), transform .5s var(--mkt-ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ── responsive ────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .mktd { padding: 22px 24px 48px; }
  .mktd-crumb { display: block; }
  .mktd__layout { gap: 18px; }
  .mktd-stage { margin: 0; border-radius: 18px; box-shadow: var(--mkt-shadow-sm); }
  .mktd-stage__slide { aspect-ratio: 16 / 10; }
  .mktd-thumbs { display: flex; }
  .mktd-id { margin-top: 14px; border-radius: 18px; }
  .mktd-id__grip { display: none; }
  .mktd-id__title { font-size: 1.6rem; }
  .mktd-id__amount { font-size: 2.3rem; }
  .mktd-aside__price { display: flex; }
  .mktd-aside__actions { display: flex; }
  .mktd-bar { display: none; }
  /* AI promo card: back to a single inline row on wider screens. */
  .mktd-ai { flex-wrap: nowrap; }
  .mktd-ai__cta { flex: 0 0 auto; }
}

@media (min-width: 1024px) {
  .mktd__layout { grid-template-columns: minmax(0, 1fr) 350px; }
  .mktd-aside__card { position: sticky; top: 90px; }
}

@media print {
  .mktd-bar, .mktd-owner, .mktd-stage__tools, .mktd-stage__back, .mktd-ai__cta { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; opacity: 1; transform: none; }
  .mktd-stage__track { scroll-behavior: auto; }
  .mktd-ai__glow, .mktd-ai__icon::after { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Edit-ad page  (.mkte-*)  ·  seller-only form to update an existing listing
   ═══════════════════════════════════════════════════════════════════════ */
.mkte {
  max-width: 760px; margin: 0 auto; padding: 16px 16px 48px;
  display: flex; flex-direction: column; gap: 14px;
}

.mkte-crumb a {
  display: inline-flex; align-items: center; gap: 2px;
  color: var(--mkt-ink-soft); font-size: .86rem; font-weight: 600; text-decoration: none;
}
.mkte-crumb a:hover { color: var(--mkt-navy); }
.mkte-crumb .material-symbols-outlined { font-size: 18px; }

.mkte-hero { display: flex; align-items: center; gap: 14px; }
.mkte-hero__icon {
  flex: none; width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--mkt-navy); color: #fff; font-size: 26px;
}
.mkte-hero__title { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--mkt-ink); }
.mkte-hero__sub { margin: 2px 0 0; color: var(--mkt-ink-soft); font-size: .92rem; }

/* locked identity strip */
.mkte-locked {
  border: 1px dashed var(--mkt-rule); border-radius: 14px;
  background: var(--mkt-soft); padding: 14px 16px;
}
.mkte-locked__head {
  display: flex; align-items: center; gap: 8px;
  color: var(--mkt-ink-soft); font-size: .8rem; font-weight: 600; margin-bottom: 12px;
}
.mkte-locked__head .material-symbols-outlined { font-size: 18px; color: var(--mkt-ink-faint); }
.mkte-locked__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px;
}
.mkte-locked__item { display: flex; flex-direction: column; gap: 2px; }
.mkte-locked__item span { font-size: .74rem; color: var(--mkt-ink-soft); }
.mkte-locked__item b { font-size: .95rem; font-weight: 800; color: var(--mkt-ink); }

/* form & cards */
.mkte-form { display: flex; flex-direction: column; gap: 14px; }
.mkte-card {
  background: var(--mkt-surface); border: 1px solid var(--mkt-rule);
  border-radius: 16px; padding: 18px; box-shadow: var(--mkt-shadow-sm, 0 1px 2px rgba(15,23,42,.04));
}
.mkte-card__title {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 14px; font-size: 1.05rem; font-weight: 800; color: var(--mkt-ink);
}
.mkte-card__title .material-symbols-outlined { font-size: 20px; color: var(--mkt-accent); }

.mkte-summary { color: #b91c1c; font-size: .88rem; font-weight: 600; }
.mkte-summary ul { margin: 0; padding-inline-start: 18px; }
.mkte-summary:empty { display: none; }

.mkte-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.mkte-field:last-child { margin-bottom: 0; }
.mkte-field label { font-size: .84rem; font-weight: 700; color: var(--mkt-ink); }
.mkte-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.mkte-field--grow { flex: 1 1 200px; }

.mkte-input {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--mkt-rule); border-radius: 10px;
  background: var(--mkt-surface); color: var(--mkt-ink);
  font: inherit; font-size: .95rem;
  transition: border-color .14s var(--mkt-ease), box-shadow .14s var(--mkt-ease);
}
.mkte-input:focus {
  outline: none; border-color: var(--mkt-accent);
  box-shadow: 0 0 0 3px var(--mkt-accent-soft);
}
.mkte-textarea { resize: vertical; min-height: 120px; line-height: 1.55; }

/* native select styled to match inputs, with a chevron on the inline-end edge */
.mkte-select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-inline-end: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 13px center;
  background-size: 12px;
}
html[dir=rtl] .mkte-select { background-position: left 13px center; }
.mkte-select:disabled { opacity: .5; cursor: not-allowed; }
.is-disabled { opacity: .5; }

.mkte-input-affix { position: relative; }
.mkte-input-affix__icon {
  position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%);
  color: var(--mkt-ink-soft); font-weight: 700; pointer-events: none;
}
.mkte-input-affix .mkte-input { padding-inline-start: 30px; }

.mkte-counter { font-size: .74rem; color: var(--mkt-ink-soft); text-align: end; }
.mkte-error { color: #dc2626; font-size: .78rem; font-weight: 600; }
.mkte-error:empty { display: none; }

/* negotiable toggle */
.mkte-toggle {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding-bottom: 11px; user-select: none;
}
.mkte-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.mkte-toggle__track {
  position: relative; width: 42px; height: 24px; border-radius: 999px;
  background: var(--mkt-rule); transition: background .16s var(--mkt-ease);
}
.mkte-toggle__thumb {
  position: absolute; top: 3px; inset-inline-start: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .16s var(--mkt-ease);
}
.mkte-toggle input:checked + .mkte-toggle__track { background: var(--mkt-accent); }
html[dir=rtl] .mkte-toggle input:checked + .mkte-toggle__track .mkte-toggle__thumb { transform: translateX(-18px); }
.mkte-toggle input:checked + .mkte-toggle__track .mkte-toggle__thumb { transform: translateX(18px); }
.mkte-toggle__label { font-size: .88rem; font-weight: 700; color: var(--mkt-ink); }
.mkte-toggle-group { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 12px; }

/* actions */
.mkte-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.mkte-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; border-radius: 12px; font: inherit; font-size: .95rem; font-weight: 800;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: filter .14s var(--mkt-ease), transform .14s var(--mkt-ease), background .14s var(--mkt-ease);
}
.mkte-btn .material-symbols-outlined { font-size: 19px; }
.mkte-btn--primary {
  background: var(--mkt-accent); color: #fff;
  box-shadow: 0 8px 18px -6px rgba(234,88,12,.55);
}
.mkte-btn--primary:hover { filter: brightness(.95); transform: translateY(-1px); }
.mkte-btn--ghost {
  background: var(--mkt-surface); color: var(--mkt-ink); border-color: var(--mkt-rule);
}
.mkte-btn--ghost:hover { border-color: var(--mkt-navy); color: var(--mkt-navy); }

/* photo manager */
.mkte-photos__hint { margin: -6px 0 14px; font-size: .82rem; color: var(--mkt-ink-soft); }
.mkte-photos__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px;
}
.mkte-photo {
  position: relative; margin: 0; aspect-ratio: 4/3; border-radius: 12px;
  overflow: hidden; background: var(--mkt-soft); border: 2px solid var(--mkt-rule);
  transition: border-color .14s var(--mkt-ease);
}
.mkte-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkte-photo.is-cover { border-color: var(--mkt-accent); }

/* "שער" badge — only on the current cover */
.mkte-photo__cover {
  position: absolute; top: 6px; inset-inline-start: 6px;
  display: none; align-items: center; gap: 3px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--mkt-accent); color: #fff; font-size: .68rem; font-weight: 800;
}
.mkte-photo__cover .material-symbols-outlined { font-size: 13px; }
.mkte-photo.is-cover .mkte-photo__cover { display: inline-flex; }

/* "set as cover" — appears on hover for non-cover photos */
.mkte-photo__make-cover {
  position: absolute; inset-inline: 6px; bottom: 6px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 7px 10px; border: none; border-radius: 8px; cursor: pointer;
  background: rgba(15,23,42,.78); color: #fff; font: inherit; font-size: .74rem; font-weight: 700;
  backdrop-filter: blur(3px); opacity: 0; transform: translateY(4px);
  transition: opacity .14s var(--mkt-ease), transform .14s var(--mkt-ease), background .14s var(--mkt-ease);
}
.mkte-photo__make-cover .material-symbols-outlined { font-size: 15px; }
.mkte-photo:hover .mkte-photo__make-cover { opacity: 1; transform: none; }
.mkte-photo__make-cover:hover { background: var(--mkt-accent); }
.mkte-photo.is-cover .mkte-photo__make-cover { display: none; }

.mkte-photo__del {
  position: absolute; top: 6px; inset-inline-end: 6px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(15,23,42,.74); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center; backdrop-filter: blur(3px);
  transition: background .14s var(--mkt-ease);
}
.mkte-photo__del:hover { background: #dc2626; }
.mkte-photo__del .material-symbols-outlined { font-size: 17px; }
.mkte-photo-add {
  aspect-ratio: 4/3; border-radius: 12px; cursor: pointer;
  border: 2px dashed var(--mkt-rule); background: var(--mkt-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--mkt-ink-soft); font: inherit; font-size: .8rem; font-weight: 700;
  transition: border-color .14s var(--mkt-ease), color .14s var(--mkt-ease);
}
.mkte-photo-add:hover { border-color: var(--mkt-accent); color: var(--mkt-accent); }
.mkte-photo-add .material-symbols-outlined { font-size: 28px; }

.mkte-photos__status { margin-top: 12px; padding: 10px 14px; border-radius: 10px; font-size: .86rem; font-weight: 600; }
.mkte-photos__status.is-pending { background: #fff7ed; color: #9a3412; }
.mkte-photos__status.is-ok { background: #ecfdf5; color: #065f46; }
.mkte-photos__status.is-error { background: #fef2f2; color: #b91c1c; }

@media (max-width: 480px) {
  .mkte-hero__title { font-size: 1.3rem; }
  .mkte-actions { flex-direction: column-reverse; }
  .mkte-btn { width: 100%; }
}

