/* ============================================================
   com_hib — Help In Brussels — Frontend CSS v1.3.6
   ============================================================ */
:root {
  --hib-bg:     #F7F6F2;
  --hib-sur:    #ffffff;
  --hib-brd:    #E2E0D8;
  --hib-txt:    #1A1916;
  --hib-mut:    #6B6960;
  --hib-acc:    #2C5F8A;
  --hib-acc2:   #E8572A;
  --hib-grn:    #2E9E6B;
  --hib-grn-bg: #EDF7F1;
  --hib-grn-t:  #1E6B46;
  --hib-tag:    #EAF2F8;
  --hib-tag-t:  #1A3D5C;
  --hib-pill:   999px;
  --hib-r:      12px;
  --hib-sh:     0 2px 8px rgba(0,0,0,.07), 0 0 0 1px var(--hib-brd);
  --hib-sh2:    0 6px 24px rgba(0,0,0,.12), 0 0 0 1px var(--hib-brd);
}

/* APP — hauteur fixe calculée depuis le viewport moins le header Joomla */
#hib-app {
  display: flex;
  flex-direction: column;
  /* Hauteur dynamique : tout l'espace restant sous le header */
  height: calc(100vh - var(--hib-header-h, 0px));
  min-height: 500px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--hib-txt);
  background: var(--hib-bg);
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

