
/* ImmoDirect : cartes lisibles sur mobile, 14 octobre 2026 */
@media (max-width: 767px) {
  html body .imd-v303-section .imd-v303-card.imd-v303-card.imd-v303-card > h3 {
    box-sizing: border-box !important;
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    margin: 0 !important;
    padding: 9px 14px 11px !important;
    font-size: 16px !important;
    line-height: 21px !important;
    overflow: hidden !important;
  }
  html body .imd-v303-section .imd-v303-card.imd-v303-card > h3 a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    font: inherit !important;
    line-height: 21px !important;
    white-space: normal !important;
    overflow: hidden !important;
  }
  html body .imd-v303-section .imd-v303-card.imd-v303-card .imd-v303-description {
    box-sizing: border-box !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 !important;
    margin-left: 14px !important;
    margin-right: 14px !important;
    -webkit-line-clamp: 2 !important;
    line-height: 19px !important;
    overflow: hidden !important;
  }
  html body .imd-v303-section .imd-v303-card.imd-v303-card.imd-v303-card .imd-v303-place {
    top: auto !important;
    bottom: 96px !important;
    left: 10px !important;
    right: auto !important;
    z-index: 12 !important;
    max-width: calc(100% - 75px) !important;
  }
  html body .imd-v303-section .imd-v303-card > .imd-v303-media > .imd-v318-favorite {
    top: auto !important;
    bottom: 96px !important;
    right: 12px !important;
    left: auto !important;
    z-index: 13 !important;
  }
  html body.home.page-id-14455.imd-v303-home-active .imd-v303-home-root > .imd-v303-section.is-featured:not(#imd-v465-layout-fix) .imd-v303-grid {
    box-sizing: border-box !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 2px 12px 18px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-left: 12px !important;
    -webkit-overflow-scrolling: touch !important;
  }
  html body.home.page-id-14455.imd-v303-home-active .imd-v303-home-root > .imd-v303-section.is-featured:not(#imd-v465-layout-fix) .imd-v303-card {
    box-sizing: border-box !important;
    flex: 0 0 min(82vw, 330px) !important;
    width: min(82vw, 330px) !important;
    max-width: none !important;
    scroll-snap-align: start !important;
  }
}

