.fpm-map-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Status filter buttons ── */
.fpm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.fpm-filter-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid #d5d5d5;
  background: #fff;
  color: #444;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fpm-filter-btn:hover { border-color: #3D2070; }

.fpm-filter-btn.fpm-filter-active {
  background: #3D2070;
  border-color: #3D2070;
  color: #fff;
}

.fpm-hotspot.fpm-filtered-out {
  display: none;
}

.fpm-map-inner {
  position: relative;
  width: 100%;
  line-height: 0;
}

.fpm-map-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Hotspot + pin ── */
.fpm-hotspot {
  position: absolute;
  transform: translate(-50%, -100%);
  cursor: pointer;
  outline: none;
}

.fpm-pin {
  display: block;
  width: clamp(14px, 2.4vw, 22px);
  height: clamp(14px, 2.4vw, 22px);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--fpm-pin-color, #3D2070);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fpm-hotspot:hover .fpm-pin,
.fpm-hotspot:focus .fpm-pin,
.fpm-hotspot.fpm-active .fpm-pin {
  transform: rotate(-45deg) scale(1.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.55);
}

.fpm-hotspot.fpm-status-sold .fpm-pin { background: var(--fpm-sold-color, #999999); }
.fpm-hotspot.fpm-status-reserved .fpm-pin { background: var(--fpm-reserved-color, #c48a2a); }

/* ── Popup card ── */
.fpm-popup {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(calc(-50% + var(--fpm-shift, 0px))) translateY(6px);
  width: 240px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
  text-align: left;
}

.fpm-hotspot:hover .fpm-popup,
.fpm-hotspot:focus .fpm-popup,
.fpm-hotspot.fpm-active .fpm-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(calc(-50% + var(--fpm-shift, 0px))) translateY(0);
  pointer-events: auto;
}

.fpm-popup-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.fpm-popup-body { padding: 10px 12px 12px; }

.fpm-popup-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  color: #1a1a2e;
}

.fpm-popup-desc {
  font-size: 12px;
  color: #555;
  margin-bottom: 8px;
  line-height: 1.4;
}

.fpm-popup-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.fpm-popup-price { font-weight: 700; font-size: 13px; color: #1a1a2e; }

.fpm-popup-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e8f5e9;
  color: #2e7d32;
}
.fpm-badge-sold     { background: #f0f0f0; color: #777; }
.fpm-badge-reserved { background: #fdf0dc; color: #a5690e; }

.fpm-popup-link {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 8px;
  border-radius: 5px;
  background: #3D2070;
  color: #fff !important;
  text-decoration: none;
}
.fpm-popup-link:hover { background: #5a35a0; }

/* ── Mobile ── */
@media (max-width: 600px) {
  .fpm-popup { width: 200px; }
  .fpm-popup-thumb { height: 90px; }

  .fpm-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .fpm-filter-btn {
    width: 100%;
    text-align: center;
    padding: 10px 16px; /* slightly taller — easier tap target stacked full-width */
  }
}