/* TOPBAR */
.hib-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--hib-sur);
  border-bottom: 1px solid var(--hib-brd);
  flex-shrink: 0;
  height: 52px;
}
.hib-search-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.hib-search-wrap svg {
  position: absolute;
  left: 13px;
  color: var(--hib-mut);
  pointer-events: none;
}
#hib-search {
  width: 100%;
  height: 38px;
  border: 1.5px solid var(--hib-brd);
  border-radius: var(--hib-pill);
  padding: 0 16px 0 38px;
  background: var(--hib-bg);
  font-size: 13.5px;
  color: var(--hib-txt);
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}
#hib-search:focus { border-color: var(--hib-acc); }
#hib-search::placeholder { color: var(--hib-mut); }
.hib-view-toggle { display: flex; gap: 3px; flex-shrink: 0; }
.hib-vbtn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hib-brd); border-radius: 8px;
  background: var(--hib-sur); cursor: pointer; color: var(--hib-mut);
  transition: all .15s;
}
.hib-vbtn.active { background: var(--hib-acc); border-color: var(--hib-acc); color: #fff; }
.hib-vbtn:hover:not(.active) { background: var(--hib-bg); color: var(--hib-txt); }

/* CATBAR */
.hib-catbar { display: none; }
.hib-catlist { display: none; }
.hib-cat {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 13px;
  border-radius: var(--hib-pill);
  border: 1.5px solid var(--hib-brd);
  background: var(--hib-sur);
  cursor: pointer; white-space: nowrap;
  font-size: 12.5px; font-weight: 500; color: var(--hib-mut);
  transition: all .15s; user-select: none;
}
.hib-cat:hover { border-color: var(--hib-txt); color: var(--hib-txt); }
.hib-cat.active { background: var(--hib-txt); border-color: var(--hib-txt); color: #fff; }

/* FILTERS */
.hib-filters { display: none; }
.hib-fc {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 11px;
  border: 1px solid var(--hib-brd); border-radius: var(--hib-pill);
  background: var(--hib-sur); cursor: pointer;
  font-size: 12px; color: var(--hib-mut); white-space: nowrap;
  transition: all .15s; flex-shrink: 0;
}
.hib-fc:hover { border-color: var(--hib-txt); color: var(--hib-txt); }
.hib-fc.active { background: var(--hib-txt); border-color: var(--hib-txt); color: #fff; }

/* MAIN LAYOUT — prend tout l'espace restant */
.hib-main {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
  min-height: 0; /* crucial pour flex child */
}

/* LEFT PANEL */
.hib-panel-left {
  width: 580px;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--hib-bg);
  transition: width .3s;
  min-height: 0;
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.hib-panel-left::-webkit-scrollbar { width: 4px; }
.hib-panel-left::-webkit-scrollbar-thumb { background: var(--hib-brd); border-radius: 4px; }
.hib-res-header {
  font-size: 12.5px;
  color: var(--hib-mut);
  padding: 8px 12px;
  flex-shrink: 0;
  /* Sticky — reste visible quand on scrolle la liste */
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--hib-bg);
  border-bottom: 1px solid var(--hib-brd);
  margin: -12px -12px 0 -12px; /* compenser le padding du panel */
  width: calc(100% + 24px);
  box-sizing: border-box;
}

/* CARD */
.hib-card {
  background: var(--hib-sur);
  border-radius: var(--hib-r);
  box-shadow: var(--hib-sh);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .2s, transform .15s;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
/* Conteneur grille — 2 colonnes par défaut (vue split), 4 en vue liste */
#hib-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
}
.hib-view-list #hib-cards {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px;
}
.hib-card:hover { box-shadow: var(--hib-sh2); transform: translateY(-1px); }
.hib-card.sel { box-shadow: 0 0 0 2.5px var(--hib-acc), var(--hib-sh2); }
.hib-card-img { height: 118px; position: relative; overflow: hidden; flex-shrink: 0; }
.hib-card-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
  background: linear-gradient(135deg, var(--hib-tag) 0%, #dce9f4 100%);
}
.hib-card-img img { width: 100%; height: 100%; object-fit: cover; }
.hib-card-badge {
  position: absolute; top: 9px; left: 9px;
  background: rgba(255,255,255,.93); backdrop-filter: blur(4px);
  border-radius: var(--hib-pill); padding: 3px 9px;
  font-size: 10.5px; font-weight: 600; color: var(--hib-acc);
}
.hib-card-urgent {
  position: absolute; top: 9px; right: 9px;
  background: var(--hib-acc2); border-radius: var(--hib-pill);
  padding: 3px 9px; font-size: 10px; font-weight: 700; color: #fff;
}
.hib-card-body { padding: 11px 13px; display: flex; flex-direction: column; gap: 6px; }
.hib-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.hib-card-name { font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.hib-card-type { font-size: 11px; color: var(--hib-mut); margin-top: 2px; }
.hib-card-status { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.hib-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hib-grn); flex-shrink: 0; }
.hib-dot.cl { background: #D1CFC8; }
.hib-card-status span { font-size: 11px; color: var(--hib-mut); white-space: nowrap; }
.hib-card-addr { font-size: 11.5px; color: var(--hib-mut); display: flex; align-items: center; gap: 5px; }
.hib-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.hib-tag { border-radius: var(--hib-pill); padding: 3px 8px; font-size: 11px; font-weight: 500; }
.hib-tag-pmr { background: var(--hib-grn-bg); color: var(--hib-grn-t); }
.hib-tag-dog { background: #FDF4EC; color: #7A4015; }
.hib-card-foot {
  padding: 8px 13px 11px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--hib-brd);
}
.hib-card-hr { font-size: 11.5px; color: var(--hib-mut); font-family: monospace; }
.hib-card-dist { font-size: 11px; color: var(--hib-mut); }

/* MAP */
.hib-panel-right {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}
#hib-map {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

/* EMPTY STATE */
.hib-empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 40px 20px; text-align: center;
  color: var(--hib-mut); gap: 10px;
}
.hib-empty-state .hib-empty-icon { font-size: 40px; }
.hib-empty-state p { font-size: 13px; line-height: 1.5; }

/* DETAIL PANEL */
.hib-detail {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 400px;
  background: var(--hib-sur);
  box-shadow: -4px 0 28px rgba(0,0,0,.14);
  z-index: 200;
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
  height: 100%; /* forcer la hauteur à 100% du parent */
}
.hib-detail.open { transform: translateX(0); }
.hib-detail-close {
  position: absolute; top: 12px; left: 12px; z-index: 10;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(4px);
  border: 1px solid var(--hib-brd); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 17px; line-height: 1; transition: background .15s;
}
.hib-detail-close:hover { background: var(--hib-bg); }
.hib-detail-hero {
  height: 180px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; position: relative;
  background: linear-gradient(135deg, var(--hib-tag), #dce9f4);
}
.hib-detail-badge {
  position: absolute; bottom: 11px; left: 12px;
  background: rgba(255,255,255,.93); border-radius: var(--hib-pill);
  padding: 3px 11px; font-size: 10.5px; font-weight: 600; color: var(--hib-acc);
}
.hib-detail-urgent {
  position: absolute; bottom: 11px; right: 12px;
  background: var(--hib-acc2); border-radius: var(--hib-pill);
  padding: 3px 11px; font-size: 10.5px; font-weight: 700; color: #fff;
}
.hib-detail-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
}
.hib-detail-body::-webkit-scrollbar { width: 3px; }
.hib-detail-body::-webkit-scrollbar-thumb { background: var(--hib-brd); border-radius: 4px; }
.hib-detail-section { display: flex; flex-direction: column; gap: 8px; }
.hib-section-title {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--hib-mut);
  padding-bottom: 5px; border-bottom: 1px solid var(--hib-brd);
}
.hib-detail-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.hib-dtag {
  display: flex; align-items: center; gap: 5px;
  background: var(--hib-bg); border: 1px solid var(--hib-brd);
  border-radius: var(--hib-pill); padding: 4px 11px; font-size: 12px;
}
.hib-sched-row {
  display: flex; justify-content: space-between;
  font-size: 12.5px; padding: 5px 0; border-bottom: 1px solid var(--hib-brd);
}
.hib-sched-row:last-child { border-bottom: none; }
.hib-sched-row.today .hib-sched-day { color: var(--hib-acc); font-weight: 700; }
.hib-sched-row.today .hib-sched-time { color: var(--hib-acc); }
.hib-sched-day { color: var(--hib-mut); font-weight: 500; }
.hib-sched-time { font-family: monospace; font-size: 12px; }
.hib-cbtn {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 13px; border-radius: 8px;
  border: 1px solid var(--hib-brd); background: var(--hib-bg);
  cursor: pointer; font-size: 13px; color: var(--hib-txt);
  text-decoration: none; transition: all .15s;
}
.hib-cbtn:hover { border-color: var(--hib-acc); color: var(--hib-acc); background: var(--hib-tag); }
.hib-status-badge {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: var(--hib-pill);
  font-size: 12px; font-weight: 600;
}
.hib-status-badge.open { background: var(--hib-grn-bg); color: var(--hib-grn-t); }
.hib-status-badge.cl { background: #F5F4F1; color: var(--hib-mut); }
.hib-detail-actions {
  padding: 12px 18px; border-top: 1px solid var(--hib-brd);
  display: flex; gap: 8px; flex-shrink: 0;
}
.hib-btn-primary {
  flex: 1; padding: 11px; border-radius: 8px;
  background: var(--hib-acc); color: #fff; border: none;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s;
}
.hib-btn-primary:hover { background: #234e72; }
.hib-btn-secondary {
  padding: 11px 14px; border-radius: 8px;
  background: var(--hib-bg); border: 1px solid var(--hib-brd);
  font-size: 13px; font-weight: 500; cursor: pointer;
  display: flex; align-items: center; gap: 6px; transition: all .15s;
}
.hib-btn-secondary:hover { border-color: var(--hib-txt); }
.hib-overlay {
  display: none; position: absolute; inset: 0;
  background: rgba(0,0,0,.25); z-index: 199;
}
.hib-overlay.vis { display: block; }

/* ══════════════════════════════════════════
   RESPONSIVE MOBILE — Style Airbnb
   Carte en haut, drawer liste en bas
   ══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* L'app prend tout l'écran sous le header */
  #hib-app {
    height: calc(100vh - var(--hib-header-mobile, 0px));
    flex-direction: column;
    position: relative;
  }

  /* CARTE — occupe le haut, hauteur fixe */
  .hib-main {
    flex-direction: column;
    position: relative;
    overflow: visible;
  }
  .hib-panel-right {
    display: block !important;
    width: 100% !important;
    height: 55vh;
    flex-shrink: 0;
    order: 1;
  }
  #hib-map { height: 100%; min-height: 0; }

  /* DRAWER LISTE — slide depuis le bas */
  .hib-panel-left {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    height: calc(45vh + 30px); /* dépasse un peu en haut */
    background: var(--hib-sur);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,.18);
    z-index: 50;
    order: 2;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-top: 0;
    gap: 0;
    /* Animation slide */
    transition: height .3s cubic-bezier(.4,0,.2,1);
  }

  /* Handle drag — petite barre en haut du drawer */
  .hib-panel-left::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #D1CFC8;
    border-radius: 4px;
    margin: 10px auto 8px;
    flex-shrink: 0;
  }

  /* Drawer étendu (après drag vers le haut) */
  .hib-panel-left.expanded {
    height: 85vh;
  }

  /* Compteur résultats sticky dans le drawer */
  .hib-res-header {
    position: sticky;
    top: 0;
    background: var(--hib-sur);
    z-index: 5;
    border-radius: 0;
    border-bottom: 1px solid var(--hib-brd);
    margin: 0 -12px;
    width: calc(100% + 24px);
    padding: 8px 16px;
  }

  /* Cards dans le drawer */
  .hib-card {
    border-radius: 10px;
    margin: 0 4px;
  }

  /* Pas de panel split sur mobile */
  .hib-panel-right { flex: none; }

  /* Detail panel — plein écran depuis le bas */
  .hib-detail {
    width: 100%;
    top: auto;
    bottom: 0;
    height: 88vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(102%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
  }
  .hib-detail.open { transform: translateY(0); }

  /* Pills catégories */
  .hib-catlist { padding: 6px 12px; gap: 6px; }
  .hib-cat { padding: 4px 10px; font-size: 12px; }
  .hib-catbar { height: 44px; }

  /* Filtres attributs */
  .hib-filters { padding: 5px 12px; height: 40px; }
  .hib-fc { padding: 3px 9px; font-size: 11.5px; }

  /* Topbar plus compacte */
  .hib-topbar { height: 46px; padding: 6px 12px; }
}

