/* Filter cards shared with the former home search. */
#page-recherche #annonces-category-selector.an-hero{position:relative;z-index:70;}
#page-recherche #mtSearchStart{position:relative;overflow:visible;z-index:70;}
#page-recherche #mtSearchStart :is(.mt-main-search,.mt-filter-secondary,.an-seg-city,.rz-villebox){overflow:visible;}
#page-recherche #mtSearchStart .an-seg-city:focus-within{position:relative;z-index:2;}
#page-recherche #mtSearchStart #filtreVille:is(:focus,:focus-visible){outline:none!important;box-shadow:none!important;border:0!important;}
#page-recherche #mtSearchStart #villeSuggest{min-width:min(320px,calc(100vw - 64px));z-index:120;}
#page-recherche #mtSearchStart{min-height:0;padding:16px;background:#fff;border:1px solid #dde5ef;border-radius:14px;box-shadow:0 1px 0 #0a25300a,0 22px 44px -30px #0a253073;}
#page-recherche #mtSearchStart::before{display:none;}
#page-recherche #mtSearchStart .mt-main-search{display:flex;flex-direction:column;gap:12px;padding:0;border:0;background:transparent;box-shadow:none;}
#page-recherche #mtSearchStart .mt-filter-primary{display:grid;grid-template-columns:minmax(0,1.35fr) repeat(2,minmax(0,1fr)) auto;gap:10px;}
#page-recherche #mtSearchStart .mt-filter-secondary{display:grid;grid-template-columns:1.35fr .85fr 1fr 1fr 1fr;gap:10px;}
#page-recherche #mtSearchStart :is(.mt-market-field,.an-seg-city,.an-seg-radius){display:flex;flex-direction:column;justify-content:center;min-width:0;width:auto;max-width:none;margin:0;padding:11px 14px 9px;border:1px solid #dde5ef;border-radius:10px;background:#fff;gap:5px;}
#page-recherche #mtSearchStart :is(.mt-market-field,.an-seg-city,.an-seg-radius):focus-within{border-color:#2b4ec2;box-shadow:0 0 0 3px #2b4ec21f;}
#page-recherche #mtSearchStart :is(.mt-market-field label,.an-seglabel){margin:0;font:600 12.5px/1.2 var(--font-body);color:#5b6f86;letter-spacing:0;text-transform:none;}
#page-recherche #mtSearchStart :is(select,input[type=number],#filtreVille,#filtrePerimetre){width:100%;min-width:0;max-width:none;height:25px;min-height:0;margin:0;padding:0 24px 0 0;border:0;border-radius:0;background-color:transparent;box-shadow:none;font:600 16px/1.35 var(--font-body);color:#0a2540;}
#page-recherche #mtSearchStart input[type=number]{padding:0;}
#page-recherche #mtSearchStart #btnValidSearch{grid-column:auto;width:auto;min-width:0;min-height:64px;height:auto;margin:0;padding:0 26px;border:0;border-radius:10px;background:#2b4ec2;color:#fff;font:700 16px/1 var(--font-body);box-shadow:none;}
#page-recherche #mtSearchStart .mt-console-v44-heading{margin-bottom:12px;}
#page-recherche #mtSearchStart .rz-cats{padding:4px;border:1px solid #dde5ef;border-radius:11px;background:#f4f7fb;gap:2px;}
#page-recherche #mtSearchStart .rz-cat{border:0;border-radius:8px;box-shadow:none;}
#page-recherche #mtSearchStart .rz-cat.active{background:#0a2540;color:#fff;}
@media(max-width:950px){#page-recherche #mtSearchStart .mt-filter-secondary{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:650px){#page-recherche #mtSearchStart .mt-filter-primary,#page-recherche #mtSearchStart .mt-filter-secondary{grid-template-columns:repeat(2,minmax(0,1fr));}#page-recherche #mtSearchStart .mt-filter-primary>.mt-market-field:first-child,#page-recherche #mtSearchStart .mt-filter-primary>#btnValidSearch,#page-recherche #mtSearchStart .mt-filter-secondary>.an-seg-city{grid-column:1/-1;}#page-recherche #mtSearchStart #btnValidSearch{min-height:52px;}}

#page-recherche #mtSearchStart .mt-type-rail[hidden]{display:none!important;}
#page-recherche #mtSearchStart .mt-filter-primary{grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,1.2fr)) minmax(0,1fr);}
#page-recherche #mtSearchStart .mt-filter-submit{display:flex;justify-content:flex-end;}
#page-recherche #mtSearchStart .mt-filter-submit #btnValidSearch{min-height:48px;}
@media(max-width:650px){#page-recherche #mtSearchStart .mt-filter-primary{grid-template-columns:repeat(2,minmax(0,1fr));}#page-recherche #mtSearchStart .mt-filter-primary>.mt-market-field:first-child{grid-column:auto;}}

#page-recherche .mt-search-budget-error{grid-column:1/-1;margin:12px 0 0;padding:12px 16px;border:1px solid #f1c5bf;border-radius:8px;background:#fff3f0;color:#922f22;font-size:.85rem;line-height:1.5;}
#page-recherche .mt-search-budget-error[hidden]{display:none!important;}
#page-recherche :is(#anPrixMin,#anPrixMax)[aria-invalid="true"]{outline:2px solid #c64030;outline-offset:2px;}

/* Two compact filter rows; the search action ends the second row. */
#page-recherche #mtSearchStart .mt-filter-secondary{grid-template-columns:repeat(5,minmax(0,1fr)) auto;align-items:stretch;}
#page-recherche #mtSearchStart #mtParcelleFilter{appearance:none;-webkit-appearance:none;padding-right:20px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235b6f86' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right center;background-size:12px 8px;cursor:pointer;}
#page-recherche #mtSearchStart .mt-filter-secondary>#btnValidSearch{min-height:64px;padding:0 20px;align-self:stretch;}
@media(max-width:1050px){#page-recherche #mtSearchStart .mt-filter-secondary{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:950px){#page-recherche #mtSearchStart .mt-filter-primary{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:650px){#page-recherche #mtSearchStart .mt-filter-secondary{grid-template-columns:repeat(2,minmax(0,1fr));}#page-recherche #mtSearchStart .mt-filter-secondary>#btnValidSearch{grid-column:auto;min-height:64px;padding:0 12px;}}
@media(max-width:650px){#page-recherche #mtSearchStart .mt-filter-primary>:is(.an-seg-city,.an-seg-radius){grid-column:1/-1;}}
@media(max-width:650px){#page-recherche #mtSearchStart .mt-market-field select{font-size:14px;padding-right:18px;}}
@media(max-width:650px){#page-recherche #mtSearchStart .mt-filter-secondary>.mt-market-field:has(#anFAn),#page-recherche #mtSearchStart .mt-filter-secondary>#btnValidSearch{grid-column:1/-1;}}
