/* --- ID 162: hivepress - tags display --- */
/********************************************
 * UI tags – chips modernes (édition + filtre)
 ********************************************/

/* Retire complètement le texte (facultatif) pour les tags (formulaire annonce) */
.hp-form__field--tags .hp-field__label small {
  display: none !important;
}

/* Cadre rouge si erreur tags (formulaire annonce uniquement) */
.hp-tags-error .select2-selection {
  border: 2px solid #e35656 !important;
}

/* On utilisera .hp-form__field--tags pour
   - le champ tags de l’annonce
   - le champ tags du filtre (on l’ajoute en JS) */
.hp-form__field--tags {
  position: relative;
}

/* On cache l’UI Select2 et on garde juste le champ pour la soumission */
.hp-form__field--tags .select2-container {
  position: absolute !important;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

/* Conteneur global des groupes de chips */
.hp-tag-suggestions {
  margin-top: 0.75rem;
}

/* Groupes de tags */
.hp-tag-group {
  margin-bottom: 0.75rem;
}

.hp-tag-group__title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9aa5b5;
  margin-bottom: 0.35rem;
}

.hp-tag-group__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Chips (pills) */
.hp-tag-pill {
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.86rem;
  line-height: 1.4;
  background: #f3f7fb;
  border: 1px solid transparent;
  color: #5b6474;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease,
              border-color 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}

.hp-tag-pill:hover {
  background: #e7f7f1;
  border-color: #b6ecd3;
  color: #1e8460;
  transform: translateY(-1px);
}

.hp-tag-pill.is-selected {
  background: linear-gradient(90deg, #1fd18d, #3fa9f5);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 209, 141, 0.25);
  border-color: transparent;
}

.hp-tag-pill:focus-visible {
  outline: 2px solid rgba(63, 169, 245, 0.7);
  outline-offset: 2px;
}

/* Petit texte d’aide sous le label des tags (formulaire annonce) */
.hp-tags-help {
  font-size: 0.85rem;
  color: #7b8794;
  margin-top: 4px;
}

/* Juste pour garder un champ “propre” côté filtre
   si HivePress/Select2 ajoute quelque chose */
.hp-form--listing-filter .select2-selection--multiple {
  min-height: 54px;
  border-radius: 22px;
  border: 1px solid rgba(15, 35, 52, 0.08);
  background: #f9fafc;
}

.hp-form--listing-filter .hr-tags-search {
  margin: 8px 0 10px;
}

.hp-form--listing-filter .hr-tags-search__input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #ffffff;
  color: #1f2a44;
  padding: 10px 12px;
  font-size: 16px !important;
  -webkit-text-size-adjust: 100% !important;
  line-height: 1.35;
}

