.bh-wrap { font-family: inherit; color: #222; }

/* ---- Derniers cas signalés (editorial strip above map) ---- */
.bh-recent { margin: 0 0 1.5rem; }

.bh-recent-header {
  text-align: center; margin-bottom: 1.25rem; padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.bh-recent-overline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: #dc2626;
}
.bh-recent-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #dc2626;
  box-shadow: 0 0 0 0 rgba(220,38,38,0.6);
  animation: bh-pulse 1.8s infinite;
}
@keyframes bh-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(220,38,38,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}
.bh-recent-title {
  font-family: var(--wp--preset--font-family--heading, Georgia, serif);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 600; line-height: 1.1;
  margin: 0.35rem 0 0.25rem; letter-spacing: -0.015em; color: #111827;
}
.bh-recent-intro { font-size: 0.92rem; color: #4b5563; margin: 0 auto; line-height: 1.5; max-width: 56ch; }

.bh-recent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.bh-recent-card {
  position: relative; display: flex; flex-direction: column; gap: 0.7rem;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 1.1rem 1.15rem 1rem;
  text-decoration: none; color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 1px 2px rgba(15,23,42,0.03);
  overflow: hidden;
}
.bh-recent-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: #9ca3af; transition: background 0.18s ease;
}
.bh-recent-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -10px rgba(15,23,42,0.15);
  border-color: #d1d5db;
}
.bh-recent-card--commercial::before  { background: #2563eb; }
.bh-recent-card--residential::before { background: #b91c1c; }
.bh-recent-card--public::before      { background: #7c3aed; }

.bh-recent-head { display: flex; align-items: center; gap: 0.55rem; }
.bh-recent-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; font-size: 1rem;
  background: #f3f4f6;
}
.bh-recent-card--commercial  .bh-recent-icon { background: #dbeafe; }
.bh-recent-card--residential .bh-recent-icon { background: #fee2e2; }
.bh-recent-card--public      .bh-recent-icon { background: #ede9fe; }

.bh-recent-type {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: #6b7280;
}
.bh-recent-card--commercial  .bh-recent-type { color: #1e3a8a; }
.bh-recent-card--residential .bh-recent-type { color: #991b1b; }
.bh-recent-card--public      .bh-recent-type { color: #5b21b6; }
.bh-recent-date {
  margin-left: auto; font-size: 0.72rem; color: #9ca3af;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.bh-recent-place { line-height: 1.2; }
.bh-recent-commune {
  font-family: var(--wp--preset--font-family--heading, Georgia, serif);
  font-size: 1.3rem; font-weight: 600; margin: 0; letter-spacing: -0.015em;
  color: #111827; line-height: 1.15;
}
.bh-recent-target {
  font-size: 0.78rem; color: #6b7280; margin-top: 0.2rem;
  text-transform: lowercase;
}

.bh-recent-quote {
  position: relative; font-style: italic; font-size: 0.88rem; line-height: 1.45;
  color: #374151; margin: 0; padding: 0.15rem 0 0.15rem 0.7rem;
  border-left: 2px solid #e5e7eb;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bh-recent-body {
  font-size: 0.85rem; line-height: 1.55; color: #4b5563; margin: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.bh-recent-foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.75rem; padding-top: 0.6rem; margin-top: auto;
  border-top: 1px solid #f3f4f6;
}
.bh-recent-source {
  font-weight: 600; color: #111827; letter-spacing: 0.01em;
}
.bh-recent-arrow {
  color: #6b7280; font-weight: 500;
  transition: color 0.18s ease, transform 0.18s ease;
}
.bh-recent-arrow span { display: inline-block; transition: transform 0.18s ease; margin-left: 0.15rem; }
.bh-recent-card:hover .bh-recent-arrow { color: #111827; }
.bh-recent-card:hover .bh-recent-arrow span { transform: translateX(4px); }
.bh-recent-card--commercial:hover  .bh-recent-arrow { color: #1e3a8a; }
.bh-recent-card--residential:hover .bh-recent-arrow { color: #991b1b; }
.bh-recent-card--public:hover      .bh-recent-arrow { color: #5b21b6; }

.bh-recent-empty { grid-column: 1 / -1; text-align: center; color: #9ca3af; padding: 2rem; font-size: 0.9rem; }

.bh-recent-skel {
  background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
  background-size: 200% 100%; animation: bh-skel 1.4s infinite;
  min-height: 240px; border-color: transparent;
}
.bh-recent-skel::before { display: none; }
@keyframes bh-skel {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 900px) {
  .bh-recent-grid { grid-template-columns: 1fr; }
  .bh-recent-title { font-size: 1.45rem; }
}
/* ---- end derniers cas ---- */
.bh-wrap .bh-layout { display: grid; grid-template-columns: 1fr 340px; }
.bh-wrap.bh-full  .bh-layout { height: 75vh; min-height: 520px; max-height: 800px; }
.bh-wrap .bh-map { position: relative; }
.bh-wrap .bh-hint {
  position: absolute; top: 0.6rem; left: 50%; transform: translateX(-50%);
  background: rgba(15,23,42,0.85); color: #fff; padding: 0.35rem 0.85rem;
  border-radius: 999px; font-size: 0.78rem; font-weight: 500;
  z-index: 500; pointer-events: none; opacity: 0; transition: opacity 0.2s;
}
.bh-wrap .bh-map:hover .bh-hint { opacity: 1; }
.bh-wrap .bh-map.is-active .bh-hint { display: none; }
.bh-wrap.bh-embed .bh-layout { height: var(--bh-height, 700px); }
.bh-wrap .bh-map { height: 100%; min-height: inherit; }
.bh-wrap .bh-panel { overflow-y: auto; padding: 1rem; background: #fff; border-left: 1px solid #e5e5e5; }
.bh-wrap .bh-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.25rem; }
.bh-wrap .bh-sub { font-size: 0.8rem; color: #777; margin: 0 0 1rem; }
.bh-wrap .bh-section { margin: 0.5rem 0 0.3rem; font-size: 0.9rem; }
.bh-wrap .bh-acc { margin: 0.5rem 0 0; border-top: 1px solid #eee; }
.bh-wrap .bh-acc + .bh-acc { margin-top: 0; }
.bh-wrap .bh-acc-summary {
  list-style: none; cursor: pointer; padding: 0.65rem 0;
  font-size: 0.9rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.4rem;
  user-select: none;
}
.bh-wrap .bh-acc-summary::-webkit-details-marker { display: none; }
.bh-wrap .bh-acc-summary::marker { display: none; content: ""; }
.bh-wrap .bh-acc-summary:hover { color: #2563eb; }
.bh-wrap .bh-acc-chevron {
  margin-left: auto; font-size: 0.85rem; color: #9ca3af;
  transition: transform 0.2s ease;
}
.bh-wrap .bh-acc[open] .bh-acc-chevron { transform: rotate(180deg); }
.bh-wrap .bh-acc-body { padding-bottom: 0.5rem; }
.bh-wrap .bh-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-bottom: 1rem; }
.bh-wrap .bh-stat { padding: 0.5rem; background: #f6f6f8; border-radius: 6px; }
.bh-wrap .bh-stat .n { font-size: 1.4rem; font-weight: 600; line-height: 1.1; }
.bh-wrap .bh-stat .l { font-size: 0.75rem; color: #666; margin-top: 0.1rem; }
.bh-wrap .bh-row { padding: 0.5rem; border-bottom: 1px solid #eee; font-size: 0.88rem; cursor: pointer; }
.bh-wrap .bh-row:hover { background: #fafafa; }
.bh-wrap .bh-row .c { font-weight: 700; color: #b91c1c; }
.bh-wrap .bh-row .desc { color: #555; font-size: 0.78rem; margin-top: 0.2rem; }
.bh-wrap .bh-toolbar { display: flex; gap: 0.4rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.bh-wrap .bh-btn { padding: 0.35rem 0.7rem; border: 1px solid #ccc; border-radius: 4px; background: #fff; cursor: pointer; font-size: 0.82rem; color: #333; }
.bh-wrap .bh-btn.on { background: #2563eb; color: #fff; border-color: #2563eb; }
.bh-wrap .bh-btn:hover { background: #eee; }
.bh-wrap .bh-btn.on:hover { background: #1e4fc5; }
.bh-wrap .bh-legend { font-size: 0.75rem; color: #888; margin-top: 0.75rem; border-top: 1px solid #eee; padding-top: 0.5rem; }
.bh-wrap .bh-spin { display: inline-block; width: 12px; height: 12px; border: 2px solid #ccc; border-top-color: #2563eb; border-radius: 50%; animation: bh-spin 0.8s linear infinite; vertical-align: middle; }
@keyframes bh-spin { to { transform: rotate(360deg); } }
@media (max-width: 768px) {
  .bh-wrap .bh-layout { grid-template-columns: 1fr; grid-template-rows: 55vh 45vh; }
  .bh-wrap.bh-embed .bh-layout { grid-template-rows: 60% 40%; }
  .bh-wrap .bh-panel { border-left: none; border-top: 1px solid #e5e5e5; }
}
.bh-modal { border: 0; border-radius: 12px; padding: 0; max-width: min(720px, 92vw); width: 100%; max-height: 86vh; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,0.3); }
.bh-modal::backdrop { background: rgba(0,0,0,0.55); backdrop-filter: blur(2px); }
.bh-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; background: #fff; z-index: 1; }
.bh-modal-title { margin: 0; font-size: 1.1rem; font-weight: 700; color: #111; }
.bh-modal-close { background: transparent; border: 0; font-size: 1.75rem; line-height: 1; cursor: pointer; color: #6b7280; padding: 0 0.5rem; }
.bh-modal-close:hover { color: #111; }
.bh-modal-body { padding: 1rem 1.25rem 1.5rem; overflow-y: auto; max-height: calc(86vh - 60px); }
.bh-modal-body .bh-row { padding: 0.75rem 0; border-bottom: 1px solid #f0f0f0; }
.bh-modal-body .bh-row:last-child { border-bottom: 0; }
.bh-modal-body .desc { color: #444; margin-top: 0.25rem; line-height: 1.4; }
