/* =============================================================================
   SMJ Marketplace Pro — style.css  v5.1.3
   All colors use CSS variables only. No hardcoded hex values outside :root.
   Override tokens via wp_add_inline_style() in SMJ_UI_Render::print_dynamic_css().
   ============================================================================= */

/* ── 1. LEGACY --tmp-* BRIDGE ───────────────────────────────────────────── */
:root {
  --tmp-primary:    var(--smj-primary);
  --tmp-primary-dk: var(--smj-primary-dk);
  --tmp-accent:     var(--smj-secondary);
  --tmp-green:      var(--smj-success);
  --tmp-red:        var(--smj-danger);
  --tmp-warn:       var(--smj-warning);
  --tmp-wa:         var(--smj-wa);
  --tmp-bg:         var(--smj-bg);
  --tmp-card:       var(--smj-card-bg);
  --tmp-border:     var(--smj-border);
  --tmp-text:       var(--smj-text);
  --tmp-muted:      var(--smj-muted);
  --tmp-radius:     var(--smj-radius);
  --tmp-shadow:     var(--smj-shadow);
  --tmp-shadow-lg:  var(--smj-shadow-lg);
  --tmp-font:       var(--smj-font);
}

/* ── 2. LEGACY BUTTON CLASSES (tmp-btn-*) ───────────────────────────────── */
.tmp-btn {
  display        : inline-flex;
  align-items    : center;
  justify-content: center;
  gap            : 6px;
  padding        : var(--smj-btn-padding, 10px 20px);
  border-radius  : var(--smj-btn-radius, var(--smj-radius-pill));
  font-size      : var(--smj-font-size, 14px);
  font-weight    : 600;
  font-family    : var(--smj-font);
  text-decoration: none !important;
  border         : 2px solid transparent;
  cursor         : pointer;
  transition     : var(--smj-transition);
  white-space    : nowrap;
  line-height    : 1.4;
}
.tmp-btn--primary {
  background : var(--smj-btn-color);
  color      : var(--smj-btn-text, #fff);
  border-color: var(--smj-btn-color);
  box-shadow : 0 3px 10px var(--smj-primary-alpha-25);
}
.tmp-btn--primary:hover {
  background : var(--smj-btn-color-dk);
  border-color: var(--smj-btn-color-dk);
  color      : var(--smj-btn-text, #fff);
  box-shadow : 0 5px 16px var(--smj-primary-alpha-36);
}
.tmp-btn--secondary {
  background : var(--smj-secondary);
  color      : var(--smj-white);
  border-color: var(--smj-secondary);
}
.tmp-btn--secondary:hover { background: var(--smj-secondary-dk); border-color: var(--smj-secondary-dk); }
.tmp-btn--ghost {
  background : transparent;
  color      : var(--smj-btn-color);
  border-color: var(--smj-btn-color);
}
.tmp-btn--ghost:hover { background: var(--smj-primary-alpha-10); }
.tmp-btn--danger  { background: var(--smj-danger); color: var(--smj-white); border-color: var(--smj-danger); }
.tmp-btn--wa      { background: var(--smj-wa); color: var(--smj-white); border-color: var(--smj-wa); }
.tmp-btn--wa:hover { background: var(--smj-wa-dk); border-color: var(--smj-wa-dk); }
.tmp-btn--sm   { padding: 6px 14px; font-size: 12px; }
.tmp-btn--lg   { padding: 13px 28px; font-size: 16px; }
.tmp-btn--full { width: 100%; }

/* ── 3. LEGACY FORM FIELDS (tmp-field, tmp-input) ───────────────────────── */
.tmp-form-wrap {
  font-family: var(--smj-font);
  color      : var(--smj-text);
}
.tmp-field { margin-bottom: var(--smj-spacing-md); }
.tmp-field label {
  display    : block;
  font-size  : 13px;
  font-weight: 600;
  color      : var(--smj-text-heading);
  margin-bottom: 5px;
}
/* Explicit type list — radio and checkbox are intentionally excluded */
.tmp-field input[type="text"],
.tmp-field input[type="number"],
.tmp-field input[type="tel"],
.tmp-field input[type="email"],
.tmp-field input[type="url"],
.tmp-field input[type="date"],
.tmp-field input[type="search"],
.tmp-field input[type="password"],
.tmp-field select,
.tmp-field textarea,
.tmp-input,
.tmp-select {
  width        : 100%;
  padding      : 9px 13px;
  border       : 1.5px solid var(--smj-input-border);
  border-radius: var(--smj-radius-sm);
  font-size    : var(--smj-body-size, 14px);
  font-family  : var(--smj-font);
  color        : var(--smj-text);
  background   : var(--smj-card-bg);
  transition   : border-color .15s, box-shadow .15s;
  box-sizing   : border-box;
  appearance   : none;
  -webkit-appearance: none;
}
.tmp-field input[type="text"]:focus,
.tmp-field input[type="number"]:focus,
.tmp-field input[type="tel"]:focus,
.tmp-field input[type="email"]:focus,
.tmp-field input[type="url"]:focus,
.tmp-field input[type="date"]:focus,
.tmp-field input[type="search"]:focus,
.tmp-field input[type="password"]:focus,
.tmp-field select:focus,
.tmp-field textarea:focus,
.tmp-input:focus,
.tmp-select:focus {
  outline     : none;
  border-color: var(--smj-primary);
  box-shadow  : 0 0 0 3px var(--smj-primary-alpha-12);
}
.tmp-field input[type="text"]::placeholder,
.tmp-field input[type="number"]::placeholder,
.tmp-field input[type="tel"]::placeholder,
.tmp-field input[type="email"]::placeholder,
.tmp-field input[type="url"]::placeholder,
.tmp-field input[type="search"]::placeholder,
.tmp-field input[type="password"]::placeholder,
.tmp-field textarea::placeholder { color: var(--smj-placeholder); }
.tmp-field .tmp-field-error { color: var(--smj-danger); font-size: 12px; margin-top: 4px; }
.tmp-req { color: var(--smj-danger); }

/* ── 4. LEGACY NOTICE / ALERT CLASSES ──────────────────────────────────── */
.tmp-notice {
  padding      : var(--smj-spacing-md);
  border-radius: var(--smj-radius-sm);
  margin-bottom: var(--smj-spacing-md);
  font-size    : 14px;
  font-family  : var(--smj-font);
}
.tmp-notice--success { background: var(--smj-success-bg); border: 1px solid var(--smj-success-border); color: var(--smj-success-text); }
.tmp-notice--error   { background: var(--smj-danger-bg);  border: 1px solid var(--smj-danger-border);  color: var(--smj-danger-text); }
.tmp-notice--warning { background: var(--smj-warning-bg); border: 1px solid var(--smj-warning-border); color: var(--smj-warning-text); }
.tmp-notice--info    { background: var(--smj-info-bg);    border: 1px solid var(--smj-info-border);    color: var(--smj-info-text); }

/* ── 5. LEGACY CARD CLASSES (tmp-card, tmp-grid) ────────────────────────── */
.tmp-grid {
  display              : grid;
  grid-template-columns: repeat(var(--smj-grid-cols, 3), 1fr);
  gap                  : var(--smj-grid-gap, 16px);
}
.tmp-card {
  background   : var(--smj-card-bg);
  border       : 1px solid var(--smj-border);
  border-radius: var(--smj-radius);
  box-shadow   : var(--smj-card-shadow);
  overflow     : hidden;
  transition   : var(--smj-transition);
  position     : relative;
  display      : flex;
  flex-direction: column;
  color        : var(--smj-text);
  font-family  : var(--smj-font);
}
.tmp-card:hover {
  transform  : var(--smj-hover-transform, translateY(-3px));
  box-shadow : var(--smj-shadow-lg);
  border-color: var(--smj-primary);
}
.tmp-card--featured { border-color: var(--smj-warning); }
.tmp-card--sold     { opacity: .7; }

.tmp-card-img-link { display: block; overflow: hidden; aspect-ratio: var(--smj-img-ratio, 4/3); }
.tmp-card-img      { width: 100%; height: 100%; object-fit: var(--smj-img-fit, cover); display: block; transition: transform .35s; }
.tmp-card:hover .tmp-card-img { transform: scale(1.04); }

.tmp-card-body    { padding: var(--smj-card-pad, 14px); flex: 1; display: flex; flex-direction: column; gap: var(--smj-row-gap, 12px); }
.tmp-card-title   { font-size: var(--smj-font-size-title); font-weight: 700; color: var(--smj-text); margin: 0; line-height: 1.35; }
.tmp-card-title a { color: inherit; text-decoration: none; }
.tmp-card-title a:hover { color: var(--smj-primary); }
.tmp-card-price   { font-size: var(--smj-font-size-price); font-weight: var(--smj-price-weight, 800); color: var(--smj-price-color); margin: 0; }
.tmp-card-specs   { display: flex; gap: 6px; flex-wrap: wrap; }
.tmp-card-specs span {
  font-size    : var(--smj-font-size-meta, 11px);
  background   : var(--smj-badge-bg);
  color        : var(--smj-muted);
  padding      : 2px 8px;
  border-radius: var(--smj-radius-pill);
  white-space  : nowrap;
}
.tmp-card-location { font-size: 12px; color: var(--smj-muted); margin-top: auto; }
.tmp-card-actions  { display: flex; gap: var(--smj-spacing-sm); padding: 6px var(--smj-card-pad, 14px) var(--smj-card-pad, 14px); }

/* Sold / featured badges */
.tmp-badge          { background: var(--smj-featured-bg); color: var(--smj-white); }
.tmp-sold-overlay   { position: absolute; inset: 0; background: var(--smj-sold-overlay); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; color: var(--smj-white); letter-spacing: .1em; }

/* ── 6. LEGACY FILTER BAR ───────────────────────────────────────────────── */
.tmp-filters {
  background   : var(--smj-card-bg);
  border       : 1px solid var(--smj-border);
  border-radius: var(--smj-radius);
  padding      : var(--smj-spacing-md) var(--smj-spacing-lg);
  box-shadow   : var(--smj-shadow-sm);
  margin-bottom: var(--smj-spacing-lg);
}
.tmp-filter-form    { display: flex; flex-wrap: wrap; gap: var(--smj-spacing-sm); align-items: flex-end; }
.tmp-filter-field   { flex: 1; min-width: 140px; }
.tmp-filter-actions { display: flex; gap: 8px; }
.tmp-results-bar    { display: flex; align-items: center; margin-bottom: var(--smj-spacing-md); }
.tmp-results-count  { font-size: 13px; color: var(--smj-muted); }
.tmp-no-results     { text-align: center; padding: var(--smj-spacing-xl) var(--smj-spacing-lg); color: var(--smj-muted); }

/* ── 7. LEGACY PAGINATION ───────────────────────────────────────────────── */
.tmp-pagination { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: var(--smj-spacing-xl); flex-wrap: wrap; }
.tmp-pagination a,
.tmp-pagination span {
  display     : inline-flex;
  align-items : center;
  justify-content: center;
  min-width   : 36px;
  height      : 36px;
  padding     : 0 10px;
  border-radius: var(--smj-radius-sm);
  border      : 1.5px solid var(--smj-border);
  background  : var(--smj-card-bg);
  color       : var(--smj-text);
  font-size   : 13px;
  font-weight : 600;
  text-decoration: none;
  transition  : var(--smj-transition);
  font-family : var(--smj-font);
}
.tmp-pagination a:hover,
.tmp-pagination .current {
  background   : var(--smj-primary);
  border-color : var(--smj-primary);
  color        : var(--smj-white);
}

/* ── 8. DASHBOARD ────────────────────────────────────────────────────────── */

/* ── Design tokens local to dashboard ──────────────────────────────────────── */
.tmp-dashboard {
  --db-font:        'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --db-blue:        #2563eb;
  --db-blue-dk:     #1d4ed8;
  --db-blue-lt:     #eff6ff;
  --db-blue-mid:    rgba(37,99,235,.08);
  --db-green:       #16a34a;
  --db-green-lt:    #f0fdf4;
  --db-red:         #ef4444;
  --db-red-lt:      #fef2f2;
  --db-amber:       #f59e0b;
  --db-amber-lt:    #fffbeb;
  --db-text-1:      #0f172a;
  --db-text-2:      #334155;
  --db-text-3:      #64748b;
  --db-text-4:      #94a3b8;
  --db-border:      #e8edf5;
  --db-divider:     #f1f5f9;
  --db-card:        #ffffff;
  --db-bg:          #f5f7fb;
  --db-sidebar-w:   240px;
  --db-radius:      12px;
  --db-radius-sm:   8px;
  --db-shadow-sm:   0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --db-shadow:      0 2px 8px rgba(15,23,42,.07), 0 1px 3px rgba(15,23,42,.04);
  --db-shadow-md:   0 6px 24px rgba(15,23,42,.10), 0 2px 8px rgba(15,23,42,.05);
  --db-transition:  .2s cubic-bezier(.4,0,.2,1);
}

/* ── Outer wrapper ── */
.tmp-dashboard {
  display              : grid;
  grid-template-columns: var(--db-sidebar-w) 1fr;
  gap                  : 24px;
  align-items          : start;
  font-family          : var(--db-font);
  color                : var(--db-text-1);
  background           : var(--db-bg);
  padding              : 0;
  box-sizing           : border-box;
}
@media (max-width: 900px) {
  .tmp-dashboard {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ════════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════════ */
.tmp-dash-nav {
  background   : var(--db-card);
  border       : 1px solid var(--db-border);
  border-radius: var(--db-radius);
  overflow     : hidden;
  position     : sticky;
  top          : 20px;
  box-shadow   : var(--db-shadow);
  font-family  : var(--db-font);
  height       : fit-content;
}

/* Profile block */
.tmp-dash-user {
  display      : flex;
  align-items  : center;
  gap          : 12px;
  padding      : 20px 18px 16px;
  border-bottom: 1px solid var(--db-divider);
  background   : var(--db-card);
}
.tmp-dash-user img {
  width        : 44px;
  height       : 44px;
  border-radius: 50%;
  object-fit   : cover;
  flex-shrink  : 0;
  border       : 2px solid var(--db-border);
  box-shadow   : var(--db-shadow-sm);
}
.tmp-dash-user strong {
  display    : block;
  font-size  : 13px;
  font-weight: 700;
  color      : var(--db-text-1);
  line-height: 1.35;
  font-family: var(--db-font);
}
.tmp-dash-user small {
  display    : block;
  font-size  : 11px;
  color      : var(--db-text-3);
  word-break : break-all;
  margin-top : 1px;
  font-family: var(--db-font);
}

/* Nav list */
.tmp-dash-nav ul { list-style: none; margin: 0; padding: 10px 10px 12px; }
.tmp-dash-nav li { margin-bottom: 1px; }
.tmp-dash-nav li a {
  display        : flex;
  align-items    : center;
  gap            : 10px;
  padding        : 9px 12px;
  color          : var(--db-text-2);
  text-decoration: none;
  font-size      : 13px;
  font-weight    : 500;
  border-radius  : var(--db-radius-sm);
  transition     : background var(--db-transition), color var(--db-transition);
  position       : relative;
  font-family    : var(--db-font);
  line-height    : 1.4;
}
.tmp-dash-nav li a svg {
  width       : 16px;
  height      : 16px;
  flex-shrink : 0;
  opacity     : .55;
  transition  : opacity var(--db-transition);
}
.tmp-dash-nav li a:hover {
  background: var(--db-divider);
  color     : var(--db-text-1);
}
.tmp-dash-nav li a:hover svg { opacity: .75; }

/* Active state */
.tmp-dash-nav li.active a {
  background : var(--db-blue-mid);
  color      : var(--db-blue);
  font-weight: 700;
}
.tmp-dash-nav li.active a svg { opacity: 1; }
.tmp-dash-nav li.active a::before {
  content      : '';
  position     : absolute;
  left         : 0;
  top          : 8px;
  bottom       : 8px;
  width        : 3px;
  background   : var(--db-blue);
  border-radius: 0 3px 3px 0;
}

/* Logout */
.tmp-dash-nav .tmp-logout {
  color  : var(--db-text-3) !important;
  margin-top: 0;
}
.tmp-dash-nav .tmp-logout:hover {
  background: var(--db-red-lt) !important;
  color     : var(--db-red) !important;
}
.tmp-dash-nav li:has(.tmp-logout) {
  border-top : 1px solid var(--db-divider);
  padding-top: 10px;
  margin-top : 8px;
}

/* Unread badge */
.tmp-dash-nav .tmp-badge {
  margin-left   : auto;
  background    : var(--db-blue);
  color         : #fff;
  font-size     : 10px;
  font-weight   : 700;
  padding       : 1px 6px;
  border-radius : 99px;
  line-height   : 1.5;
  letter-spacing: .02em;
}

/* ── Mobile sidebar ── */
@media (max-width: 900px) {
  .tmp-dash-nav {
    position     : relative;
    top          : 0;
    border-radius: 0 0 var(--db-radius) var(--db-radius);
    border-top   : none;
    box-shadow   : 0 2px 8px rgba(15,23,42,.06);
  }
  .tmp-dash-user { padding: 14px 16px; }
}

/* ════════════════════════════════════════════════
   MAIN CONTENT
════════════════════════════════════════════════ */
.tmp-dash-content { min-width: 0; }

.tmp-dash-section {
  background   : var(--db-card);
  border       : 1px solid var(--db-border);
  border-radius: var(--db-radius);
  padding      : 22px 24px;
  margin-bottom: 16px;
  box-shadow   : var(--db-shadow-sm);
  font-family  : var(--db-font);
}
.tmp-dash-section:last-child { margin-bottom: 0; }
.tmp-dash-section h2 {
  font-size   : 16px;
  font-weight : 800;
  color       : var(--db-text-1);
  margin      : 0 0 18px;
  font-family : var(--db-font);
  letter-spacing: -.01em;
}

/* Section header */
.tmp-dash-header {
  display        : flex;
  align-items    : center;
  justify-content: space-between;
  flex-wrap      : wrap;
  gap            : 12px;
  margin-bottom  : 18px;
  padding-bottom : 16px;
  border-bottom  : 1px solid var(--db-divider);
}
.tmp-dash-header h2 { margin: 0; }

.tmp-listings-count {
  display     : inline-flex;
  align-items : center;
  justify-content: center;
  min-width   : 22px;
  height      : 22px;
  padding     : 0 7px;
  background  : var(--db-divider);
  color       : var(--db-text-3);
  font-size   : 11px;
  font-weight : 700;
  border-radius: 99px;
  margin-left : 6px;
  font-family : var(--db-font);
}

/* ════════════════════════════════════════════════
   LISTING CARDS
════════════════════════════════════════════════ */
.tmp-my-listings { display: flex; flex-direction: column; gap: 12px; }

.tmp-listing-card {
  display      : flex;
  background   : var(--db-card);
  border       : 1px solid var(--db-border);
  border-radius: var(--db-radius);
  overflow     : hidden;
  transition   : box-shadow var(--db-transition), transform var(--db-transition), border-color var(--db-transition);
  box-shadow   : var(--db-shadow-sm);
  position     : relative;
}
.tmp-listing-card:hover {
  box-shadow  : var(--db-shadow-md);
  transform   : translateY(-2px);
  border-color: rgba(37,99,235,.15);
}

/* ── Thumbnail ── */
.tmp-listing-card__thumb {
  position   : relative;
  flex-shrink: 0;
  width      : 148px;
}
.tmp-listing-card__img {
  width     : 148px;
  height    : 100%;
  min-height: 116px;
  object-fit: cover;
  display   : block;
  transition: transform .35s ease;
}
.tmp-listing-card:hover .tmp-listing-card__img { transform: scale(1.04); }

/* No-photo placeholder */
.tmp-listing-card__no-img {
  width          : 148px;
  height         : 100%;
  min-height     : 116px;
  background     : var(--db-divider);
  display        : flex;
  flex-direction : column;
  align-items    : center;
  justify-content: center;
  gap            : 6px;
  color          : var(--db-text-4);
}
.tmp-listing-card__no-img span { font-size: 26px; opacity: .5; }
.tmp-listing-card__no-img small {
  font-size  : 10px;
  font-weight: 600;
  font-family: var(--db-font);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Featured badge */
.tmp-listing-card__feat-badge {
  position     : absolute;
  top          : 8px;
  left         : 8px;
  background   : var(--db-amber);
  color        : #fff;
  font-size    : 9px;
  font-weight  : 800;
  padding      : 2px 7px;
  border-radius: 99px;
  line-height  : 1.6;
  white-space  : nowrap;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-family  : var(--db-font);
}

/* ── Body ── */
.tmp-listing-card__body {
  flex          : 1;
  min-width     : 0;
  display       : flex;
  flex-direction: column;
  padding       : 14px 18px 13px;
  gap           : 0;
}

/* Title row */
.tmp-listing-card__title-row {
  display        : flex;
  align-items    : flex-start;
  justify-content: space-between;
  gap            : 12px;
  margin-bottom  : 5px;
}
.tmp-listing-card__title {
  font-size   : 14px;
  font-weight : 700;
  color       : var(--db-text-1);
  margin      : 0;
  line-height : 1.4;
  flex        : 1;
  min-width   : 0;
  font-family : var(--db-font);
  letter-spacing: -.01em;
}
.tmp-listing-card__title a {
  color          : inherit;
  text-decoration: none;
  display        : -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow       : hidden;
  transition     : color var(--db-transition);
}
.tmp-listing-card__title a:hover { color: var(--db-blue); }

/* Status badge */
.tmp-listing-card__status {
  flex-shrink   : 0;
  font-size     : 10px;
  font-weight   : 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding       : 3px 9px;
  border-radius : 99px;
  white-space   : nowrap;
  font-family   : var(--db-font);
  line-height   : 1.5;
}
.tmp-listing-card__status--publish { background: var(--db-green-lt); color: var(--db-green); }
.tmp-listing-card__status--pending { background: var(--db-amber-lt); color: var(--db-amber); }
.tmp-listing-card__status--draft   { background: var(--db-divider);  color: var(--db-text-3); }
.tmp-listing-card__status--sold    { background: var(--db-red-lt);   color: var(--db-red); }

/* Price */
.tmp-listing-card__price {
  font-size   : 19px;
  font-weight : 800;
  color       : var(--db-green);
  line-height : 1;
  margin-bottom: 8px;
  font-family : var(--db-font);
  letter-spacing: -.02em;
}

/* Meta row */
.tmp-listing-card__meta {
  display  : flex;
  flex-wrap: wrap;
  gap      : 12px;
  margin-bottom: 10px;
}
.tmp-listing-card__meta-item {
  display    : flex;
  align-items: center;
  gap        : 4px;
  font-size  : 11px;
  font-weight: 500;
  color      : var(--db-text-3);
  font-family: var(--db-font);
}
.tmp-listing-card__meta-item--expiry { color: var(--db-amber); }

/* Actions */
.tmp-listing-card__actions {
  display    : flex;
  flex-wrap  : wrap;
  gap        : 6px;
  margin-top : auto;
  padding-top: 10px;
  border-top : 1px solid var(--db-divider);
}

/* ── Action button variants ── */
.tmp-btn--outline-primary {
  background  : transparent;
  color       : var(--db-blue);
  border      : 1.5px solid rgba(37,99,235,.35);
  border-radius: 7px !important;
  font-family : var(--db-font) !important;
  font-size   : 12px !important;
  font-weight : 600 !important;
  padding     : 5px 12px !important;
  transition  : background var(--db-transition), border-color var(--db-transition), color var(--db-transition);
}
.tmp-btn--outline-primary:hover {
  background  : var(--db-blue-lt);
  border-color: var(--db-blue);
  color       : var(--db-blue-dk);
}
.tmp-btn--ghost {
  background   : var(--db-divider);
  color        : var(--db-text-2);
  border-color : transparent !important;
  border-radius: 7px !important;
  font-family  : var(--db-font) !important;
  font-size    : 12px !important;
  font-weight  : 600 !important;
  padding      : 5px 12px !important;
}
.tmp-btn--ghost:hover {
  background: #e2e8f0;
  color     : var(--db-text-1);
}
.tmp-btn--success {
  background  : var(--db-green-lt);
  color       : var(--db-green);
  border      : 1.5px solid rgba(22,163,74,.25) !important;
  border-radius: 7px !important;
  font-family : var(--db-font) !important;
  font-size   : 12px !important;
  font-weight : 600 !important;
  padding     : 5px 12px !important;
}
.tmp-btn--success:hover {
  background: var(--db-green);
  color     : #fff;
  border-color: var(--db-green) !important;
}
.tmp-btn--danger {
  background  : transparent;
  color       : var(--db-red);
  border      : 1.5px solid rgba(239,68,68,.25) !important;
  border-radius: 7px !important;
  font-family : var(--db-font) !important;
  font-size   : 12px !important;
  font-weight : 600 !important;
  padding     : 5px 12px !important;
}
.tmp-btn--danger:hover {
  background  : var(--db-red-lt);
  border-color: var(--db-red) !important;
}

/* Post New Ad button */
.tmp-dash-header .tmp-btn--primary {
  background   : var(--db-blue);
  color        : #fff;
  border-color : var(--db-blue);
  border-radius: var(--db-radius-sm) !important;
  font-family  : var(--db-font) !important;
  font-size    : 13px !important;
  font-weight  : 700 !important;
  padding      : 8px 16px !important;
  box-shadow   : 0 2px 8px rgba(37,99,235,.28);
  transition   : background var(--db-transition), box-shadow var(--db-transition), transform var(--db-transition);
}
.tmp-dash-header .tmp-btn--primary:hover {
  background : var(--db-blue-dk);
  border-color: var(--db-blue-dk);
  box-shadow : 0 4px 14px rgba(37,99,235,.36);
  transform  : translateY(-1px);
}

/* ── Empty state ── */
.tmp-empty {
  text-align: center;
  padding   : 52px 24px;
  color     : var(--db-text-3);
  font-family: var(--db-font);
}
.tmp-empty__icon {
  font-size    : 44px;
  margin-bottom: 14px;
  opacity      : .4;
  display      : block;
}
.tmp-empty p {
  font-size    : 14px;
  margin-bottom: 18px;
  font-weight  : 500;
  color        : var(--db-text-3);
  font-family  : var(--db-font);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .tmp-listing-card          { flex-direction: column; }
  .tmp-listing-card__thumb   { width: 100%; }
  .tmp-listing-card__img     { width: 100%; height: 160px; min-height: unset; object-fit: cover; }
  .tmp-listing-card__no-img  { width: 100%; height: 130px; min-height: unset; }
  .tmp-listing-card__body    { padding: 12px 14px 12px; }
  .tmp-listing-card__price   { font-size: 17px; }
  .tmp-listing-card__title   { font-size: 13px; }
  .tmp-listing-card__title a { -webkit-line-clamp: 2; }
  .tmp-dash-section          { padding: 16px; }
  .tmp-dash-header           { padding-bottom: 12px; margin-bottom: 14px; }
}

/* ── 8b. PROFILE SECTION (tmp-profile-*) ─────────────────────────────────── */
.tmp-profile-avatar-wrap {
  display      : flex;
  align-items  : center;
  gap          : 20px;
  flex-wrap    : wrap;
  margin-bottom: 24px;
  padding      : 20px;
  background   : var(--smj-surface);
  border-radius: var(--smj-radius);
  border       : 1px solid var(--smj-border);
}
.tmp-profile-avatar-img {
  width        : 80px;
  height       : 80px;
  border-radius: 50%;
  object-fit   : cover;
  border       : 3px solid var(--smj-primary);
  flex-shrink  : 0;
}
.tmp-profile-avatar-info h4 {
  margin     : 0 0 4px;
  font-size  : 15px;
  font-weight: 700;
  color      : var(--smj-text);
}
.tmp-profile-avatar-info p {
  margin    : 0 0 10px;
  font-size : 13px;
  color     : var(--smj-muted);
}
.tmp-profile-avatar-choices {
  display  : flex;
  gap      : 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.tmp-profile-avatar-choices label {
  font-size : 13px;
  cursor    : pointer;
  display   : flex;
  align-items: center;
  gap       : 4px;
  color     : var(--smj-text);
}
@media (max-width: 540px) {
  .tmp-profile-avatar-wrap { flex-direction: column; align-items: flex-start; }
}

/* ── 8c. UNREAD BADGE ────────────────────────────────────────────────────── */
.tmp-badge {
  background   : var(--smj-danger);
  color        : var(--smj-white);
  font-size    : 10px;
  font-weight  : 700;
  padding      : 1px 5px;
  border-radius: var(--smj-radius-pill);
  vertical-align: middle;
  line-height  : 1.4;
}

/* ── 9. LISTING STATUS BADGES ───────────────────────────────────────────── */
.tmp-status { display: inline-block; padding: 2px 10px; border-radius: var(--smj-radius-pill); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.tmp-status--publish { background: var(--smj-status-publish-bg); color: var(--smj-status-publish-text); }
.tmp-status--pending { background: var(--smj-status-pending-bg); color: var(--smj-status-pending-text); }
.tmp-status--draft   { background: var(--smj-status-draft-bg);   color: var(--smj-status-draft-text); }

/* ── 10. FAVOURITES ─────────────────────────────────────────────────────── */
.tmp-empty { text-align: center; padding: var(--smj-spacing-xl); color: var(--smj-muted); }

/* ── 11. MESSAGING (tmp-message-*) ─────────────────────────────────────── */
.tmp-messages-list { display: flex; flex-direction: column; gap: var(--smj-spacing-sm); }
.tmp-message-row {
  background   : var(--smj-card-bg);
  border       : 1px solid var(--smj-border);
  border-radius: var(--smj-radius-sm);
  padding      : var(--smj-spacing-md);
}
.tmp-message-row--unread { border-left: 3px solid var(--smj-primary); background: var(--smj-surface); }
.tmp-message-meta  { font-size: 13px; font-weight: 600; color: var(--smj-text); margin-bottom: 4px; }
.tmp-message-product { font-size: 12px; color: var(--smj-muted); margin-bottom: 6px; }
.tmp-message-body  { font-size: 13px; color: var(--smj-text); }

/* ── 12. CATEGORY PILL FILTERS (legacy) ─────────────────────────────────── */
.tmp-cat-filter {
  display     : inline-flex;
  align-items : center;
  gap         : 5px;
  padding     : 6px 14px;
  border-radius: var(--smj-radius-pill);
  border      : 1.5px solid var(--smj-border);
  background  : var(--smj-card-bg);
  color       : var(--smj-text);
  font-size   : 13px;
  font-weight : 600;
  text-decoration: none;
  transition  : var(--smj-transition);
}
.tmp-cat-filter:hover,
.tmp-cat-filter.active {
  background   : var(--smj-cat-active, var(--smj-primary));
  border-color : var(--smj-cat-active, var(--smj-primary));
  color        : var(--smj-white);
}

/* ── 13. RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .tmp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tmp-grid { grid-template-columns: 1fr; }
  .tmp-filter-form { flex-direction: column; }
  .tmp-filter-field { min-width: unset; width: 100%; }
}

/* ── 14. LIST MODE (tmp-grid--list) ─────────────────────────────────────── */
.tmp-grid--list { grid-template-columns: 1fr !important; }
.tmp-card--list { flex-direction: row; }
.tmp-card--list .tmp-card-img-link { width: 220px; min-width: 220px; aspect-ratio: unset; height: 170px; border-radius: var(--smj-radius) 0 0 var(--smj-radius); }
.tmp-card--list .tmp-card-body     { padding: var(--smj-card-pad, 14px); }

/* ── 15. SOCIAL LOGIN ───────────────────────────────────────────────────── */
.smj-social-login-btn {
  display     : inline-flex;
  align-items : center;
  gap         : 8px;
  padding     : 10px 18px;
  border      : 1.5px solid var(--smj-border);
  border-radius: var(--smj-radius-sm);
  background  : var(--smj-card-bg);
  color       : var(--smj-text);
  font-size   : 13px;
  font-weight : 600;
  text-decoration: none;
  transition  : var(--smj-transition);
  cursor      : pointer;
}
.smj-social-login-btn:hover { background: var(--smj-surface); border-color: var(--smj-primary); }
.smj-social-btn--facebook { border-color: var(--smj-fb-color); color: var(--smj-fb-color); }
.smj-social-btn--facebook:hover { background: var(--smj-fb-color); color: var(--smj-white); }

/* ═══════════════════════════════════════════════════════════════════════════
   RADIO & CHECKBOX — restore native appearance, then layer custom styling.
   Critical: these rules must come AFTER the global input reset above so
   they can override width/border/appearance that the reset applies.
   =========================================================================== */

/* ── Hard reset: undo every text-input style that leaks onto radio/checkbox ── */
.tmp-field input[type="radio"],
.tmp-field input[type="checkbox"],
input[type="radio"].tmp-radio-input,
input[type="checkbox"].tmp-checkbox-input {
  /* Undo the global input reset */
  width          : auto      !important;
  height         : auto      !important;
  padding        : 0         !important;
  border         : none      !important;
  border-radius  : 0         !important;
  background     : transparent !important;
  box-shadow     : none      !important;
  appearance     : auto      !important;  /* restore native look */
  -webkit-appearance: auto   !important;
  box-sizing     : border-box;
  cursor         : pointer;
  flex-shrink    : 0;
  /* Native sizing for browsers that support it */
  inline-size    : unset     !important;
}

/* Focus ring on the native control itself */
.tmp-field input[type="radio"]:focus-visible,
.tmp-field input[type="checkbox"]:focus-visible {
  outline       : 2px solid var(--smj-primary);
  outline-offset: 2px;
}

/* ── RADIO group layout ──────────────────────────────────────────────────── */
.tmp-radio-group {
  display        : flex;
  flex-wrap      : wrap;
  gap            : 8px;
  padding        : 2px 0;
  width          : 100%;
}

.tmp-radio-label {
  display        : inline-flex;
  align-items    : center;
  gap            : 8px;
  padding        : 8px 16px;
  border         : 1.5px solid var(--smj-input-border, #e2e8f0);
  border-radius  : var(--smj-radius-pill, 999px);
  cursor         : pointer;
  font-size      : 13px;
  font-weight    : 500;
  color          : var(--smj-text, #1e293b);
  background     : var(--smj-card-bg, #fff);
  transition     : border-color .15s, background .15s, color .15s;
  user-select    : none;
  white-space    : nowrap;
  line-height    : 1.3;
}

.tmp-radio-label:hover {
  border-color   : var(--smj-primary, #1a6fb5);
  color          : var(--smj-primary, #1a6fb5);
  background     : var(--smj-primary-alpha-10, rgba(26,111,181,.10));
}

/* Checked — using :has() (all modern browsers) */
.tmp-radio-label:has(input[type="radio"]:checked) {
  border-color   : var(--smj-primary, #1a6fb5);
  background     : var(--smj-primary, #1a6fb5);
  color          : #fff;
  font-weight    : 700;
}

/* Checked — .is-checked fallback (JS adds this for older browsers) */
.tmp-radio-label.is-checked {
  border-color   : var(--smj-primary, #1a6fb5);
  background     : var(--smj-primary, #1a6fb5);
  color          : #fff;
  font-weight    : 700;
}

/* Hide the native radio dot when it's inside a styled pill label */
.tmp-radio-label input[type="radio"] {
  position       : absolute;
  width          : 1px  !important;
  height         : 1px  !important;
  overflow       : hidden;
  clip           : rect(0,0,0,0);
  white-space    : nowrap;
  border         : 0    !important;
  padding        : 0    !important;
  appearance     : auto !important;
}

/* ── CHECKBOX group layout ───────────────────────────────────────────────── */
.tmp-checkbox-group {
  display        : flex;
  flex-wrap      : wrap;
  gap            : 8px;
  padding        : 2px 0;
  width          : 100%;
}

.tmp-checkbox-label {
  display        : inline-flex;
  align-items    : center;
  gap            : 8px;
  padding        : 8px 14px;
  border         : 1.5px solid var(--smj-input-border, #e2e8f0);
  border-radius  : var(--smj-radius-sm, 8px);
  cursor         : pointer;
  font-size      : 13px;
  font-weight    : 500;
  color          : var(--smj-text, #1e293b);
  background     : var(--smj-card-bg, #fff);
  transition     : border-color .15s, background .15s, color .15s;
  user-select    : none;
  line-height    : 1.3;
}

.tmp-checkbox-label:hover {
  border-color   : var(--smj-primary, #1a6fb5);
  background     : var(--smj-primary-alpha-10, rgba(26,111,181,.10));
}

/* Checkbox inside label — keep native appearance, just size it */
.tmp-checkbox-label input[type="checkbox"] {
  width          : 16px !important;
  height         : 16px !important;
  border         : none !important;
  padding        : 0    !important;
  background     : transparent !important;
  appearance     : auto !important;
  -webkit-appearance: auto !important;
  accent-color   : var(--smj-primary, #1a6fb5);
  cursor         : pointer;
  flex-shrink    : 0;
}

.tmp-checkbox-label:has(input[type="checkbox"]:checked) {
  border-color   : var(--smj-primary, #1a6fb5);
  background     : var(--smj-primary-alpha-10, rgba(26,111,181,.10));
  color          : var(--smj-primary, #1a6fb5);
  font-weight    : 700;
}

/* ── FILTER radio pills (sidebar / top bar) ─────────────────────────────── */
.tmp-filter-radio-group {
  display        : flex;
  flex-wrap      : wrap;
  gap            : 6px;
}

.tmp-filter-radio-label {
  display        : inline-flex;
  align-items    : center;
  gap            : 5px;
  padding        : 5px 12px;
  border         : 1.5px solid var(--smj-input-border, #e2e8f0);
  border-radius  : var(--smj-radius-pill, 999px);
  cursor         : pointer;
  font-size      : 12px;
  font-weight    : 500;
  color          : var(--smj-text, #1e293b);
  background     : var(--smj-card-bg, #fff);
  transition     : all .15s;
  white-space    : nowrap;
  user-select    : none;
}

.tmp-filter-radio-label:hover {
  border-color   : var(--smj-primary, #1a6fb5);
  color          : var(--smj-primary, #1a6fb5);
}

.tmp-filter-radio-label:has(input[type="radio"]:checked),
.tmp-filter-radio-label.is-checked {
  border-color   : var(--smj-primary, #1a6fb5);
  background     : var(--smj-primary, #1a6fb5);
  color          : #fff;
  font-weight    : 700;
}

/* Hide native radio in filter pill labels */
.tmp-filter-radio-label input[type="radio"] {
  position       : absolute;
  width          : 1px  !important;
  height         : 1px  !important;
  overflow       : hidden;
  clip           : rect(0,0,0,0);
  border         : 0    !important;
  padding        : 0    !important;
  appearance     : auto !important;
}

/* ── FILTER checkbox list (sidebar) ─────────────────────────────────────── */
.tmp-filter-checkbox-group {
  display        : flex;
  flex-direction : column;
  gap            : 4px;
  max-height     : 180px;
  overflow-y     : auto;
  padding        : 6px 8px;
  border         : 1px solid var(--smj-border, #e2e8f0);
  border-radius  : var(--smj-radius-sm, 8px);
  background     : var(--smj-surface, #f9fafb);
  scrollbar-width: thin;
}

.tmp-filter-checkbox-label {
  display        : flex;
  align-items    : center;
  gap            : 7px;
  font-size      : 13px;
  color          : var(--smj-text, #1e293b);
  cursor         : pointer;
  padding        : 3px 0;
  transition     : color .12s;
}

.tmp-filter-checkbox-label:hover { color: var(--smj-primary, #1a6fb5); }

.tmp-filter-checkbox-label input[type="checkbox"] {
  width          : 15px !important;
  height         : 15px !important;
  border         : none !important;
  padding        : 0    !important;
  background     : transparent !important;
  appearance     : auto !important;
  -webkit-appearance: auto !important;
  accent-color   : var(--smj-primary, #1a6fb5);
  cursor         : pointer;
  flex-shrink    : 0;
}

/* ── Form section grid ───────────────────────────────────────────────────── */
.tmp-section            { margin-bottom: var(--smj-spacing-lg, 24px); }
.tmp-section-title      { font-size: 15px; font-weight: 700; color: var(--smj-text-heading, #374151); margin: 0 0 var(--smj-spacing-sm, 8px); padding-bottom: var(--smj-spacing-sm, 8px); border-bottom: 1px solid var(--smj-border, #e2e8f0); }
.tmp-section-desc       { font-size: 13px; color: var(--smj-muted, #64748b); margin: 0 0 var(--smj-spacing-md, 16px); }
.tmp-form-grid          { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--smj-spacing-md, 16px); }
.tmp-form-grid--1       { grid-template-columns: 1fr; }
.tmp-form-grid--2       { grid-template-columns: repeat(2,1fr); }
.tmp-form-grid--3       { grid-template-columns: repeat(3,1fr); }

/* Radio, checkbox, textarea, mobile_whatsapp always full-width */
.tmp-field--radio,
.tmp-field--checkbox,
.tmp-field--textarea,
.tmp-field--mobile_whatsapp { grid-column: 1 / -1; }

/* ── Validation error state ─────────────────────────────────────────────── */
.tmp-field.has-error > input[type="text"],
.tmp-field.has-error > input[type="number"],
.tmp-field.has-error > input[type="tel"],
.tmp-field.has-error > input[type="email"],
.tmp-field.has-error > input[type="date"],
.tmp-field.has-error > select,
.tmp-field.has-error > textarea {
  border-color   : var(--smj-danger, #dc2626);
  box-shadow     : 0 0 0 3px rgba(239,68,68,.12);
}
.tmp-field.has-error .tmp-radio-group .tmp-radio-label,
.tmp-field.has-error .tmp-checkbox-group .tmp-checkbox-label {
  border-color   : var(--smj-danger, #dc2626);
}
.tmp-field-error-msg {
  font-size      : 12px;
  color          : var(--smj-danger, #dc2626);
  margin         : 4px 0 0;
  display        : flex;
  align-items    : center;
  gap            : 4px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .tmp-form-grid,
  .tmp-form-grid--2,
  .tmp-form-grid--3      { grid-template-columns: 1fr; }
  .tmp-radio-label,
  .tmp-checkbox-label    { font-size: 12px; padding: 7px 12px; }
  .tmp-radio-group,
  .tmp-checkbox-group    { gap: 6px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUTH FORMS — Login · Register · Lost Password
   Classes emitted by TMP_Dashboard::render_login_form() / render_register_form()
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Outer centering wrapper ── */
.tmp-auth-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px 60px;
  min-height: 60vh;
  box-sizing: border-box;
}

/* ── Card panel ── */
.tmp-auth-box {
  background: #fff;
  border: 1px solid var(--smj-border, #e5e7eb);
  border-radius: var(--smj-radius, 12px);
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  padding: 36px 40px 32px;
  width: 100%;
  max-width: 680px;
  box-sizing: border-box;
}
.tmp-auth-box h2 {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 700;
  color: var(--smj-text, #111827);
  font-family: var(--smj-font, inherit);
}

/* ── Two-column field grid (register) ── */
.tmp-grid.tmp-grid-2,
.tmp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
@media (max-width: 600px) {
  .tmp-grid.tmp-grid-2,
  .tmp-grid-2 { grid-template-columns: 1fr; }
}

/* ── Social login buttons ── */
.tmp-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.tmp-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, box-shadow .15s;
  box-sizing: border-box;
}
.tmp-social-btn--google {
  background: #fff;
  color: #374151;
  border: 1.5px solid #d1d5db;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.tmp-social-btn--google:hover {
  background: #f9fafb;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  color: #111827;
  text-decoration: none;
}
.tmp-social-btn--facebook {
  background: #1877f2;
  color: #fff;
  border: 1.5px solid #1877f2;
}
.tmp-social-btn--facebook:hover {
  background: #166fe5;
  border-color: #166fe5;
  color: #fff;
  text-decoration: none;
}

/* ── Divider between social and email ── */
.tmp-social-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 20px;
  color: var(--smj-muted, #9ca3af);
  font-size: 13px;
}
.tmp-social-divider::before,
.tmp-social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--smj-border, #e5e7eb);
}

/* ── Inline field row (checkbox + forgot password) ── */
.tmp-field--inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.tmp-field--inline label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--smj-text, #374151);
  cursor: pointer;
  margin: 0;
}
.tmp-field--inline input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--smj-primary, #1a6fb5);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Inline text link ── */
.tmp-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--smj-primary, #1a6fb5);
  text-decoration: none;
}
.tmp-link:hover { text-decoration: underline; }

/* ── Footer note (no account / already have one) ── */
.tmp-auth-alt {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--smj-muted, #6b7280);
  text-align: center;
}
.tmp-auth-alt a {
  color: var(--smj-primary, #1a6fb5);
  font-weight: 600;
  text-decoration: none;
}
.tmp-auth-alt a:hover { text-decoration: underline; }

/* ── Form spacing inside auth box ── */
.tmp-auth-box .tmp-form { margin-top: 4px; }
.tmp-auth-box .tmp-field { margin-bottom: 18px; }
.tmp-auth-box .tmp-field:last-child { margin-bottom: 0; }
.tmp-auth-box .tmp-field--inline { margin-bottom: 20px; }

/* ── Submit button full-width override inside auth box ── */
.tmp-auth-box .tmp-btn--full {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* ── Responsive: narrow box on small screens ── */
@media (max-width: 640px) {
  .tmp-auth-wrap  { padding: 24px 12px 40px; }
  .tmp-auth-box   { padding: 24px 20px 20px; }
  .tmp-auth-box h2 { font-size: 18px; margin-bottom: 18px; }
  .tmp-field--inline { flex-direction: column; align-items: flex-start; }
}

/* ── Utility: visually hidden (accessible) ── */
.smj-visually-hidden {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
}

/* ── File input filename label ── */
.tmp-filename-label {
  margin-left: 8px;
  font-size  : 13px;
  color      : var(--smj-muted);
  font-style : italic;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ELEMENTOR COMPATIBILITY
   Prevents double-padding, margin collapse, and specificity fights when
   plugin shortcodes are placed inside Elementor widgets/sections.
   ═══════════════════════════════════════════════════════════════════════════ */

/* When plugin output is inside an Elementor column, let the column
   control padding — zero out the plugin's own horizontal padding */
.elementor-widget-shortcode .smj-listings-wrap,
.elementor-widget-shortcode .tmp-form-wrap,
.elementor-widget-shortcode .tmp-dashboard,
.elementor-widget-shortcode .tmp-auth-wrap {
  padding-left : 0;
  padding-right: 0;
}

/* Auth wrap inside Elementor — remove the min-height so the section
   height is controlled by Elementor's own row min-height setting */
.elementor-widget-shortcode .tmp-auth-wrap {
  min-height: unset;
  padding-top: 0;
  padding-bottom: 0;
}

/* Elementor resets <a> color globally on some themes — restore plugin links */
.smj-listings-wrap a,
.tmp-dashboard a,
.tmp-auth-box a,
.tmp-dash-section a {
  color: inherit;
}
.smj-listings-wrap a:hover,
.tmp-dashboard a:hover { text-decoration: none; }

/* Prevent Elementor's global img max-width:100% from conflicting with
   the Swiper gallery's absolute-positioned slides */
.smj-listings-wrap img { max-width: 100%; height: auto; }

/* ── Warn notice (used in lost-password SMTP tip) ── */
.tmp-notice--warn {
  background  : #fffbeb;
  border      : 1px solid #f59e0b;
  border-radius: var(--smj-radius-sm, 8px);
  padding     : 12px 16px;
  font-size   : 13px;
  color       : #92400e;
  margin-top  : 16px;
}
.tmp-notice--warn strong { color: #78350f; }

/* ── Auth form hint text (lost-password instructions) ── */
.tmp-auth-hint {
  color       : var(--smj-muted, #6b7280);
  font-size   : 14px;
  margin      : 0 0 16px;
  line-height : 1.5;
}

/* ── Dynamic field loading states (category picker AJAX) ── */
.smj-fields-loading {
  padding    : 20px;
  text-align : center;
  color      : var(--smj-muted, #9ca3af);
  font-size  : 14px;
}
.smj-fields-error {
  padding      : 14px 16px;
  color        : var(--smj-danger, #dc2626);
  background   : var(--smj-danger-bg, #fef2f2);
  border-radius: var(--smj-radius-sm, 8px);
  font-size    : 14px;
  margin       : 8px 0;
}


/* ============================================================
 *  FULL-HEIGHT LAYOUT FIX — prevents footer jumping up
 *  when shortcode pages (Post Ad, Favourites, etc.) render
 *  a short/empty state like the login gate card.
 * ============================================================ */

/* Make html+body full height so footer is always pushed down */
html, body {
    height: 100%;
}

/* The theme's main site wrapper — common class names across popular themes */
.site,
#page,
.hfeed,
.site-content,
#content,
.content-area,
.ast-container,
.elementor-section-wrap,
.wp-site-blocks {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* The main content area grows to fill all available space */
.site-content > .content-area,
#primary,
.entry-content,
main.site-main,
#main,
.ast-row,
.elementor-inner,
[class*="content-wrap"],
[class*="page-content"] {
    flex: 1 0 auto;
}

/* Footer never grows — stays at bottom */
.site-footer,
#colophon,
footer.ast-site-footer-wrap,
footer[class*="footer"],
.footer-widget-area {
    flex-shrink: 0;
    margin-top: auto;
}

/* Ensure the login gate card itself fills available space gracefully */
.smj-login-gate-wrap,
.smj-favorites-wrap:empty + .smj-login-gate-wrap {
    flex: 1 0 auto;
    min-height: 60vh;
}
