/**
 * Lieux de Retraites — Page Propriétés
 * Coller dans : Page /proprietes → Custom Code → Head
 */

:root {
  --ldr-accent: #28420a;
  --ldr-accent-hover: #1f3308;
  --ldr-map-fs-top: 0px;
  --ldr-page-gutter: clamp(20px, 3vw, 48px);
}

/* Scrollbar page plus discrète sur /proprietes */
html:has(#ldr-proprietes.ldr-api-mode) {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(48, 48, 55, 0.14) transparent;
}

html:has(#ldr-proprietes.ldr-api-mode) ::-webkit-scrollbar {
  width: 8px;
}

html:has(#ldr-proprietes.ldr-api-mode) ::-webkit-scrollbar-thumb {
  background: rgba(48, 48, 55, 0.12);
  border-radius: 999px;
}

html:has(#ldr-proprietes.ldr-api-mode) ::-webkit-scrollbar-thumb:hover {
  background: rgba(48, 48, 55, 0.22);
}

html:has(#ldr-proprietes.ldr-api-mode) ::-webkit-scrollbar-track {
  background: transparent;
}

#ldr-proprietes.ldr-api-mode {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-left: var(--ldr-page-gutter);
  padding-right: var(--ldr-page-gutter);
}

/* ——— Mapbox popups ——— */
.mapboxgl-popup-content {
  pointer-events: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.mapboxgl-popup-tip {
  display: none;
}

.ldr-map-hover-popup .mapboxgl-popup-content {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.ldr-map-hover-label {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  color: #303037;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(48, 48, 55, 0.14);
  white-space: nowrap;
}

.ldr-map-click-popup .mapboxgl-popup-content {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(48, 48, 55, 0.2);
}

.ldr-map-click-popup .mapboxgl-popup-close-button {
  display: none !important;
}

.ldr-map-popup {
  display: block;
  width: 280px;
  color: inherit;
}

.ldr-map-popup-media {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  background: #d8d4c8;
}

.ldr-map-popup-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Navigation photos (liste + popup carte) */
.map-image-preview.ldr-photo-nav-root,
.popup-image.ldr-photo-nav-root,
.ldr-card-media.ldr-photo-nav-root,
.ldr-map-popup-media.ldr-photo-nav-root,
.ldr-mobile-preview-media.ldr-photo-nav-root {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
}

.ldr-photo-nav-root.ldr-photo-swiping {
  touch-action: none;
}

/* Pastilles de pagination (style Airbnb) — galerie swipeable */
.ldr-photo-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: calc(100% - 24px);
  padding: 0 2px;
  pointer-events: none;
  user-select: none;
}

.ldr-photo-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.ldr-photo-dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

/* Desktop : flèches au survol ; mobile : pastilles uniquement */
@media (min-width: 992px) {
  .ldr-photo-dots {
    display: none !important;
  }

  .ldr-photo-nav {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #222;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.15s ease,
      background 0.15s ease,
      transform 0.15s ease;
  }

  .ldr-photo-nav[hidden] {
    display: none !important;
  }

  .map-image-preview.ldr-photo-nav-root .ldr-photo-prev,
  .popup-image.ldr-photo-nav-root .ldr-photo-prev,
  .ldr-card-media.ldr-photo-nav-root .ldr-photo-prev {
    left: 10px;
  }

  .map-image-preview.ldr-photo-nav-root .ldr-photo-next,
  .popup-image.ldr-photo-nav-root .ldr-photo-next,
  .ldr-card-media.ldr-photo-nav-root .ldr-photo-next {
    right: 10px;
  }

  .ldr-card-media.ldr-photo-nav-root .ldr-photo-nav {
    top: 50%;
    background: rgba(255, 255, 255, 0.78);
    color: #303037;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
  }

  .ldr-card-media.ldr-photo-nav-root:hover .ldr-photo-nav:not([hidden]),
  .ldr-card-media.ldr-photo-nav-root:focus-within .ldr-photo-nav:not([hidden]) {
    opacity: 0.92;
    pointer-events: auto;
  }

  .ldr-map-popup-media .ldr-photo-prev {
    left: 10px;
  }

  .ldr-map-popup-media .ldr-photo-next {
    right: 10px;
  }

  .ldr-map-popup-media .ldr-photo-nav {
    top: 50%;
    background: rgba(255, 255, 255, 0.78);
    color: #303037;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
  }

  .ldr-map-popup-media.ldr-photo-nav-root:hover .ldr-photo-nav:not([hidden]),
  .ldr-map-popup-media.ldr-photo-nav-root:focus-within .ldr-photo-nav:not([hidden]) {
    opacity: 0.92;
    pointer-events: auto;
  }

  .ldr-photo-nav-root:hover .ldr-photo-nav:not([hidden]),
  .ldr-photo-nav-root:focus-within .ldr-photo-nav:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
  }

  .ldr-photo-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
  }
}

@media (max-width: 991px) {
  .ldr-photo-nav {
    display: none !important;
  }
}

.ldr-gallery-refs {
  display: none !important;
}

.ldr-map-popup-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.ldr-map-popup-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 18px 18px;
  color: #fff;
  z-index: 2;
  text-decoration: none;
  display: block;
}

.ldr-map-popup-title {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 4px;
}

.ldr-map-popup-sub,
.ldr-map-popup-capacity {
  font-size: 0.9rem;
  line-height: 1.35;
  opacity: 0.95;
}

.ldr-map-popup-price {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 12px;
  padding: 6px 12px;
  background: #f5f3e9;
  color: #303037;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
}

.ldr-map-popup-badge,
.ldr-map-click-popup .ldr-map-popup-badge {
  display: none !important;
}

/* Ancienne modale Webflow — remplacée par #ldr-filters-root */
.filtr-pop-up-wrapper {
  display: none !important;
}

body.ldr-filters-open {
  overflow: hidden;
  padding-right: 0 !important;
}

/* Zoom : un seul contrôle (Mapbox LDR), masquer legacy NCF */
.cru-ncf-zoom-controls-w,
.ncf-zoom-controls,
.ncf-map-wrapper [class*="zoom-control"],
.ncf-map-inner-wrapper [class*="zoom-control"],
#map:not(#ldr-map) .mapboxgl-ctrl {
  display: none !important;
}