/* Cacher le bouton flottant — on n'en a plus besoin avec le drawer */
.hib-mobile-map-btn { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .hib-detail, .hib-card, .hib-cat { transition: none; }
}

/* ── FIX SCROLL MOLETTE ── */
.hib-panel-left,
.hib-detail-body {
  /* Forcer la réception des événements scroll */
  pointer-events: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
/* Empêcher Google Maps de capturer la molette quand on est sur la liste ou le détail */
.hib-panel-left:hover,
.hib-detail-body:hover {
  z-index: 1;
}


/* ══ BOUTON FILTRES ══ */
.hib-filter-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid var(--hib-brd);
  border-radius: var(--hib-pill);
  background: var(--hib-sur);
  cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--hib-txt); font-family: inherit;
  transition: all .15s; flex-shrink: 0;
}
.hib-filter-btn:hover { border-color: var(--hib-txt); }
.hib-filter-btn.active { background: var(--hib-txt); color: #fff; border-color: var(--hib-txt); }
.hib-filter-badge {
  background: var(--hib-acc2); color: #fff;
  border-radius: 999px; font-size: 10px; font-weight: 700;
  padding: 1px 6px;
}

/* ══ PANNEAU FILTRES ══ */
.hib-fp-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.4); z-index: 500;
}
.hib-fp-overlay.open { display: block; }
.hib-fp-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 380px; max-width: 100vw;
  background: #fff; z-index: 501;
  display: flex; flex-direction: column;
  transform: translateX(110%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.2);
}
.hib-fp-panel.open { transform: translateX(0); }
.hib-fp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--hib-brd); flex-shrink: 0;
}
.hib-fp-title { font-size: 16px; font-weight: 700; }
.hib-fp-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--hib-brd); background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--hib-mut); transition: background .15s;
}
.hib-fp-close:hover { background: var(--hib-bg); }
.hib-fp-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
}
.hib-fp-sec-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .7px; color: var(--hib-mut); margin-bottom: 10px;
}
.hib-fp-cats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px;
}
.hib-fp-cat {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 11px; border-radius: 9px;
  border: 1.5px solid var(--hib-brd); cursor: pointer;
  font-size: 12.5px; transition: all .15s;
  user-select: none; background: var(--hib-sur);
}
.hib-fp-cat:hover { border-color: var(--hib-txt); }
.hib-fp-cat.active { background: var(--hib-txt); border-color: var(--hib-txt); color: #fff; }
.hib-fp-attrs { display: flex; flex-wrap: wrap; gap: 7px; }
.hib-fp-attr {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: var(--hib-pill);
  border: 1.5px solid var(--hib-brd); cursor: pointer;
  font-size: 12.5px; transition: all .15s;
  user-select: none; background: var(--hib-sur);
}
.hib-fp-attr:hover { border-color: var(--hib-txt); }
.hib-fp-attr.active { background: var(--hib-txt); border-color: var(--hib-txt); color: #fff; }
.hib-fp-foot {
  padding: 14px 20px; border-top: 1px solid var(--hib-brd);
  display: flex; gap: 10px; flex-shrink: 0;
}
.hib-fp-reset {
  flex: 1; padding: 11px; border: 1.5px solid var(--hib-brd);
  border-radius: 8px; background: none; cursor: pointer;
  font-size: 13px; font-weight: 600; font-family: inherit; color: var(--hib-txt);
}
.hib-fp-apply {
  flex: 2; padding: 11px; border: none;
  border-radius: 8px; background: var(--hib-acc); color: #fff;
  cursor: pointer; font-size: 13px; font-weight: 700; font-family: inherit;
}
.hib-fp-apply:hover { background: #234e72; }

@media (max-width: 768px) {
  .hib-fp-panel {
    top: auto; right: 0; left: 0;
    width: 100%; height: 88vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(110%);
  }
  .hib-fp-panel.open { transform: translateY(0); }
  #hib-cards { grid-template-columns: 1fr; gap: 8px; padding: 8px; }
  .hib-panel-left { width: 100% !important; }
}
/* ══ MARKERS GLASSMORPHISM ══ */
.hib-gmarker {
  position: absolute;
  cursor: pointer;
  user-select: none;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
  z-index: 10;
}
.hib-gm-pin {
  width: 40px;
  height: 52px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.25));
  transition: filter .2s, transform .2s cubic-bezier(.34,1.56,.64,1);
}
.hib-gm-pin::before {
  content: '';
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--mc) 75%, transparent);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 1.5px solid rgba(255,255,255,.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    inset 0 -1px 0 rgba(0,0,0,.1),
    0 2px 12px color-mix(in srgb, var(--mc) 40%, transparent);
}
.hib-gm-pin::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: color-mix(in srgb, var(--mc) 80%, #000);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,.3);
}
.hib-gm-emoji {
  position: relative;
  z-index: 1;
  font-size: 18px;
  line-height: 1;
  margin-top: -8px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
}

