@media(max-width:700px){
html body.home .imd-v303-home-hero{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:0 0 22px!important;background:#f2f8fc!important}
html body.home .imd-v303-home-slides{height:535px!important;max-height:none!important;overflow:hidden!important}
html body.home .imd-v303-home-slides .is-couple{display:block!important;visibility:visible!important;opacity:1!important;background-image:linear-gradient(90deg,rgba(3,20,43,.75),rgba(3,20,43,.24) 82%),url('https://immodirect.ma/wp-content/uploads/2026/10/immodirect-tanger-hero-maquette-scaled.png')!important;background-position:52% 44%!important;background-size:cover!important}
html body.home .imd-v303-home-slides .is-tanger{display:none!important}
html body.home .imd-v303-home-hero-inner{display:flex!important;flex-direction:column!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;padding:112px 16px 0!important;box-sizing:border-box!important;overflow:visible!important}
html body.home .imd-v303-home-hero-inner>h1{width:100%!important;max-width:100%!important;margin:0!important;font-size:clamp(36px,9.3vw,44px)!important;line-height:1.04!important;letter-spacing:-.035em!important;font-weight:800!important;color:#fff!important;text-shadow:0 2px 9px rgba(0,0,0,.35)!important}
html body.home .imd-v303-home-hero-inner>p{width:100%!important;max-width:100%!important;margin:12px 0 0!important;font-size:17px!important;line-height:1.38!important;font-weight:400!important;color:#fff!important;text-shadow:0 1px 5px rgba(0,0,0,.42)!important}
html body.home .imd-v303-home-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;width:100%!important;height:auto!important;margin:22px 0 0!important;order:3!important}
html body.home .imd-v303-home-actions>a{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-width:0!important;width:100%!important;height:60px!important;padding:5px 3px!important;border:1px solid rgba(255,255,255,.5)!important;border-radius:12px!important;background:rgba(9,29,57,.78)!important;box-shadow:0 6px 16px rgba(3,20,43,.22)!important;color:#fff!important;text-align:center!important;box-sizing:border-box!important}
html body.home .imd-v303-home-actions>a.is-search{background:#d8943e!important;border-color:#efb45f!important}
html body.home .imd-v303-home-actions .imd-v306-action-icon{display:block!important;width:20px!important;height:20px!important;min-width:20px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html body.home .imd-v303-home-actions .imd-v306-action-icon svg{width:20px!important;height:20px!important;stroke:#fff!important}
html body.home .imd-v303-home-actions>a span:last-child{display:block!important;min-width:0!important}
html body.home .imd-v303-home-actions b{display:block!important;font-size:13px!important;line-height:1.08!important;white-space:normal!important;color:#fff!important}
html body.home .imd-v303-home-actions small{display:none!important}
html body.home .imd-v303-home-search{display:block!important;width:100%!important;height:auto!important;max-height:none!important;margin:17px 0 0!important;padding:16px!important;border:0!important;border-radius:20px!important;background:#fff!important;box-shadow:0 16px 34px rgba(7,37,67,.16)!important;box-sizing:border-box!important;order:4!important}
html body.home .imd-v303-home-search>div:first-child{display:none!important}
html body.home .imd-v303-home-search form.imd-v303-search.imd-v532-home-search{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;width:100%!important;height:auto!important;margin:0!important;padding:0!important;align-items:stretch!important}
html body.home .imd-v303-home-search form .imd-v532-keyword,html body.home .imd-v303-home-search form .imd-v532-status,html body.home .imd-v303-home-search form .imd-v532-place,html body.home .imd-v303-home-search form .imd-v532-toggle,html body.home .imd-v303-home-search form .imd-v532-submit{display:flex!important;width:100%!important;min-width:0!important;height:49px!important;min-height:49px!important;max-height:49px!important;margin:0!important;padding:0 10px!important;border:1px solid #dfe6ee!important;border-radius:11px!important;box-sizing:border-box!important;font-size:13px!important;font-weight:700!important;color:#0a294e!important;background:#fff!important}
html body.home .imd-v303-home-search form .imd-v532-keyword{grid-column:1/-1!important;order:1!important;padding:0 14px!important;font-weight:500!important}
html body.home .imd-v303-home-search form .imd-v532-status{grid-column:1!important;order:2!important}
html body.home .imd-v303-home-search form .imd-v532-place{grid-column:2!important;order:3!important}
html body.home .imd-v303-home-search form .imd-v532-toggle{grid-column:1!important;order:4!important;justify-content:center!important;align-items:center!important;background:#f2f6fa!important}
html body.home .imd-v303-home-search form .imd-v532-submit{grid-column:2!important;order:5!important;justify-content:center!important;align-items:center!important;background:#0084b3!important;border-color:#0084b3!important;color:#fff!important}
html body.home .imd-v303-home-search form .imd-v532-advanced[style*="display: none"]{display:none!important}
html body.home .imd-v303-home-search form .imd-v532-advanced:not([style*="display: none"]){grid-column:1/-1!important}
}
/* Stable final search layout before JavaScript enhancement. */
@media (min-width:768px){
body.page .imd-v303-search-shell form.imd-v303-search{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr)) 130px 160px 125px 125px!important;gap:9px!important;align-items:stretch!important;grid-auto-flow:row!important}
body.page .imd-v303-search-shell form.imd-v303-search>input[name="keyword"]{grid-column:1/span 2!important;order:1!important;display:block!important}
body.page .imd-v303-search-shell form.imd-v303-search>select[name="property_status"]{grid-column:3!important;order:2!important;display:block!important}
body.page .imd-v303-search-shell form.imd-v303-search>select[name="property_province"]{grid-column:4!important;order:3!important;display:block!important}
body.page .imd-v303-search-shell form.imd-v303-search>.imd-compact-toggle{grid-column:5!important;order:4!important;display:flex!important}
body.page .imd-v303-search-shell form.imd-v303-search>button[type="submit"]{grid-column:6!important;order:5!important;display:flex!important}
body.page .imd-v303-search-shell form.imd-v303-search>.imd-type-families,
body.page .imd-v303-search-shell form.imd-v303-search>select[name="imd_condition"],
body.page .imd-v303-search-shell form.imd-v303-search>input[name="price_min"],
body.page .imd-v303-search-shell form.imd-v303-search>input[name="price_max"],
body.page .imd-v303-search-shell form.imd-v303-search>select[name="sort"],
body.page .imd-v303-search-shell form.imd-v303-search>.imd-v303-amenity-toggle,
body.page .imd-v303-search-shell form.imd-v303-search>.imd-v303-amenities,
body.page .imd-v303-search-shell form.imd-v303-search>.imd-detail-search{display:none!important}
}
@media (min-width:768px) and (max-width:1050px){body.page .imd-v303-search-shell form.imd-v303-search{grid-template-columns:repeat(2,minmax(0,1fr)) 130px 160px 125px 125px!important}}
.imd-compact-toggle{display:none!important}
html body .imd-v303-search-shell>.immodirect-account-filter{display:none!important}
@media(max-width:767px){html body.single-property .imd-v510-gallery-thumbs{display:none!important}}

html body form.imd-v303-search>select[name=neighborhood]{display:none!important}