#map.ldr-legacy-map-hidden {
  display: none !important;
  pointer-events: none !important;
}

.ncf-map-inner-wrapper .mapboxgl-ctrl-bottom-right,
.ncf-map-wrapper .mapboxgl-ctrl-bottom-right,
#map .mapboxgl-ctrl-bottom-right {
  display: none !important;
}

.ncf-map-inner-wrapper .mapboxgl-ctrl-top-right,
#ldr-map .mapboxgl-ctrl-top-right,
.ncf-map-inner-wrapper .mapboxgl-ctrl-group {
  display: none !important;
}

/* Ancienne barre Webflow (masquée quand #ldr-toolbar est injecté) */
.ldr-legacy-hidden {
  display: none !important;
}

/* ——— Barre outils LDR (au-dessus du split liste/carte ou repli au-dessus de la carte) ——— */
.ldr-toolbar {
  position: relative;
  z-index: 1000;
  width: 100%;
  padding: 12px 0 14px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ldr-toolbar-row {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px) 1fr;
  align-items: center;
  column-gap: 24px;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.ldr-toolbar-sort-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  justify-self: end;
}

.ldr-toolbar-filters-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
}

.ldr-toolbar-sort-cell .ldr-sort-host,
.ldr-toolbar-sort-cell .ldr-sort {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
}

.ldr-toolbar-sort-cell .ldr-sort-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  padding: 12px 18px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #303037;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.15s ease;
}

.ldr-toolbar-sort-cell .ldr-sort-trigger:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ldr-toolbar-search-pill {
  display: flex;
  align-items: center;
  justify-self: center;
  width: 100%;
  min-width: 0;
  max-width: 520px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
  overflow: visible;
}

.ldr-toolbar-search-field {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 20px;
  position: relative;
}

.ldr-toolbar-field-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #303037;
  line-height: 1.2;
  margin-bottom: 2px;
}

.ldr-search-input {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 0.9rem;
  color: #303037;
  outline: none;
}

.ldr-search-input::placeholder {
  color: #717171;
}

.ldr-toolbar-pill-divider {
  flex-shrink: 0;
  width: 1px;
  margin: 10px 0;
  background: #ddd;
}

.ldr-toolbar-capacity-btn {
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 8px 14px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.ldr-toolbar-capacity-label {
  display: block;
  font-size: 0.9rem;
  color: #303037;
  line-height: 1.25;
  white-space: nowrap;
}

.ldr-toolbar-search-submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--ldr-accent);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.ldr-toolbar-search-submit:hover {
  background: var(--ldr-accent-hover);
  transform: scale(1.04);
}

.ldr-toolbar-filters-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 12px 18px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #303037;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}

.ldr-toolbar-filters-btn:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ldr-toolbar-cap-popover {
  position: fixed;
  z-index: 100002;
  width: min(220px, calc(100vw - 32px));
  padding: 12px;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(48, 48, 55, 0.12);
}

.ldr-toolbar-cap-pop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ldr-toolbar-cap-inline-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #303037;
  flex-shrink: 0;
}

.ldr-toolbar-cap-pop-row input[type="number"] {
  width: 5rem;
  min-width: 0;
  box-sizing: border-box;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
  font-size: 0.875rem;
  text-align: right;
  appearance: textfield;
  -moz-appearance: textfield;
}

.ldr-toolbar-cap-pop-row input[type="number"]::-webkit-outer-spin-button,
.ldr-toolbar-cap-pop-row input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.ldr-toolbar-cap-apply {
  width: 100%;
  padding: 7px 12px;
  border: none;
  border-radius: 8px;
  background: #28420a;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 991px) {
  .ldr-toolbar-row {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 100%;
  }

  .ldr-toolbar-search-pill {
    max-width: none;
  }

  .ldr-toolbar-search-pill {
    order: 1;
  }

  .ldr-toolbar-sort-cell {
    order: 2;
    justify-content: flex-start;
  }

  .ldr-toolbar-filters-cell {
    order: 3;
    width: 100%;
    justify-self: stretch;
  }

  .ldr-toolbar-filters-btn {
    width: 100%;
  }
}

.ncf-map-wrapper,
.ncf-map-inner-wrapper,
.cru-ncf-map,
#ldr-map {
  position: relative;
  z-index: 1;
}

/* Tri custom */
.ldr-sort-host {
  position: relative;
}

.ldr-sort {
  position: relative;
}

.ldr-sort-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
}

.ldr-sort-chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.ldr-sort-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(48, 48, 55, 0.16);
  z-index: 100001;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.35;
}

.ldr-sort.is-open .ldr-sort-menu {
  display: block;
}

.ldr-sort-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ldr-sort-option {
  display: block;
  width: 100%;
  padding: 8px 16px;
  border: none;
  background: transparent;
  text-align: left;
  font-family: inherit;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: #303037;
  cursor: pointer;
}

.ldr-sort-option:hover,
.ldr-sort-option.is-selected {
  background: #f5f3e9;
}

/* Liste : 2 colonnes desktop + scroll léger */
.cru-ncf-map-items {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(48, 48, 55, 0.2) transparent;
}

#ldr-proprietes.ldr-api-mode .cru-ncf-map-items.ldr-list-host {
  overflow: visible;
  scrollbar-width: none;
}

.cru-ncf-map-items::-webkit-scrollbar {
  width: 6px;
}

.cru-ncf-map-items::-webkit-scrollbar-thumb {
  background: rgba(48, 48, 55, 0.2);
  border-radius: 999px;
}

.cru-ncf-map-item-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}

@media (max-width: 991px) {
  .cru-ncf-map-item-list {
    grid-template-columns: 1fr;
  }
}

/* Modale filtres LDR (style Airbnb) */
.ldr-fm-root {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ldr-fm-root.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.ldr-fm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(48, 48, 55, 0.45);
}

.ldr-fm-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(94vh, 920px);
  min-height: min(88vh, 800px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(48, 48, 55, 0.2);
  overflow: hidden;
}

.ldr-fm-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 18px 48px;
  border-bottom: 1px solid #ebe8df;
}

.ldr-fm-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #303037;
}

.ldr-fm-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #303037;
}

