/* =========================================================
   MOTO LISTING — REDESIGNED LAYOUT
   Two boxes: Box1 = header+filters, Box2 = table
   ========================================================= */

/* ── Outer wrapper ── */
.moto-listing-container {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto 48px !important;
  background: transparent !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  float: none !important;
  position: static !important;
}

/* ── Shared box style ── */
.moto-top-box,
.moto-table-box {
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 4px rgba(15,23,42,0.06), 0 6px 24px rgba(15,23,42,0.08) !important;
  box-sizing: border-box !important;
  width: 100% !important;
  float: none !important;
}

/* ── Box 1: title+counter LEFT | dropdown+search RIGHT ── */
.moto-top-box {
  padding: 24px 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 200 !important;
  min-width: 0 !important;
}

.moto-top-left {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.moto-top-right {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  flex-shrink: 1 !important;
  min-width: 0 !important;
  position: relative !important;
  overflow: visible !important;
  max-width: 420px !important;
}

/* Filter + search side by side */
.moto-filter-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.moto-filter-row .moto-listing-filter-dropdown {
  width: 160px !important;
  flex-shrink: 0 !important;
  height: 42px !important;
}

.moto-filter-row .moto-listing-filter-toggle {
  height: 42px !important;
  line-height: 42px !important;
}

.moto-filter-row .moto-listing-search-wrap {
  flex: 1 !important;
  min-width: 0 !important;
  max-width: 220px !important;
  height: 42px !important;
}

.moto-filter-row .moto-listing-search-input {
  height: 42px !important;
  line-height: 42px !important;
}

.moto-filter-row {
  align-items: stretch !important;
}

/* ── Box 2: table ── */
.moto-table-box {
  padding: 24px 28px 28px !important;
}

/* =========================================================
   HEADING + COUNTER (inside moto-top-left)
   ========================================================= */

.moto-listing-heading {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.moto-listing-counter {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  padding: 0;
}

.moto-listing-counter strong {
  color: #0f172a;
  font-weight: 700;
}

/* =========================================================
   FILTER DROPDOWN — modern clean style
   ========================================================= */

.moto-listing-filter-dropdown {
  position: relative;
  width: 100%;
}

.moto-listing-filter-toggle {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 42px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #374151 !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.moto-listing-filter-toggle:hover {
  border-color: #166534 !important;
  box-shadow: none !important;
}

.moto-listing-filter-dropdown.is-open .moto-listing-filter-toggle {
  border-color: #166534 !important;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12) !important;
  outline: none !important;
}

#motoFilterLabel {
  flex: 1 !important;
  text-align: left !important;
  font-size: 14px !important;
  color: #374151 !important;
}

.moto-listing-filter-chevron {
  color: #9ca3af;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.moto-listing-filter-dropdown.is-open .moto-listing-filter-chevron {
  transform: rotate(180deg);
  color: #166534;
}

/* Dropdown menu — modern card style */
.moto-listing-filter-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 10px 30px -5px rgba(0,0,0,0.1);
  padding: 6px;
  z-index: 99999;
  overflow: hidden;
}

.moto-listing-filter-dropdown.is-open .moto-listing-filter-menu {
  display: block !important;
}

.moto-listing-filter-option {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #374151 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  text-align: left !important;
  font-family: inherit !important;
  transition: background 0.15s ease !important;
}

.moto-listing-filter-option:hover {
  background: #f0fdf4 !important;
  color: #166534 !important;
}

.moto-listing-filter-option.is-selected {
  background: #166534 !important;
  color: #ffffff !important;
  font-weight: 500 !important;
}

.moto-listing-filter-option.is-selected:hover {
  background: #14532d !important;
}

.moto-listing-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  background: #e5e7eb;
  color: #6b7280;
}

.moto-listing-filter-option.is-selected .moto-listing-filter-count {
  background: rgba(255,255,255,0.25) !important;
  color: #ffffff !important;
}

/* =========================================================
   SEARCH INPUT — inside moto-top-right, NO green border
   ========================================================= */

.moto-listing-search-wrap {
  position: relative;
  width: 100%;
}

.moto-listing-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

