/* ==========================================================================
   Archihub Map Infobox — marker popup card
   Targets: .archihub-infobox and .archihub-infobox__* semantic classes
   applied inside WP Maps Pro infowindow HTML template (map ID 1).
   Plugin's .fc-infobox-* base resets are assumed to still apply underneath.
   ========================================================================== */

/* ── Root card ─────────────────────────────────────────────────────────── */
.archihub-infobox {
  display: flex;
  flex-direction: column;
  width: 260px;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  /* override plugin default padding that breaks the flush photo layout */
  padding: 0 !important;
}

/* ── Photo strip ────────────────────────────────────────────────────────── */
.archihub-infobox__img {
  width: 100%;
  height: 140px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f4f6;
}

.archihub-infobox__img .fc-feature-img {
  width: 100%;
  height: 100%;
  margin: 0;
}

.archihub-infobox__img img,
.archihub-infobox__img .wp-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── Content area ───────────────────────────────────────────────────────── */
.archihub-infobox__content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px 14px 0;
}

/* ── Header: name + icon buttons ───────────────────────────────────────── */
.archihub-infobox__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.archihub-infobox__title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  flex: 1;
  margin: 0;
}

.archihub-infobox__title a,
.archihub-infobox__title a:visited {
  color: inherit;
  text-decoration: none;
}

.archihub-infobox__title a:hover {
  color: #0a6896;
}

.archihub-infobox__actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  margin-top: 1px;
}

.archihub-infobox__iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.archihub-infobox__iconbtn:hover {
  background: #0a6896;
  color: #ffffff;
}

/* ── Category badges (discipline / career type) ─────────────────────────── */
.archihub-infobox__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

/* Plugin renders badges as <div class="fc-badge"> */
.archihub-infobox__cats .fc-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0a6896;
  background: rgba(10, 104, 150, 0.08);
  border: 1px solid rgba(10, 104, 150, 0.18);
  border-radius: 4px;
  padding: 2px 7px;
  line-height: 1.5;
}

/* ── Excerpt / bio ──────────────────────────────────────────────────────── */
.archihub-infobox__msg {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 10px;
  /* clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Meta list (address, city) ──────────────────────────────────────────── */
.archihub-infobox__meta {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.archihub-infobox__address,
.archihub-infobox__city {
  font-size: 11px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Footer / CTA ───────────────────────────────────────────────────────── */
.archihub-infobox__footer {
  padding: 0 14px 14px;
  margin-top: auto;
}

.archihub-infobox__cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: #0a6896;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.18s;
}

.archihub-infobox__cta:hover,
.archihub-infobox__cta:visited {
  color: #ffffff;
  text-decoration: none;
}

.archihub-infobox__cta:hover {
  background: #085a82;
}

/* ── Plugin container resets ────────────────────────────────────────────── */
/* Strip plugin's default infowindow padding so our card fills edge-to-edge */
.fc-infobox-root {
  padding: 0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: none !important; /* card itself has shadow */
}

/* Ensure the Google Maps infowindow chrome doesn't add extra gap */
.gm-style .gm-style-iw-d {
  overflow: hidden !important;
}

.gm-style .gm-style-iw-c {
  padding: 0 !important;
  border-radius: 10px !important;
}