.ldr-fm-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 24px 24px;
  min-height: 0;
}

.ldr-fm-section {
  padding: 20px 0;
  border-bottom: 1px solid #ebe8df;
}

.ldr-fm-section:last-child {
  border-bottom: none;
}

.ldr-fm-section-title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #303037;
}

.ldr-fm-types,
.ldr-fm-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ldr-fm-type,
.ldr-fm-amenity {
  padding: 10px 16px;
  border: 1px solid #d8d4c8;
  border-radius: 999px;
  background: #fff;
  font-size: 0.9rem;
  color: #303037;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.ldr-fm-type.is-active,
.ldr-fm-amenity.is-active {
  border-color: #303037;
  background: #f5f3e9;
}

.ldr-fm-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #5c5c66;
  margin-bottom: 8px;
}

.ldr-fm-dual-track {
  position: relative;
  height: 32px;
  margin: 8px 0 4px;
}

.ldr-fm-dual-rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 999px;
  background: #e8e4da;
}

.ldr-fm-dual-fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 999px;
  background: var(--ldr-accent);
  left: 0;
  width: 100%;
}

.ldr-fm-dual-input {
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  height: 4px;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.ldr-fm-dual-input::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.ldr-fm-dual-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #303037;
  box-shadow: 0 2px 6px rgba(48, 48, 55, 0.2);
  cursor: grab;
  margin-top: -8px;
}

.ldr-fm-dual-input::-moz-range-track {
  height: 4px;
  background: transparent;
}

.ldr-fm-dual-input::-moz-range-thumb {
  pointer-events: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #303037;
  box-shadow: 0 2px 6px rgba(48, 48, 55, 0.2);
  cursor: grab;
}

.ldr-fm-dual-min {
  z-index: 3;
}

.ldr-fm-dual-max {
  z-index: 4;
}

.ldr-fm-participants {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ldr-fm-participants-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #303037;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.ldr-fm-section--participants .ldr-fm-section-title {
  display: none;
}

/* Desktop : participants déjà dans la barre recherche */
.ldr-fm-root:not(.ldr-fm--mobile) .ldr-fm-section--participants {
  display: none !important;
}

.ldr-fm-capacity-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ldr-fm-capacity-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #303037;
  line-height: 1.3;
}

.ldr-fm-capacity-hint {
  font-size: 0.8125rem;
  color: #717171;
  line-height: 1.35;
}

.ldr-fm-stepper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ldr-fm-stepper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #d8d4c8;
  border-radius: 50%;
  background: #fff;
  color: #303037;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
}

.ldr-fm-stepper-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.ldr-fm-stepper-input {
  box-sizing: border-box;
  width: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: #303037;
  appearance: textfield;
  -moz-appearance: textfield;
}

.ldr-fm-stepper-input::-webkit-inner-spin-button,
.ldr-fm-stepper-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.ldr-fm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #ebe8df;
  background: #fff;
}

.ldr-fm-clear {
  border: none;
  background: transparent;
  text-decoration: underline;
  font-size: 0.9rem;
  color: #303037;
  cursor: pointer;
  padding: 8px 0;
}

.ldr-fm-apply {
  flex: 1;
  max-width: 280px;
  margin-left: auto;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  background: #28420a;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.ldr-fm-apply:hover {
  background: #1f3308;
}

.ldr-fm-apply:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ——— Mode API : liste rendue en JS ——— */
.ldr-api-mode .ldr-duplicate-list,
.ldr-api-mode .ldr-legacy-hidden {
  display: none !important;
}

.ldr-list-host {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ldr-list-scroll {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
}

.ldr-list-head {
  margin-bottom: 16px;
}

.ldr-results-count {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: #303037;
}

.ldr-results-count.is-hidden {
  display: none;
}

.ldr-empty-panel {
  padding: 48px 8px 32px;
  text-align: left;
}

.ldr-empty-title {
  margin: 0 0 8px;
  font-size: 1.375rem;
  font-weight: 600;
  color: #303037;
}

.ldr-empty-text {
  margin: 0 0 20px;
  max-width: 28rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #5c5c66;
}

.ldr-empty-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid #303037;
  border-radius: 8px;
  background: #fff;
  color: #303037;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.ldr-empty-reset:hover {
  background: #f7f7f7;
}

.ldr-lieux-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  padding: 4px 6px 0;
  margin: 0;
  list-style: none;
}

.ldr-lieux-grid.is-empty {
  min-height: 0;
}

.ldr-card {
  display: block;
  min-width: 0;
  overflow: visible;
  height: auto !important;
  max-height: none !important;
}

.ldr-card-link {
  display: flex;
  flex-direction: column;
  height: auto;
  color: inherit;
  text-decoration: none;
}

.ldr-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto !important;
  max-height: none !important;
  border-radius: 16px;
  overflow: hidden;
  background: #d8d4c8;
  flex-shrink: 0;
}

.ldr-card-media img.ldr-photo-target {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#ldr-proprietes.ldr-api-mode .cru-ncf-map-list-item.ldr-card {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  align-self: start !important;
  overflow: visible !important;
}

#ldr-proprietes.ldr-api-mode .ldr-card .ldr-card-link {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

#ldr-proprietes.ldr-api-mode .ldr-card .ldr-card-body,
#ldr-proprietes.ldr-api-mode .ldr-card .ldr-card-title,
#ldr-proprietes.ldr-api-mode .ldr-card .ldr-card-type,
#ldr-proprietes.ldr-api-mode .ldr-card .ldr-card-meta,
#ldr-proprietes.ldr-api-mode .ldr-card .ldr-card-capacity,
#ldr-proprietes.ldr-api-mode .ldr-card .ldr-card-price {
  visibility: visible;
  opacity: 1;
  height: auto;
  max-height: none;
}

#ldr-proprietes.ldr-api-mode .ldr-card .ldr-card-meta {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#ldr-proprietes.ldr-api-mode .ldr-card .ldr-card-capacity,
#ldr-proprietes.ldr-api-mode .ldr-card .ldr-card-price {
  display: inline-flex !important;
}

.ldr-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 4px 4px;
}

.ldr-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 6;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fd5c63;
  border: none;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 2px 8px rgba(48, 48, 55, 0.18);
  pointer-events: none;
}