/* Nuclear override — kills WordPress theme green border */
input#motoTitleSearch,
input.moto-listing-search-input {
  display: block !important;
  width: 100% !important;
  height: 42px !important;
  padding: 0 14px 0 38px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #0f172a !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  outline: 0 !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

input#motoTitleSearch::placeholder,
input.moto-listing-search-input::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

input#motoTitleSearch:hover,
input.moto-listing-search-input:hover {
  border-color: #cbd5e1 !important;
  background: #fff !important;
  box-shadow: none !important;
  outline: 0 !important;
}

input#motoTitleSearch:focus,
input#motoTitleSearch:focus-visible,
input.moto-listing-search-input:focus,
input.moto-listing-search-input:focus-visible {
  border-color: #94a3b8 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(148,163,184,0.18) !important;
  -webkit-box-shadow: 0 0 0 3px rgba(148,163,184,0.18) !important;
  outline: 0 !important;
}

/* =========================================================
   TABLE — dark blue header + borders
   ========================================================= */

.moto-listing-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: none;
}

.moto-listing-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: #ffffff;
  table-layout: fixed;
}

.moto-listing-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  background: #1e293b;
  color: #ffffff;
  padding: 13px 16px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: none;
}

.moto-listing-table thead th:first-child { border-top-left-radius: 10px; }
.moto-listing-table thead th:last-child  { border-top-right-radius: 10px; }

.moto-listing-table tbody tr {
  transition: background 0.15s ease;
}

.moto-listing-table tbody tr:hover {
  background: #f8fafc;
}

.moto-listing-table tbody td {
  padding: 14px 16px;
  border-top: 1px solid #dce8f5;
  vertical-align: middle;
  font-size: 14px;
  color: #0f172a;
}

.moto-listing-empty {
  padding: 32px 16px;
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
}

/* =========================================================
   RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 767px) {
  .moto-listing-container { gap: 12px; margin-bottom: 64px; }
  .moto-top-box {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
  }
  .moto-top-left {
    gap: 4px;
  }
  .moto-listing-heading {
    font-size: 18px;
  }
  .moto-listing-counter {
    font-size: 13px;
  }
  .moto-top-right { 
    width: 100%; 
    max-width: 100%;
    gap: 8px;
  }
  /* ── CRITICAL FIX: Stack filter and search on mobile ── */
  .moto-filter-row {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100%;
  }
  .moto-filter-row .moto-listing-filter-dropdown {
    width: 100% !important;
    flex-shrink: 0;
  }
  .moto-filter-row .moto-listing-search-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }
  .moto-table-box { padding: 16px 16px 20px; border-radius: 12px; }
  .moto-listing-table-wrap { display: none; }
  .moto-listing-mobile-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
}

/* =========================================================
   ALL OTHER ORIGINAL STYLES BELOW (unchanged)
   ========================================================= */

/* =========================================================
   Manager Announcement Styles
   ========================================================= */

.moto-listing-heading {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

/* .moto-listing-container overridden above */

/* =========================================================
   Filter Section Header
   ========================================================= */

.moto-listing-filter-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
}

/* =========================================================
   Filter Dropdown (search bar style)
   ========================================================= */



.moto-listing-filter-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.moto-listing-filter-toggle:hover {
  border-color: rgba(15, 23, 42, 0.35);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.moto-listing-filter-dropdown:hover .moto-listing-filter-toggle,
.moto-listing-filter-dropdown.is-open .moto-listing-filter-toggle {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.moto-listing-filter-toggle svg:first-child {
  color: #94a3b8;
  flex-shrink: 0;
}

.moto-listing-filter-toggle #motoFilterLabel {
  flex: 1;
  text-align: left;
}

.moto-listing-filter-chevron {
  color: #64748b;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.moto-listing-filter-dropdown:hover .moto-listing-filter-chevron,
.moto-listing-filter-dropdown.is-open .moto-listing-filter-chevron {
  transform: rotate(180deg);
}





.moto-listing-filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-align: left;
  line-height: 1.3;
}

.moto-listing-filter-option:hover {
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
}

.moto-listing-filter-option.is-selected {
  background: #15803d;
  color: #fff;
}

.moto-listing-filter-option.is-selected:hover {
  background: #1e293b;
  color: #fff;
}

.moto-listing-filter-option.is-selected .moto-listing-filter-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.moto-listing-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #64748b;
  line-height: 1;
}

