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

/* ---- Derniers cas signalés (strip above map) ---- */
.bh-recent { margin: 0 0 1.25rem; }
.bh-recent-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; flex-wrap: wrap; }
.bh-recent-title { font-size: 1.05rem; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.bh-recent-sub { font-size: 0.78rem; color: #777; margin-left: auto; }
.bh-recent-pulse {
  width: 10px; height: 10px; 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 10px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}
.bh-recent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.bh-recent-card {
  display: flex; flex-direction: column; gap: 0.55rem;
  background: #fff; border: 1px solid #e5e7eb; border-left: 3px solid #9ca3af;
  border-radius: 10px; padding: 0.9rem 1rem;
  text-decoration: none; color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  min-height: 148px;
}
.bh-recent-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,23,42,0.08);
}
.bh-recent-card--commercial  { border-left-color: #2563eb; }
.bh-recent-card--residential { border-left-color: #b91c1c; }
.bh-recent-card--public      { border-left-color: #7c3aed; }
.bh-recent-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.bh-recent-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 0.2rem 0.55rem; border-radius: 999px;
  background: #f3f4f6; color: #374151;
}
.bh-recent-card--commercial  .bh-recent-badge { background: #dbeafe; color: #1e3a8a; }
.bh-recent-card--residential .bh-recent-badge { background: #fee2e2; color: #991b1b; }
.bh-recent-card--public      .bh-recent-badge { background: #ede9fe; color: #5b21b6; }
.bh-recent-date { font-size: 0.75rem; color: #6b7280; font-variant-numeric: tabular-nums; }
.bh-recent-commune { font-size: 1.02rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.bh-recent-province { font-weight: 400; color: #6b7280; font-size: 0.85rem; }
.bh-recent-body {
  font-size: 0.86rem; line-height: 1.5; color: #374151; 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; color: #6b7280; padding-top: 0.3rem; border-top: 1px solid #f3f4f6;
}
.bh-recent-source { text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.bh-recent-arrow {
  font-size: 1rem; color: #9ca3af; transition: transform 0.15s ease, color 0.15s ease;
}
.bh-recent-card:hover .bh-recent-arrow { transform: translateX(3px); color: #2563eb; }
.bh-recent-empty { grid-column: 1 / -1; text-align: center; color: #999; padding: 1.5rem; 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;
  border-left-color: #e5e7eb; min-height: 148px;
}
@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-card { min-height: 0; }
}
/* ---- 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-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; }
}