.ldr-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: #303037;
}

.ldr-card-type {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.3;
  color: #5c5c66;
}

.ldr-card-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 0;
  min-height: 0;
}

.ldr-card-capacity {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.75rem;
  color: #5c5c66;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ldr-card-price {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #3d5c3a;
  color: #f5f3e9;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  max-width: 48%;
}

.ldr-card-price-amount {
  font-weight: 600;
}

.ldr-card-price-suffix {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.95;
}

/* iPad / tablette : panneau liste étroit (split + 2 colonnes) — libellé court en JS */
@media (min-width: 992px) and (max-width: 1279px) {
  #ldr-proprietes.ldr-api-mode .ldr-card .ldr-card-capacity {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 96px) !important;
    font-size: 0.6875rem !important;
    letter-spacing: -0.01em;
    overflow: visible !important;
    text-overflow: unset !important;
  }

  #ldr-proprietes.ldr-api-mode .ldr-card .ldr-card-price {
    flex: 0 0 auto !important;
    max-width: none !important;
    font-size: 0.75rem;
    padding: 3px 7px;
  }

  #ldr-proprietes.ldr-api-mode .personnes-max,
  #ldr-proprietes.ldr-api-mode .personnes-max .listing-description-text {
    font-size: 0.6875rem !important;
    letter-spacing: -0.01em;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  #ldr-proprietes.ldr-api-mode .listing-price-wrapper {
    flex: 0 0 auto !important;
    max-width: none !important;
    width: auto !important;
    overflow: visible !important;
  }

  #ldr-proprietes.ldr-api-mode .listing-price-wrapper .listing-description-text,
  #ldr-proprietes.ldr-api-mode .listing-price-wrapper .text-block-42 {
    white-space: nowrap !important;
  }
}

.ldr-card.ldr-hidden {
  display: none !important;
}

#ldr-proprietes.ldr-api-mode .cru-ncf-map-list-item.ldr-card.ldr-hidden,
#ldr-proprietes.ldr-api-mode .ldr-card.ldr-hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#ldr-proprietes.ldr-api-mode .ldr-card,
#ldr-proprietes.ldr-api-mode .ldr-card:hover,
#ldr-proprietes.ldr-api-mode .ldr-card.ldr-active,
#ldr-proprietes.ldr-api-mode .ldr-card-link,
#ldr-proprietes.ldr-api-mode .ldr-card-link:hover,
#ldr-proprietes.ldr-api-mode .cru-ncf-map-list-item.ldr-card,
#ldr-proprietes.ldr-api-mode .cru-ncf-map-list-item.ldr-card:hover,
#ldr-proprietes.ldr-api-mode .cru-ncf-map-list-item.ldr-card.ldr-active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.ldr-map-click-popup .mapboxgl-popup-content,
.ldr-map-click-popup .ldr-map-popup,
.ldr-map-click-popup .ldr-map-popup-body,
.ldr-map-click-popup .ldr-map-popup-body:hover {
  border: none !important;
  outline: none !important;
}

@media (min-width: 992px) {
  #ldr-proprietes.ldr-api-mode .ldr-card:not(.ldr-hidden):hover,
  #ldr-proprietes.ldr-api-mode .ldr-card.ldr-active {
    transform: translateY(-2px);
  }

  #ldr-proprietes.ldr-api-mode .ldr-card-link {
    transition: transform 0.2s ease;
  }

  #ldr-proprietes.ldr-api-mode .ldr-card-media {
    transition: box-shadow 0.2s ease;
  }

  #ldr-proprietes.ldr-api-mode .ldr-card:not(.ldr-hidden):hover .ldr-card-media,
  #ldr-proprietes.ldr-api-mode .ldr-card.ldr-active .ldr-card-media {
    outline: none !important;
    box-shadow: 0 0 0 2px #3d5c3a;
  }
}

.ldr-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 28px 0 8px;
  padding-bottom: 8px;
}

.ldr-pagination.is-hidden {
  display: none;
}

.ldr-page-nums {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ldr-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #303037;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.ldr-page-btn:hover:not(:disabled) {
  background: #f0f0f0;
}

.ldr-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.ldr-page-num.is-current {
  background: #303037;
  color: #fff;
}

.ldr-page-num.is-current:hover:not(:disabled),
.ldr-page-num.is-current:focus-visible:not(:disabled) {
  background: #42424a;
  color: #fff;
}

.ldr-page-ellipsis {
  min-width: 24px;
  text-align: center;
  color: #303037;
  font-size: 0.9375rem;
  user-select: none;
}

.ldr-page-prev,
.ldr-page-next {
  font-size: 1.25rem;
  font-weight: 400;
}

