/* Kill WP Maps Pro outer wrapper padding */
.wpgmp_infowindow,
.wpgmp_infowindow .fc-infobox-root,
.wpgmp_infowindow .fc-infobox {
  padding: 0 !important;
  margin: 0 !important;
}

.archihub-infobox {
  position: relative;
  width: 220px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  background: #111;
}
.archihub-infobox .fc-infobox-body {
  display: block !important;
  margin: 0;
  padding: 0;
}

/* Image fills the entire card as a background layer */
.archihub-infobox__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
}
.archihub-infobox__img a {
  display: block;
  width: 100%;
  height: 100%;
}
.archihub-infobox__img img,
.archihub-infobox__img a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}
.archihub-infobox:hover .archihub-infobox__img img,
.archihub-infobox:hover .archihub-infobox__img a img {
  transform: scale(1.04);
}

/* Overlay content sits on top of the image */
.archihub-infobox__content {
  position: absolute !important;
  bottom: 0;
  left: 0;
  right: 0;
  top: auto;
  display: block !important;
  padding: 48px 14px 14px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.4) 60%,
    transparent 100%
  );
}
.archihub-infobox__title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 3px;
}
.archihub-infobox__career {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  margin: 0 0 10px;
  line-height: 1.4;
}
.archihub-infobox__cta {
  display: inline-block;
  padding: 7px 16px;
  background: var(--themecolor, #00bcd4);
  color: #fff !important;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
}
.archihub-infobox__cta:hover {
  opacity: 0.85;
}

/* ─── Amenity markers (Google Places API returns tiny ~15px PNGs) ─────────
   The plugin skips scaledSize for non-SVG icons, so amenity icons render
   at their native file dimensions (~15×15px). We upscale via CSS instead.
   These are rendered as <img> tags inside Google Maps' marker layer.     */
.gm-style img[src*="maps.gstatic.com"],
.gm-style img[src*="maps.googleapis.com/maps/vt/icon"] {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
}

/* ─── Amenity name tooltip ───────────────────────────────────────────────
   Shown when a user clicks a nearby-search amenity marker. Intentionally
   minimal — name only, no address, no Google links. Users can search the
   name themselves if they want more detail.
   .archihub-amenity-label is also the signal that tells the POI suppression
   rule below to leave this infowindow alone.                              */
.archihub-amenity-label {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  padding: 2px 4px;
  white-space: nowrap;
}

/* ─── Suppress Google Maps native POI infowindow ─────────────────────────
   The "View on Google Maps" link lives inside Google's own infowindow shell
   (.gm-style-iw). We hide it only when it does NOT contain our custom
   .archihub-infobox, so our freelancer infoboxes are never affected.
   The ::after pseudo-element is the infowindow tail/arrow.               */
.gm-style .gm-style-iw-c:not(:has(.archihub-infobox)):not(:has(.archihub-amenity-label)),
.gm-style .gm-style-iw-c:not(:has(.archihub-infobox)):not(:has(.archihub-amenity-label)) + .gm-style-iw-tc {
  display: none !important;
}