/* =========================================================
   Dynamic Counter
   ========================================================= */

.moto-listing-counter {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
  padding: 0;
}

.moto-listing-counter strong {
  color: #0f172a;
  font-weight: 700;
}

/* =========================================================
   Search Bar — same visual theme as the filter toggle
   ========================================================= */

.moto-listing-search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 340px;
}

.moto-listing-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.moto-listing-search-input {
  display: flex;
  align-items: center;
  width: 100%;
  /* match .moto-listing-filter-toggle padding exactly */
  padding: 10px 16px 10px 40px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 10px;
  outline: none;
  cursor: text;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
  /* match filter-toggle font */
  font-family: inherit;
  text-align: center;
}

.moto-listing-search-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
  text-align: center;
  opacity: 1;
}

.moto-listing-search-input:hover {
  border-color: rgba(15, 23, 42, 0.35);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.moto-listing-search-wrap:focus-within .moto-listing-search-input {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.moto-listing-search-wrap:focus-within .moto-listing-search-icon {
  color: #0f172a;
}

/* Hide browser-native clear (×) button on type="search" */
.moto-listing-search-input::-webkit-search-cancel-button,
.moto-listing-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* =========================================================
   Table
   ========================================================= */



.moto-listing-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  background: #1e293b;
  color: #fff;
  padding: 14px 16px;
  white-space: nowrap;
}

.moto-listing-table thead th:first-child {
  border-top-left-radius: 12px;
}

.moto-listing-table thead th:last-child {
  border-top-right-radius: 12px;
}

.moto-listing-table tbody td {
  padding: 14px 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  vertical-align: middle;
  font-size: 14px;
  color: #0f172a;
}

.moto-listing-empty {
  padding: 18px 16px;
  color: rgba(15, 23, 42, 0.7);
}

/* =========================================================
   Annonce Column — Horizontal Card Layout
   ========================================================= */

.moto-listing-annonce {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.moto-listing-annonce-img {
  flex-shrink: 0;
  width: 110px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}

.moto-listing-thumb {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.06);
  border: none;
  display: block;
}

.moto-listing-thumb--placeholder {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
  border: none;
}

.moto-listing-annonce-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.moto-listing-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: #0f172a;
  word-break: break-word;
}

.moto-listing-price {
  font-weight: 700;
  font-size: 14px;
  color: #16a34a;
  line-height: 1.3;
}

/* =========================================================
   Status Badges
   ========================================================= */

.moto-listing-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1;
  border: 1px solid transparent;
  text-transform: lowercase;
  white-space: nowrap;
}

.moto-listing-badge--pending {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.25);
}

.moto-listing-badge--active {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.25);
}

.moto-listing-badge--sold {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.25);
}

.moto-listing-badge--inactive {
  background: rgba(148, 163, 184, 0.25);
  color: #334155;
  border-color: rgba(148, 163, 184, 0.35);
}

.moto-listing-badge--expired {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.25);
}

.moto-listing-badge--rejected {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.25);
}

.moto-listing-badge--validated {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.25);
}

/* =========================================================
   Dates
   ========================================================= */

.moto-listing-dates {
  font-size: 13px;
}

.moto-listing-date-line {
  margin-bottom: 4px;
}

.moto-listing-date-label {
  color: #64748b;
  font-weight: 500;
}

.moto-listing-date-value {
  color: #0f172a;
  font-weight: 600;
}

/* =========================================================
   Action Stacked — Vertical buttons (replaces dropdown)
   ========================================================= */

.moto-action-stacked {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}

/* Menu items (reused class from old dropdown) */
.moto-action-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-align: left;
  line-height: 1.3;
  text-decoration: none;
  box-sizing: border-box;
}

.moto-action-menu-item svg {
  flex-shrink: 0;
  color: #64748b;
  transition: color 0.15s ease;
}

.moto-action-menu-item:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.25);
}

.moto-action-menu-item:hover svg {
  color: #0f172a;
}

/* Reject item — red on hover */
.moto-action-menu-item[data-action="reject"]:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.2);
}