@media (max-width: 767px) {
  .ldr-lieux-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ——— Cartes injectées via API (clone Webflow, legacy) ——— */
.ldr-api-card .map-image-preview,
.ldr-api-card .popup-image,
.ldr-api-card .popup-image.left {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  background: #d8d4c8;
}

.ldr-api-card .map-image-preview img.ldr-photo-target,
.ldr-api-card .popup-image img.ldr-photo-target {
  display: block !important;
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.ldr-api-card .personnes-max,
.ldr-api-card .personnes-max .listing-description-text,
.ldr-api-card .personnes-max * {
  color: #5c5c66 !important;
}

.ldr-api-card .listing-price-wrapper .listing-description-text,
.ldr-api-card .listing-price-wrapper .text-block-42 {
  color: #f5f3e9 !important;
  opacity: 1 !important;
}

/* ——— Embed CMS (données cachées) ——— */
.ldr-data {
  display: none !important;
  visibility: hidden;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Listes CMS dupliquées (legacy NCF) : masquer les copies */
.ldr-duplicate-list {
  display: none !important;
}

/* ——— Liste : visibilité ——— */
.locations-map_item.ldr-hidden,
.cru-ncf-map-list-item.ldr-hidden,
.ldr-cms-list .locations-map_item.ldr-hidden {
  display: none !important;
}

.locations-map_item.ldr-active .map-image-preview,
.locations-map_item.ldr-active .location-map_card-wrap {
  outline: 2px solid #3d5c3a;
  outline-offset: 2px;
  border-radius: 12px;
}

/* Hover carte (desktop) */
@media (min-width: 992px) {
  .locations-map_item:not(.ldr-hidden) .location-map_card-wrap {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .locations-map_item:not(.ldr-hidden):hover .location-map_card-wrap {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(48, 48, 55, 0.1);
  }
}

/* ——— État vide ——— */
.ldr-empty-state {
  display: none;
  padding: 2rem 1rem;
  text-align: center;
}

.ldr-empty-state.is-visible {
  display: block;
}

/* Masquer la grille quand vide */
.ldr-lieux-list.is-empty .locations-map_item {
  display: none !important;
}

/* ——— Filtres : chips actifs ——— */
.ldr-filter-type.is-active,
.ldr-filter-amenity.is-active,
.ncf-filter-chip-2.ldr-filter-type.is-active {
  background-color: #3d5c3a !important;
  color: #f5f3e9 !important;
  border-color: #3d5c3a !important;
}

/* Sliders (accent vert) */
.ldr-range-input {
  accent-color: #3d5c3a;
  width: 100%;
}

.ldr-range-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #5c5c66;
  margin-top: 0.25rem;
}

/* Section équipements dans la modale */
.ldr-amenities-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Compteur liste : styles principaux dans .ldr-list-head */

/* Map : curseur pins */
#ldr-map,
#map {
  border-radius: 12px;
  min-height: 400px;
  width: 100%;
}

/* Section map : éviter collapse à 0px */
.section.map {
  min-height: 520px;
}

/* Ne pas masquer tout le bloc #ldr-proprietes : retirer le composant Dynamic Map dans Webflow,
   puis supprimer cette règle. Pendant la migration seulement : */
#ldr-proprietes.cru-ncf-dynamic-map.ldr-ncf-suppressed {
  display: none !important;
}

/* Hauteur minimale zone carte (évite section à 0px si flex enfant vide) */
.ncf-map-wrapper,
.ncf-map-inner-wrapper {
  min-height: 480px;
}

/* Refokus pagination masquée (legacy) */
.c-pagination_numbers-wrapper {
  display: none;
}

/* Loading overlay léger */
.ldr-loading {
  position: relative;
}

.ldr-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 243, 233, 0.6);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.ldr-loading.is-busy::after {
  opacity: 1;
}

/* ——— Chargement initial page ——— */
#ldr-proprietes.ldr-is-loading {
  position: relative;
  min-height: min(72vh, 680px);
}

#ldr-proprietes.ldr-is-loading .ldr-split-layout,
#ldr-proprietes.ldr-is-loading > .ldr-toolbar {
  visibility: hidden;
}

@media (max-width: 991px) {
  html:has(#ldr-proprietes.ldr-is-loading) .section.map {
    min-height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
  }

  #ldr-proprietes.ldr-is-loading,
  #ldr-proprietes.ldr-api-mode.ldr-is-loading {
    position: fixed !important;
    inset: 0;
    min-height: 100dvh;
    max-height: 100dvh;
    height: 100dvh;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 10000;
  }

  #ldr-proprietes.ldr-is-loading .ldr-page-loader,
  #ldr-proprietes.ldr-api-mode.ldr-is-loading .ldr-page-loader {
    position: fixed;
    inset: 0;
    z-index: 10001;
    align-items: flex-start;
    justify-content: center;
    padding-top: min(28vh, 200px);
  }
}

.ldr-page-loader {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f3e9;
  background-image: radial-gradient(rgba(48, 48, 55, 0.11) 1px, transparent 1px);
  background-size: 18px 18px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ldr-page-loader.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ldr-page-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 24px;
  text-align: center;
}

.ldr-page-loader-scene {
  position: relative;
  width: 104px;
  height: 104px;
}

.ldr-page-loader-ring {
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(40, 66, 10, 0.22);
  border-radius: 50%;
  animation: ldr-loader-spin 10s linear infinite;
}

.ldr-page-loader-orbit {
  position: absolute;
  inset: 10px;
  animation: ldr-loader-spin 3.6s linear infinite;
}

.ldr-page-loader-pin {
  position: absolute;
  top: 0;
  left: 50%;
  width: 13px;
  height: 13px;
  margin-left: -6.5px;
  border-radius: 50%;
  background: #fd5c63;
  box-shadow: 0 2px 10px rgba(253, 92, 99, 0.35);
  transform-origin: 50% 42px;
}

.ldr-page-loader-pin--a {
  transform: rotate(0deg);
}

.ldr-page-loader-pin--b {
  transform: rotate(120deg);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(48, 48, 55, 0.12), 0 2px 10px rgba(48, 48, 55, 0.12);
}

.ldr-page-loader-pin--c {
  transform: rotate(240deg) scale(0.9);
  opacity: 0.8;
}

.ldr-page-loader-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--ldr-accent, #28420a);
  animation: ldr-loader-breathe 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 6px rgba(40, 66, 10, 0.08);
}

.ldr-page-loader-msg {
  margin: 0;
  max-width: 18rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  color: #303037;
  animation: ldr-loader-msg 2.6s ease-in-out infinite;
}

@keyframes ldr-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ldr-loader-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.88;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes ldr-loader-msg {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

/* Select tri */
#ldr-sort {
  appearance: auto;
  cursor: pointer;
}

/* Popup map interne (si template minimal) */
.ldr-popup-card {
  max-width: 220px;
}

.ldr-popup-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.ldr-popup-card .ldr-popup-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.ldr-popup-card .ldr-popup-meta {
  font-size: 0.8rem;
  color: #5c5c66;
}