/* Hover depuis la liste */
.hib-gmarker.hover .hib-gm-pin,
.hib-gmarker:hover .hib-gm-pin {
  transform: scale(1.25) translateY(-4px);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.35));
}
.hib-gmarker.hover .hib-gm-emoji,
.hib-gmarker:hover .hib-gm-emoji {
  font-size: 20px;
}

/* Sélectionné (après clic) */
.hib-gmarker.active .hib-gm-pin {
  transform: scale(1.2) translateY(-3px);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.4));
}
.hib-gmarker.active .hib-gm-pin::before {
  border-width: 2px;
  border-color: rgba(255,255,255,.7);
}

/* Urgent — anneau qui pulse */
.hib-gmarker.urgent .hib-gm-pin::before {
  animation: hib-pulse 1.8s ease-in-out infinite;
}
@keyframes hib-pulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 12px color-mix(in srgb, var(--mc) 40%, transparent); }
  50%       { box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 24px color-mix(in srgb, var(--mc) 70%, transparent), 0 0 0 6px color-mix(in srgb, var(--mc) 20%, transparent); }
}

/* ══ TOPBAR STYLE AIRBNB ══ */
.hib-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--hib-sur);
  border-bottom: 1px solid var(--hib-brd);
  flex-shrink: 0;
  height: 64px;
}

