/* Listele de mașini pe mobil (lista_mobil.php): cardurile, filtrele, sortarea; și „Ultimele vizualizate” din detalii. */
.lm { display: none; }
@media only screen and (max-width: 999px) {
  /* pe mobil lista veche (bara WhatsApp, căutare avansată, lista, paginarea) e înlocuită de .lm */
  .navigare.nomobilex, #filtrare-buton, #searchform, #carform, #euro.fifty { display: none !important; }
  body { background: #f1f1f3; }
  .lm { display: block; padding: 4px 16px 8px; color: #0b2350;
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
  .lm *, .lm *::before, .lm *::after { box-sizing: border-box; }
  .lm :where(button) { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .lm [hidden] { display: none !important; }
  .lm-cale { font-size: 13px; color: #64748b; margin: 6px 0 4px; }
  .lm-cale a { color: #64748b; text-decoration: none; }
  .lm-cale i { font-style: normal; margin: 0 2px; }
  .lm-titlu { margin: 0; font-size: clamp(24px, 7.4vw, 31px); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; color: #071738; }
  .lm-sub { margin: 4px 0 12px; font-size: 13px; color: #64748b; }
  .lm-bara { position: relative; display: flex; align-items: center; height: 48px; border-bottom: 1px solid #dfe3ea; }
  .lm-filtre { display: inline-flex; align-items: center; gap: 8px; height: 100%; padding-right: 14px; font-size: 15px; font-weight: 700; color: #071738; }
  .lm-nrf { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #0044cf; color: #fff; font-size: 11px; }
  .lm-sep { flex: none; width: 1px; height: 26px; background: #d5d9e1; }
  .lm-file { flex: 1; display: flex; justify-content: center; gap: clamp(8px, 4vw, 22px); height: 100%; }
  .lm-fila { position: relative; height: 100%; padding: 0 10px; font-size: 15px; font-weight: 600; color: #475569; }
  .lm-fila.is-on { font-weight: 800; color: #071738; }
  .lm-fila.is-on::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: -1px; height: 3px; border-radius: 2px; background: #0044cf; }
  .lm-sort-w { position: relative; height: 100%; }
  .lm-sort { display: grid; place-items: center; width: 44px; height: 100%; color: #071738; }
  .lm-meniu { position: absolute; right: 0; top: 46px; z-index: 30; width: 200px; padding: 6px 0; background: #fff; border: 1px solid #e3e8f2; border-radius: 14px;
    box-shadow: 0 1px 2px rgba(11,35,80,.06), 0 12px 32px -8px rgba(11,35,80,.14); }
  .lm-meniu button { display: block; width: 100%; padding: 11px 16px; text-align: left; font-size: 15px; font-weight: 600; color: #475569; }
  .lm-meniu button.is-on { color: #0044cf; }
  .lm-panou { margin: 10px 0 0; padding: 14px; background: #fff; border: 1px solid #e3e8f2; border-radius: 14px; }
  .lm-pt { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #071738; }
  .lm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
  .lm-chip { height: 34px; padding: 0 14px !important; border: 1px solid #d5d9e1 !important; border-radius: 999px; font-size: 14px; font-weight: 600; color: #071738; background: #fff !important; }
  .lm-chip[aria-pressed="true"] { border-color: #0044cf !important; background: #e6ecfb !important; color: #0044cf; }
  .lm-pact { display: flex; gap: 10px; }
  .lm-reset, .lm-aplica { flex: 1; height: 42px; border-radius: 10px; font-size: 14px; font-weight: 700; }
  .lm-reset { border: 1px solid #d5d9e1 !important; }
  .lm-aplica { background: #0044cf !important; color: #fff !important; }
  .lm-nota { margin: 10px 0 12px; font-size: 13px; color: #475569; }
  .lm-lista { display: grid; gap: 10px; }
  .lm-card { display: flex; min-height: 132px; overflow: hidden; background: #fff; border: 1px solid #e2e1e6; border-radius: 14px; text-decoration: none; color: inherit;
    box-shadow: 0 1px 2px rgba(11,35,80,.04); }
  .lm-foto { position: relative; flex: 0 0 58%; min-height: 132px; overflow: hidden; background: #e9ebef; }
  .lm-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .lm-foto::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 18%; background: linear-gradient(to right, rgba(255,255,255,0), #fff); }
  .lm-auto { position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px 0 3px; border-radius: 999px;
    background: #e6ecfb; font-size: 12px; font-weight: 700; line-height: 1; color: #0b2350; }
  .lm-auto img { width: 20px; height: 20px; }
  .lm-info { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 8px 8px 9px 4px; }
  .lm-nume { font-size: 17px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: #071738; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .lm-sim { margin-top: 1px; font-size: 10.5px; color: #475569; }
  .lm-spec { margin-top: 3px; font-size: 11.5px; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lm-pret { margin-top: 3px; line-height: 1; white-space: nowrap; }
  .lm-pret small { font-size: 12.5px; color: #071738; }
  .lm-pret b { font-size: 23px; font-weight: 800; letter-spacing: -.02em; color: #071738; }
  /* rândul gol de sub preț (în locul textului „în extrasezon”): într-un flex un <br> nu ocupă loc, de aceea un span gol de înălțimea vechiului rând */
  .lm-rand { display: block; height: 17px; }
  .lm-btn { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 30px; border-radius: 7px; background: #0044cf; color: #fff;
    font-size: 13.5px; font-weight: 700; }
  .lm-gol { margin: 20px 0; text-align: center; color: #475569; font-size: 14px; }
  #lmSentinel { height: 1px; }
  .lm-mai { display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; margin: 14px 0 0;
    border: 1.5px solid #000d3b !important; border-radius: 12px; background: #fff !important; font-size: 15px; font-weight: 800; color: #071738; }
  .lm-mai[hidden] { display: none !important; }
  .lm-ajutor { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 6px; font-size: 14.5px; color: #334155; }
  .lm-ajutor a { color: #12a150; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
}
@media only screen and (max-width: 359px) {
  .lm-foto { flex-basis: 52%; }
  .lm-pret b { font-size: 20px; }
}

/* sub listă: ordinea implicită și pozele AI */
.lm-info-jos { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: #64748b; text-align: center; }