.ldr-popup-card .ldr-popup-price {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  background: #e8f0e0;
  border: 1px solid #3d5c3a;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Croix fermeture carte (legacy NCF) */
.close-block {
  display: none !important;
}

/* Recherche : suggestions adresse (style Airbnb) */
.ldr-search-wrap {
  position: relative;
}

.ldr-toolbar-search-field .ldr-search-suggest {
  left: 0;
  right: auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.ldr-search-suggest {
  position: fixed;
  z-index: 100002;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(48, 48, 55, 0.16);
  max-height: 320px;
  overflow-y: auto;
}

.ldr-search-suggest-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  color: #303037;
  font-size: 0.9rem;
  line-height: 1.35;
}

.ldr-search-suggest-item:hover,
.ldr-search-suggest-item.is-highlighted {
  background: #f5f3e9;
}

.ldr-search-suggest-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f0eeea
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23303037' stroke-width='1.5' d='M12 21s7-4.35 7-10a7 7 0 1 0-14 0c0 5.65 7 10 7 10Z'/%3E%3Ccircle cx='12' cy='11' r='2.5' stroke='%23303037' stroke-width='1.5'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}

.ldr-search-suggest-text strong {
  font-weight: 600;
}

/* Contrôles carte (expand + zoom) — pile homogène */
.ncf-map-wrapper.ldr-map-wrapper-positioned {
  position: relative;
}

.ncf-map-inner-wrapper.ldr-map-inner-positioned {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Annule le grid 2 colonnes laissé par les styles NCF/Webflow sur .ncf-map-wrapper */
#ldr-proprietes.ldr-api-mode .ldr-layout-map,
#ldr-proprietes.ldr-api-mode .ncf-map-wrapper,
#ldr-proprietes.ldr-api-mode .ncf-map-inner-wrapper,
#ldr-proprietes.ldr-api-mode #ldr-map.cru-ncf-map {
  display: block !important;
  grid-template: none !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  grid-auto-columns: auto !important;
  grid-auto-flow: row !important;
  column-gap: 0 !important;
}

#ldr-map.ldr-map-has-controls {
  position: relative;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 992px) {
  /* Grid 4/10 liste · 6/10 carte */
  #ldr-proprietes.ldr-api-mode .ldr-split-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
    gap: 16px;
    width: 100%;
    min-height: calc(100vh - var(--ldr-sticky-top, 96px));
    margin-bottom: 24px;
    box-sizing: border-box;
  }

  #ldr-proprietes.ldr-api-mode .ldr-layout-list {
    min-width: 0;
    max-width: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--ldr-sticky-top, 96px));
    overflow: hidden;
  }

  #ldr-proprietes.ldr-api-mode .ldr-list-scroll {
    max-height: calc(100vh - var(--ldr-sticky-top, 96px));
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: auto;
    padding: 0 6px 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #ldr-proprietes.ldr-api-mode .ldr-list-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  #ldr-proprietes.ldr-api-mode .ldr-list-host {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #ldr-proprietes.ldr-api-mode .ldr-list-host::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  #ldr-proprietes.ldr-api-mode .ldr-lieux-grid {
    width: 100%;
    max-width: 100%;
  }

  #ldr-proprietes.ldr-api-mode .ldr-layout-map {
    min-width: 0;
    width: 100%;
    max-width: none;
    position: sticky;
    top: var(--ldr-sticky-top, 96px);
    align-self: start;
    justify-self: stretch;
    height: calc(100vh - var(--ldr-sticky-top, 96px));
    min-height: 520px;
    max-height: calc(100vh - var(--ldr-sticky-top, 96px));
    overflow: hidden;
    box-sizing: border-box;
  }

  #ldr-proprietes.ldr-api-mode .ncf-map-wrapper,
  #ldr-proprietes.ldr-api-mode .ncf-map-inner-wrapper,
  #ldr-proprietes.ldr-api-mode #ldr-map {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
  }

  /* Mapbox peut laisser un canvas étroit si le conteneur n’impose pas 100 % en profondeur du DOM. */
  #ldr-proprietes.ldr-api-mode #ldr-map .mapboxgl-map,
  #ldr-proprietes.ldr-api-mode #ldr-map .mapboxgl-canvas-container,
  #ldr-proprietes.ldr-api-mode #ldr-map .mapboxgl-canvas {
    width: 100% !important;
    max-width: none !important;
  }
}

#ldr-map .ldr-map-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 26;
  display: none;
  flex-direction: column;
  width: 29px;
  min-width: 29px;
  max-width: 29px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(48, 48, 55, 0.12);
}

.ldr-map-ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  min-width: 29px;
  max-width: 29px;
  height: 29px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: #fff;
  color: #303037;
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}

.ldr-map-ctrl-btn + .ldr-map-ctrl-btn {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ldr-map-ctrl-btn:hover {
  background: #f7f7f7;
}

.ldr-map-ctrl-btn svg {
  display: block;
}

@media (min-width: 992px) {
  #ldr-map .ldr-map-controls {
    display: flex;
  }

  /* Plein écran : carte dans le flux (static), pas fixed — on peut scroller jusqu’au footer */
  body.ldr-map-fullscreen #ldr-proprietes.ldr-api-mode .ldr-split-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    min-height: calc(100vh - var(--ldr-sticky-top, 96px));
    margin-bottom: 24px;
    overflow: visible !important;
  }

  body.ldr-map-fullscreen #ldr-proprietes.ldr-api-mode .ldr-layout-list {
    display: none !important;
  }

  body.ldr-map-fullscreen #ldr-proprietes.ldr-api-mode .ldr-layout-map {
    position: static !important;
    grid-column: 1 / -1;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: calc(100vh - var(--ldr-sticky-top, 96px) - 16px) !important;
    min-height: 520px !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.ldr-map-fullscreen .ncf-map-wrapper.ldr-map-expanded {
    position: static !important;
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: auto !important;
    overflow: hidden !important;
    background: transparent;
  }

  body.ldr-map-fullscreen .ncf-map-wrapper.ldr-map-expanded .ncf-map-inner-wrapper {
    height: 100% !important;
    min-height: 100% !important;
    border-radius: 12px;
  }

  body.ldr-map-fullscreen .ncf-map-wrapper.ldr-map-expanded #ldr-map,
  body.ldr-map-fullscreen .ncf-map-wrapper.ldr-map-expanded .mapboxgl-map,
  body.ldr-map-fullscreen .ncf-map-wrapper.ldr-map-expanded .mapboxgl-canvas-container,
  body.ldr-map-fullscreen .ncf-map-wrapper.ldr-map-expanded .mapboxgl-canvas {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body.ldr-map-fullscreen #ldr-map .ldr-map-controls,
  body.ldr-map-fullscreen #ldr-map .ldr-map-ctrl-btn {
    width: 29px !important;
    min-width: 29px !important;
    max-width: 29px !important;
    flex-shrink: 0 !important;
  }

  body.ldr-map-fullscreen .c-pagination_numbers-wrapper,
  body.ldr-map-fullscreen .w-pagination-wrapper,
  body.ldr-map-fullscreen .w-pagination-next,
  body.ldr-map-fullscreen .w-pagination-previous {
    display: none !important;
  }
}

