.rw-map {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  background: #eeeeee;
  color: var(--primary);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.rw-map-dragging { cursor: grabbing; }

.rw-map-world {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1000px;
  height: 1276px;
  max-width: none;
  object-fit: fill;
  transform-origin: top left;
  pointer-events: none;
}

.rw-map-markers { position: absolute; inset: 0; pointer-events: none; }
.rw-map [hidden] { display: none; }

.rw-map-marker {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 35px;
  width: max-content;
  padding: 0 11px;
  border: 1px solid #fff;
  border-radius: 30px;
  background: var(--forest);
  box-shadow: 0 2px 5px #36363632;
  color: #fff;
  font: inherit;
  font-size: .77rem;
  font-weight: 750;
  white-space: nowrap;
  transform: translate(-50%, -55%);
  cursor: pointer;
  pointer-events: auto;
}

.rw-map-marker::before {
  content: '';
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  width: 0;
  margin-inline: auto;
  border: 5px solid transparent;
  border-top-color: var(--forest);
  transform: translate(var(--pointer-x, 0), -1px);
}

.rw-map-marker:hover,
.rw-map-marker:focus-visible,
.rw-map-marker[aria-pressed="true"] {
  z-index: 2;
  border-color: var(--forest);
  background: var(--lime);
  color: var(--forest);
}

.rw-map-marker:hover::before,
.rw-map-marker:focus-visible::before,
.rw-map-marker[aria-pressed="true"]::before { border-top-color: var(--forest); }

.rw-map-heading {
  position: absolute;
  z-index: 3;
  top: 15px;
  left: 15px;
  max-width: calc(100% - 86px);
  display: grid;
  justify-items: start;
  gap: 5px;
  pointer-events: none;
}

.rw-map-region {
  width: min(100%, 245px);
  min-width: 0;
  min-height: 44px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: white;
  color: var(--ink);
  font-weight: 700;
  font-size: .84rem;
  text-overflow: ellipsis;
  pointer-events: auto;
}

.rw-map-caption {
  padding: 8px 11px;
  border: 1px solid #3535351a;
  border-radius: 30px;
  background: #fffffff5;
  color: var(--primary);
  font-size: .74rem;
  font-weight: 650;
  line-height: 1.15;
  pointer-events: none;
}

.rw-map-caption::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--focus);
  vertical-align: .13em;
  content: '';
}

.rw-map-controls {
  position: absolute;
  z-index: 3;
  top: 15px;
  right: 15px;
  display: grid;
  gap: 7px;
}

.rw-map-zoom,
.rw-map-reset {
  overflow: hidden;
  border: 1px solid #35353526;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 7px #35353518;
}

.rw-map-control {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  background: #fff;
  color: var(--primary);
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.rw-map-zoom .rw-map-control { border: 0; }
.rw-map-zoom .rw-map-control + .rw-map-control { border-top: 1px solid var(--line); }
.rw-map-control:not(:disabled):hover { background: var(--silver); }
.rw-map-control:disabled { color: #747474; cursor: default; }

.rw-map-reset span {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.rw-map-reset span::after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: '';
}

.rw-map-preview {
  position: absolute;
  z-index: 4;
  right: 15px;
  bottom: 28px;
  left: 15px;
  max-width: 310px;
  overflow: hidden;
  border: 1px solid #36363624;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 22px #36363626;
}

.rw-map-preview-open {
  display: flex;
  width: 100%;
  align-items: stretch;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.rw-map-preview-image { width: 82px; min-height: 84px; align-self: stretch; object-fit: cover; }
div.rw-map-preview-open { cursor: default; }
.rw-map-preview-content { display: grid; min-width: 0; gap: 3px; padding: 11px 34px 11px 12px; }
.rw-map-preview-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: .88rem; line-height: 1.25; }
.rw-map-preview-location, .rw-map-preview-price { font-size: .77rem; line-height: 1.2; }
.rw-map-preview-location { color: var(--muted); }
.rw-map-preview-price { font-weight: 750; }

.rw-map-preview-close {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.rw-map-preview-close:hover { background: var(--silver); }
.rw-map-attribution {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  padding: 3px 7px;
  border-top-left-radius: 5px;
  background: #ffffffed;
  color: #383838;
  font-size: .65rem;
  line-height: 1.2;
  text-decoration: underline;
}

.rw-map:focus-visible,
.rw-map button:focus-visible,
.rw-map a:focus-visible,
.rw-map select:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; }
.rw-map-marker:focus-visible { outline-offset: 2px; }

.rw-map-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.rw-map-preview-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border-top: 1px solid var(--line);
}
.rw-map-preview-actions > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--forest);
  font: inherit;
  font-size: .77rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rw-map-preview-actions > :hover { color: var(--forest-hover); }

.rw-map-external {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--paper);
  cursor: auto;
  touch-action: auto;
}

.rw-map-external :is(.rw-map-world, .rw-map-markers, .rw-map-controls, .rw-map-attribution) { display: none; }
.rw-map-unavailable { cursor: default; touch-action: auto; }
.rw-map-unavailable :is(.rw-map-world, .rw-map-controls, .rw-map-attribution) { display: none; }
.rw-map-external .rw-map-heading {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  padding: 7px 10px;
}
.rw-map-external .rw-map-caption { background: transparent; border: 0; padding: 3px; }
.rw-map-embed { grid-row: 2; height: 100%; width: 100%; min-height: 0; border: 0; }
.rw-map-external .rw-map-preview {
  grid-row: 3;
  position: relative;
  inset: auto;
  max-width: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 790px) {
  :is(body[data-page="comprar"], body[data-page="alugar"]) #explorer[data-view="map"] .map-pane {
    grid-row: 1;
  }
  :is(body[data-page="comprar"], body[data-page="alugar"]) #explorer[data-view="map"] .property-map {
    height: clamp(255px, 43svh, 405px);
    min-height: 0;
  }
  :is(body[data-page="comprar"], body[data-page="alugar"]) #explorer[data-view="map"] .results-pane {
    display: block;
  }
  :is(body[data-page="comprar"], body[data-page="alugar"]) #explorer[data-view="map"] .property-list {
    grid-auto-flow: column;
    grid-auto-columns: min(89%, 390px);
    gap: 9px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 3px 2px 9px;
  }
  :is(body[data-page="comprar"], body[data-page="alugar"]) #explorer[data-view="map"] .property-card {
    scroll-snap-align: start;
  }
  .rw-map-marker { min-height: 44px; }
  .rw-map-heading, .rw-map-controls { top: 10px; }
  .rw-map-heading { left: 10px; max-width: calc(100% - 72px); }
  .rw-map-region { font-size: 1rem; }
  .rw-map-controls { right: 10px; }
  .rw-map-control { width: 44px; height: 44px; }
  .rw-map-preview { right: 10px; bottom: 25px; left: 10px; }
  .rw-map-preview-content { padding-right: 47px; }
  .rw-map-preview-close { top: 2px; right: 2px; width: 44px; height: 44px; }
  .rw-map-preview-actions { justify-content: stretch; padding: 0 5px; }
  .rw-map-preview-actions > * { flex: 1 1 0; min-height: 44px; font-size: .82rem; }
}
