.gm-style-iw {
  padding: 0 !important;
  width: 280px;
  border-radius: var(--fm2-radius, 8px) !important;
  overflow: hidden !important;
}

.gm-style-iw .gm-style-iw-d {
  overflow: hidden !important;
  padding: 0 !important;
}

.gm-style-iw .gm-style-iw-chr {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0;
  z-index: 1;
}

/* ── Popup card ───────────────────────────────────────────── */
.map-houses-popup {
  font-family: inherit;
  position: relative;
}

.map-houses-popup-status {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #bc3d3d;
  padding: 3px 10px;
  border-radius: 4px;
}

.map-houses-popup-status.status-sold  { background: #dc2626; }
.map-houses-popup-status.status-offer { background: #d97706; }

.map-houses-popup-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.map-houses-popup-content {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.map-houses-popup-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fm2-text, #1a1f2e);
  margin: 0;
  line-height: 1.3;
}

.map-houses-popup-address {
  font-size: 13px;
  color: var(--fm2-text-muted, #6b7280);
  margin: 0;
  line-height: 1.4;
}

.map-houses-popup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.map-houses-popup-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--fm2-blue, #1a5e8a);
}

.map-houses-popup-stat {
  font-size: 13px;
  color: var(--fm2-text-muted, #6b7280);
}

.map-houses-popup-stat::before {
  content: '·';
  margin-right: 8px;
  color: var(--fm2-border, #dde1e7);
}

.map-houses-popup-link {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 8px 16px;
  background: var(--fm2-blue, #1a5e8a);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--fm2-radius, 8px);
  text-decoration: none;
  transition: background 150ms ease;
  align-self: flex-start;
}

.map-houses-popup-link:hover {
  background: var(--fm2-blue-dark, #154d73);
}
