/* ============================================================
   Moteur de recherche voiture — 851:4571 (barre) · 1059:8060 (panneaux) · 869:4614 / 1355:16318 (mobile)
   ============================================================ */
.lv-mt{font-family:var(--lv-font);position:relative;margin:0;}
.lv-mt *{box-sizing:border-box;}
.lv-mt button{font-family:var(--lv-font);margin:0;box-shadow:none;letter-spacing:0;text-transform:none;line-height:normal;}
.lv-mt p{margin:0;padding:0;}
.lv-mt ul{list-style:none;margin:0;padding:0;}
.lv-mt li{list-style:none;margin:0;}
.lv-mt svg{display:block;flex:none;}
.lv-mt [hidden]{display:none!important;}

/* ---------- barre (bureau) ---------- */
.lv-mt__bar{display:flex;align-items:center;background:#fff;border-radius:14px;padding:14px;position:relative;}
.lv-mt__field{flex:0 1 auto;min-width:0;display:flex;flex-direction:column;gap:5px;padding:6px 18px 6px 22px;position:static;}
.lv-mt__field--zone{width:232px;}
.lv-mt__field--type{width:186px;}
.lv-mt__field--date{width:216px;padding-right:16px;}
.lv-mt__field--qui{width:155px;}
.lv-mt__btn{display:flex;flex-direction:column;align-items:flex-start;gap:5px;background:none!important;border:0!important;padding:0!important;cursor:pointer;text-align:left;border-radius:0!important;}
.lv-mt__field > .lv-mt__btn{margin:-6px -18px -6px -22px!important;padding:6px 18px 6px 22px!important;}
.lv-mt__lbl{font-size:10px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--lv-muted);line-height:normal;white-space:nowrap;}
.lv-mt__val{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--lv-ink);line-height:normal;white-space:nowrap;}
.lv-mt__val > span{overflow:hidden;text-overflow:ellipsis;}
.lv-mt__val svg,.lv-mt__sub-btn svg{width:9px;height:5.5px;transform:rotate(180deg);}
.lv-mt__val--dt{gap:10px;}
.lv-mt__sub-btn{min-width:0;overflow:hidden;display:flex;align-items:center;gap:7px;background:none!important;border:0!important;padding:0!important;font-size:14px;font-weight:600;color:var(--lv-ink);cursor:pointer;white-space:nowrap;border-radius:0!important;}
.lv-mt__sub-btn:first-child svg{display:none;}
.lv-mt__filet{width:1px;height:15px;background:var(--lv-line);flex:none;}
.lv-mt__sep{flex:none;width:1px;height:44px;background:var(--lv-line);}
.lv-mt__field--qui + .lv-mt__go,.lv-mt__go{margin-left:auto;}
.lv-mt__go{flex:none;width:163px!important;min-width:163px;height:54px!important;border:0!important;border-radius:10px!important;background:var(--lv-green)!important;color:#fff!important;font-size:15px!important;font-weight:600!important;cursor:pointer;padding:0!important;}
.lv-mt__go:hover{background:var(--lv-green-dk)!important;}
.lv-mt__btn:hover .lv-mt__val,.lv-mt__sub-btn:hover{color:var(--lv-green-dk);}
.lv-mt__btn[aria-expanded="true"] .lv-mt__lbl{color:var(--lv-green);}
.lv-mt__err{margin-top:10px!important;font-size:13px;font-weight:600;color:#fff;background:var(--lv-terra);border-radius:8px;padding:8px 12px!important;display:inline-block;}

/* ---------- panneaux (bureau : surcouche sous la barre) ---------- */
.lv-mt__panel{position:absolute;top:calc(100% + 8px);left:0;z-index:8000;background:#fff;border:1px solid var(--lv-line);border-radius:14px;box-shadow:0 10px 28px rgba(0,0,0,.10);padding:20px;width:320px;text-align:left;}
.lv-mt__panel--dates{width:640px;}
.lv-mt__panel--hour{width:250px;}
.lv-mt__phead,.lv-mt__pfoot{display:none;}
.lv-mt__ptitle{font-size:12px;font-weight:700;color:var(--lv-muted);margin:0 0 8px!important;}
.lv-mt__search{width:100%;background:var(--lv-warm)!important;border:1px solid var(--lv-line)!important;border-radius:9px!important;padding:11px 14px!important;font-family:var(--lv-font)!important;font-size:12.5px!important;color:var(--lv-ink)!important;margin:0 0 14px!important;box-shadow:none!important;height:auto!important;line-height:normal!important;}
.lv-mt__search::placeholder{color:var(--lv-muted);}
.lv-mt__list{display:flex;flex-direction:column;gap:2px;}
.lv-mt__list [role="option"]{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:8px;cursor:pointer;outline:none;}
.lv-mt__panel--qui [role="option"]{gap:3px;padding:11px 12px;}
.lv-mt__list--hours [role="option"]{flex-direction:row;align-items:center;justify-content:space-between;padding:9px 12px;}
.lv-mt__list [role="option"]:hover,.lv-mt__list [role="option"]:focus-visible{background:var(--lv-warm);}
.lv-mt__list [role="option"][aria-selected="true"]{background:var(--lv-green-lt);}
.lv-mt__opt{font-size:13.5px;font-weight:500;color:var(--lv-ink);line-height:normal;}
.lv-mt__list--hours .lv-mt__opt{font-weight:400;}
.lv-mt__list [aria-selected="true"] .lv-mt__opt{font-weight:600;color:var(--lv-green-dk);}
.lv-mt__list--hours [aria-selected="true"]::after{content:"✓";font-size:12px;font-weight:700;color:var(--lv-green);}
.lv-mt__sub{font-size:11px;font-weight:400;line-height:1.45;color:var(--lv-muted);}
.lv-mt__note{font-size:11px;line-height:1.5;color:var(--lv-muted);margin-top:14px!important;}
.lv-mt__empty{font-size:12.5px;color:var(--lv-muted);padding:10px 12px!important;}
.lv-mt__warn{background:var(--lv-sand-lt);border-radius:9px;padding:12px 14px!important;margin-top:16px!important;font-size:11px;line-height:1.5;color:var(--lv-txt);}

/* calendrier */
.lv-cal__head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;}
.lv-cal__range{font-size:14px;font-weight:700;color:var(--lv-ink);}
.lv-cal__tag{background:var(--lv-green-lt);color:var(--lv-green-dk);font-size:11px;font-weight:600;border-radius:6px;padding:4px 9px;}
.lv-cal__months{position:relative;display:flex;gap:28px;margin-top:16px;}
.lv-cal__nav{position:absolute;left:0;right:0;top:-3px;display:flex;justify-content:space-between;pointer-events:none;}
.lv-cal__nav button{pointer-events:auto;width:26px;height:26px;border-radius:999px!important;border:1px solid var(--lv-line)!important;background:#fff!important;color:var(--lv-ink)!important;font-size:16px!important;line-height:1!important;padding:0!important;cursor:pointer;}
.lv-cal__nav button:disabled{opacity:.35;cursor:default;}
.lv-cal__month{width:278px;}
.lv-cal__mttl{font-size:14px;font-weight:600;color:var(--lv-ink);text-align:center;margin-bottom:12px!important;text-transform:capitalize;}
.lv-cal__grid{display:grid;grid-template-columns:repeat(7,38px);gap:2px;}
.lv-cal__wd{display:flex;justify-content:center;font-size:10px;font-weight:700;color:var(--lv-muted);margin-bottom:4px;}
.lv-cal__d{width:38px;height:36px;display:flex;align-items:center;justify-content:center;border:0!important;border-radius:8px!important;background:none!important;padding:0!important;font-size:12.5px!important;font-weight:500!important;color:var(--lv-ink)!important;cursor:pointer;}
.lv-cal__d:hover:not(:disabled){background:var(--lv-warm)!important;}
.lv-cal__d:disabled{color:#C4C8CE!important;cursor:default;}
.lv-cal__d.is-in{background:var(--lv-green-lt)!important;color:var(--lv-green-dk)!important;font-weight:600!important;border-radius:0!important;}
.lv-cal__d.is-edge{background:var(--lv-green)!important;color:#fff!important;font-weight:700!important;}
.lv-cal__foot{border-top:1px solid var(--lv-line);margin-top:18px;padding-top:18px;}
.lv-cal__hours{display:flex;flex-wrap:wrap;gap:10px 14px;}
.lv-cal__hour{display:flex;flex-direction:column;align-items:flex-start;gap:3px;background:#fff!important;border:1px solid var(--lv-line)!important;border-radius:9px!important;padding:9px 14px!important;cursor:pointer;min-width:126px;}
.lv-cal__hlbl{font-size:9px;font-weight:700;letter-spacing:.54px;text-transform:uppercase;color:var(--lv-muted);}
.lv-cal__hval{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--lv-ink);}
.lv-cal__hval svg{width:10px;height:10px;}
.lv-cal__foot .lv-mt__note{font-size:11.5px;margin-top:10px!important;}

/* ---------- mobile : champs empilés + panneaux plein écran ---------- */
@media (max-width:960px){
  .lv-mt__bar{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0;background:none;border-radius:0;}
  .lv-mt__sep{display:none;}
  .lv-mt__field{width:auto!important;border:1px solid var(--lv-line);border-radius:8px;padding:10px 14px!important;gap:4px;background:#fff;}
  .lv-mt__field > .lv-mt__btn{margin:-10px -14px!important;padding:10px 14px!important;gap:4px;width:calc(100% + 28px);}
  .lv-mt__field--zone{grid-column:1 / -1;grid-row:1;}
  .lv-mt__field--type{grid-column:1;grid-row:2;}
  .lv-mt__field--qui{grid-column:2;grid-row:2;}
  .lv-mt__field--depart{grid-column:1 / -1;grid-row:3;}
  .lv-mt__field--retour{grid-column:1 / -1;grid-row:4;}
  .lv-mt__go{grid-column:1 / -1;grid-row:5;width:100%!important;min-width:0;height:auto!important;padding:15px 16px!important;border-radius:8px!important;margin:2px 0 0;}
  .lv-mt__lbl{font-size:9px;font-weight:600;letter-spacing:.72px;}
  .lv-mt__field--date .lv-mt__lbl{font-size:10px;font-weight:700;letter-spacing:.6px;}
  .lv-mt__field--type .lv-mt__val,.lv-mt__field--qui .lv-mt__val{font-size:13.5px;}
  /* UNE VALEUR LONGUE DÉBORDAIT DU TÉLÉPHONE. Sur une page de catégorie, « Qui loue » arrive
     prérempli — « Un particulier, vous conduisez » — et la valeur, en `white-space:nowrap`,
     sortait de 51 px à droite de l'écran (relevé le 05/10/2026 sur /particulier/berline/).
     Un flex ne rétrécit pas sous son contenu sans `min-width:0` : il le faut sur le champ,
     sur le bouton, sur la valeur, puis la coupure se fait sur le libellé. */
  .lv-mt__field--type,.lv-mt__field--qui{min-width:0;}
  .lv-mt__field--type > .lv-mt__btn,.lv-mt__field--qui > .lv-mt__btn{min-width:0;}
  /* Le bouton empile le libellé et la valeur : la largeur de la valeur est une taille d'axe
     SECONDAIRE, et `flex-shrink` ne s'y applique pas. `min-width:0` ne suffisait donc pas —
     il faut borner explicitement, et la coupure se fait alors sur le libellé. */
  .lv-mt__field--type .lv-mt__val,.lv-mt__field--qui .lv-mt__val{min-width:0;max-width:100%;overflow:hidden;}
  .lv-mt__field--type .lv-mt__val > span,.lv-mt__field--qui .lv-mt__val > span{min-width:0;flex:0 1 auto;}
  .lv-mt__val--dt{width:100%;gap:0;font-size:15px;}
  .lv-mt__val--dt .lv-mt__sub-btn{font-size:15px;gap:8px;}
  .lv-mt__val--dt .lv-mt__sub-btn:first-child{flex:1;}
  .lv-mt__val--dt .lv-mt__sub-btn:first-child svg{display:block;}
  .lv-mt__val--dt .lv-mt__filet{height:17px;margin-right:14px;}
  /* panneaux plein écran */
  .lv-mt__panel{position:fixed!important;inset:0!important;left:0!important;width:auto!important;border:0;border-radius:0;box-shadow:none;padding:0;z-index:99990;display:flex;flex-direction:column;}
  .lv-mt__phead{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--lv-line);flex:none;}
  .lv-mt__phead p{font-size:16px;font-weight:700;color:var(--lv-ink);}
  .lv-mt__close{background:none!important;border:0!important;padding:4px!important;font-size:18px!important;color:var(--lv-ink)!important;cursor:pointer;}
  .lv-mt__pbody{flex:1;overflow:auto;padding:14px 20px 20px;}
  .lv-mt__pfoot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--lv-line);flex:none;background:#fff;}
  .lv-mt__pfoot span{font-size:12.5px;color:var(--lv-txt);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .lv-mt__apply{flex:none;background:var(--lv-green)!important;color:#fff!important;border:0!important;border-radius:8px!important;padding:12px 24px!important;font-size:15px!important;font-weight:600!important;cursor:pointer;}
  .lv-cal__months{flex-direction:column;gap:22px;}
  .lv-cal__month{width:100%;}
  .lv-cal__grid{grid-template-columns:repeat(7,1fr);}
  .lv-cal__d{width:100%;}
  .lv-cal__nav{display:none;}
  body.lv-mt-lock{overflow:hidden;}
}
