.rhs-property-archive-map {
  width: 100%;
  margin: 0 0 var(--vm-page-section-space, 2rem);
  overflow: hidden;
  border: 1px solid rgb(11 52 66 / 10%);
  border-radius: var(--vm-card-radius, 1rem);
  background: #fff;
  box-shadow: var(--vm-shadow, 0 1.25rem 3rem rgb(11 52 66 / 11%));
}

.rhs-property-archive-map__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  color: var(--wp--preset--color--mare-scuro, #0b3442);
}

.rhs-property-archive-map__header h2,
.rhs-property-archive-map__header p {
  margin: 0;
}

.rhs-property-archive-map__header h2 {
  font-size: clamp(1.85rem, 3.4vw, 3.2rem);
  line-height: 1;
}

.rhs-property-archive-map__header > p {
  color: rgb(11 52 66 / 72%);
  font-weight: 600;
}

.rhs-property-archive-map__eyebrow {
  margin-bottom: 0.55rem !important;
  color: var(--wp--preset--color--mare, #3997b6);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.rhs-property-archive-map__canvas {
  z-index: 0;
  width: 100%;
  height: clamp(23rem, 48vw, 36rem);
  border-top: 1px solid rgb(11 52 66 / 10%);
  background: #dce8e9;
}

.rhs-property-map-marker {
  background: transparent;
}

.rhs-property-map-marker span {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--vm-action-color, #d99e82);
  box-shadow: 0 0.5rem 1rem rgb(11 52 66 / 25%);
  transform: rotate(-45deg);
}

.rhs-property-map-marker span::after {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--wp--preset--color--mare-scuro, #0b3442);
  content: "";
}

.rhs-property-map-popup .leaflet-popup-content-wrapper {
  overflow: hidden;
  padding: 0;
  border-radius: 0.9rem;
  box-shadow: 0 1rem 2.5rem rgb(11 52 66 / 20%);
}

.rhs-property-map-popup .leaflet-popup-content {
  width: 17rem !important;
  margin: 0;
}

.rhs-map-popup img {
  display: block;
  width: 100%;
  height: 9rem;
  object-fit: cover;
}

.rhs-map-popup__body {
  padding: 1rem;
  color: var(--wp--preset--color--mare-scuro, #0b3442);
}

.rhs-map-popup__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem;
  color: var(--wp--preset--color--mare, #3997b6);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rhs-map-popup h3 {
  margin: 0.55rem 0 0.85rem;
  font-family: inherit;
  font-size: 1.08rem;
  line-height: 1.2;
}

.rhs-map-popup__approximate {
  margin: -0.35rem 0 0.8rem;
  color: rgb(11 52 66 / 65%);
  font-size: 0.76rem;
  font-weight: 700;
}

.rhs-map-popup a {
  color: var(--vm-button-color, #176b87);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 700px) {
  .rhs-property-archive-map__header {
    align-items: start;
    flex-direction: column;
    gap: 0.6rem;
  }

  .rhs-property-archive-map__canvas {
    height: 27rem;
  }

  .rhs-property-map-popup .leaflet-popup-content {
    width: 14.5rem !important;
  }
}