.hp-form--listing-filter .hr-tags-search__input:focus {
  outline: none;
  border-color: rgba(76, 111, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(76, 111, 255, 0.16);
}

.hp-form--listing-filter .hp-form__field--tags.hr-tags-custom-mode .select2-container {
  display: none !important;
}

.hp-form--listing-filter .hp-form__field--tags.hr-tags-custom-mode select[name="tags[]"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.hp-form--listing-filter .hr-tags-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.hp-form--listing-filter .hr-tag-selected {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.9rem;
  background: #ffffff;
  border: 1px solid rgba(76, 111, 255, 0.22);
  color: #1d2850;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.hp-form--listing-filter .hr-tag-selected__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(76, 111, 255, 0.12);
  color: #4c6fff;
  font-weight: 700;
  line-height: 1;
}










/*********************************
 * SEARCH / FILTRE ANNONCES — HomerentAI (CLEAN)
 * Scope: widget filtre listings (sidebar)
 * Objectif: tags selected = blanc + contour #4C6FFF (sans gradient)
 *********************************/

:root{
  --hr-blue:#4C6FFF;
  --hr-text:#2f3b52;
  --hr-muted:#657188;
  --hr-pill-bg:#f4f7fb;
  --hr-border:rgba(148,163,184,.35);
  --hr-shadow:rgba(76,111,255,.18);
  --hr-shadow-strong:rgba(76,111,255,.26);
}

/* =========================
   1) Bouton "Filtre"
========================= */
.widget.hp-widget--listing-filter
.hp-form--listing-filter
.hp-form__footer
.hp-form__button.hp-field--submit{
  width:100% !important;
  border-radius:999px !important;
  padding:16px 22px !important;

  background:#fff !important;
  background-image:none !important;
  color:var(--hr-blue) !important;

  border:2px solid var(--hr-blue) !important;
  box-shadow:0 14px 36px var(--hr-shadow) !important;

  font-weight:700 !important;
  letter-spacing:.02em;

  transition:transform .18s ease, box-shadow .22s ease, background .22s ease;
}

.widget.hp-widget--listing-filter
.hp-form--listing-filter
.hp-form__footer
.hp-form__button.hp-field--submit span{
  color:inherit !important;
}

.widget.hp-widget--listing-filter
.hp-form--listing-filter
.hp-form__footer
.hp-form__button.hp-field--submit:hover{
  transform:translateY(-1px);
  background:rgba(76,111,255,.06) !important;
  background-image:none !important;
  box-shadow:0 20px 55px var(--hr-shadow-strong) !important;
}

.widget.hp-widget--listing-filter
.hp-form--listing-filter
.hp-form__footer
.hp-form__button.hp-field--submit:focus{
  outline:none !important;
  background-image:none !important;
  box-shadow:
    0 20px 55px var(--hr-shadow-strong),
    0 0 0 3px rgba(76,111,255,.22) !important;
}

/* =========================
   2) TAG PILLS (base)
========================= */
.widget.hp-widget--listing-filter .hp-tag-pill{
  -webkit-appearance:none;
  appearance:none;

  background:var(--hr-pill-bg) !important;
  background-image:none !important;
  color:var(--hr-muted) !important;

  border:1px solid var(--hr-border) !important;
  border-radius:999px !important;

  box-shadow:none !important;
  filter:none !important;

  transition:
    background .18s ease,
    color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

/* Hover */
.widget.hp-widget--listing-filter .hp-tag-pill:hover{
  background:#fff !important;
  background-image:none !important;

  color:var(--hr-text) !important;
  border-color:rgba(76,111,255,.35) !important;

  box-shadow:0 10px 24px rgba(76,111,255,.12) !important;
  transform:translateY(-1px);
}

/* =========================
   3) TAG PILLS (selected)
   -> ton JS met .is-active
   -> HivePress met parfois .is-selected
========================= */
.widget.hp-widget--listing-filter .hp-tag-pill.is-active,
.widget.hp-widget--listing-filter .hp-tag-pill.is-selected,
.widget.hp-widget--listing-filter .hp-tag-pill[aria-pressed="true"]{
  background:#fff !important;
  background-image:none !important;   /* kill gradients */
  color:var(--hr-blue) !important;

  border:2px solid var(--hr-blue) !important;

  box-shadow:0 14px 36px var(--hr-shadow) !important;
  filter:none !important;
}

/* Selected hover */
.widget.hp-widget--listing-filter .hp-tag-pill.is-active:hover,
.widget.hp-widget--listing-filter .hp-tag-pill.is-selected:hover,
.widget.hp-widget--listing-filter .hp-tag-pill[aria-pressed="true"]:hover{
  background:rgba(76,111,255,.06) !important;
  background-image:none !important;
  box-shadow:0 20px 55px var(--hr-shadow-strong) !important;
}

/* =========================
   4) Kill-switch anti “gradients fantômes”
   (souvent injectés via :active ou pseudo-elements)
========================= */
.widget.hp-widget--listing-filter .hp-tag-pill:active{
  background-image:none !important;
  filter:none !important;
  box-shadow:0 14px 36px var(--hr-shadow) !important;
}

/* Si un thème colle le dégradé via pseudo-éléments */
.widget.hp-widget--listing-filter .hp-tag-pill::before,
.widget.hp-widget--listing-filter .hp-tag-pill::after{
  content:none !important;
  display:none !important;
}

/* Focus propre */
.widget.hp-widget--listing-filter .hp-tag-pill:focus{
  outline:none !important;
  background-image:none !important;
  box-shadow:0 0 0 3px rgba(76,111,255,.22) !important;
}










/*********************************
 * EDIT LISTING — TAGS (hp-tag-suggestions)
 * Selected = blanc + contour #4C6FFF (sans gradient)
 *********************************/


/* Scope strict : uniquement le bloc tags du formulaire (édition annonce) */
.hp-tag-suggestions .hp-tag-pill{
  -webkit-appearance:none;
  appearance:none;

  background:var(--hr-pill-bg) !important;
  background-image:none !important;
  color:var(--hr-muted) !important;

  border:1px solid var(--hr-border) !important;
  border-radius:999px !important;

  box-shadow:none !important;
  filter:none !important;

  transition:
    background .18s ease,
    color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.hp-tag-suggestions .hp-tag-pill:hover{
  background:#fff !important;
  background-image:none !important;
  color:var(--hr-text) !important;

  border-color:rgba(76,111,255,.35) !important;
  box-shadow:0 10px 24px rgba(76,111,255,.12) !important;
  transform:translateY(-1px);
}

/* Selected = style secondaire */
.hp-tag-suggestions .hp-tag-pill.is-selected,
.hp-tag-suggestions .hp-tag-pill[aria-pressed="true"]{
  background:#fff !important;
  background-image:none !important;
  color:var(--hr-blue) !important;

  border:2px solid var(--hr-blue) !important;
  box-shadow:0 14px 36px var(--hr-shadow) !important;
  filter:none !important;
}

.hp-tag-suggestions .hp-tag-pill.is-selected:hover,
.hp-tag-suggestions .hp-tag-pill[aria-pressed="true"]:hover{
  background:rgba(76,111,255,.06) !important;
  background-image:none !important;
  box-shadow:0 20px 55px var(--hr-shadow-strong) !important;
}

/* Kill gradients fantômes (souvent via :active ou pseudo-elements) */
.hp-tag-suggestions .hp-tag-pill:active{
  background-image:none !important;
  filter:none !important;
}

.hp-tag-suggestions .hp-tag-pill::before,
.hp-tag-suggestions .hp-tag-pill::after{
  content:none !important;
  display:none !important;
}

/* Focus clavier */
.hp-tag-suggestions .hp-tag-pill:focus{
  outline:none !important;
  background-image:none !important;
  box-shadow:0 0 0 3px rgba(76,111,255,.22) !important;
}