/* Carte : emplacements stables sur accueil et résultats */
html body .imd-v303-card.imd-v600-ready .imd-v303-featured-banner { display:none !important; }
html body .imd-v303-card.imd-v600-ready .imd-v303-place,
html body .imd-v303-card.imd-v600-ready .imd-v303-labels b[class*="is-type-"],
html body .imd-v303-card.imd-v600-ready .imd-v465-card-meta .imd-v465-type { visibility:hidden !important; }
html body .imd-v303-card.imd-v600-ready .imd-v465-card-meta {
  height:0 !important; min-height:0 !important; max-height:0 !important;
  margin:0 !important; padding:0 !important;
}
html body .imd-v303-card > .imd-v303-media > .imd-v600-featured,
html body .imd-v303-card > .imd-v303-media > .imd-v600-location,
html body .imd-v303-card > .imd-v303-media > .imd-v600-type {
  position:absolute !important; display:inline-flex !important; align-items:center !important;
  box-sizing:border-box !important; z-index:18 !important; width:auto !important;
  font-family:system-ui,-apple-system,sans-serif !important; text-decoration:none !important;
  pointer-events:none !important;
}
html body .imd-v303-card > .imd-v303-media > .imd-v600-featured {
  top:10px !important; left:10px !important; right:auto !important; bottom:auto !important;
  min-height:25px !important; padding:5px 10px !important; border-radius:8px !important;
  background:#f5bd47 !important; color:#302100 !important; font-size:11px !important;
  font-weight:850 !important; line-height:1 !important; letter-spacing:.04em !important;
  box-shadow:0 2px 8px rgba(0,0,0,.2) !important;
}
html body .imd-v303-card > .imd-v303-media > .imd-v600-location {
  left:10px !important; right:auto !important; top:auto !important; bottom:91px !important;
  gap:5px !important; max-width:calc(100% - 20px) !important;
  padding:6px 9px !important; border-radius:8px !important;
  background:rgba(10,30,49,.88) !important; color:#fff !important;
  font-size:12px !important; font-weight:750 !important; line-height:1.15 !important;
  text-shadow:none !important; box-shadow:0 2px 8px rgba(0,0,0,.2) !important;
}
html body .imd-v303-card > .imd-v303-media > .imd-v600-location svg {
  display:block !important; width:18px !important; height:18px !important;
  min-width:18px !important; flex:none !important; stroke-width:2.2 !important;
}
html body .imd-v303-card > .imd-v303-media > .imd-v600-type {
  right:10px !important; left:auto !important; top:auto !important; bottom:10px !important;
  justify-content:center !important; max-width:48% !important; min-height:25px !important;
  padding:5px 8px !important; border-radius:8px !important;
  background:#145276 !important; color:#fff !important;
  font-size:11px !important; font-weight:800 !important; line-height:1.1 !important;
  white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important;
  box-shadow:0 2px 8px rgba(0,0,0,.22) !important;
}
html body .imd-v303-section .imd-v303-card > .imd-v303-media > .imd-v318-favorite {
  top:10px !important; bottom:auto !important; right:10px !important; left:auto !important;
  z-index:20 !important; width:38px !important; height:38px !important;
  background:#fff !important; border:1px solid rgba(13,45,69,.22) !important;
  box-shadow:0 3px 12px rgba(0,0,0,.22) !important;
}
html body .imd-v303-card .imd-v303-facts svg {
  width:18px !important; height:18px !important; min-width:18px !important;
}
html body .imd-v303-card .imd-v303-price svg,
html body .imd-v303-card .imd-v303-contact svg {
  width:17px !important; height:17px !important; min-width:17px !important;
}
html body.home .imd-v303-section.is-featured .imd-v303-card.imd-v600-ready .imd-v303-labels,
html body:not(.home) .imd-v303-section.is-featured .imd-v303-card.imd-v600-ready .imd-v303-labels {
  transform:translateY(32px) !important;
}
html body .imd-v303-section .imd-v303-card .imd-v303-contact {
  display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:6px !important; align-items:stretch !important;
}
html body.home .imd-v303-section.is-featured .imd-v303-card .imd-v303-contact > a:first-child,
html body .imd-v303-section .imd-v303-card .imd-v303-contact > a:first-child {
  display:inline-flex !important;
}
html body .imd-v303-section .imd-v303-card .imd-v303-contact > a {
  box-sizing:border-box !important; width:100% !important; min-width:0 !important;
  height:42px !important; min-height:42px !important; padding:0 4px !important;
  align-items:center !important; justify-content:center !important; gap:4px !important;
  white-space:nowrap !important; font-size:11px !important;
}
html body .imd-v303-card .imd-v303-contact > a:first-child span { font-size:0 !important; }
html body .imd-v303-card .imd-v303-contact > a:first-child span::after {
  content:"Nous écrire" !important; font-size:11px !important; white-space:nowrap !important;
}
@media(max-width:767px) {
  html body .imd-v303-section .imd-v303-card > .imd-v303-media > .imd-v318-favorite {
    top:10px !important; bottom:auto !important; right:10px !important;
  }
  html body .imd-v303-card .imd-v303-contact > a { font-size:10.5px !important; }
  html body .imd-v303-card .imd-v303-contact > a:first-child span::after { font-size:10.5px !important; }
}

html body.home .imd-v303-section .imd-v303-card .imd-v303-media .imd-v303-facts > i svg,
html body .imd-v303-section .imd-v303-card .imd-v303-media .imd-v303-facts > i svg {
 width:19px !important; height:19px !important; min-width:19px !important; flex:0 0 19px !important;
}
html body.home .imd-v303-section .imd-v303-card .imd-v303-contact > a svg,
html body .imd-v303-section .imd-v303-card .imd-v303-contact > a svg {
 width:17px !important; height:17px !important; min-width:17px !important; flex:0 0 17px !important;
}

html body.home .imd-v303-section .imd-v303-card.imd-v600-ready .imd-v303-contact > a svg,
html body .imd-v303-section .imd-v303-card.imd-v600-ready .imd-v303-contact > a svg {
 width:17px !important; height:17px !important; min-width:17px !important; flex:0 0 17px !important;
}