/* ——— Mobile : split carte + bottom sheet (style Airbnb) ——— */
@media (max-width: 991px) {
  html.ldr-mobile-ready,
  html.ldr-mobile-ready body {
    height: 100%;
    overflow: hidden;
  }

  html.ldr-mobile-ready body {
    overscroll-behavior: none;
  }

  html.ldr-mobile-ready .navbar_component,
  html.ldr-mobile-ready .navbar1_component,
  html.ldr-mobile-ready header.navbar,
  html.ldr-mobile-ready .section.nav,
  html.ldr-mobile-ready .w-nav[data-collapse] {
    display: none !important;
  }

  html.ldr-mobile-ready .section.map,
  html.ldr-mobile-ready .section.map .w-container,
  html.ldr-mobile-ready .section.map .w-layout-layout,
  html.ldr-mobile-ready .section.map .w-layout-cell,
  html.ldr-mobile-ready .section.map .w-layout-blockcontainer {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    min-height: 0;
    max-height: 100dvh;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #e8e6df;
    box-sizing: border-box;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-toolbar {
    position: relative;
    flex-shrink: 0;
    z-index: 40;
    width: 100%;
    padding: max(8px, env(safe-area-inset-top)) 12px 10px;
    background: #fff;
    border-bottom: 1px solid #ebebeb;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    pointer-events: auto;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-toolbar > * {
    pointer-events: auto;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-toolbar-row.ldr-mobile-header-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-mobile-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #303037;
    text-decoration: none;
    flex-shrink: 0;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-mobile-back .ldr-mobile-logo {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-mobile-back:active {
    background: rgba(0, 0, 0, 0.06);
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-toolbar-sort-cell,
  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-toolbar-search-submit,
  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-toolbar-pill-divider,
  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-toolbar-capacity-btn,
  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-toolbar-field-label,
  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-toolbar-search-field .ldr-search-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
  }

  body.ldr-mobile-search-open .ldr-mobile-search-backdrop {
    display: block;
  }

  .ldr-mobile-search-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
  }

  body.ldr-mobile-search-open #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-toolbar {
    z-index: 10060;
  }

  body.ldr-mobile-search-open #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-toolbar-search-pill {
    position: relative;
    z-index: 2;
  }

  body.ldr-mobile-search-open #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-mobile-search-summary {
    display: none;
  }

  body.ldr-mobile-search-open #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-toolbar-search-field {
    position: relative;
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 8px 14px;
  }

  body.ldr-mobile-search-open #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-toolbar-search-field .ldr-search-input {
    position: static;
    width: 100%;
    height: auto;
    min-height: 32px;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    opacity: 1;
    pointer-events: auto;
    font-size: 1rem;
    color: #222;
  }

  body.ldr-mobile-search-open #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-search-suggest:not([hidden]) {
    display: block;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
  }

  body.ldr-mobile-search-open #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-search-suggest[hidden],
  body.ldr-mobile-search-open #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-search-suggest:empty {
    display: none !important;
    min-height: 0;
    padding: 0;
    border: none;
    box-shadow: none;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-toolbar-search-pill {
    grid-column: 2;
    justify-self: stretch;
    max-width: none;
    min-height: 48px;
    padding: 0;
    border: 1px solid #ebebeb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-toolbar-search-field {
    position: static;
    padding: 0;
    min-height: 48px;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-mobile-search-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 100%;
    min-height: 48px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: center;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-mobile-search-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-mobile-search-subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.25;
    color: #717171;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-toolbar-filters-cell {
    grid-column: 3;
    justify-self: end;
    width: auto;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-toolbar-filters-btn.ldr-mobile-filters-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-toolbar-filters-btn.ldr-mobile-filters-icon span {
    display: none;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-split-layout {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: block;
    margin: 0;
    overflow: hidden;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-layout-map {
    position: absolute;
    inset: 0;
    top: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    z-index: 1;
    overflow: hidden;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ncf-map-wrapper,
  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ncf-map-inner-wrapper,
  #ldr-proprietes.ldr-api-mode.ldr-mobile-active #ldr-map,
  #ldr-proprietes.ldr-api-mode.ldr-mobile-active #ldr-map .mapboxgl-map,
  #ldr-proprietes.ldr-api-mode.ldr-mobile-active #ldr-map .mapboxgl-canvas-container,
  #ldr-proprietes.ldr-api-mode.ldr-mobile-active #ldr-map .mapboxgl-canvas {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-layout-list {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 0;
    max-height: none;
    width: 100%;
    margin: 0;
    padding: 0;
    pointer-events: none;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-list-host {
    position: relative;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    max-height: 52vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: max-height 0.28s cubic-bezier(0.32, 0.72, 0, 1),
      height 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  }

  body.ldr-mobile-view-list #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-list-host {
    max-height: 52vh;
  }

  body.ldr-mobile-view-map #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-list-host {
    max-height: 88px;
  }

  body.ldr-mobile-view-expanded #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-layout-list {
    top: 0;
    bottom: 0;
    height: 100%;
    justify-content: flex-start;
  }

  body.ldr-mobile-view-expanded #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-list-host {
    max-height: none;
    height: 100%;
    flex: 1;
    min-height: 0;
    border-radius: 0;
  }

  body.ldr-mobile-view-expanded:not(.ldr-mobile-sheet-custom)
    #ldr-proprietes.ldr-api-mode.ldr-mobile-active
    .ldr-layout-map {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
  }

  body.ldr-mobile-sheet-custom #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-layout-map {
    display: block !important;
    visibility: visible;
    pointer-events: auto;
    opacity: calc(1 - var(--ldr-sheet-expand, 0));
    transition: none;
  }

  body.ldr-mobile-sheet-custom.ldr-mobile-sheet-full
    #ldr-proprietes.ldr-api-mode.ldr-mobile-active
    .ldr-layout-map {
    opacity: 0;
    pointer-events: none;
  }

  body.ldr-mobile-view-expanded #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-list-scroll {
    opacity: 1;
    pointer-events: auto;
    max-height: none;
  }

  body.ldr-mobile-sheet-custom #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-list-host {
    max-height: var(--ldr-mobile-sheet-height, 58vh);
    height: var(--ldr-mobile-sheet-height, 58vh);
    transition: none;
  }

  body.ldr-mobile-sheet-dragging #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-list-host {
    transition: none;
  }

  body.ldr-mobile-sheet-snapping #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-list-host {
    transition: max-height 0.28s cubic-bezier(0.32, 0.72, 0, 1),
      height 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-mobile-sheet-handle {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 4px;
    touch-action: none;
    cursor: grab;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-mobile-sheet-grab {
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #dddddd;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-mobile-sheet-count {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    color: #222;
    text-align: center;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-mobile-sheet-count.is-hidden {
    display: none;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-list-head .ldr-results-count {
    display: none !important;
  }

  body.ldr-mobile-view-map #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-list-scroll {
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-list-scroll {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0 0 max(16px, env(safe-area-inset-bottom));
    transition: opacity 0.2s ease;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-list-head {
    flex-shrink: 0;
    padding: 0 16px;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-layout-list,
  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-list-host,
  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .cru-ncf-map-items,
  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-list-scroll,
  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-lieux-grid,
  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .cru-ncf-map-item-list {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-lieux-grid,
  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .cru-ncf-map-item-list {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 24px;
    grid-template-columns: none;
    padding: 8px 16px 0;
    order: 1;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-card {
    order: unset !important;
    width: 100%;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-card-media {
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    touch-action: pan-y pinch-zoom;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-card-media.ldr-photo-nav-root {
    touch-action: pan-y;
    overscroll-behavior-x: contain;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-card-body {
    padding: 12px 2px 4px;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-card-title {
    font-size: 0.9375rem;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-pagination {
    display: none !important;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-mobile-map-fab {
    position: sticky;
    bottom: max(20px, calc(env(safe-area-inset-bottom) + 8px));
    align-self: center;
    z-index: 30;
    flex-shrink: 0;
    margin: -48px auto 20px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: none;
    border-radius: 999px;
    background: #222;
    color: #fff;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.15s ease;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-mobile-map-fab:active {
    transform: scale(0.97);
  }

  body.ldr-mobile-view-map #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-mobile-map-fab,
  body.ldr-mobile-has-preview #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-mobile-map-fab,
  body.ldr-mobile-search-open #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-mobile-map-fab {
    display: none !important;
  }

  /* Chips prix carte (markers HTML) — ancrés à la carte, pas au viewport */
  .mapboxgl-marker {
    will-change: auto;
  }

  html.ldr-mobile-ready .mapboxgl-marker .ldr-map-price-chip,
  html.ldr-mobile-ready button.ldr-map-price-chip {
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 6px 10px !important;
    border: none !important;
    border-radius: 999px !important;
    background: #3d5c3a !important;
    color: #f5f3e9 !important;
    font-family: inherit;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: normal;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(48, 48, 55, 0.22);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: transform 0.12s ease, background 0.12s ease;
  }

  html.ldr-mobile-ready .mapboxgl-marker .ldr-map-price-chip.is-active,
  html.ldr-mobile-ready .mapboxgl-marker .ldr-map-price-chip:active,
  html.ldr-mobile-ready button.ldr-map-price-chip.is-active,
  html.ldr-mobile-ready button.ldr-map-price-chip:active {
    background: #28420a !important;
    color: #f5f3e9 !important;
    transform: scale(1.06);
    z-index: 2;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .mapboxgl-popup.ldr-map-hover-popup,
  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .mapboxgl-popup.ldr-map-click-popup {
    display: none !important;
  }

  /* Carte lieu sélectionné (style Airbnb) */
  .ldr-mobile-map-preview {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 96px;
    z-index: 28;
    padding: 0 12px;
    pointer-events: none;
    box-sizing: border-box;
  }

  .ldr-mobile-preview-inner {
    position: relative;
    pointer-events: auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
  }

  .ldr-mobile-preview-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #303037;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
  }

  .ldr-mobile-preview-link {
    display: block;
    color: inherit;
    text-decoration: none;
  }

  .ldr-mobile-preview-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #d8d4c8;
    overflow: hidden;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
  }

  .ldr-mobile-preview-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .ldr-mobile-preview-img--empty {
    min-height: 140px;
  }

  .ldr-mobile-preview-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fd5c63;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
  }

  .ldr-mobile-preview-body {
    padding: 12px 14px 14px;
  }

  .ldr-mobile-preview-title {
    margin: 0 28px 4px 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
    color: #222;
  }

  .ldr-mobile-preview-type,
  .ldr-mobile-preview-cap {
    margin: 0 0 2px;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #717171;
  }

  .ldr-mobile-preview-price {
    margin: 6px 0 0;
  }

  .ldr-mobile-preview-price .ldr-card-price {
    display: inline-flex;
    padding: 4px 10px;
    background: #3d5c3a;
    color: #f5f3e9;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
  }

  body.ldr-mobile-has-preview #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-layout-list {
    display: none !important;
  }

  body.ldr-mobile-has-preview #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-mobile-map-preview {
    bottom: 24px;
  }

  #ldr-proprietes.ldr-api-mode.ldr-mobile-active .ldr-fm-participants {
    padding: 0;
  }

  /* #ldr-filters-root est sur document.body, pas dans #ldr-proprietes */
  .ldr-fm-root {
    align-items: center;
    justify-content: center;
    padding: calc(24px + env(safe-area-inset-top, 0px)) 14px
      calc(28px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }

  .ldr-fm-dialog {
    width: 100%;
    max-width: none;
    min-height: 0 !important;
    max-height: calc(
      100dvh - 52px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
    );
    border-radius: 16px;
    margin: 0;
    box-shadow: 0 16px 48px rgba(48, 48, 55, 0.22);
  }
}

@media (min-width: 992px) {
  .ldr-mobile-back,
  .ldr-mobile-search-summary,
  .ldr-mobile-sheet-handle,
  .ldr-mobile-map-fab,
  .ldr-mobile-map-preview,
  .ldr-map-price-chip {
    display: none !important;
  }
}
