.lp-properties.lp-map-ready > .lp-properties__grid,
.lp-properties.lp-map-ready > .lp-properties__pagination,
.lp-properties.lp-map-ready .lp-properties__sort,
.lp-properties .lp-listing-map [hidden] { display: none; }

.lp-properties .lp-listing-map { --lp-pin: #1c5378; margin-block: 0 24px; }
.lp-properties[data-deal="rent"] .lp-listing-map { --lp-pin: #20705f; }
.lp-properties .lp-listing-map__frame { overflow: hidden; border: 1px solid var(--lp-line); border-radius: 8px; }
.lp-properties .lp-listing-map__canvas {
  position: relative; isolation: isolate; width: 100%; height: clamp(400px, 64vh, 640px);
  font-family: var(--lp-list-font); background: var(--lp-paper);
}
.lp-properties .lp-listing-map__canvas:focus-visible { outline: 2px solid #245477; outline-offset: -2px; }
.lp-properties .lp-listing-map__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap;
  border-top: 1px solid var(--lp-line); padding: 8px 14px; color: var(--lp-muted); font-size: 13px;
}
.lp-properties .lp-map-fit { border: 0; background: none; padding: 5px 0; font: inherit; color: var(--lb-accent, #0f2540); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lp-properties .lp-map-status, .lp-properties .lp-map-note { margin: 12px 0; color: var(--lp-muted); font-size: 14px; }
.lp-properties .lp-map-cluster, .lp-properties .lp-map-pin > span {
  box-sizing: border-box; display: grid; place-items: center; border: 2px solid white; border-radius: 50%;
  background: var(--lp-pin); color: white; font: 600 14px/1 var(--lp-list-font); box-shadow: 0 2px 6px #172d4540;
}
.lp-properties .lp-map-cluster { outline: 4px solid color-mix(in srgb, var(--lp-pin) 25%, transparent); }
.lp-properties .lp-map-pin > span { width: 32px; height: 32px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.lp-properties .lp-map-pin i { font: inherit; transform: rotate(45deg); }
.lp-properties .leaflet-marker-icon:focus-visible { outline: 3px solid #0f2540; outline-offset: 3px; }
.lp-properties .lp-map-popup .leaflet-popup-content-wrapper {
  padding: 16px; border-radius: 12px; background: white; box-shadow: 0 4px 18px #16263230;
}
.lp-properties .lp-map-popup .leaflet-popup-content { margin: 0; color: var(--lp-ink); font-family: var(--lp-list-font); }
.lp-properties .lp-map-popup .leaflet-popup-close-button { z-index: 1; top: 20px; right: 20px; width: 25px; height: 25px; display: grid; place-items: center; line-height: 1; box-shadow: 0 1px 4px #26374830; border-radius: 50%; background: white; color: #394853; }
.lp-properties .lp-map-card { display: grid; gap: 5px; }
.lp-properties .lp-map-card img { display: block; width: 100%; height: 100px; margin: 0 0 4px; border-radius: 5px; object-fit: cover; }
.lp-properties .lp-map-card__kind { color: var(--lp-muted); font: 400 12px/1.6 var(--lp-list-font); }
.lp-properties .lp-map-card__title { color: var(--lp-ink); font: 400 16px/1.55 var(--lp-list-font); overflow-wrap: anywhere; letter-spacing: normal; }
.lp-properties .lp-map-card__description { display: inline-block; max-width: 100%; }
.lp-properties .lp-map-card__amount { color: var(--lb-accent, #0f2540); font: 500 19px/1.45 var(--lp-list-font); }
.lp-properties .lp-map-card a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 3px; padding-top: 7px; border-top: 1px solid var(--lp-line);
  color: var(--lb-accent, #0f2540); font: 400 14px/1.5 var(--lp-list-font); text-decoration: none;
}
.lp-properties .lp-map-card a:hover, .lp-properties .lp-map-card a:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 600px) {
  .lp-properties .lp-listing-map__canvas { height: clamp(370px, 58vh, 520px); }
}

.lp-properties .lp-map-zoom {
  display: grid; place-items: center; clear: both; padding: 9px 0 10px;
  background: white; border-radius: 3px 3px 0 0; border-bottom: 1px solid #ccc;
}
.lp-properties .lp-map-zoom input[type="range"] {
  appearance: none; -webkit-appearance: none;
  writing-mode: vertical-lr; direction: rtl; touch-action: none;
  display: block; box-sizing: border-box; width: 100%; height: 92px; margin: 0;
  padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer;
}
.lp-properties .lp-map-zoom input::-webkit-slider-runnable-track { width: 3px; border-radius: 2px; background: #c4ced7; }
.lp-properties .lp-map-zoom input::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; width: 13px; height: 13px; margin-left: -5px;
  border: 2px solid white; border-radius: 50%; background: #193954; box-shadow: 0 0 0 1px #476078;
}
.lp-properties .lp-map-zoom input::-moz-range-track { width: 3px; border-radius: 2px; background: #c4ced7; }
.lp-properties .lp-map-zoom input::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid white; border-radius: 50%; background: #193954; box-shadow: 0 0 0 1px #476078; }
.lp-properties .lp-map-zoom input[type="range"]:focus-visible { outline: 2px solid #365b7b; outline-offset: -2px; }