/* Logo */
.hib-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.hib-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* Recherche — prend tout l'espace central */
.hib-search-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}
#hib-search {
  width: 100%;
  height: 42px;
  border: 1.5px solid var(--hib-brd);
  border-radius: var(--hib-pill);
  padding: 0 16px 0 40px;
  background: var(--hib-bg);
  font-size: 13.5px;
  color: var(--hib-txt);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
  font-family: inherit;
}
#hib-search:focus {
  border-color: var(--hib-acc);
  box-shadow: 0 0 0 3px rgba(44,95,138,.1);
  background: #fff;
}

/* ══ BARRE FILTRES ACCESSIBILITÉS ══ */
.hib-filterbar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 16px;
  background: var(--hib-sur);
  border-bottom: 1px solid var(--hib-brd);
  flex-shrink: 0;
  height: 52px;
  overflow-x: auto;
  scrollbar-width: none;
}
.hib-filterbar::-webkit-scrollbar { display: none; }

.hib-filterbar-sep {
  width: 1px;
  height: 28px;
  background: var(--hib-brd);
  margin: 0 14px;
  flex-shrink: 0;
}

.hib-filterbar-attrs {
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.hib-filterbar-attrs::-webkit-scrollbar { display: none; }

/* Pills accessibilités dans la filterbar */
.hib-filterbar .hib-fc {
  white-space: nowrap;
  flex-shrink: 0;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--hib-pill);
  border: 1.5px solid var(--hib-brd);
  background: var(--hib-sur);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--hib-txt);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.hib-filterbar .hib-fc:hover { border-color: var(--hib-txt); }
.hib-filterbar .hib-fc.active {
  background: var(--hib-txt);
  border-color: var(--hib-txt);
  color: #fff;
}

/* Bouton filtres dans la filterbar */
.hib-filterbar .hib-filter-btn {
  height: 36px;
  padding: 0 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .hib-topbar { height: 54px; padding: 8px 12px; gap: 8px; }
  .hib-logo { height: 28px; }
  .hib-search-wrap { max-width: none; }
  #hib-search { height: 36px; font-size: 13px; }
  .hib-filterbar { height: 46px; padding: 0 12px; }
  .hib-filterbar-sep { margin: 0 10px; }
  .hib-filterbar .hib-fc { height: 30px; font-size: 12px; padding: 0 10px; }
}

/* Bouton liste — desktop seulement */
@media (max-width: 768px) {
  .hib-desktop-only { display: none !important; }
}