.moto-action-menu-item[data-action="reject"]:hover svg {
  color: #dc2626;
}

/* Delete item — red on hover */
.moto-action-menu-item[data-action="delete"]:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.2);
}

.moto-action-menu-item[data-action="delete"]:hover svg {
  color: #dc2626;
}

.moto-action-menu-item:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.moto-boost-btn,
.moto-boost-btn--prolong,
.moto-boost-btn--boost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 20px;
  transition: all 0.2s ease;
  cursor: pointer;
  /* No shared background/color — each variant defines its own theme color */
}

/* Prolonger +15j — dark green */
.moto-boost-btn--prolong {
  background: #166534 !important;
  border-color: #166534 !important;
  color: #fff !important;
  border-radius: 20px !important;
  width: 100% !important;
  min-width: 180px !important;
  padding: 14px 24px !important;
  font-size: 15px !important;
}
.moto-boost-btn--prolong:hover {
  background: #14532d !important;
  border-color: #14532d !important;
  color: #fff !important;
}

/* Booster — green */
.moto-boost-btn--boost {
  background: #15803d !important;
  border-color: #15803d !important;
  color: #fff !important;
  border-radius: 20px !important;
  width: 100% !important;
  min-width: 180px !important;
  padding: 14px 24px !important;
  font-size: 15px !important;
}
.moto-boost-btn--boost:hover {
  background: #166534 !important;
  border-color: #166534 !important;
  color: #fff !important;
}

.moto-boost-btn,
.moto-boost-btn--prolong,
.moto-boost-btn--boost {
  position: relative;
}

/* Never apply browser-native gray on boost/prolong buttons when disabled */
.moto-boost-btn:disabled,
.moto-boost-btn--prolong:disabled,
.moto-boost-btn--boost:disabled,
.moto-listing-columns .moto-boost-btn[disabled] {
  background: inherit !important;
  border-color: inherit !important;
  color: inherit !important;
  opacity: inherit !important;
  box-shadow: none !important;
}

/* is-busy: replaces disabled during AJAX — keeps full theme color, only dims slightly */
.moto-boost-btn.is-busy,
.moto-boost-btn--prolong.is-busy,
.moto-boost-btn--boost.is-busy {
  opacity: 0.65;
  cursor: wait;
  pointer-events: none;
}

.moto-boost-controls.moto-boost-disabled {
  opacity: 1;
}

/* Rejected/inactive: dim slightly but keep theme color */
.moto-boost-controls.moto-boost-disabled .moto-boost-btn,
.moto-boost-controls.moto-boost-disabled .moto-boost-btn--prolong,
.moto-boost-controls.moto-boost-disabled .moto-boost-btn--boost {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.moto-action-menu-item.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.moto-action-menu-item.is-loading::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: auto;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: moto-listing-spinner 0.6s linear infinite;
}

/* is-loading on boost/prolong: spinner but keep theme color fully */
.moto-boost-btn.is-loading,
.moto-boost-btn--prolong.is-loading,
.moto-boost-btn--boost.is-loading {
  opacity: 0.75;
  pointer-events: none;
  cursor: wait;
  position: relative;
}

/* =========================================================
   Pagination — Smooth & Modern
   ========================================================= */

.moto-listing-pagination {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  padding: 16px 0;
}

.moto-listing-pagination-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 6px;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background: rgba(15, 23, 42, 0.03);
  border-radius: 12px;
}

.moto-listing-pagination-item {
  display: inline-flex;
}

.moto-listing-pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  min-width: 42px;
  height: 42px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
}

.moto-listing-pagination-link:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.moto-listing-pagination-link:active {
  transform: translateY(0);
  box-shadow: none;
}

