.property-map-page {
  width: min(100% - 3rem, 1340px);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 6rem);
}

.property-map-page [hidden] { display: none !important; }
.property-map-intro h1 { font-size: clamp(2.75rem, 6.8vw, 6rem); line-height: 1; margin: 0 0 1rem; }
.property-map-intro h1 em { color: var(--green); }
.property-map-intro p { max-width: 38rem; margin: 0 0 2rem; color: var(--muted); }

.property-map-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.8rem;
  padding: 0.9rem 0;
  border-block: 1px solid var(--rule);
}

.property-map-filters label {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  flex: 1 1 10rem;
  font-size: 0.85rem;
  font-weight: 650;
}
.property-map-filters .property-map-search { flex-basis: 18rem; }
.property-map-budgets {
  display: flex;
  flex: 3 1 27rem;
  flex-wrap: wrap;
  gap: 0.8rem;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
.property-map-budgets label { flex-basis: 8rem; }
.property-map-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.property-map-filters select,
.property-map-filters input,
.property-map-clear,
.property-map-view button,
.property-map-layer button {
  box-sizing: border-box;
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.property-map-filters :is(select, input) { width: 100%; min-width: 0; }
.property-map-view { display: flex; gap: 0.25rem; margin-left: auto; }
.property-map-view button, .property-map-layer button, .property-map-clear { cursor: pointer; }
.property-map-view button[aria-pressed="true"], .property-map-layer button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
#property-map-status, .property-map-note { font-size: 0.9rem; color: var(--muted); }
#property-map-status { margin: 1rem 0 0.75rem; }

.property-map-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 1.1rem;
}
.property-map-shell { position: relative; min-width: 0; }
.property-map-layer {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
}
.property-map-layer button { min-height: 38px; background: #faf8f2; box-shadow: 0 1px 5px #243b3655; }
.property-map-canvas {
  height: clamp(460px, 66vh, 680px);
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #e4ebe6;
  isolation: isolate;
}
.property-map-results { max-height: clamp(460px, 66vh, 680px); overflow: auto; scrollbar-color: #b3b7a7 transparent; }
.property-map-content.is-list { grid-template-columns: 1fr; }
.is-list .property-map-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 275px), 1fr)); gap: 0.8rem; max-height: none; overflow: visible; }
.property-map-card { margin: 0 0 0.65rem; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: #faf8f2; }
.property-map-card img { display: block; width: 100%; height: 116px; object-fit: cover; background: var(--paper); }
.is-list .property-map-card { margin: 0; }
.is-list .property-map-card img { height: 155px; }
.property-map-card-body { padding: 0.95rem 1rem; }
.property-map-card h2 { margin: 0.2rem 0 0.5rem; font-size: 1.3rem; line-height: 1.15; }
.property-map-address { margin: 0 0 0.45rem; color: var(--muted); font-size: 0.82rem; }
.property-map-offers { list-style: none; margin: 0; padding: 0; }
.property-map-offers li { padding: 0.55rem 0; border-top: 1px solid var(--rule); }
.property-map-offer-title { margin: 0; font-size: 0.85rem; font-weight: 650; }
.property-map-offers a { color: var(--green); font-size: 0.85rem; font-weight: 650; text-decoration: underline; text-underline-offset: 0.17em; }
.property-map-offer-summary { margin: 0.2rem 0; font-size: 0.87rem; }
.property-map-offer-summary strong { color: var(--green); }
.property-map-offer-flow { margin: 0.2rem 0 0.3rem; color: var(--muted); font-size: 0.78rem; }
.property-map-offer-link { display: inline-block; margin-top: 0.1rem; }
.property-map-locate { margin-top: 0.45rem; padding: 0.35rem 0.5rem; border: 1px solid var(--rule); border-radius: 4px; background: transparent; color: var(--green); font: inherit; font-size: 0.82rem; cursor: pointer; }
.property-map-locate:hover { background: var(--paper); }

.mesa-property-marker, .mesa-property-cluster { background: transparent; border: 0; }
.mesa-property-marker span, .mesa-property-cluster span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #173e35;
  color: white;
  box-shadow: 0 1px 5px #243b3655;
  font: 700 13px system-ui, sans-serif;
}
.mesa-property-marker.mesa-pin-revenda span { background: #a2633c; }
.mesa-property-marker.mesa-pin-lumma span { background: #34686d; }
.mesa-property-marker span:empty::after { content: ""; width: 8px; height: 8px; border: 1px solid #fff; border-radius: 50%; }
.mesa-property-cluster span { box-shadow: 0 0 0 4px #173e3540; }
.property-map-canvas .leaflet-popup-content { margin: 13px; }
.property-map-popup .property-map-popup-image {
  display: block;
  width: 100%;
  height: 83px;
  margin-bottom: 0.55rem;
  border-radius: 5px;
  background: var(--paper);
  object-fit: cover;
  object-position: center;
}
.property-map-popup .property-map-offers { margin: 0; }
.property-map-popup .property-map-offers p { margin: 0.2rem 0; }
.property-map-popup .property-map-offers li:last-child { padding-bottom: 0; }
.property-map-canvas .leaflet-control-attribution { max-width: min(100% - 8px, 32rem); white-space: normal; }
.property-map-canvas .leaflet-popup-content h3 { color: var(--green); font-size: 1.1rem; margin: 0 16px 0.35rem 0; line-height: 1.15; }
.property-map-canvas .leaflet-popup-content .property-map-address { margin: 0 0 0.35rem; }

@media (max-width: 760px) {
  .property-map-page { width: min(100% - 2rem, 1340px); }
  .property-map-filters label { flex: 1 1 8rem; }
  .property-map-filters .property-map-search, .property-map-budgets { flex-basis: 100%; }
  .property-map-budgets label { flex-basis: 7.5rem; }
  .property-map-budgets label:last-child { flex-grow: 0; }
  .property-map-clear { margin-left: auto; }
  .property-map-view { width: 100%; margin-left: 0; }
  .property-map-view button { flex: 1; }
  .property-map-content { grid-template-columns: minmax(0, 1fr); }
  .property-map-canvas { height: clamp(320px, 56vh, 480px); }
  .property-map-results { max-height: none; overflow: visible; }
}