.moto-listing-pagination-current {
  background: #1e293b;
  color: #fff;
  border-color: #0f172a;
  cursor: default;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.moto-listing-pagination-current:hover {
  background: #0f172a;
  border-color: #0f172a;
  transform: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.moto-listing-pagination-prev,
.moto-listing-pagination-next {
  font-weight: 600;
  padding: 8px 16px;
  letter-spacing: 0.01em;
  color: #0f172a;
}

.moto-listing-pagination-prev:hover,
.moto-listing-pagination-next:hover {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.moto-listing-pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  color: rgba(15, 23, 42, 0.35);
  font-weight: 600;
  letter-spacing: 2px;
}

/* Smooth table content transition on page change */
.moto-listing-container.moto-listing-loading .moto-listing-table tbody {
  opacity: 0.35;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.moto-listing-table tbody {
  opacity: 1;
  transition: opacity 0.25s ease;
}

.moto-listing-container.moto-listing-loading .moto-listing-mobile-cards {
  opacity: 0.35;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.moto-listing-mobile-cards {
  transition: opacity 0.25s ease;
}

/* =========================================================
   Notifications
   ========================================================= */

.moto-listing-notification {
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: moto-listing-slide-down 0.3s ease;
}

@keyframes moto-listing-slide-down {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.moto-listing-notification--success {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.moto-listing-notification--success::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #15803d;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

.moto-listing-notification--error {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.moto-listing-notification--error::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #dc2626;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

@keyframes moto-listing-spinner {
  to { transform: rotate(360deg); }
}

/* =========================================================
   Delete Confirmation Modal — Centered Popup
   ========================================================= */

.moto-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.moto-modal.is-open {
  display: flex;
}

.moto-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
  animation: moto-modal-fade-in 0.25s ease;
}

@keyframes moto-modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.moto-modal-content {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.18);
  max-width: 360px;
  width: 90%;
  overflow: visible;
  animation: moto-modal-slide-in 0.25s ease;
}

@keyframes moto-modal-slide-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.moto-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.moto-modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.moto-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #64748b;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.moto-modal-close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.moto-modal-body {
  padding: 12px 16px;
}

.moto-delete-question {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
}

.moto-delete-reasons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.moto-delete-reason-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.moto-delete-reason-label:hover {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.2);
}

.moto-delete-reason-radio {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #dc2626;
}

.moto-delete-reason-label span {
  font-size: 12px;
  color: #334155;
  line-height: 1.3;
}

.moto-delete-reason-label:has(input:checked) {
  background: rgba(239, 68, 68, 0.08);
  border-color: #dc2626;
}

.moto-delete-reason-label:has(input:checked) span {
  color: #dc2626;
  font-weight: 600;
}

.moto-delete-error {
  padding: 12px;
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.moto-modal-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.02);
  border-radius: 0 0 16px 16px;
}

.moto-modal-btn {
  flex: 1;
  max-width: 200px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.moto-modal-btn--cancel {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.moto-modal-btn--cancel:hover {
  background: rgba(15, 23, 42, 0.12);
  border-color: rgba(15, 23, 42, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.moto-modal-btn--delete {
  background: #dc2626;
  color: #fff;
  border: 1px solid #dc2626;
}

.moto-modal-btn--delete:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.moto-modal-btn--delete:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.moto-modal-btn--warning {
  background: #f97316;
  color: #fff;
  border: 1px solid #f97316;
}

.moto-modal-btn--warning:hover {
  background: #ea580c;
  border-color: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.moto-modal-btn--warning:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* =========================================================
   Boost Column & Buttons
   ========================================================= */

.moto-listing-boost-cell {
  width: 240px;
  min-width: 200px;
}

.moto-boost-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.moto-boost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #0f172a;
  background: #1e293b;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border-radius: 0;
  text-transform: none;
}

.moto-boost-btn:disabled,
.moto-boost-btn--prolong:disabled,
.moto-boost-btn--boost:disabled {
  /* Never let the browser apply gray — theme colors always preserved */
  background: inherit !important;
  border-color: inherit !important;
  color: inherit !important;
  opacity: inherit !important;
  cursor: not-allowed;
  pointer-events: none;
}

/* Disabled boost controls for rejected announcements */
.moto-boost-disabled {
  position: relative;
  pointer-events: none;
}

.moto-boost-disabled .moto-boost-btn,
.moto-boost-disabled .moto-boost-btn--prolong,
.moto-boost-disabled .moto-boost-btn--boost {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  /* Theme colors preserved — no gray override */
}

.moto-boost-disabled .moto-boost-available,
.moto-boost-disabled .moto-boost-countdown,
.moto-boost-disabled .moto-boost-message {
  opacity: 0.4;
}

.moto-boost-available {
  font-size: 12px;
  color: #64748b;
}

.moto-boost-message--empty {
  font-size: 12px;
  color: #dc2626;
}

.moto-boost-countdown {
  font-size: 0.75rem;
  line-height: 1.2;
  color: #227531;
  margin-top: 0.35em;
}

/* =========================================================
   Boost Badge on Image
   ========================================================= */

.moto-boost-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  z-index: 2;
  border-radius: 6px;
  line-height: 1;
}

.moto-boost-badge svg {
  flex-shrink: 0;
}

.moto-boost-badge--alaune {
  background: linear-gradient(135deg, #fde68a, #facc15);
  color: #92400e;
  border: 1px solid rgba(250, 204, 21, 0.4);
}

.moto-boost-badge--urgent {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  color: #991b1b;
  border: 1px solid rgba(252, 165, 165, 0.5);
}

/* =========================================================
   Boost Modal Content
   ========================================================= */

.moto-boost-modal-content {
  max-width: 460px;
}

.moto-boost-modal-header .moto-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.moto-boost-modal-header .moto-modal-title svg {
  color: #0f172a;
}

.moto-boost-subtitle {
  margin: 0 0 20px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.moto-boost-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.moto-boost-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 2px solid rgba(15, 23, 42, 0.1);
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.moto-boost-option:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.25);
}

.moto-boost-option.is-selected {
  background: #0f172a;
  border-color: #0f172a;
}

.moto-boost-option.is-selected .moto-boost-option-title,
.moto-boost-option.is-selected .moto-boost-option-desc {
  color: #fff;
}

.moto-boost-option.is-selected .moto-boost-option-icon {
  background: rgba(255, 255, 255, 0.15);
}

.moto-boost-option.is-selected .moto-boost-option-icon svg {
  color: #fff;
}

.moto-boost-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 0;
}

.moto-boost-option-icon--alaune {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.moto-boost-option-icon--alaune svg {
  color: #92400e;
}

.moto-boost-option-icon--urgent {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
}

.moto-boost-option-icon--urgent svg {
  color: #991b1b;
}

.moto-boost-option-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.moto-boost-option-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.moto-boost-option-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.moto-boost-selected {
  margin-top: 10px;
  font-size: 13px;
  color: #0f172a;
  font-weight: 500;
}

.moto-boost-error {
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 13px;
  color: #dc2626;
  background: rgba(239, 68, 68, 0.06);
  border-radius: 0;
}

.moto-boost-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 12px;
  font-size: 12px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0;
}

.moto-boost-info svg {
  flex-shrink: 0;
  color: #94a3b8;
}

/* Confirm button (dark theme, not red) */
.moto-modal-btn--confirm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e293b;
  color: #fff;
  border-color: #0f172a;
}

.moto-modal-btn--confirm:hover {
  background: #1e293b;
  border-color: #1e293b;
}

/* =========================================================
   Mobile Cards — hidden on desktop
   ========================================================= */

.moto-listing-mobile-cards {
  display: none;
}

.moto-listing-empty-mobile {
  padding: 24px 16px;
  text-align: center;
  color: rgba(15, 23, 42, 0.7);
  font-size: 14px;
}

/* =========================================================
   Responsive — Mobile (≤768px)
   Card layout — true 2 × 2 grid:
     Col 1 (left)  = Section 1: image + title + price  (row 1)
                   = Section 3: date + status           (row 2)
     Col 2 (right) = Section 2: name + action buttons  (row 1)
                   = Section 4: boost controls          (row 2)
   ========================================================= */

@media (max-width: 768px) {

  /* ── Filter bar ── */
  .moto-listing-filter-section {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .moto-listing-filter-dropdown {
    max-width: 100%;
    min-width: 100%;
  }

  /* ── Search bar — full width below header elements ── */
  .moto-listing-search-wrap {
    max-width: 100%;
    min-width: 100%;
    order: 3;
  }

  /* ── Switch table ↔ cards ── */
  .moto-listing-table-wrap { display: none; }
  .moto-listing-mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  /* ══════════════════════════════════════════
     CARD SHELL — 2 columns, 2 rows
     ══════════════════════════════════════════ */
  .moto-mobile-card {
    display: grid;
    grid-template-columns: 1fr 1fr;   /* equal left / right */
    grid-template-rows: auto auto;    /* top row / bottom row */
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
    overflow: hidden;
  }

  /* ══════════════════════════════════════════
     SECTION 1 — top-left: image + title + price
     ══════════════════════════════════════════ */
  .moto-mobile-section-title-price {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    min-width: 0;
    overflow: hidden;
  }

  .moto-mobile-card-img {
    width: 70px;
    height: 70px;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 10px;
  }
  .moto-mobile-card-img .moto-listing-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
  }
  .moto-mobile-card-img .moto-listing-thumb--placeholder {
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 50%;
    display: block;
  }

  .moto-mobile-card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 9px 10px 11px;
  }

  .moto-mobile-card-title {
    display: block;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.4;
    color: #0f172a;
    word-break: break-word;
    text-decoration: none;
  }
  .moto-mobile-card-title:hover { opacity: 0.75; }

  .moto-mobile-card-price {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #16a34a;
    line-height: 1.3;
    text-decoration: none;
  }

  /* ══════════════════════════════════════════
     SECTION 2 — top-right: announcer name + actions
     ══════════════════════════════════════════ */
  .moto-mobile-section-name-actions {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 11px 11px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    min-width: 0;
    overflow: hidden;
  }

  /* Announcer name — top of section 2 */
  .moto-mobile-announcer-name {
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    word-break: break-word;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }

  /* Action buttons stack */
  .moto-mobile-card-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .moto-mobile-card-actions .moto-action-menu-item {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    text-align: left;
    line-height: 1.3;
    text-decoration: none;
    box-sizing: border-box;
  }
  .moto-mobile-card-actions .moto-action-menu-item svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: #64748b;
    transition: color 0.15s;
  }
  .moto-mobile-card-actions .moto-action-menu-item:hover {
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.2);
  }
  .moto-mobile-card-actions .moto-action-menu-item:hover svg { color: #0f172a; }
  .moto-mobile-card-actions .moto-action-menu-item[data-action="delete"]:hover,
  .moto-mobile-card-actions .moto-action-menu-item[data-action="reject"]:hover {
    background: rgba(239, 68, 68, 0.07);
    border-color: rgba(239, 68, 68, 0.2);
    color: #dc2626;
  }
  .moto-mobile-card-actions .moto-action-menu-item[data-action="delete"]:hover svg,
  .moto-mobile-card-actions .moto-action-menu-item[data-action="reject"]:hover svg { color: #dc2626; }
  .moto-mobile-card-actions .moto-action-menu-item:disabled {
    opacity: 0.4;
    pointer-events: none;
  }

  /* ══════════════════════════════════════════
     SECTION 3 — bottom-left: date + status
     ══════════════════════════════════════════ */
  .moto-mobile-section-date-status {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px 10px 12px;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
  }

  .moto-mobile-card-date-line {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }
  .moto-mobile-card-date-label {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .moto-mobile-card-date-value {
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
  }
  .moto-mobile-section-date-status .moto-listing-badge {
    align-self: flex-start;
    font-size: 10px;
    padding: 3px 8px;
  }

  /* ══════════════════════════════════════════
     SECTION 4 — bottom-right: boost controls
     ══════════════════════════════════════════ */
  .moto-mobile-section-boost {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 11px 12px;
  }

  .moto-mobile-boost-label {
    font-size: 9px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .moto-mobile-section-boost .moto-boost-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
  }

  .moto-mobile-section-boost .moto-boost-btn--prolong,
  .moto-mobile-section-boost .moto-boost-btn--boost {
    width: 100%;
    padding: 8px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .moto-mobile-section-boost .moto-boost-available {
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
  }
  .moto-mobile-section-boost .moto-boost-countdown {
    font-size: 11px;
    color: #227531;
    font-weight: 500;
    line-height: 1.3;
  }
  .moto-mobile-section-boost .moto-boost-message--empty {
    font-size: 11px;
    color: #dc2626;
    line-height: 1.3;
  }

  /* ── Pagination ── */
  .moto-listing-pagination-link {
    padding: 6px 10px;
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .moto-listing-pagination {
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 0 6px 10px;
  }

  /* ── Modal ── */
  .moto-modal-content {
    max-width: calc(100% - 32px);
    width: calc(100% - 32px);
  }
  .moto-modal-header { padding: 16px 20px; }
  .moto-modal-title  { font-size: 16px; }
  .moto-modal-body   { padding: 20px; }
  .moto-delete-question  { font-size: 13px; margin-bottom: 16px; }
  .moto-delete-reasons   { gap: 10px; margin-bottom: 16px; }
  .moto-delete-reason-label { padding: 10px; font-size: 12px; }
  .moto-modal-footer {
    padding: 10px 16px;
    flex-direction: column;
    gap: 10px;
  }
  .moto-modal-btn {
    padding: 11px 14px;
    font-size: 13px;
    max-width: 100%;
  }

  /* ── Misc ── */
  .moto-listing-container { margin-bottom: 90px; }
  footer, .site-footer, .footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    white-space: normal;
  }
  footer a, .site-footer a, .footer a {
    width: auto;
    min-width: 0;
    display: inline-block;
  }
}

/* =========================================================
   Clickable links in Annonce column
   ========================================================= */

.moto-listing-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.moto-listing-link:hover {
  opacity: 0.75;
}


/* Kill ALL blue highlights on click in table */
.moto-listing-table tbody tr:focus,
.moto-listing-table tbody tr:active,
.moto-listing-table tbody td:focus,
.moto-listing-table tbody td:active,
.moto-listing-table tbody a:focus,
.moto-listing-table tbody a:active,
.moto-listing-container a:focus,
.moto-listing-container a:active,
.moto-listing-container button:focus,
.moto-listing-container *:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
  -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
}

.moto-listing-table tbody tr:focus-within {
  background: transparent !important;
  outline: none !important;
}

/* Kill blue highlight / tap color on click everywhere in listing */
.moto-listing-container *,
.moto-listing-container *:focus,
.moto-listing-container *:active,
.moto-listing-container a,
.moto-listing-container a:focus,
.moto-listing-container a:active,
.moto-listing-container td,
.moto-listing-container td:focus,
.moto-listing-container td:active,
.moto-listing-container tr,
.moto-listing-container tr:focus,
.moto-listing-container tr:active {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  tap-highlight-color: transparent !important;
}

.moto-listing-table tbody tr:active,
.moto-listing-table tbody td:active,
.moto-listing-table tbody tr:focus,
.moto-listing-table tbody td:focus {
  background: transparent !important;
  outline: none !important;
}

.moto-listing-link:focus,
.moto-listing-link:active {
  outline: none !important;
  background: transparent !important;
  -webkit-tap-highlight-color: transparent !important;
}


a.moto-listing-title {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
}

a.moto-listing-price {
  display: block;
  color: #16a34a !important;
}

a.moto-mobile-card-title {
  display: block;
  font-weight: 600;
  color: #0f172a;
}

/* =========================================================
   Username under price
   ========================================================= */

.moto-listing-username {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.3;
}
/* Pagination reinit patch */
.moto-listing-pagination a[data-page] {
  cursor: pointer;
}

/* Search loading indicator */
.moto-listing-search-wrap.is-loading::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid #e2e8f0;
  border-top-color: #166534;
  border-radius: 50%;
  animation: moto-spin 0.6s linear infinite;
}

@keyframes moto-spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* Fade table while loading */
.moto-listing-container.moto-listing-loading .moto-listing-table tbody {
  opacity: 0.4;
  pointer-events: none;
}

/* =========================================================
   LIVE SEARCH RESULTS OVERLAY
   ========================================================= */

.moto-live-results {
  display: none;
  margin-bottom: 16px;
  animation: moto-fade-in 0.15s ease;
}

@keyframes moto-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.moto-live-count {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 10px;
  padding: 0 2px;
}

.moto-live-empty {
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.moto-live-results .moto-listing-table {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

mark.moto-highlight {
  background: #fef08a;
  color: #0f172a;
  border-radius: 2px;
  padding: 0 1px;
  font-style: normal;
}